/* ============================================================
   糖心视频 · 全站样式表
   视觉方向：产品手册风 / 深蓝 + 浅灰 / 功能图解
   ============================================================ */

/* ------------------------------------------------------------
   Base — 全局基础
------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  background-color: #f5f7fa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1e3a5f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4a90d9;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.4;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

/* ------------------------------------------------------------
   Layout — 全站骨架
------------------------------------------------------------ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background-color: #1e3a5f;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-brand:hover {
  color: #ffffff;
  opacity: 0.88;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.site-nav .nav-list a.is-current {
  color: #ffffff;
  background-color: #4a90d9;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  background-color: #1e3a5f;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 64px;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.56);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* 内页统一外壳 */
.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7a8d;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #4a90d9;
}

.breadcrumb a:hover {
  color: #1e3a5f;
}

.breadcrumb-sep {
  color: #9aa7b5;
}

.breadcrumb-current {
  color: #2c3e50;
  font-weight: 500;
}

.page-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e8edf2;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: #5a6b7d;
  max-width: 760px;
  line-height: 1.7;
}

/* 通用区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #4a90d9;
  border-radius: 2px;
}

/* 通用文字链接 */
.text-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #4a90d9;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: #1e3a5f;
  border-bottom-color: #4a90d9;
}

/* ------------------------------------------------------------
   Components — 通用组件
------------------------------------------------------------ */
/* 频道入口面板（首页 hero） */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.hero-panel {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-sub {
  font-size: 16px;
  color: #5a6b7d;
  margin-bottom: 24px;
  line-height: 1.7;
}

.channel-entry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.entry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: #f5f7fa;
  border-radius: 6px;
  border: 1px solid #e8edf2;
  transition: all 0.2s ease;
}

.entry-item:hover {
  background-color: #eef3f9;
  border-color: #4a90d9;
  transform: translateY(-2px);
}

.entry-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e3a5f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}

.entry-text {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  flex: 1;
}

.entry-arrow {
  font-size: 14px;
  color: #4a90d9;
  flex-shrink: 0;
}

.watch-help-summary .section-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.help-intro {
  font-size: 15px;
  color: #5a6b7d;
  margin-bottom: 20px;
  line-height: 1.7;
}

.help-steps {
  margin-bottom: 20px;
}

.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #e8edf2;
  font-size: 15px;
  color: #2c3e50;
  line-height: 1.6;
}

.help-steps li:last-child {
  border-bottom: none;
}

.help-steps strong {
  color: #1e3a5f;
  font-weight: 600;
  flex-shrink: 0;
}

/* 分区卡片（首页） */
.channel-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.content-media {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8edf2;
}

.content-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.content-media figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: #5a6b7d;
  background-color: #f5f7fa;
  border-top: 1px solid #e8edf2;
}

.partition-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partition-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e8edf2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.1);
}

.partition-icon {
  width: 44px;
  height: 44px;
  background-color: #eef3f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 16px;
}

.partition-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.partition-card p {
  font-size: 14px;
  color: #5a6b7d;
  margin-bottom: 16px;
  line-height: 1.6;
}

.partition-card a {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
}

.partition-card a:hover {
  color: #1e3a5f;
}

/* 专题卡片（首页） */
.featured-topics {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  background-color: #ffffff;
}

.topic-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  background-color: #f5f7fa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8edf2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.08);
}

.topic-media {
  overflow: hidden;
}

.topic-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.topic-body {
  padding: 20px;
}

.topic-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.topic-body p {
  font-size: 14px;
  color: #5a6b7d;
  margin-bottom: 14px;
  line-height: 1.6;
}

.topic-body a {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
}

.topic-body a:hover {
  color: #1e3a5f;
}

/* 时间线预览（首页） */
.timeline-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.timeline-preview-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e8edf2;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-item:hover {
  transform: translateY(-2px);
  border-color: #4a90d9;
}

.timeline-date {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
  width: 80px;
  padding-top: 2px;
}

.timeline-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: #5a6b7d;
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-content a {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
}

.timeline-content a:hover {
  color: #1e3a5f;
}

.more-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #4a90d9;
  padding: 8px 20px;
  border: 2px solid #4a90d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.more-link:hover {
  background-color: #4a90d9;
  color: #ffffff;
}

/* 内容边界说明（首页） */
.boundary-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  background-color: #ffffff;
}

.boundary-text {
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 24px;
}

.term-entry-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.term-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  background-color: #f5f7fa;
  border: 1px solid #d0d9e2;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.term-btn:hover {
  background-color: #1e3a5f;
  color: #ffffff;
  border-color: #1e3a5f;
}

/* 频道分区页卡片 */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.channel-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e8edf2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.1);
}

.card-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: #5a6b7d;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
}

.card-link:hover {
  color: #1e3a5f;
}

/* 分区详情 */
.partition-detail {
  margin-bottom: 48px;
}

.partition-block {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid #e8edf2;
}

.partition-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8edf2;
}

.partition-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.partition-desc {
  font-size: 15px;
  color: #5a6b7d;
  line-height: 1.7;
}

.topic-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.topic-item {
  background-color: #f5f7fa;
  border-radius: 6px;
  padding: 16px 20px;
  border: 1px solid #e8edf2;
}

.topic-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.topic-item p {
  font-size: 14px;
  color: #5a6b7d;
  line-height: 1.6;
}

.channel-figure {
  margin-bottom: 48px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8edf2;
}

.channel-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.channel-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: #5a6b7d;
  background-color: #f5f7fa;
  border-top: 1px solid #e8edf2;
}

/* 指南入口（channel / archive） */
.guide-entry {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
  border: 1px solid #e8edf2;
}

.guide-entry h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.guide-entry p {
  font-size: 15px;
  color: #5a6b7d;
  margin-bottom: 20px;
  line-height: 1.7;
}

.entry-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.action-link {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #1e3a5f;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.action-link:hover {
  background-color: #4a90d9;
  color: #ffffff;
}

/* 时间线页 */
.timeline-hero-figure {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8edf2;
}

.timeline-hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.timeline-hero-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: #5a6b7d;
  background-color: #f5f7fa;
  border-top: 1px solid #e8edf2;
}

.month-group {
  margin-bottom: 48px;
}

.month-group > h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: #1e3a5f;
}

.month-block {
  margin-bottom: 24px;
}

.month-block h3 {
  font-size: 18px;
  color: #1e3a5f;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8edf2;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list li {
  display: flex;
  gap: 16px;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 16px 20px;
  border: 1px solid #e8edf2;
  transition: border-color 0.2s ease;
}

.timeline-list li:hover {
  border-color: #4a90d9;
}

.timeline-list .timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
  flex-shrink: 0;
  width: 64px;
}

.timeline-list h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline-list p {
  font-size: 14px;
  color: #5a6b7d;
  line-height: 1.6;
  margin-bottom: 6px;
}

.timeline-list a {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
}

.timeline-list a:hover {
  color: #1e3a5f;
}

/* 延伸阅读 / 相关资源 */
.related-resources {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
  border: 1px solid #e8edf2;
}

.related-resources h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e8edf2;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  display: block;
  margin-bottom: 4px;
}

.related-list a:hover {
  color: #4a90d9;
}

.related-list p {
  font-size: 14px;
  color: #5a6b7d;
  line-height: 1.6;
}

/* 档案页 */
.archive-cover {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8edf2;
}

.archive-cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.archive-cover figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: #5a6b7d;
  background-color: #f5f7fa;
  border-top: 1px solid #e8edf2;
}

.archive-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.year-index {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e8edf2;
  align-self: start;
  position: sticky;
  top: 88px;
}

.year-index h2 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8edf2;
}

.year-index ul {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.year-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.year-link:hover {
  background-color: #f5f7fa;
  color: #1e3a5f;
}

.year-link.is-current {
  background-color: #1e3a5f;
  color: #ffffff;
}

.year-index-note {
  font-size: 13px;
  color: #9aa7b5;
  line-height: 1.6;
}

.archive-content {
  display: grid;
  gap: 40px;
}

.year-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e3a5f;
}

.year-section .month-group {
  margin-bottom: 24px;
}

.year-section .month-group h3 {
  font-size: 16px;
  color: #4a90d9;
  margin-bottom: 12px;
}

.archive-item {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 16px 20px;
  border: 1px solid #e8edf2;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.archive-item:hover {
  border-color: #4a90d9;
}

.archive-date {
  font-size: 13px;
  color: #9aa7b5;
  margin-bottom: 6px;
}

.archive-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.archive-summary {
  font-size: 14px;
  color: #5a6b7d;
  line-height: 1.6;
  margin-bottom: 10px;
}

.archive-item a {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
}

.archive-item a:hover {
  color: #1e3a5f;
}

.guide-entry-link {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #1e3a5f;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.guide-entry-link:hover {
  background-color: #4a90d9;
  color: #ffffff;
}

/* 观看指南页 */
.guide-definition {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid #e8edf2;
}

.guide-definition h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.guide-definition p {
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.8;
}

.step-list {
  margin-bottom: 40px;
}

.step-list > h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #e8edf2;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: #1e3a5f;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: #5a6b7d;
  line-height: 1.7;
}

.guide-example {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid #e8edf2;
}

.guide-example h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.example-media {
  margin-bottom: 24px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #e8edf2;
}

.example-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.example-media figcaption {
  padding: 10px 16px;
  font-size: 14px;
  color: #5a6b7d;
  background-color: #f5f7fa;
}

.example-path p {
  font-size: 15px;
  color: #2c3e50;
  line-height: 1.7;
  margin-bottom: 12px;
}

.path-list {
  background-color: #f5f7fa;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 12px;
}

.path-list li {
  padding: 8px 0;
  font-size: 15px;
  color: #2c3e50;
  border-bottom: 1px dashed #d0d9e2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.path-list li:last-child {
  border-bottom: none;
}

.path-list li::before {
  content: counter(step);
  counter-increment: step;
  width: 24px;
  height: 24px;
  background-color: #4a90d9;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.path-list {
  counter-reset: step;
}

/* 关联术语 */
.related-terms {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid #e8edf2;
}

.related-terms h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.related-terms > p {
  font-size: 15px;
  color: #5a6b7d;
  margin-bottom: 16px;
}

.term-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.term-links a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
  background-color: #f5f7fa;
  border: 1px solid #d0d9e2;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.term-links a:hover {
  background-color: #1e3a5f;
  color: #ffffff;
  border-color: #1e3a5f;
}

/* 资源链接 */
.resource-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.resource-links a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
  border: 1px solid #4a90d9;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.resource-links a:hover {
  background-color: #4a90d9;
  color: #ffffff;
}

/* 术语页 */
.term-figure {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8edf2;
}

.term-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.term-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: #5a6b7d;
  background-color: #f5f7fa;
  border-top: 1px solid #e8edf2;
}

.term-directory {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid #e8edf2;
}

.term-directory h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.section-note {
  font-size: 14px;
  color: #5a6b7d;
  margin-bottom: 20px;
}

.directory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.directory-list a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
  background-color: #f5f7fa;
  border: 1px solid #d0d9e2;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.directory-list a:hover {
  background-color: #1e3a5f;
  color: #ffffff;
  border-color: #1e3a5f;
}

.term-list {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.term-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e8edf2;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.term-head h3 {
  font-size: 20px;
}

.term-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background-color: #4a90d9;
  border-radius: 4px;
}

.term-definition {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 16px;
  line-height: 1.6;
}

.term-body p {
  font-size: 15px;
  color: #2c3e50;
  line-height: 1.8;
  margin-bottom: 12px;
}

.term-scene {
  background-color: #f5f7fa;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.term-scene strong {
  color: #1e3a5f;
  font-weight: 600;
}

.term-related {
  font-size: 14px;
  color: #5a6b7d;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.term-related a {
  font-weight: 600;
  color: #4a90d9;
}

.term-related a:hover {
  color: #1e3a5f;
}

/* 术语关系 */
.relationship {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
  border: 1px solid #e8edf2;
}

.relationship h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.relationship > p {
  font-size: 15px;
  color: #5a6b7d;
  margin-bottom: 20px;
  line-height: 1.7;
}

.relationship-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 404 页 */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1 0 auto;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 48px 40px;
  border: 1px solid #e8edf2;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #5a6b7d;
  margin-bottom: 28px;
  line-height: 1.7;
}

.error-back {
  display: inline-block;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #1e3a5f;
  border-radius: 6px;
  margin-bottom: 24px;
  transition: background-color 0.2s ease;
}

.error-back:hover {
  background-color: #4a90d9;
  color: #ffffff;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.error-links a {
  font-size: 14px;
  font-weight: 600;
  color: #4a90d9;
}

.error-links a:hover {
  color: #1e3a5f;
}

/* ------------------------------------------------------------
   Pages — 页面级微调
------------------------------------------------------------ */
/* 首页 hero 双栏在窄屏时堆叠 */
.home-main .hero {
  align-items: stretch;
}

/* 频道页分区卡 hover 效果 */
.partition-block {
  scroll-margin-top: 88px;
}

/* 时间线月份块锚点偏移 */
.month-block {
  scroll-margin-top: 88px;
}

/* 档案页年份锚点偏移 */
.year-section {
  scroll-margin-top: 88px;
}

/* 术语锚点偏移 */
.term-item {
  scroll-margin-top: 88px;
}

/* ------------------------------------------------------------
   Responsive — 响应式
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .partition-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .archive-wrap {
    grid-template-columns: 1fr;
  }

  .year-index {
    position: static;
    margin-bottom: 24px;
  }

  .year-index ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #1e3a5f;
    box-shadow: 0 8px 16px rgba(30, 58, 95, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
  }

  .site-nav .nav-list a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 24px 16px 32px;
  }

  .hero-panel {
    padding: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .channel-entry-list {
    grid-template-columns: 1fr;
  }

  .channel-overview,
  .featured-topics,
  .timeline-preview,
  .boundary-note {
    padding: 32px 16px;
  }

  .partition-card-grid {
    grid-template-columns: 1fr;
  }

  .topic-card-list {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-date {
    width: auto;
  }

  .inner-main {
    padding: 24px 16px 0;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .topic-examples {
    grid-template-columns: 1fr;
  }

  .channel-figure img,
  .timeline-hero-figure img,
  .archive-cover img,
  .term-figure img,
  .example-media img {
    height: 200px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .archive-wrap {
    gap: 24px;
  }

  .year-index {
    padding: 16px;
  }

  .year-index ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .term-item,
  .guide-entry,
  .related-resources,
  .guide-definition,
  .guide-example,
  .related-terms,
  .relationship,
  .term-directory {
    padding: 24px;
  }

  .term-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (max-width: 480px) {
  .topic-media img {
    height: 160px;
  }

  .content-media img {
    height: 200px;
  }

  .channel-figure img,
  .timeline-hero-figure img,
  .archive-cover img,
  .term-figure img,
  .example-media img {
    height: 180px;
  }

  .entry-actions,
  .term-entry-actions {
    flex-direction: column;
    width: 100%;
  }

  .action-link,
  .term-btn {
    width: 100%;
    text-align: center;
  }

  .path-list li {
    font-size: 14px;
  }

  .year-index ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .term-links,
  .resource-links,
  .relationship-links {
    flex-direction: column;
    width: 100%;
  }

  .term-links a,
  .resource-links a {
    text-align: center;
  }
}
