@charset "UTF-8";
/* BasinLens Open Reports Pages Common Styles */

/* 搜索框样式 */
#report-search {
  width: 100%;
  padding: 1rem 4rem 1rem 4rem; /* px-6 py-4 pl-12 */
  font-size: 1.125rem; /* text-lg */
  border: 1px solid #e5e7eb; /* border border-gray-200 */
  border-radius: 9999px; /* rounded-full */
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); /* shadow */
  background-color: #ffffff!important; /* bg-white */
}

#report-search::placeholder {
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 400;
}

#report-search:focus {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); /* shadow */
  border-color: #d1d5db; /* border-gray-300 */
  outline: none;
}

#search-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  padding-left: 1.5rem;
  padding-right: 0rem;
  color: #9ca3af;
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
  transition: background-color 300ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-btn:hover {
  color: #6b7280;
}

/* 分类标签样式 */
.category-menu .tag {
  background-color: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.category-menu .tag:hover {
  color: #475569;
}

.category-menu a.active .tag {
  background-color: #ffedd5;
  color: #f97316;
}

/* 报告卡片样式 */
.report-card {
  background-color: #fff; /* bg-white */
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
  overflow: hidden; /* overflow-hidden */
  transition: all 0.3s ease; /* transition-all duration-300 */
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* hover:shadow-lg */
}

.report-card .report-image {
  height: 16rem; /* 256px */
  overflow: hidden;
}

.report-card .report-image img {
  transition: transform 0.5s ease;
}

.report-card:hover .report-image img {
  transform: scale(1.05);
}

/* 报告卡片内的分类标签 */
.report-card-category {
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #ffedd5;
  color: #f97316;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.report-card-category:hover {
  color: #ea580c;
}

/* 报告卡片内的普通标签 */
.report-card-tag {
  font-size: 0.75rem;
  background-color: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* 统一分页样式 - 与博客页面保持一致 */
.report-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.report-pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.25rem;
  border-radius: 0.375rem;
  background-color: white;
  color: #64748b;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.report-pagination-item:hover:not(.disabled) {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #d1d5db;
}

.report-pagination-item.active {
  background-color: #f97316;
  color: white;
  border-color: #f97316;
}

.report-pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f9fafb;
}

/* 搜索分页样式 */
.search-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #64748b;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.search-pagination-item:hover:not([disabled]) {
  background-color: #f1f5f9;
  border-color: #d1d5db;
  color: #0f172a;
}

.search-pagination-item.active {
  background-color: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.search-pagination-item[disabled] {
  color: #9ca3af;
  cursor: not-allowed;
  background-color: #f9fafb;
  opacity: 0.5;
}

/* 文本截断样式 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 标签样式 - 与博客保持一致 */
.report-tag {
  display: inline-block;
  background-color: #ffedd5;
  color: #9a3412;
  font-size: 0.75rem; /* text-xs */
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.report-tag:hover {
  background-color: #fed7aa;
}

/* 搜索状态样式 */
.search-status {
  transition: all 0.3s ease;
}

.reports-grid-transition {
  transition: opacity 0.3s ease;
}

/* 加载动画增强 */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 状态指示器样式 */
.status-indicator {
  transition: all 0.3s ease;
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 提升交互体验 */
.interactive-element {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
  transform: translateY(-1px);
}

.interactive-element:active {
  transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .report-pagination-item,
  .search-pagination-item {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0.125rem;
  }

  .search-pagination-item {
    font-size: 0.875rem; /* text-sm */
  }

  #report-search {
    font-size: 1rem; /* text-base */
    padding: 0.75rem 4rem 0.75rem 4rem;
  }

  .search-btn-mobile {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem; /* text-sm */
  }
}

/* 响应式分页器 */
@media (max-width: 768px) {
  .page-jump-desktop {
    display: none !important;
  }
}
