/* 专题总览 / 期次列表 / 首页置顶卡片 */

.topics-page-header {
  background: linear-gradient(135deg, #0f4c81 0%, #1a6ba0 100%);
  color: #fff;
  padding: 48px 0 40px;
  margin-bottom: 36px;
}
.topics-page-header h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}
.topics-page-header p {
  font-size: 16px;
  opacity: 0.92;
  max-width: 720px;
  line-height: 1.55;
}
.topics-page-header .topics-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.9;
}

.topics-page-main {
  padding: 0 0 60px;
}

.topics-breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8eef5;
}
.topics-breadcrumb a {
  color: #0f4c81;
  text-decoration: none;
}
.topics-breadcrumb a:hover {
  color: #ff7f24;
}
.topics-breadcrumb .sep {
  color: #999;
  margin: 0 6px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #0f4c81;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
}
a.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.12);
}
.topic-card-body {
  padding: 22px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topic-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f4c81;
  margin-bottom: 8px;
  line-height: 1.35;
}
.topic-card-sub {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.topic-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: #777;
}
.topic-card-meta .topic-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8f4f8;
  color: #0f4c81;
  font-size: 12px;
}

/* 期次列表 */
.topic-detail-head {
  margin-bottom: 24px;
}
.topic-detail-head h1 {
  font-size: 28px;
  color: #0f4c81;
  margin-bottom: 8px;
}
.topic-detail-head .topic-detail-sub {
  font-size: 15px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 10px;
}
.topic-detail-head .topic-detail-meta {
  font-size: 13px;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.topic-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.topic-article-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.topic-article-item:last-child {
  border-bottom: none;
}
a.topic-article-item:hover {
  background: #f7fafc;
}
.topic-seq {
  flex: 0 0 auto;
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #0f4c81;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.topic-seq.is-empty {
  background: #c5d0db;
}
.topic-article-main {
  flex: 1;
  min-width: 0;
}
.topic-article-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin-bottom: 6px;
}
a.topic-article-item:hover .topic-article-title {
  color: #0f4c81;
}
.topic-article-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.topics-empty {
  text-align: center;
  color: #888;
  padding: 48px 16px;
  background: #fff;
  border-radius: 8px;
}

/* 首页置顶专题 */
.home-topics {
  padding: 40px 0 20px;
}
.home-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.home-topic-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 20px 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #0f4c81;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.home-topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.12);
}
.home-topic-card h3 {
  font-size: 16px;
  color: #0f4c81;
  margin-bottom: 6px;
  line-height: 1.35;
}
.home-topic-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-topic-card .home-topic-meta {
  font-size: 12px;
  color: #888;
}

@media (max-width: 1024px) {
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topics-page-header {
    padding: 36px 0 28px;
  }
  .topics-page-header h1 {
    font-size: 26px;
  }
  .topics-grid,
  .home-topics-grid {
    grid-template-columns: 1fr;
  }
  .topic-article-item {
    padding: 14px 14px;
    gap: 12px;
  }
  .topic-article-title {
    font-size: 15px;
  }
  .topic-detail-head h1 {
    font-size: 22px;
  }
}
