/* ============================================================================
   hub.css — 课程档案首页
   ----------------------------------------------------------------------------
   顺序：变量 → 基础 → 背景 → 顶栏 → 首屏 → 课程 → 使用说明 → 页脚 → 弹窗
        → 动效 → 响应式 → 打印
   改主题只动 :root 与 [data-theme="light"] 两个变量区。
   ========================================================================== */

:root {
  /* 深色（默认） */
  --bg:            #070b12;
  --bg-soft:       #0a111c;
  --panel:         rgba(255, 255, 255, .045);
  --panel-2:       rgba(255, 255, 255, .075);
  --hover:         rgba(255, 255, 255, .06);
  --line:          rgba(255, 255, 255, .10);
  --line-2:        rgba(255, 255, 255, .18);
  --text:          #eef3fb;
  --text-2:        #a7b4ca;
  --text-3:        #72809a;

  --mint:          #6de3c8;
  --violet:        #a48bff;
  --blue:          #5b8cff;
  --amber:         #ffbc70;
  --accent:        var(--mint);
  --accent-soft:   rgba(109, 227, 200, .11);
  --accent-line:   rgba(109, 227, 200, .38);
  --grad:          linear-gradient(100deg, #6de3c8 0%, #7fd0ff 46%, #a48bff 100%);

  --head-bg:       rgba(7, 11, 18, .74);
  --modal-bg:      #0b1220;
  --shadow:        0 34px 90px -46px rgba(0, 0, 0, .95);
  --glow-a:        rgba(109, 227, 200, .17);
  --glow-b:        rgba(164, 139, 255, .16);
  --grid-line:     rgba(255, 255, 255, .035);

  --head-h:        72px;
  --radius:        22px;
  --font:          "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:          "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

[data-theme="light"] {
  --bg:            #f2f5fa;
  --bg-soft:       #ffffff;
  --panel:         #ffffff;
  --panel-2:       #eef3fa;
  --hover:         #f4f7fc;
  --line:          rgba(20, 36, 58, .11);
  --line-2:        rgba(20, 36, 58, .20);
  --text:          #132033;
  --text-2:        #4a5a70;
  --text-3:        #8491a5;

  --mint:          #0a9883;
  --violet:        #6f4fe0;
  --accent-soft:   rgba(10, 152, 131, .09);
  --accent-line:   rgba(10, 152, 131, .30);

  --head-bg:       rgba(245, 248, 252, .82);
  --modal-bg:      #ffffff;
  --shadow:        0 28px 70px -44px rgba(20, 40, 70, .45);
  --glow-a:        rgba(10, 152, 131, .13);
  --glow-b:        rgba(111, 79, 224, .11);
  --grid-line:     rgba(20, 36, 58, .05);
  --grad:          linear-gradient(100deg, #0a9883 0%, #2f7fd0 48%, #6f4fe0 100%);
}
[data-theme="light"] .float-tag {
  background: rgba(255, 255, 255, .88);
  color: var(--text-2);
  border-color: var(--line-2);
}
[data-theme="light"] .course {
  background: #fff;
  box-shadow: 0 22px 60px -52px rgba(20, 40, 70, .5);
}

/* ── 基础 ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--head-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-modal { overflow: hidden; }
::selection { background: var(--mint); color: #04120f; }
[data-theme="light"] ::selection { color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--mint); color: #04120f;
  font-size: 13px; font-weight: 700; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ── 背景 ─────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 10%, transparent 72%);
}
.bg__glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.bg__glow--a { width: 720px; height: 720px; top: -320px; right: -160px; background: var(--glow-a); }
.bg__glow--b { width: 640px; height: 640px; bottom: -340px; left: -120px; background: var(--glow-b); }
.bg__noise {
  position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; }
.scrollbar span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(109, 227, 200, .55);
  transition: width .15s linear;
}

/* ── 顶栏 ─────────────────────────────────────────────────── */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--head-h);
  display: flex; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding-inline: max(20px, calc((100vw - 1280px) / 2));
  background: var(--head-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color .25s, background .25s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand__mark {
  flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--panel); color: var(--mint);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text b { font-size: 14.5px; letter-spacing: .01em; white-space: nowrap; }
.brand__text small { font-size: 10.5px; color: var(--text-3); letter-spacing: .08em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.site-nav a {
  position: relative; font-size: 13.5px; color: var(--text-2); white-space: nowrap;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav__out { color: var(--text-3) !important; }
.head__actions { display: flex; align-items: center; gap: 8px; }
.icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text-2);
  font-size: 15px; cursor: pointer; transition: .18s;
}
.icon:hover { color: var(--text); border-color: var(--line-2); background: var(--hover); }

/* ── 首屏 ─────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.hero {
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 84px);
  min-height: calc(100svh - var(--head-h));
}
.eyebrow {
  display: flex; align-items: center; gap: 9px;
  margin: 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.6s ease-in-out infinite;
}
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  line-height: 1.85;
  color: var(--text-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--panel); color: var(--text);
  font-size: 13.5px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--text-3);
  background: var(--panel-2);
}
.btn--primary {
  background: linear-gradient(135deg, var(--mint), #8fd6ff);
  color: #051713; border-color: transparent;
  box-shadow: 0 14px 34px -18px rgba(109, 227, 200, .75);
}
.btn--primary:hover { box-shadow: 0 18px 40px -18px rgba(109, 227, 200, .9); }
.btn--quiet { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn--quiet:hover { color: var(--text); }
.btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }

.counts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 44px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.counts > div { display: flex; flex-direction: column-reverse; gap: 1px; }
.counts dt { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.counts dd {
  margin: 0; font-family: var(--mono); font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

/* 首屏右侧：课件叠层 */
.hero__visual {
  position: relative; min-height: 520px;
  display: grid; place-items: center;
}
.ring {
  position: absolute; inset: 0; margin: auto;
  border: 1px dashed var(--line); border-radius: 50%;
  pointer-events: none;
}
.ring--a { width: min(470px, 92%); height: min(470px, 92%); }
.ring--b { width: min(330px, 66%); height: min(330px, 66%); border-style: solid; opacity: .55; }
.ring::after {
  content: ""; position: absolute; top: 50%; left: -3px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 12px var(--violet);
}
.ring--b::after { left: auto; right: -2px; top: 18%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.deck { position: relative; width: min(100%, 392px); }
.deck__card {
  position: absolute; inset: 0; border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .012));
}
.deck__card--1 { transform: rotate(6deg) translate(18px, 24px) scale(.975); }
.deck__card--2 { transform: rotate(-7.5deg) translate(-20px, 12px) scale(.94); opacity: .55; }
.latest { position: relative; z-index: 2; transform: rotate(-2deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.deck:hover .latest { transform: rotate(0deg) translateY(-5px); }
.latest__link {
  display: flex; flex-direction: column; gap: 9px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(164, 139, 255, .18), transparent 60%),
    linear-gradient(165deg, #101b2b, #090f19);
  color: #eef3fb;
  box-shadow: var(--shadow);
}
.latest__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.latest__head .eyebrow { color: rgba(238, 243, 251, .5); font-size: 9.5px; }
.latest__badge {
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  color: #bfe9dd; border: 1px solid rgba(109, 227, 200, .3);
  background: rgba(109, 227, 200, .09);
}
.latest__art {
  display: block; height: 152px; margin: 4px 0 2px;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(100% 100% at 20% 0%, rgba(109, 227, 200, .14), transparent 60%),
    #08101a;
  overflow: hidden;
}
.latest__art svg { width: 100%; height: 100%; display: block; }
.latest__title { font-size: 20.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.latest__tagline { font-size: 12px; color: rgba(238, 243, 251, .6); line-height: 1.6; }
.latest__meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-family: var(--mono); font-size: 10px; color: rgba(238, 243, 251, .45);
}
.latest__dots { display: flex; gap: 4px; margin-top: 2px; }
.latest__dots i {
  flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14);
}
.latest__dots i:nth-child(-n+2) { background: rgba(109, 227, 200, .7); }
.latest__go { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #8ff0d7; }
.float-tag {
  position: absolute; z-index: 3;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(9, 15, 25, .72);
  backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  color: #b9c6da;
  animation: float 7s ease-in-out infinite;
}
.float-tag--a { top: 9%; right: 2%; }
.float-tag--b { bottom: 8%; left: 0; animation-delay: -3.5s; }

/* ── 区块通用 ─────────────────────────────────────────────── */
.section {
  position: relative;
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
  padding-top: clamp(56px, 7vw, 96px);
  scroll-margin-top: calc(var(--head-h) + 12px);
}
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section__title h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.035em; line-height: 1.1;
}
.section__title > p:last-child {
  margin: 0; max-width: 58ch;
  font-size: 14px; line-height: 1.75; color: var(--text-2);
}
.tools { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent; color: var(--text-2);
  font-size: 12px; cursor: pointer; transition: .18s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); background: var(--hover); }
.chip.is-on {
  color: var(--text); border-color: var(--accent-line);
  background: var(--accent-soft);
}
.search {
  display: flex; align-items: center; gap: 8px;
  width: min(330px, 100%); padding: 9px 10px 9px 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel);
  color: var(--text-3);
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--accent-line); background: var(--hover); }
.search svg { width: 15px; height: 15px; flex: 0 0 auto; }
.search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  color: var(--text); font: inherit; font-size: 13px;
}
.search input::placeholder { color: var(--text-3); }
.search kbd { flex: 0 0 auto; }

kbd {
  display: inline-block; min-width: 18px; padding: 1px 5px;
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--panel-2); color: var(--text-2);
  font-family: var(--mono); font-size: 10.5px; line-height: 1.5;
  text-align: center;
}

/* ── 课程卡片 ─────────────────────────────────────────────── */
.course-list { display: grid; gap: 26px; margin-top: 32px; }
.course {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.course:hover {
  border-color: var(--accent-line);
  box-shadow: 0 30px 90px -60px rgba(109, 227, 200, .55);
}
.course__cover {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 340px; padding: 22px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  color: #dff7f1;
}
.course__cover--mint {
  background:
    radial-gradient(85% 70% at 0% 0%, rgba(109, 227, 200, .30), transparent 62%),
    radial-gradient(80% 70% at 100% 100%, rgba(164, 139, 255, .20), transparent 64%),
    linear-gradient(160deg, #0c1b22, #070e16);
}
.course__cover--violet {
  background:
    radial-gradient(85% 70% at 0% 0%, rgba(164, 139, 255, .34), transparent 62%),
    radial-gradient(80% 70% at 100% 100%, rgba(109, 227, 200, .16), transparent 64%),
    linear-gradient(160deg, #121428, #080b15);
}
.course__cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(120% 95% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cover__head {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  color: rgba(233, 251, 246, .52);
}
.cover__level {
  padding: 3px 8px; border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(233, 251, 246, .72); letter-spacing: .08em;
}
.cover__art {
  position: relative; z-index: 1;
  flex: 1; min-height: 0;
  display: grid; place-items: center;
  padding: 6px 0;
}
.cover__art svg { width: 100%; height: 100%; max-height: 230px; display: block; }
.cover__no {
  position: absolute; right: 10px; bottom: 24px; z-index: 0;
  font-family: var(--mono); font-size: 112px; font-weight: 700; line-height: .72;
  letter-spacing: -.09em;
  color: rgba(255, 255, 255, .055);
  pointer-events: none;
}
.cover__foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 4px 13px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: rgba(233, 251, 246, .55);
}
.cover__foot span + span::before { content: "·"; margin-right: 9px; opacity: .5; }

.course__body {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
}
.course__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pill {
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.pill--mint { color: var(--mint); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.pill--violet { color: var(--violet); border: 1px solid rgba(164, 139, 255, .35); background: rgba(164, 139, 255, .1); }
.course__event { font-size: 12px; color: var(--text-2); }
.course__count {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  color: var(--text-3);
}
.course__title {
  margin: 13px 0 5px;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.16; letter-spacing: -.03em;
}
.course__tagline { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--text); }
.course__summary {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 0 0; font-size: 13.8px; line-height: 1.8; color: var(--text-2);
}
.course__actions {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-top: auto; padding-top: 20px;
}

.empty {
  margin: 40px 0;
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line-2); border-radius: 20px;
  color: var(--text-2); font-size: 14px;
}
.empty span { display: block; font-size: 26px; color: var(--text-3); margin-bottom: 6px; }
.noscript {
  margin-top: 24px; padding: 20px;
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--text-2); font-size: 14px;
}
.noscript a { color: var(--mint); text-decoration: underline; }

/* ── 页脚 ─────────────────────────────────────────────────── */
.foot {
  position: relative; z-index: 1;
  width: min(1280px, 100% - 40px);
  margin: clamp(64px, 8vw, 110px) auto 0;
  padding: 34px 0 36px;
  border-top: 1px solid var(--line);
}
.foot__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.brand__mark--sm { width: 34px; height: 34px; border-radius: 10px; }
.foot__brand p { margin: 0; display: flex; flex-direction: column; line-height: 1.4; }
.foot__brand b { font-size: 13.5px; }
.foot__brand small { font-size: 10.5px; color: var(--text-3); letter-spacing: .06em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { font-size: 12.5px; color: var(--text-2); }
.foot__links a:hover { color: var(--mint); }
.foot__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-3);
}
.foot__bottom p { margin: 0; }

/* ── 弹窗 ─────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(3, 7, 13, .66);
  backdrop-filter: blur(10px);
  animation: fade .18s ease;
}
.modal__panel {
  display: flex; flex-direction: column;
  width: min(860px, 100%); max-height: min(88vh, 900px);
  border: 1px solid var(--line-2); border-radius: 24px;
  background: var(--modal-bg);
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .8);
  overflow: hidden;
  animation: pop .24s cubic-bezier(.2, .8, .2, 1);
}
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.02em; }
.modal__head .eyebrow { font-size: 9.5px; }
.modal__actions { display: flex; align-items: center; gap: 8px; }
.outline { overflow-y: auto; padding: 4px 26px 10px; scrollbar-width: thin; }
.outline__item {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.outline__item:last-child { border-bottom: 0; }
.outline__no { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); padding-top: 3px; }
.outline__main h3 { margin: 0 0 3px; font-size: 15px; letter-spacing: -.01em; }
.outline__main h3 a { transition: color .18s; }
.outline__main h3 a:hover { color: var(--mint); }
.outline__main h3 span { font-size: 11px; color: var(--text-3); }
.outline__main p { margin: 0; font-size: 12.8px; line-height: 1.7; color: var(--text-2); }
.outline__steps { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.outline__steps li {
  padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 10.8px; color: var(--text-3);
}
.modal__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-3);
}
.modal--preview .modal__panel {
  width: min(1280px, 100%); height: min(900px, 88vh); max-height: none;
}
.preview { flex: 1; min-height: 0; background: #070b12; }
.preview iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── 动效 ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* ── 响应式 ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero__visual { min-height: 480px; margin-top: 8px; }
  .hero__lead { max-width: 60ch; }
  .counts { max-width: 640px; }
  .course { grid-template-columns: 1fr; }
  .course__cover { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cover__art svg { max-height: 220px; }
  .cover__no { font-size: 104px; bottom: 26px; }
}
@media (max-width: 900px) {
  .site-nav { gap: 16px; }
  .brand__text small { display: none; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .head__actions { margin-left: auto; }
  .section__head { align-items: flex-start; }
  .tools { align-items: stretch; width: 100%; }
  .filters { justify-content: flex-start; }
  .search { width: 100%; }
  .hero h1 { font-size: clamp(31px, 8.6vw, 50px); }
  .counts { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .course__body { padding: 22px 20px 24px; }
  .float-tag { display: none; }
  .modal { padding: 0; }
  .modal__panel { width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .modal--preview .modal__panel { height: 100dvh; }
  .modal__head { padding: 16px 18px 14px; }
  .modal__head h2 { font-size: 18px; }
  .outline { padding: 0 18px 8px; }
  .outline__item { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .modal__foot { padding: 12px 18px; flex-wrap: wrap; }
  .modal--preview .modal__head .btn span { display: none; }
  .foot__bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 34px; }
  .hero__visual { min-height: 420px; }
  .deck { width: min(100%, 340px); }
  .latest__art { height: 126px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .course__cover { min-height: 270px; padding: 18px; }
  .cover__art svg { max-height: 190px; }
  .course__actions .btn { flex: 1 1 auto; }
  .foot { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── 打印 ─────────────────────────────────────────────────── */
@media print {
  .bg, .site-head, .scrollbar, .hero__visual, .hero__cta, .tools, .foot__links, .modal { display: none !important; }
  body { padding-top: 0; background: #fff; color: #111; }
  .hero { min-height: 0; display: block; padding: 0 0 20px; }
  .course { break-inside: avoid; border-color: #ccc; background: #fff; }
  .course__cover { color: #111; }
}