/* ==========================================================================
   CourseDesk — 介绍页
   纸面 / 课表：细横线、编号、等宽标注、一个深色「控制台」段落。
   只依赖系统字体，无外部资源。
   ========================================================================== */

:root {
  --paper: #f6f7f3;
  --paper-2: #f1f3ee;
  --panel: #ffffff;
  --ink: #121711;
  --ink-2: #36433a;
  --muted: #5d6a60;
  --faint: #8b968c;
  --line: #dde2d8;
  --line-2: #c8d1c4;
  --accent: #0b6e4f;
  --accent-2: #12906a;
  --accent-soft: #e7f2ec;
  --amber: #9a5a00;
  --amber-soft: #fbf2e2;
  --red: #a3261b;

  --dark: #0a0f0c;
  --dark-2: #0e1512;
  --dark-line: rgba(154, 230, 110, 0.16);
  --dark-ink: #e9f2e7;
  --dark-mut: #93a795;
  --dark-accent: #9ae66e;

  --sans: "Segoe UI Variable Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "JetBrains Mono", ui-monospace, monospace;
  --tech: Bahnschrift, "DIN Alternate", "Roboto Condensed", var(--display);

  --wrap: 1180px;
  --pad: 40px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 26, 20, 0.04), 0 18px 40px -30px rgba(15, 26, 20, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 顶栏是 sticky 的，锚点跳转要留出它的高度 */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { letter-spacing: -0.01em; }

::selection { background: rgba(11, 110, 79, 0.16); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ------------------------------------------------------------------ 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 243, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}
.brand__mark {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.1);
}
.brand__name {
  font-family: var(--display);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.brand__meta {
  font-size: 11.5px;
  color: var(--faint);
  padding-left: 8px;
  border-left: 1px solid var(--line-2);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.nav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover,
.nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px 9px;
  background: #fff;
}
.chip--mono { font-family: var(--mono); }

/* ------------------------------------------------------------------ 按钮 */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-2);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--btn-bd);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn--sm { height: 33px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn--solid {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  box-shadow: 0 1px 2px rgba(11, 110, 79, 0.28);
}
.btn--solid:hover { background: #0a6045; border-color: #0a6045; }
.btn--ghost { --btn-bg: #fff; }
.btn--ghost:hover { border-color: #a9b3a5; background: #fbfcf9; }
.btn:active { transform: translateY(1px); }
.btn__meta { opacity: 0.72; font-size: 12px; font-weight: 500; }

/* ------------------------------------------------------------------ 首屏 */

.hero {
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 35px,
    rgba(18, 23, 17, 0.032) 35px 36px
  );
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 340px at 12% -10%, rgba(11, 110, 79, 0.08), transparent 70%),
    radial-gradient(620px 300px at 96% 4%, rgba(13, 109, 140, 0.05), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: center;
  padding-top: 82px;
  padding-bottom: 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17a673;
  box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.16);
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(46px, 6.4vw, 80px);
  font-weight: 660;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(11, 110, 79, 0.22);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.hero__lede {
  margin: 0 0 30px;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.specs > div {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--line);
}
.specs > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.specs dt {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--tech);
}
.specs dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* 首屏右侧：一份"此刻"的界面摘录，不是插画 */
.now {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-0.5deg);
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.4s ease;
}
.now:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 2px 4px rgba(15, 26, 20, 0.05), 0 26px 50px -28px rgba(15, 26, 20, 0.4); }

.now__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfa, #fff);
}
.now__title { font-family: var(--display); font-weight: 660; font-size: 16px; letter-spacing: -0.01em; }
.now__date { font-size: 12px; color: var(--faint); }

.now__rows { padding: 6px 20px; }
.now__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2ee;
}
.now__row:last-child { border-bottom: 0; }
.now__main { min-width: 0; flex: 1; }
.now__k { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.now__s {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.dot--ok { background: #17a673; box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.14); }
.dot--warn { background: #e08a00; box-shadow: 0 0 0 3px rgba(224, 138, 0, 0.16); }

.tag {
  flex: none;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 3px 9px;
  white-space: nowrap;
}
.tag--solid { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.now__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfa;
  font-size: 12px;
  color: var(--muted);
}
.now__foot .mono { font-size: 10.5px; letter-spacing: 0.08em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }
.now__time { margin-left: auto; color: var(--faint); }

.hero__rule {
  position: relative;
  height: 1px;
  background: var(--line);
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ------------------------------------------------------------------ 通用小节 */

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

.sec-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 0;
  margin-bottom: 54px;
}
.sec-no {
  font-family: var(--tech);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 12px;
}
.sec-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.sec-lede {
  grid-column: 2;
  margin: 16px 0 0;
  max-width: 46em;
  font-size: 15.5px;
  color: var(--muted);
}
.sec-head .sec-lede { grid-row: 2; }
.sec-head > .sec-title { grid-column: 2; }

/* ------------------------------------------------------------------ 01 为什么 */

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.reason {
  padding: 26px 30px 26px 0;
  border-right: 1px solid var(--line);
}
.reason + .reason { padding-left: 30px; }
.reason:last-child { border-right: 0; padding-right: 0; }
.reason h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.015em;
}
.reason p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.reason__meta {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--faint);
  margin: 0;
}

/* ------------------------------------------------------------------ 02 界面 */

.section--ui { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }

.shots__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
}
.tab {
  appearance: none;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--accent-soft); color: var(--accent); }


.frame {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfa, #f5f7f3);
}
.frame__dots { display: inline-flex; gap: 6px; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe4dc; }
.frame__title { font-size: 11.5px; color: var(--muted); }
.frame__flag {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 1px 6px;
}
.frame__stage {
  position: relative;
  background: var(--paper-2);
  /* 切页也走淡出→淡入，和滚动的那套节奏一致 */
  transition: opacity 0.3s ease;
}
.frame__stage.is-swapping { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .frame__stage { transition: opacity 0.3s ease, transform 0.3s ease; }
  .frame__stage.is-swapping { transform: translateY(6px); }
}
.panel { display: none; }
.panel.is-active { display: block; }
.panel img { width: 100%; }

.shots__caption {
  margin: 14px 2px 0;
  font-size: 13.5px;
  color: var(--muted);
  min-height: 1.7em;
}

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

/* ------------------------------------------------------------------ 03 功能表 */

.tablewrap { border-top: 1px solid var(--line-2); overflow-x: auto; }

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}
.matrix th, .matrix td {
  text-align: left;
  padding: 15px 20px 15px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.matrix thead th {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding-top: 14px;
  padding-bottom: 12px;
}
.matrix tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 22%;
  white-space: nowrap;
}
.matrix td { color: var(--muted); }
.matrix tbody tr { transition: background 0.15s ease; }
.matrix tbody tr:hover { background: rgba(11, 110, 79, 0.035); }
.matrix tbody tr:hover th { color: var(--accent); }
.ok { color: var(--accent); font-weight: 700; margin-right: 5px; }
.dim { color: var(--faint); }

/* ------------------------------------------------------------------ 04 深色机制段 */

.dark {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(154, 230, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 230, 110, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(600px 400px at 20% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.dark .wrap { position: relative; }
.sec-head--dark .sec-title { color: #f2f8ef; }
.sec-head--dark .sec-lede { color: var(--dark-mut); }
.sec-head--dark .sec-no { color: rgba(154, 230, 110, 0.55); }

.pipe {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--dark-line);
}
.pipe__step {
  position: relative;
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--dark-line);
}
.pipe__step + .pipe__step { padding-left: 22px; }
.pipe__step:last-child { border-right: 0; }
.pipe__step::after {
  content: "→";
  position: absolute;
  right: -7px;
  top: 24px;
  color: rgba(154, 230, 110, 0.5);
  font-size: 13px;
  background: var(--dark);
  padding: 0 2px;
}
.pipe__step:last-child::after { display: none; }
.pipe__no {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(154, 230, 110, 0.6);
}
.pipe__step h3 {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: #f0f7ed;
}
.pipe__step code {
  font-size: 11.5px;
  color: var(--dark-mut);
  overflow-wrap: anywhere;
}

.dark__note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--dark-line);
}
.dark__note p {
  margin: 0;
  font-size: 13.5px;
  color: var(--dark-mut);
  line-height: 1.8;
}
.dark__note strong { color: #d7e6d1; font-weight: 600; }
.dark__note code { color: rgba(154, 230, 110, 0.9); font-size: 12px; }

/* ------------------------------------------------------------------ 05 上手 */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
  margin-bottom: 44px;
}
.step { padding: 24px 30px 4px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 30px; }
.step:last-child { border-right: 0; padding-right: 0; }
.step__no {
  font-family: var(--tech);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.step h3 { margin: 8px 0 8px; font-family: var(--display); font-size: 18px; font-weight: 640; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.code {
  border: 1px solid #1b261d;
  border-radius: 12px;
  overflow: hidden;
  background: #0c120e;
  box-shadow: var(--shadow);
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(154, 230, 110, 0.14);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8ba18d;
}
.copy {
  appearance: none;
  border: 1px solid rgba(154, 230, 110, 0.24);
  background: transparent;
  color: #b8d3b6;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.copy:hover { background: rgba(154, 230, 110, 0.12); color: #def3d4; }
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: #d3e6cd;
}
.code .c { color: #6d8470; }

/* ------------------------------------------------------------------ 06 边界 */

.section--limits { background: var(--paper-2); }

.edges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.edge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 26px;
  border-top: 3px solid var(--line-2);
}
.edge--do { border-top-color: var(--accent); }
.edge--dont { border-top-color: #b9c2b6; }
.edge h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.edge ul { margin: 0; padding: 0; list-style: none; }
.edge li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid #f1f3ef;
}
.edge li:last-child { border-bottom: 0; }
.edge li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}
.edge--dont li::before { background: #9aa69a; }

.notes h3 {
  margin: 0 0 12px;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--line);
}
.notes li {
  padding: 13px 0;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* ------------------------------------------------------------------ 07 FAQ */

.faq .sec-head { margin-bottom: 34px; }

.qa { border-top: 1px solid var(--line-2); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 560;
  color: var(--ink);
  transition: color 0.15s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 16px;
  color: var(--faint);
  transition: transform 0.2s ease;
}
.qa details[open] summary::after { content: "−"; }
.qa summary:hover { color: var(--accent); }
.qa p {
  margin: 0 0 20px;
  max-width: 60em;
  font-size: 14.5px;
  color: var(--muted);
}
.qa code { font-size: 12.5px; color: var(--ink-2); background: #eef1eb; padding: 1px 5px; border-radius: 4px; }

/* ------------------------------------------------------------------ 下载 */

.download {
  margin-top: 46px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 26px 30px;
  border: 1px solid rgba(11, 110, 79, 0.22);
  border-radius: var(--r);
  background: linear-gradient(180deg, #f2f9f5, #fff 70%);
}
.download__copy { flex: 1 1 320px; }
.download__copy h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.download__copy p { margin: 0; font-size: 14px; color: var(--muted); }
.download__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ 页脚 */

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 36px 0 42px;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 14px;
}
.footer__ver { font-size: 11px; color: var(--faint); font-weight: 400; }
.footer__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--faint);
  max-width: 62em;
}
.footer__links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.footer__links a { text-decoration: none; border-bottom: 1px solid transparent; }
.footer__links a:hover { border-bottom-color: var(--accent); color: var(--ink); }

/* ------------------------------------------------------------------ 入场动效 */

.hero__copy > * {
  animation: rise 0.6s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}
.hero__copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.22s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.28s; }
.now { animation: rise 0.7s 0.18s cubic-bezier(0.22, 0.8, 0.28, 1) both; }

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

/* ------------------------------------------------------- 幻灯片分页（一屏一页） */

:root { --bar: 58px; }

body { overflow: hidden; }

#main.deck {
  position: fixed;
  inset: var(--bar) 0 0 0;
  overflow: hidden;
  background: var(--paper);
}

.deck .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  padding: 12px 0 22px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.deck .slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.deck .slide.is-leaving {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
}

/* 内容高的页在页内滚动，滚到底再翻页 */
.deck .slide > .wrap {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
  padding-top: 4px;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d6dcd4 transparent;
}
.deck .slide > .wrap > * { flex: 0 0 auto; }
.deck .slide > .wrap::-webkit-scrollbar { width: 6px; }
.deck .slide > .wrap::-webkit-scrollbar-thumb { background: #d6dcd4; border-radius: 3px; }

/* 原来给长文档的纵向节奏，在分页里让位给"一屏" */
.deck .section,
.deck .dark,
.deck .hero,
.deck .footer { padding: 0; border-top: 0; }
.deck .slide > .wrap.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 36px;
  height: 100%;
  padding: 0;
}
.deck .hero__rule { display: none; }
.deck .sec-head { margin-bottom: 0; }
.deck .pipe { margin-bottom: 0; }
.deck .footer { background: transparent; }
.deck .end { display: flex; flex-direction: column; justify-content: center; gap: 26px; height: 100%; }
.deck .end .download { margin: 0; }
.deck .end .footer__inner { padding-top: 20px; border-top: 1px solid var(--line); }
.deck .end .download__actions { margin-top: 0; }

/* 图不要撑破一屏 */
.deck .frame { margin: 0 auto; width: fit-content; max-width: 100%; }
.deck .frame__stage img { max-height: 50vh; width: auto; max-width: 100%; }
.deck .shots__tabs { justify-content: center; }
.deck .shots__caption { text-align: center; }
.deck .code { margin-top: 6px; }
.deck .code pre { max-height: 28vh; overflow: auto; }

/* 右侧章节点 */
.deck-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deck-dots button {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #c9d2c7;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.deck-dots button:hover { border-color: var(--accent); }
.deck-dots button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}
.deck-dots button span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.deck-dots button:hover span,
.deck-dots button:focus-visible span { opacity: 1; }

.deck-count {
  position: fixed;
  right: 22px;
  bottom: 14px;
  z-index: 25;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.deck-hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faint);
  z-index: 25;
  transition: opacity 0.3s ease;
  animation: hint-bob 2.6s ease-in-out infinite;
}
.deck:not(.is-cover) .deck-count {
  position: fixed;
  right: 22px;
  bottom: 14px;
  z-index: 25;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.deck-hint { opacity: 0; }
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 4px); }
}

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 1080px) {
  :root { --pad: 28px; }
  .hero__grid { gap: 40px; }
  .nav { gap: 14px; }
}

@media (max-width: 880px) {
  :root { --pad: 22px; }
  /* 小屏不藏导航：折到第二行当横向滚动条，别让手机用户只能一路滚到底 */
  .topbar__inner { flex-wrap: wrap; height: auto; gap: 0 16px; }
  .brand, .topbar__actions { height: 58px; }
  .nav {
    order: 3;
    flex-basis: 100%;
    display: flex;
    gap: 18px;
    padding: 9px 0 11px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .hero__grid,
  .deck .slide > .wrap.hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 0; padding-bottom: 0; }
  .now { transform: none; max-width: 520px; }
  .hero__title { font-size: clamp(40px, 11vw, 56px); }
  .section, .dark { padding: 64px 0; }
  .sec-head { grid-template-columns: 44px minmax(0, 1fr); margin-bottom: 34px; }
  .sec-no { font-size: 11px; }
  .reasons, .steps, .edges, .notes ul, .dark__note, .pipe { grid-template-columns: minmax(0, 1fr); }
  .reason, .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .reason + .reason, .step + .step { padding-left: 0; }
  .pipe__step { border-right: 0; border-bottom: 1px solid var(--dark-line); padding: 18px 0; }
  .pipe__step + .pipe__step { padding-left: 0; }
  .pipe__step::after { display: none; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .download { padding: 22px; }
}

@media (max-width: 560px) {
  .brand__meta, .chip, .topbar__actions .btn--ghost { display: none; }
  .specs > div { padding-right: 16px; margin-right: 16px; }
  .shots__tabs { width: 100%; }
  .tab { padding: 7px 10px; font-size: 12.5px; }
  .download__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  /* 淡入淡出不是「位移」，留着；被禁掉的是所有会动的东西 */
  .frame__stage,
  .deck .slide { transition-duration: 0.48s !important; }
  .deck .slide { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 矮屏：把纵向节奏压紧，保证一屏装下 */
@media (max-height: 820px) {
  .deck .slide { padding: 6px 0 16px; }
  .deck .slide > .wrap { gap: 20px; }
  .deck .sec-title { font-size: clamp(30px, 3.4vw, 40px); }
  .deck .sec-lede { font-size: 14px; line-height: 1.7; }
  .deck .sec-no { font-size: 11px; }
  .deck .hero__title { font-size: clamp(36px, 4.2vw, 52px); margin-bottom: 14px; }
  .deck .hero__lede { font-size: 14.5px; margin-bottom: 20px; }
  .deck .hero__actions { margin-bottom: 20px; }
  .deck .eyebrow { margin-bottom: 14px; font-size: 12.5px; }
  .deck .slide > .wrap.hero__grid { gap: 30px; }
  .deck .now__head { padding: 12px 18px 10px; }
  .deck .now__row { padding: 10px 0; }
  .deck .now__foot { padding: 10px 18px; }
  .deck .frame__stage img { max-height: 44vh; }
  .deck .matrix { font-size: 13px; }
  .deck .matrix th, .deck .matrix td { padding: 8px 0; }
  .deck .matrix thead th { padding-bottom: 8px; }
  .deck .code pre { max-height: 26vh; font-size: 12px; line-height: 1.6; }
  .deck .code__bar { padding: 8px 14px; }
  .deck .reason, .deck .step { padding-top: 16px; padding-bottom: 16px; }
  .deck .qa summary { padding: 12px 0; }
  .deck .download { padding: 20px 22px; }
}
@media (max-height: 700px) {
  .deck .frame__stage img { max-height: 40vh; }
  .deck .matrix { font-size: 12.5px; }
  .deck .matrix th, .deck .matrix td { padding: 6px 0; }
  .deck .hero__title { font-size: clamp(34px, 4vw, 50px); }
}

/* 小屏：章节点移到底部，横排 */
@media (max-width: 880px) {
  .deck-dots {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }
  .deck-dots button span { display: none; }
  .deck-count { display: none; }
  .deck-count {
  position: fixed;
  right: 22px;
  bottom: 14px;
  z-index: 25;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.deck-hint { display: none; }
  .deck .slide { padding: 10px 0 30px; }
  .deck .frame__stage img { max-height: 42vh; }
  .deck .sec-head { margin-bottom: 20px; }
  /* 手机上首屏只留文案，配图卡片会撑破一屏 */
  .deck .now { display: none; }
  .deck .hero__title { font-size: clamp(34px, 10.5vw, 52px); }
  .deck .slide > .wrap { padding-bottom: 40px; overflow-y: auto; overscroll-behavior: contain; }
  .deck .matrix { min-width: 520px; font-size: 13.5px; }
}
