/* 报告页样式 */

/* 页面标题使用 common.css 中的 .page-title-lg 类 */

/* 顶部深蓝色 Reports 条 */
.reports-header-bar {
  background-color: #0e3051;
  color: #ffffff;
}

.reports-header-bar__inner {
  max-width: 1360px;
  margin-inline: auto;
  padding: 12px 32px;
  font-size: 20px;
  font-weight: 600;
}

.reports-section {
  padding-top: 32px;
  padding-bottom: 40px;
}

/* 分类 Tab 栏 */
.reports-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.reports-tab {
  padding: 4px 0;
  border: none;
  background: none;
  font-size: 20px;
  color: #666666;
  cursor: pointer;
}

.reports-tab--active {
  font-size: 30px;
  font-weight: 700;
  color: #1F558B;
}

/* 5 x 2 报告卡片网格 */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.reports-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.reports-card__cover {
  background-color: #fff;
  padding: 5px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  /* 适当收窄高度，避免封面过高 */
  aspect-ratio: 300 / 390;
}

.reports-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reports-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 80px 20px 0 20px;
  color: #ffffff;
}

.reports-card__category {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.reports-card__overlay-title {
  font-size: 16px;
  color: #ffffff;
  margin: 24px 0 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reports-card__code {
  font-size: 16px;
  color: #ffffff;
  margin: 24px 0 0 0;
  line-height: 1.2;
}

.reports-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(14, 48, 81, 0.9);
  color: #ffffff;
  font-size: 12px;
}

.reports-card__meta {
  margin-top: 10px;
}

.reports-card__title {
  font-size: 18px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reports-card:hover .reports-card__title {
  color: #004494;
}

/* 分页样式已移到 common.css，此处移除重复定义 */

@media (max-width: 1400px) {
  .reports-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .reports-header-bar__inner {
    padding-inline: 20px;
  }

  .reports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .reports-section {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .reports-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 4px;
  }

  .reports-tabs::-webkit-scrollbar {
    display: none;
  }

  .reports-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 16px;
    padding: 6px 0;
  }

  .reports-tab--active {
    font-size: 20px;
  }

  .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .reports-card__overlay {
    padding: 40px 12px 0 12px;
  }

  .reports-card__category {
    font-size: 18px;
  }

  .reports-card__overlay-title {
    font-size: 13px;
    margin-top: 12px;
  }

  .reports-card__code {
    font-size: 13px;
    margin-top: 12px;
  }

  .reports-card__title {
    font-size: 15px;
  }

  .reports-header-bar__inner {
    padding: 10px 16px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .reports-tabs {
    gap: 10px 16px;
  }

  .reports-tab {
    font-size: 14px;
  }

  .reports-tab--active {
    font-size: 18px;
  }

  .reports-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .reports-card__overlay {
    padding: 30px 10px 0 10px;
  }

  .reports-card__category {
    font-size: 16px;
  }

  .reports-card__title {
    font-size: 14px;
  }
}
