/* =====================================================================
   徐小助官网 · 暖纸面编辑式设计
   颜色取自 App 的 :core DesignTokens（暖纸 / 墨色 / 陶土橙 + 灰绿 / 雾蓝 / 赭黄），
   标题是思源宋体（只裁了标题用到的字，见 scripts/font_subset.py）。
   ===================================================================== */

@font-face {
  font-family: "XXZ Serif";
  src: url("../fonts/xxz-serif.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #FAF9F5;
  --paper-2: #F0EEE6;
  --backdrop: #E6E2D8;
  --panel: #FFFEFA;
  --ink: #141413;
  --ink-700: #3D3D38;
  --ink-600: #66645E;
  --ink-400: #928F85;
  --ink-muted: #6F6C64;   /* 小字用：在纸色上对比度约 5:1 */
  --line: #DCD9CF;
  --line-soft: rgba(20, 20, 19, .08);
  --accent: #D97757;
  --accent-solid: #A84F32;
  --accent-text: #A04B30;
  --on-accent: #FFFFFF;
  --clay: #A84F32;  --clay-bg: #F1DFD4;
  --sage: #596F49;  --sage-bg: #E7EBDD;
  --slate: #4C7295; --slate-bg: #E3EBF1;
  --ochre: #87611B; --ochre-bg: #F3E8D0;
  --shadow: 74, 52, 30;
  --frame-a: #3B3934; --frame-b: #161513;

  --serif: "XXZ Serif", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC",
          "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #22211E;
    --paper-2: #1B1A17;
    --backdrop: #141310;
    --panel: #2B2A26;
    --ink: #F2F0E8;
    --ink-700: #D9D6CC;
    --ink-600: #BEBAB0;
    --ink-400: #A5A095;
    --ink-muted: #A5A095;
    --line: #4C4941;
    --line-soft: rgba(242, 240, 232, .08);
    --accent: #E8A083;
    --accent-solid: #E8A083;
    --accent-text: #EDB096;
    --on-accent: #141413;
    --clay: #E8A083;  --clay-bg: #55382B;
    --sage: #AFBF96;  --sage-bg: #394530;
    --slate: #ADC7DF; --slate-bg: #344959;
    --ochre: #E0C07E; --ochre-bg: #4A3D22;
    --shadow: 0, 0, 0;
    --frame-a: #4A4740; --frame-b: #0E0D0C;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ 基础 */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--clay-bg); color: var(--ink); }
section[id] { scroll-margin-top: var(--nav-h); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.serif { font-family: var(--serif); font-weight: 400; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.kicker {
  font-size: 12px; font-weight: 500; letter-spacing: .16em;
  color: var(--accent-text); text-transform: uppercase;
}

/* 纸面颗粒：极淡的一层噪点，让大面积纯色不发「塑料感」 */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) { .grain { opacity: .022; } }

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; pointer-events: none; }
.progress span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ------------------------------------------------------------------ 图标底块（和 App 的 IconChip 一样） */

.chip {
  --size: 44px;
  width: var(--size); height: var(--size); border-radius: 32%;
  display: inline-grid; place-items: center; flex: none;
  background: var(--tone-bg); color: var(--tone); font-style: normal;
}
.chip .ico { width: 52%; height: 52%; }
.chip--clay  { --tone: var(--clay);  --tone-bg: var(--clay-bg); }
.chip--sage  { --tone: var(--sage);  --tone-bg: var(--sage-bg); }
.chip--slate { --tone: var(--slate); --tone-bg: var(--slate-bg); }
.chip--ochre { --tone: var(--ochre); --tone-bg: var(--ochre-bg); }

/* 描线出现：pathLength=1，所以 1 就是整条线。没有 JS 时直接显示（.js 由 main.js 加在 <html> 上） */
.ico--draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out) .25s; }
.js .reveal:not(.is-in) .ico--draw { stroke-dashoffset: 1; }

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

.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, translate .35s var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn--primary {
  background: var(--accent-solid); color: var(--on-accent);
  box-shadow: 0 10px 24px -10px rgba(168, 79, 50, .6);
}
.btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(168, 79, 50, .7); }
@media (prefers-color-scheme: dark) { .btn--primary { box-shadow: 0 10px 28px -12px rgba(232, 160, 131, .45); } }
.btn--ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.btn--ghost:hover { border-color: var(--ink-400); }
.btn.is-disabled { color: var(--ink-400); cursor: default; }
.btn.is-disabled:hover { border-color: var(--line); }

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

.nav {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--nav-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease-out);
}
.nav.is-scrolled {
  --nav-h: 60px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav__inner {
  width: min(1180px, 100% - 32px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--sans); letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 8px rgba(var(--shadow), .18); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 12px; font-size: 14px; color: var(--ink-600); border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--ink); background: var(--line-soft); }
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ------------------------------------------------------------------ 进场动画 */

.load-in { opacity: 0; translate: 0 18px; animation: rise 1s var(--ease-out) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

.reveal { transition: opacity 1s var(--ease-out) var(--delay, 0s), translate 1.1s var(--ease-out) var(--delay, 0s); }
.js .reveal:not(.is-in) { opacity: 0; translate: 0 36px; }

/* ------------------------------------------------------------------ 手机外框
   边框 2.8%（按手机宽度算），屏幕正好是截图的 9:20：外框宽高比 = 1 / (0.944 × 20/9 + 0.056) ≈ 1000/2154。
   ⚠️ 边框不能用 padding：百分比 padding 按「父容器」宽度算，放进很宽的容器（截图廊）屏幕会被挤成一条。
   屏幕用 margin（子元素的百分比按手机自己的宽度算）；绝对定位的屏幕层上下偏移按高度算是 1.3%，高 97.4%。 */

.phone {
  position: relative; aspect-ratio: 1000 / 2154;
  border-radius: 13.5% / 6.27%;
  background: linear-gradient(150deg, var(--frame-a), var(--frame-b) 38%, #22201D 70%, var(--frame-a));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 0 0 3px rgba(0, 0, 0, .55),
    0 50px 80px -34px rgba(var(--shadow), .5),
    0 22px 34px -18px rgba(var(--shadow), .32);
}
.phone > img, .phone > picture { display: block; width: 94.4%; height: 97.4%; margin: 2.8%; }
.phone > picture img { width: 100%; height: 100%; }
.phone img { object-fit: cover; border-radius: 11.2% / 5.04%; background: var(--paper); }
/* 挖孔前摄 */
.phone__fill { position: absolute; left: 2.8%; top: 1.3%; width: 94.4%; height: 97.4%; }
.phone::after {
  content: ""; position: absolute; top: 2.3%; left: 50%; width: 3.4%; aspect-ratio: 1;
  translate: -50% 0; border-radius: 50%; background: #070707;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .05);
}
/* 屏幕反光：一道很淡的斜光 */
.phone::before {
  content: ""; position: absolute; left: 2.8%; top: 1.3%; width: 94.4%; height: 97.4%; border-radius: 11.2% / 5.04%; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 30%, transparent 70%, rgba(255, 255, 255, .05));
  mix-blend-mode: soft-light;
}

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

.hero {
  position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 80px;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--paper);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero__copy { position: relative; z-index: 3; }
.hero__kicker { margin-bottom: 22px; }

/* 两行固定不折：字号按列宽算好（9 个字刚好放下），手机上另给一档 */
.display { font-size: clamp(40px, 4.7vw, 68px); line-height: 1.16; letter-spacing: -.01em; }
.display .line { display: block; overflow: hidden; padding: .04em 0 .22em; margin-bottom: -.18em; white-space: nowrap; }
.display .line > span { display: inline-block; translate: 0 110%; animation: lineUp 1.15s var(--ease-out) forwards; }
.display .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes lineUp { to { translate: 0 0; } }

.mark { position: relative; font-style: normal; color: var(--accent-text); white-space: nowrap; }
.mark__ink {
  position: absolute; left: -3%; bottom: -.06em; width: 106%; height: .3em; overflow: visible;
  fill: none; stroke: var(--accent); stroke-width: 5px; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-out) 1s forwards; opacity: .85;
}
.mark__ink path { vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.lead { margin-top: 26px; max-width: 30em; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.85; color: var(--ink-600); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-600); }
.hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts .ico { color: var(--sage); width: 16px; height: 16px; stroke-width: 2.4; }

/* 背景里慢慢漂的两团暖光 */
.blob { position: absolute; border-radius: 50%; opacity: .55; pointer-events: none; will-change: translate, scale; }
.blob--a { width: 680px; height: 680px; right: -200px; top: -220px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent); animation: drift 22s ease-in-out infinite alternate; }
.blob--b { width: 560px; height: 560px; left: -230px; bottom: -230px; background: radial-gradient(closest-side, color-mix(in srgb, var(--sage) 28%, transparent), transparent); animation: drift 26s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift {
  0% { translate: 0 0; scale: 1; }
  50% { translate: -60px 40px; scale: 1.12; }
  100% { translate: 30px 80px; scale: .95; }
}

/* 手机舞台：三台手机 + 轨道 + 贴纸，鼠标移动时按 data-depth 视差 */
.stage {
  --mx: 0; --my: 0; --spread: 0;
  position: relative; width: min(560px, 100%); aspect-ratio: 560 / 660; margin-inline: auto;
  perspective: 1400px;
}
.stage [data-depth] {
  transform: translate3d(calc(var(--mx) * var(--depth, 1) * 14px), calc(var(--my) * var(--depth, 1) * 10px), 0);
}
.stage__glow {
  position: absolute; inset: 12% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(10px);
}
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; pointer-events: none; }
.orbit--outer { width: 96%; aspect-ratio: 1; border: 1px dashed color-mix(in srgb, var(--ink-400) 55%, transparent); animation: spin 90s linear infinite; }
.orbit--inner { width: 70%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--ink-400) 30%, transparent); }
.orbit--outer::before, .orbit--inner::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  left: 50%; top: -3.5px; margin-left: -3.5px;
}
@keyframes spin { to { rotate: 360deg; } }

.stage .phone { position: absolute; }
.phone--main {
  width: 50%; left: 25%; top: 2%; z-index: 3;
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0) rotateY(calc(var(--mx) * -7deg)) rotateX(calc(var(--my) * 6deg)) !important;
  animation: phoneIn 1.3s var(--ease-out) .2s both;
}
.phone--side { width: 40%; top: 13%; z-index: 2; animation: phoneIn 1.3s var(--ease-out) .45s both; filter: saturate(.95); }
.phone--left {
  left: 2%;
  transform: translate3d(calc(var(--mx) * 7px - var(--spread) * 46px), calc(var(--my) * 5px + var(--spread) * 20px), 0) rotate(calc(-9deg - var(--spread) * 5deg)) !important;
}
.phone--right {
  right: 2%;
  transform: translate3d(calc(var(--mx) * 7px + var(--spread) * 46px), calc(var(--my) * 5px + var(--spread) * 20px), 0) rotate(calc(9deg + var(--spread) * 5deg)) !important;
}
@keyframes phoneIn { from { opacity: 0; translate: 0 90px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* 贴纸：和 App 新手引导里环绕小猫的那四个一样 */
.sticker {
  position: absolute; z-index: 4; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 14px 28px -12px rgba(var(--shadow), .35);
  animation: popIn .8s var(--ease-spring) var(--pop, 1s) both;
}
.sticker .chip { --size: 46px; }
.sticker > .chip { animation: float 6s ease-in-out var(--float, 0s) infinite; }
.sticker--1 { left: 3%; top: 6%; rotate: -8deg; --pop: 1.05s; --float: -1s; }
.sticker--2 { right: 4%; top: 3%; rotate: 7deg; --pop: 1.15s; --float: -2.5s; }
.sticker--3 { right: 0; top: 60%; rotate: -5deg; --pop: 1.25s; --float: -4s; }
.sticker--4 { left: 1%; top: 70%; rotate: 8deg; --pop: 1.35s; --float: -3s; }
@keyframes popIn { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 5px; } }

/* 通知小卡片：轮流演示新成绩 / 课前提醒 / 新考试 */
.toast {
  position: absolute; z-index: 5; left: 12%; bottom: 6%; width: min(330px, 78%);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 20px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 24px 40px -18px rgba(var(--shadow), .45);
  animation: popIn .8s var(--ease-spring) 1.6s both;
}
.toast__chip { --size: 40px; transition: background .4s, color .4s; }
.toast__text { display: grid; line-height: 1.35; min-width: 0; transition: opacity .35s, translate .45s var(--ease-out); }
.toast__text b { font-size: 14px; font-weight: 600; }
.toast__text span { font-size: 13px; color: var(--ink-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__time { margin-left: auto; align-self: flex-start; font-size: 11px; color: var(--ink-muted); }
.toast.is-swapping .toast__text { opacity: 0; translate: 0 8px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 24px; height: 38px; border-radius: 12px; border: 1.5px solid var(--ink-400); opacity: .7;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-600); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; translate: 0 -2px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 12px; } }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .display { font-size: clamp(30px, 9.2vw, 56px); }
  .hero__copy { text-align: left; }
  .stage { width: min(460px, 100%); }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .sticker { width: 50px; height: 50px; border-radius: 16px; }
  .sticker .chip { --size: 38px; }
  .toast { left: 4%; width: 88%; padding: 10px 12px; }
}

/* ------------------------------------------------------------------ 滚动字幕 */

.ticker { padding: 26px 0; border-block: 1px solid var(--line-soft); background: var(--paper-2); overflow: hidden; }
.ticker__row { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__row + .ticker__row { margin-top: 14px; }
.ticker__track { display: flex; gap: 14px; flex: none; padding-right: 14px; animation: marquee 46s linear infinite; }
.ticker__row--rev .ticker__track { animation-direction: reverse; animation-duration: 52s; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 15px; color: var(--ink-700); white-space: nowrap;
}
.ticker__track .ico { color: var(--accent-text); }
@keyframes marquee { to { translate: -50% 0; } }

/* ------------------------------------------------------------------ 小节标题 */

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { margin-top: 16px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.2; }
.section-head__sub { margin-top: 20px; font-size: 17px; color: var(--ink-600); }
.section-head__sub a { color: var(--accent-text); border-bottom: 1px solid currentColor; }

/* ------------------------------------------------------------------ 怎么用：滚动讲故事 */

.how { padding: clamp(96px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); }
.story { position: relative; display: grid; grid-template-columns: 1fr 2px minmax(300px, 400px); gap: 0 56px; }
.story__steps { margin: 0; padding: 0; list-style: none; }
.step {
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  transition: opacity .6s var(--ease-out);
}
.js .step:not(.is-active) { opacity: .28; }
.step__num { font-size: 64px; line-height: 1; color: color-mix(in srgb, var(--accent) 88%, var(--accent-solid)); }
.step h3 { margin-top: 18px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: .01em; }
.step p { margin-top: 14px; max-width: 26em; font-size: 17px; color: var(--ink-600); }
.phone--inline { display: none; }
.how .section-head { margin-bottom: 0; }
.step:first-child { min-height: 62vh; justify-content: flex-start; padding-top: 8vh; }

.story__rail { position: relative; background: var(--line); border-radius: 2px; }
.story__rail span { position: absolute; inset: 0 0 auto; height: calc(var(--progress, 0) * 100%); background: var(--accent); border-radius: 2px; }
.story__rail span::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}
.story__device { position: sticky; top: calc(50vh - 340px); height: 680px; display: grid; place-items: center; align-self: start; }
.phone--story { width: 300px; }
.phone--story img {
  position: absolute; left: 2.8%; top: 1.3%; width: 94.4%; height: 97.4%; margin: 0;
  opacity: 0; scale: 1.06; filter: blur(8px);
  transition: opacity .7s var(--ease-out), scale .9s var(--ease-out), filter .7s var(--ease-out);
}
.phone--story img.is-active { opacity: 1; scale: 1; filter: blur(0); }
.story__badge {
  position: absolute; right: -6px; bottom: 90px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-700); box-shadow: 0 16px 30px -14px rgba(var(--shadow), .35);
  animation: float 5s ease-in-out infinite;
}
.story__badge .ico { color: var(--sage); }

@media (max-width: 960px) {
  .story { display: block; }
  .story__rail, .story__device { display: none; }
  .step, .step:first-child { min-height: 0; padding: 34px 0 54px; }
  .js .step:not(.is-active) { opacity: 1; }
  .step + .step { border-top: 1px solid var(--line-soft); }
  .phone--inline { display: block; width: min(68vw, 290px); margin: 34px auto 0; }
}

/* ------------------------------------------------------------------ 功能：便当盒 */

.features { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper-2); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(268px, auto); gap: 18px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line);
  transition: translate .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s, opacity 1s var(--ease-out) var(--delay, 0s);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--x) var(--y), color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%);
}
.card:hover { translate: 0 -4px; box-shadow: 0 30px 50px -30px rgba(var(--shadow), .45); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card:hover::before { opacity: 1; }
.card__body { position: relative; z-index: 2; max-width: 30em; }
.card h3 { margin-top: 18px; font-size: 21px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--ink-600); }
.tag { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; color: color-mix(in srgb, var(--slate) 80%, var(--ink)); background: var(--slate-bg); letter-spacing: .04em; }

.card--grades { grid-column: span 3; grid-row: span 2; }
.card--charge { grid-column: span 3; grid-row: span 2; }
.card--exam, .card--remind, .card--snore { grid-column: span 2; }
.card--friends, .card--assistant, .card--import { grid-column: span 2; grid-row: span 2; }
.card--widget { grid-column: span 6; display: grid; grid-template-columns: minmax(260px, 1fr) 1.3fr; align-items: center; gap: 32px; }

/* 手机从卡片底部探出来，悬停时再往上升一点 */
.phone--peek {
  position: absolute; left: 50%; bottom: 0; width: min(62%, 300px);
  translate: -50% 42%; transition: translate .9s var(--ease-out);
}
.card--grades .phone--peek, .card--charge .phone--peek { width: min(52%, 290px); translate: -50% 30%; }
.card:hover .phone--peek { translate: -50% 36%; }
.card--grades:hover .phone--peek, .card--charge:hover .phone--peek { translate: -50% 24%; }
/* 还没滚到：手机先藏在卡片底下，出现时升上来 */
.js .card.reveal:not(.is-in) .phone--peek { translate: -50% 78%; }

.stats { display: flex; gap: 36px; margin: 22px 0 0; }
.stats > div { flex: none; }
.stats dt { font-size: 12px; color: var(--ink-muted); letter-spacing: .08em; white-space: nowrap; }
.stats dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-600); white-space: nowrap; }
.stats b { font: 400 44px/1.1 var(--serif); color: var(--sage); font-variant-numeric: tabular-nums; }

.exam-card {
  position: relative; margin: auto 0 -46px; padding: 18px 20px 44px; border-radius: 20px 20px 0 0;
  background: #141413; color: #F2F0E8; display: grid; gap: 2px;
  box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .5);
  transition: translate 1s var(--ease-out) .15s;
}
.js .card:not(.is-in) .exam-card { translate: 0 40%; }
.exam-card__kicker { font-size: 10px; letter-spacing: .16em; color: #A5A095; }
.exam-card__name { font-size: 22px; margin-top: 4px; }
.exam-card__days { font-size: 34px; color: #E8A083; line-height: 1.25; }
.exam-card__meta { font-size: 12px; color: #BEBAB0; }
.card--exam .card__body p { max-width: 16em; }

.notice-stack { margin: auto -6px 0; padding-top: 20px; display: grid; gap: 10px; }
.notice {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px solid var(--line);
  box-shadow: 0 14px 26px -18px rgba(var(--shadow), .5);
  transition: opacity .7s var(--ease-out), translate .9s var(--ease-out);
}
.js .card:not(.is-in) .notice { opacity: 0; translate: 40px 0; }
.notice .chip { --size: 34px; }
.notice div { display: grid; line-height: 1.35; min-width: 0; }
.notice b { font-size: 13px; font-weight: 600; }
.notice span { font-size: 12px; color: var(--ink-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice:nth-child(2) { transition-delay: .25s; opacity: .7; scale: .96; }

.meter { margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.meter__bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.meter__bars i { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(to top, var(--clay), color-mix(in srgb, var(--accent) 50%, transparent)); transform-origin: bottom; scale: 1 .2; animation: bar 1.2s ease-in-out infinite; }
.js .card:not(.is-in) .meter__bars i { animation-play-state: paused; }
.meter__bars i:nth-child(2n) { animation-duration: .9s; }
.meter__bars i:nth-child(3n) { animation-duration: 1.5s; }
.meter__bars i:nth-child(4n+1) { animation-delay: -.4s; }
.meter__bars i:nth-child(5n+2) { animation-delay: -.8s; }
@keyframes bar { 0%, 100% { scale: 1 .18; } 50% { scale: 1 1; } }
.meter__db { font-size: 30px; color: var(--clay); white-space: nowrap; }
.meter__db b { font-weight: 400; font-variant-numeric: tabular-nums; }

.widget-shot {
  width: 100%; border-radius: 22px; background: #fff;
  box-shadow: 0 24px 44px -24px rgba(var(--shadow), .45), 0 0 0 1px var(--line);
  rotate: -1.5deg; transition: rotate .8s var(--ease-out), scale .8s var(--ease-out);
}
.card--widget:hover .widget-shot { rotate: 0deg; scale: 1.02; }

@media (min-width: 1041px) {
  .card--grades .card__body, .card--charge .card__body { max-width: 46%; }
  .card--grades .phone--peek, .card--charge .phone--peek { left: auto; right: 7%; width: 44%; translate: 0 24%; }
  .card--grades:hover .phone--peek, .card--charge:hover .phone--peek { translate: 0 19%; }
  .js .card--grades.reveal:not(.is-in) .phone--peek, .js .card--charge.reveal:not(.is-in) .phone--peek { translate: 0 70%; }
  .card--grades .stats, .card--charge .stats { flex-direction: column; gap: 18px; }
}
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(250px, auto); }
  .card--grades, .card--charge, .card--friends, .card--assistant, .card--import { grid-column: span 1; grid-row: span 2; }
  .card--exam, .card--remind, .card--snore { grid-column: span 1; }
  .card--snore { grid-column: span 2; }
  .card--widget { grid-column: span 2; }
}
/* 平板两列：「往下一拉」占满一行，文字在左、手机在右，免得单独一张留个空 */
@media (min-width: 641px) and (max-width: 1040px) {
  .card--import { grid-column: span 2; }
  .card--import .card__body { max-width: 50%; }
  .card--import .phone--peek { left: auto; right: 9%; width: 30%; translate: 0 30%; }
  .card--import:hover .phone--peek { translate: 0 25%; }
  /* 两张大卡在平板上只有一列宽：手机小一点、低一点，别压住数字 */
  .card--grades .phone--peek, .card--charge .phone--peek { width: 46%; translate: -50% 40%; }
  .card--grades:hover .phone--peek, .card--charge:hover .phone--peek { translate: -50% 34%; }
  /* 平板上这张卡只有一列宽，三个数字排一行，间距和字号再收一点 */
  .stats { gap: 20px; margin-top: 16px; }
  .stats b { font-size: 32px; }
  .js .card--import.reveal:not(.is-in) .phone--peek { translate: 0 70%; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .card { padding: 24px; min-height: 250px; }
  .card--grades, .card--charge, .card--friends, .card--assistant, .card--import { grid-column: auto; grid-row: auto; min-height: 520px; }
  .card--snore, .card--widget, .card--exam, .card--remind { grid-column: auto; }
  .card--grades, .card--charge, .card--friends, .card--assistant, .card--import { min-height: 0; }
  .card .phone--peek, .card--grades .phone--peek, .card--charge .phone--peek {
    position: relative; left: auto; bottom: auto; right: auto; width: min(70%, 270px);
    margin: 28px auto -86%; translate: none !important;
  }
  /* 三个数字（地点 / 桩 / 口）在窄屏挤在一行：间距和小号字一起收，别让单位换行或被卡片裁掉 */
  .card--grades .stats, .card--charge .stats { margin-top: 18px; gap: 20px; }
  .stats b { font-size: 38px; }
  .card--widget { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 380px) {
  .card--grades .stats, .card--charge .stats { gap: 12px; }
  .stats b { font-size: 32px; }
}

/* ------------------------------------------------------------------ 设计：深浅色对比 */

.design { padding: clamp(96px, 12vw, 160px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.design__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.design__copy h2 { margin-top: 16px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.2; }
.design__copy > p { margin-top: 22px; font-size: 17px; color: var(--ink-600); max-width: 28em; }
.ticks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-700); }
.ticks .ico { color: var(--accent-text); width: 20px; height: 20px; }
.hint { margin-top: 30px; font-size: 14px; color: var(--ink-muted); }

.compare { --pos: 50%; justify-self: center; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.phone--compare { width: min(320px, 78vw); cursor: ew-resize; }
.compare__dark { position: absolute; left: 2.8%; top: 1.3%; width: 94.4%; height: 97.4%; clip-path: inset(0 0 0 var(--pos)); border-radius: 11.2% / 5.04%; overflow: hidden; }
.compare__dark img { width: 100%; height: 100%; border-radius: 0; }
.compare__handle {
  position: absolute; z-index: 3; top: 1.3%; bottom: 1.3%; left: calc(2.8% + var(--pos) * .944);
  width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); outline: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%;
  border-radius: 50%; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: scale .3s var(--ease-spring);
}
.compare__handle span::before, .compare__handle span::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-left: 2px solid var(--ink-600); border-bottom: 2px solid var(--ink-600);
}
.compare__handle span::before { left: 11px; rotate: 45deg; }
.compare__handle span::after { right: 11px; rotate: -135deg; }
.compare__handle:focus-visible span, .compare.is-dragging .compare__handle span { scale: 1.12; }
.compare__labels { display: flex; justify-content: space-between; width: min(320px, 78vw); margin: 18px auto 0; font-size: 13px; color: var(--ink-muted); letter-spacing: .1em; }

.gallery { margin-top: clamp(70px, 9vw, 120px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.gallery__track { display: flex; gap: 36px; width: max-content; padding: 30px 18px 60px; animation: marquee 70s linear infinite; }
.gallery:hover .gallery__track { animation-play-state: paused; }
.phone--thumb { width: 200px; flex: none; transition: translate .6s var(--ease-out), rotate .6s var(--ease-out); }
.phone--thumb:nth-child(odd) { translate: 0 22px; }
.phone--thumb:hover { translate: 0 -10px; rotate: -2deg; }

@media (max-width: 960px) {
  .design__grid { grid-template-columns: 1fr; gap: 48px; }
  .hint { display: none; }
  .phone--thumb { width: 150px; }
}

/* ------------------------------------------------------------------ 隐私 */

.privacy { padding: clamp(90px, 11vw, 150px) 0; background: var(--paper-2); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { padding: 28px 26px 30px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.pillar h3 { margin-top: 20px; font-size: 18px; font-weight: 600; }
.pillar p { margin-top: 10px; font-size: 14.5px; line-height: 1.8; color: var(--ink-600); }
@media (max-width: 1040px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ 常见问题 */

.faq { padding: clamp(90px, 11vw, 150px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.community {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin-top: 26px; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--panel);
}
.community__qr { display: inline-flex; flex-direction: column; align-items: center; gap: 9px; flex: none; text-decoration: none; }
.community__qr-window {
  position: relative; display: block; width: 154px; aspect-ratio: 1; padding: 7%;
  overflow: hidden; border-radius: 10px; background: #fff;
}
/* 显示从 QQ 分享图里裁出来的二维码（scripts/qq_qr.py）；点开看的仍是完整原图。 */
.community__qr-window img { width: 100%; height: 100%; image-rendering: auto; }
.community__qr-caption { font-size: 11px; line-height: 1.6; color: var(--ink-600); }
.community__copy { flex: 1; min-width: 150px; }
.community__name { font-size: 17px; font-weight: 600; color: var(--ink); }
.community__number { margin: 7px 0 17px; color: var(--ink-600); font-size: 14px; }
.community__number strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.community__hint { margin-top: 12px; max-width: 210px; color: var(--ink-600); font-size: 12px; line-height: 1.7; }
@media (max-width: 560px) {
  .community { flex-direction: column; text-align: center; }
  .community__copy { min-width: 0; width: 100%; }
  .community__hint { margin-left: auto; margin-right: auto; }
  .community__qr-window { width: 180px; }
}
.qa { border-top: 1px solid var(--line); }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__item summary {
  position: relative; list-style: none; cursor: pointer; padding: 24px 48px 24px 0;
  font-size: 18px; font-weight: 500; transition: color .3s;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary:hover { color: var(--accent-text); }
.qa__item summary::before, .qa__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.8px; margin-top: -.9px;
  background: currentColor; border-radius: 2px; transition: rotate .45s var(--ease-out), opacity .3s;
}
.qa__item summary::after { rotate: 90deg; }
.qa__item[open] summary::after { rotate: 0deg; opacity: 0; }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 48px 26px 0; font-size: 16px; color: var(--ink-600); line-height: 1.85; }
@media (max-width: 960px) {
  .faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .faq .section-head { position: static; }
}

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

.download { padding: 0 0 clamp(90px, 11vw, 150px); }
.download__card {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px;
  padding: clamp(36px, 5vw, 72px); border-radius: 36px;
  background:
    radial-gradient(600px circle at var(--x) var(--y), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(140deg, var(--clay-bg), color-mix(in srgb, var(--paper) 70%, var(--clay-bg)) 60%, var(--ochre-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.download__orbit { position: relative; width: min(360px, 100%); aspect-ratio: 1; margin-inline: auto; }
.download__orbit .orbit--outer { width: 100%; }
.download__orbit .orbit--inner { width: 66%; }
.download__logo {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 28%; box-shadow: 0 26px 46px -20px rgba(var(--shadow), .55);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }
.download__orbit .chip {
  position: absolute; left: 50%; top: 50%; --size: 52px; margin: -26px 0 0 -26px;
  box-shadow: 0 0 0 6px var(--panel), 0 14px 26px -12px rgba(var(--shadow), .4);
  animation: orbit 24s linear infinite;
}
.download__orbit .o2 { animation-delay: -6s; }
.download__orbit .o3 { animation-delay: -12s; }
.download__orbit .o4 { animation-delay: -18s; }
/* 绕着转，但图标自己保持正着 */
@keyframes orbit {
  from { transform: rotate(0deg) translateX(min(180px, 48vw)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(min(180px, 48vw)) rotate(-360deg); }
}
.download__copy h2 { margin-top: 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.22; }
.download__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.download__note { margin-top: 20px; font-size: 14px; color: var(--ink-600); max-width: 32em; }
@media (max-width: 900px) {
  .download__card { grid-template-columns: 1fr; text-align: left; }
  .download__orbit { width: min(280px, 80%); margin-bottom: 34px; }  /* 转圈的图标会超出圆一截，别贴着下面的标题 */
  @keyframes orbit {
    from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
  }
}

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

.footer { padding: 56px 0 40px; border-top: 1px solid var(--line-soft); background: var(--paper-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; font-size: 14px; color: var(--ink-600); }
.footer__col h4 { font-size: 13px; font-weight: 500; color: var(--ink-muted); letter-spacing: .1em; }
.footer__col a, .footer__col span { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ink-700); }
.footer__col a:hover { color: var(--accent-text); }
.footer__col .footer__group-link { color: var(--accent-text); }
.footer__group-number { margin-top: 7px; color: var(--ink-600); font-size: 14px; font-variant-numeric: tabular-nums; }
.footer__col .community__qr--footer { display: inline-flex; margin-top: 16px; }
.community__qr--footer .community__qr-window { width: 132px; }
.footer__col .community__qr-caption { margin-top: 0; color: var(--ink-600); font-size: 11px; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-muted); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------------------ 看不见就不动 */

.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ------------------------------------------------------------------ 下载区：电脑上扫码 */

.download__scan {
  display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 14px 18px 14px 14px; max-width: 420px;
  border-radius: var(--radius-md); background: color-mix(in srgb, var(--panel) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}
.download__qr { position: relative; flex: none; width: 112px; aspect-ratio: 1; padding: 8px; border-radius: 12px; background: #fff; }
.download__qr img { width: 100%; height: 100%; }
.download__qr .download__qr-logo {
  position: absolute; left: 50%; top: 50%; width: 22%; height: auto; translate: -50% -50%;
  border-radius: 6px; box-shadow: 0 0 0 3px #fff;
}
.download__scan-text { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.7; color: var(--ink-600); }
.download__scan-text b { font-size: 16px; font-weight: 600; color: var(--ink); }
/* 手机上扫自己的屏幕没意义：只在电脑（有鼠标、够宽）上出现 */
@media (hover: none), (pointer: coarse), (max-width: 900px) { .download__scan { display: none; } }

/* ------------------------------------------------------------------ 弹出说明（微信引导 / iPhone 提示） */

.sheet { position: fixed; inset: 0; z-index: 120; display: grid; align-items: end; justify-items: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(20, 20, 19, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .3s ease both;
}
.sheet__card {
  position: relative; width: min(420px, 100%); padding: 26px 24px 22px; border-radius: 26px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  animation: sheetUp .5s var(--ease-out) both; margin-bottom: max(8px, env(safe-area-inset-bottom));
}
.sheet__card h3 { margin-top: 10px; font-size: 28px; line-height: 1.3; }
.sheet__text { margin-top: 10px; font-size: 15px; color: var(--ink-600); }
.sheet__steps { margin: 18px 0 20px; padding: 0; list-style: none; display: grid; gap: 12px; }
.sheet__steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-700); }
.sheet__steps i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px/1 var(--sans); font-style: normal; background: var(--clay-bg); color: var(--clay);
}
.sheet__steps b { color: var(--ink); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* 微信：箭头指着右上角的「…」，一边画出来一边轻轻点头 */
.sheet--wechat { align-items: start; padding-top: 86px; }
.sheet--wechat .sheet__card { animation-name: sheetDown; }
.sheet__arrow {
  position: absolute; top: 6px; right: 18px; width: 96px; height: 120px; overflow: visible;
  fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease-out) .2s forwards, nudge 1.6s ease-in-out 1.2s infinite;
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { opacity: 0; translate: 0 40px; } }
@keyframes sheetDown { from { opacity: 0; translate: 0 -30px; } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 4px -6px; } }

/* ------------------------------------------------------------------ 少动一点 */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .load-in { opacity: 1; translate: none; }
  .display .line > span { translate: none; }
  .ticker__track, .gallery__track { animation: none; }
}
