/* =========================================================
   新时代思政课堂 · 样式表
   配色：中国红 × 鎏金 × 米白纸感
   ========================================================= */

:root {
  --red-900: #4a090c;
  --red-800: #6e0f12;
  --red-700: #8c1518;
  --red-600: #a61b1b;
  --red-500: #bf2a25;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --gold-soft: #f3e3b3;
  --ink: #20242a;
  --ink-soft: #4b5158;
  --muted: #6f767e;
  --paper: #f7f3ec;
  --paper-deep: #efe8dc;
  --white: #ffffff;
  --border: rgba(32, 36, 42, 0.1);
  --shadow-sm: 0 2px 10px rgba(74, 9, 12, 0.06);
  --shadow-md: 0 14px 40px rgba(74, 9, 12, 0.12);
  --shadow-lg: 0 26px 70px rgba(74, 9, 12, 0.18);
  --radius: 18px;
  --font-serif: "FZXiaoBiaoSong-B05S", "方正小标宋简体", "STZhongsong", "华文中宋",
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: var(--ink);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

/* ---------- 顶部阅读进度 ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}

.reading-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--red-500));
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--red-700);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #efd58f, #c9a227);
  color: var(--red-900);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.38);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-red {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
  box-shadow: 0 8px 22px rgba(122, 18, 18, 0.22);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(122, 18, 18, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(32, 36, 42, 0.18);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: rgba(32, 36, 42, 0.35);
  background: rgba(32, 36, 42, 0.03);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- 头部 ---------- */
.site-header {
  --htext: #ffffff;
  --hmuted: rgba(255, 255, 255, 0.72);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 15px 0;
  background: transparent;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

.site-header.scrolled,
.site-header.menu-open {
  --htext: var(--ink);
  --hmuted: var(--muted);
  padding: 10px 0;
  background: rgba(247, 243, 236, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(32, 36, 42, 0.08), 0 10px 30px rgba(74, 9, 12, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-seal {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--red-600), var(--red-900));
  border: 1px solid rgba(232, 199, 102, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(74, 9, 12, 0.25);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--htext);
  transition: color 0.35s;
}

.brand-text small {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--hmuted);
  transition: color 0.35s;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--hmuted);
  padding: 6px 2px;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-link:hover {
  color: var(--htext);
}

.nav-link.active {
  color: var(--htext);
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: transparent;
  color: var(--htext);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled .nav-toggle,
.site-header.menu-open .nav-toggle {
  border-color: rgba(32, 36, 42, 0.16);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + 92px) 0 128px;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(201, 162, 39, 0.26), transparent 62%),
    radial-gradient(900px 540px at 6% 112%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(138deg, #42080a 0%, #6e0f12 46%, #9e1b1b 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.hero-scenery {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero-scenery svg {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 64px;
}

.hero-copy > * {
  opacity: 0;
  animation: heroUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.26s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero-copy > :nth-child(6) { animation-delay: 0.38s; }
.hero-copy > :nth-child(7) { animation-delay: 0.44s; }
.hero-copy > :nth-child(8) { animation-delay: 0.5s; }
.hero-copy > :nth-child(9) { animation-delay: 0.56s; }

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .kicker {
  color: var(--gold-light);
}

.hero .kicker::before {
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.hero .kicker::after {
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.hero h1 {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.hero-rule {
  width: 76px;
  height: 3px;
  margin: 26px 0 22px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-light), rgba(232, 199, 102, 0.15));
}

.hero .slogan {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: 0.3em;
  color: var(--gold-soft);
}

.hero-intro {
  max-width: 560px;
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
}

.hero-teacher {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.hero-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.hero-panel {
  opacity: 0;
  animation: heroUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s forwards;
  padding: 30px 30px 24px;
  border-radius: 20px;
  border: 1px solid rgba(232, 199, 102, 0.3);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: 0 30px 70px rgba(20, 2, 3, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-head span {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  color: var(--gold-light);
}

.panel-head p {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
}

.hero-panel ul li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel ul li:last-child {
  border-bottom: 0;
}

.hp-date {
  flex: none;
  width: 82px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  color: var(--gold-light);
  letter-spacing: 0;
  white-space: nowrap;
}

.hp-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

.hp-body span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.48);
}

.panel-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- 数据带 ---------- */
.stats-band {
  position: relative;
  padding: 54px 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px),
    linear-gradient(120deg, var(--red-900), var(--red-800) 55%, #7d1416);
  border-top: 1px solid rgba(232, 199, 102, 0.25);
  border-bottom: 1px solid rgba(232, 199, 102, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  position: relative;
  padding: 6px 18px;
  text-align: center;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232, 199, 102, 0.3), transparent);
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: #fff;
}

.stat-note {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.section-alt {
  background: #fbf8f1;
  border-block: 1px solid rgba(32, 36, 42, 0.06);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--red-700);
  text-transform: uppercase;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.kicker::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head h2 {
  margin: 14px 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

.section-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.section-note {
  margin-top: 30px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 时政时间轴 ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55) 12%, rgba(201, 162, 39, 0.55) 88%, transparent);
}

.tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tl-date {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--red-700);
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(74, 9, 12, 0.05);
}

.tl-date::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.tl-card {
  flex: 1;
  margin-top: 18px;
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.tl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-md);
}

.tl-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 10px;
}

.tl-card h3 {
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.tl-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 理论卡片 ---------- */
.theory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.theory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.theory-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.theory-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: var(--shadow-md);
}

.theory-card:hover::before {
  transform: scaleX(1);
}

.theory-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(166, 27, 27, 0.09), rgba(201, 162, 39, 0.14));
  color: var(--red-700);
}

.theory-icon svg {
  width: 26px;
  height: 26px;
}

.theory-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.theory-sub {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #9a7b2e;
  margin-bottom: 18px;
}

.theory-points {
  display: grid;
  gap: 10px;
}

.theory-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.theory-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.85;
}

.theory-quote {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.09), rgba(201, 162, 39, 0));
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: #4c4638;
}

.theory-quote cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.theory-more {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(32, 36, 42, 0.14);
}

.theory-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red-700);
}

.theory-more summary::-webkit-details-marker {
  display: none;
}

.theory-more summary::after {
  content: "+";
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.3s;
}

.theory-more[open] summary::after {
  transform: rotate(45deg);
}

.theory-more p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- 视频卡片 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: var(--shadow-md);
}

.video-thumb {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(135deg, #520b0e, #8c1518 55%, #b02320);
}

.video-thumb::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 199, 102, 0.35), transparent 65%);
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 16px);
  opacity: 0.5;
}

.video-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 199, 102, 0.3);
  background: rgba(0, 0, 0, 0.24);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.video-idx {
  position: absolute;
  right: 18px;
  bottom: 6px;
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.13);
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.play-btn::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.video-card:hover .play-btn {
  background: var(--gold);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card:hover .play-btn::after {
  border-left-color: var(--red-800);
}

.video-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.video-body h3 {
  font-size: 16.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.video-body p {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-700);
}

.video-link::after {
  content: "↗";
  transition: transform 0.3s;
}

.video-card:hover .video-link::after {
  transform: translate(2px, -2px);
}

/* ---------- 随堂小测 ---------- */
.quiz-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.quiz-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.quiz-step {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red-700);
}

.quiz-track {
  flex: 1;
  min-width: 120px;
  height: 6px;
  border-radius: 999px;
  background: var(--paper-deep);
  overflow: hidden;
}

.quiz-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--red-600));
  transition: width 0.4s;
}

.quiz-best {
  font-size: 12.5px;
  color: var(--muted);
}

#quizBody h3 {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.q-index {
  margin-right: 10px;
  font-family: var(--font-serif);
  color: var(--gold);
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(32, 36, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.option:hover {
  border-color: rgba(201, 162, 39, 0.6);
  background: rgba(201, 162, 39, 0.045);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option.selected {
  border-color: var(--red-600);
  background: rgba(166, 27, 27, 0.045);
  box-shadow: 0 0 0 3px rgba(166, 27, 27, 0.06);
}

.opt-key {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 36, 42, 0.2);
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.option.selected .opt-key {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

.opt-text {
  padding-top: 2px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.quiz-hint {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--red-600);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.quiz-actions[hidden] {
  display: none;
}

/* 小测结果 */
.quiz-result {
  padding: 8px 0;
  text-align: center;
}

.score-ring {
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) var(--deg, 0deg), #ece6da 0);
}

.score-inner {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-inner strong {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  color: var(--red-700);
}

.score-inner span {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.quiz-result > h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 6px;
}

.quiz-result > p {
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.review {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  text-align: left;
}

.review-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: #fbfaf7;
}

.review-item.correct {
  border-left-color: #2f7d54;
}

.review-item.wrong {
  border-left-color: #b23a3a;
}

.review-q {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.review-a {
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.review-exp {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 学习资源 ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: var(--shadow-md);
}

.resource-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(166, 27, 27, 0.1), rgba(201, 162, 39, 0.14));
  color: var(--red-700);
  font-family: var(--font-serif);
  font-size: 18px;
}

.resource-card h3 {
  font-size: 15.5px;
  margin-bottom: 3px;
}

.resource-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.resource-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.3s, color 0.3s;
}

.resource-card:hover .resource-arrow {
  transform: translate(2px, -2px);
  color: var(--red-600);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 60px 0 26px;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(900px 400px at 18% 0%, rgba(201, 162, 39, 0.1), transparent 60%),
    #260708;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}

.site-footer .brand-text strong {
  color: #fff;
}

.site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  max-width: 380px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  margin: 4px 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.footer-col li {
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- 视频弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(920px, 100%);
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-head strong {
  font-size: 15px;
  line-height: 1.5;
}

.modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 36, 42, 0.06);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s;
}

.modal-close:hover {
  background: rgba(32, 36, 42, 0.12);
}

.modal-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-foot {
  padding: 12px 20px;
  font-size: 13px;
}

.modal-foot a {
  color: var(--red-700);
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 199, 102, 0.4);
  border-radius: 50%;
  background: var(--red-700);
  color: var(--gold-light);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 10px 24px rgba(74, 9, 12, 0.28);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--red-600);
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .theory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 44px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 12px 0;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    z-index: 59;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(247, 243, 236, 0.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 15px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    background: rgba(166, 27, 27, 0.06);
    color: var(--red-700);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: calc(var(--header-h) + 56px) 0 88px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    display: none;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 36px);
  }

  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(38px, 10.5vw, 48px);
  }

  .hero .kicker {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    gap: 8px;
  }

  .hero .kicker::before,
  .hero .kicker::after {
    width: 16px;
  }

  .hero .slogan {
    letter-spacing: 0.18em;
  }

  .hero-meta {
    margin-top: 30px;
  }

  .stats-band {
    padding: 38px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .stat {
    padding: 4px 10px;
  }

  .stat + .stat::before {
    display: none;
  }

  .stat-num {
    font-size: 40px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .theory-grid,
  .video-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tl-card {
    margin-top: 12px;
  }

  .quiz-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .quiz-top {
    gap: 10px;
  }

  .quiz-best {
    width: 100%;
  }

  .quiz-actions {
    margin-top: 24px;
  }

  .quiz-actions .btn {
    flex: 1;
    padding-inline: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-copy > *,
  .hero-panel {
    opacity: 1;
  }
}
