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

/* 报告卡片样式 */
.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-search {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem; /* px-6 py-4 pl-12 */
  font-size: 1.125rem; /* text-lg */
  border: 1px solid #e5e7eb; /* border border-gray-200 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
}

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

#report-search:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: #fb923c; /* focus:ring-orange-400 */
  border-color: transparent; /* focus:border-transparent */
}

/* 统一分页样式 - 与博客页面保持一致 */
.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;
}

/* 搜索状态样式 */
.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);
  }
}

/* 标签样式 - 与博客保持一致 */
.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;
}

/* 状态指示器样式 */
.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);
  }
}

/* 响应式调整 */
@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 1rem 0.75rem 2.5rem;
  }

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

/* 提升交互体验 */
.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);
}
