/* ==========================================================================
   来霖科技官网 · 与「聊天读心」小程序同一套 B 风格设计系统
   ========================================================================== */
/* 与「聊天读心」小程序同一套设计规则（DEMO测试/miniprogram/app.wxss）：
   白底、黑粗描边、无模糊的偏移阴影、荧光绿 + 亮粉两种强调色。
   颜色含义固定：绿 = 可以做的事 / 主按钮 / 答对；粉 = 话外音 / 压力 / 答错。 */
@font-face { font-family: "Heavy"; src: url(assets/fonts/heavy.woff2) format("woff2"); font-weight: 900; font-display: swap; }
:root {
  --ink: #111111;
  --lime: #ccff33;
  --pink: #ff3d8b;
  --gray: #f0f0f0;
  --muted: #8a8a8a;
  --ink-2: #444444;

  --bw: 3px;
  --sh: 7px;
  --sh-btn: 5px;
  --r: 9px;

  --out: cubic-bezier(.23, 1, .32, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --drawer: cubic-bezier(.32, .72, 0, 1);

  --heavy: "Heavy", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-math: "Cambria Math", "STIX Two Math", "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { font-family: var(--font); background: #fff; color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.heavy { font-family: var(--heavy); font-weight: 900; }
.math { font-family: var(--font-math); font-size: 1.06em; font-weight: 400; }
.math i { font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* 入场前带轻微旋转的宽元素会向两侧多出几像素；clip 不生成滚动容器，吸顶页头不受影响 */
main { overflow-x: clip; }

/* ---------- 基础部件 ---------- */
.box { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh) var(--sh) 0 var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 26px;
  font-family: var(--heavy); font-weight: 900; font-size: 19px; line-height: 1;
  background: #fff; color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--sh-btn) var(--sh-btn) 0 var(--ink);
  white-space: nowrap;
  transition: transform 100ms var(--out), box-shadow 100ms var(--out), background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: translate(var(--sh-btn), var(--sh-btn)); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .pill:focus-visible, .chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.btn--lime { background: var(--lime); }
.btn--pink { background: var(--pink); }
.btn:disabled { background: var(--gray); color: var(--muted); border-color: #bdbdbd; box-shadow: var(--sh-btn) var(--sh-btn) 0 #bdbdbd; cursor: default; }
.btn--sm { height: 42px; padding: 0 16px; font-size: 15px; --sh-btn: 4px; }
.btn--lg { height: 68px; padding: 0 32px; font-size: 24px; --sh-btn: 7px; }
.btn__label { transition: opacity 180ms ease, filter 180ms ease; }
.btn.is-swapping .btn__label { opacity: 0; filter: blur(2px); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 7px; background: #fff; white-space: nowrap; }
.tag--lime { background: var(--lime); }
.tag--pink { background: var(--pink); }
.tag--ink { background: var(--ink); color: #fff; }

/* 小程序标题下的笔触：绿 = 复习，粉 = 读心 */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; bottom: .02em; height: .3em; border-radius: 3px; background: var(--lime); transform: skewX(-8deg) rotate(-1deg) scaleX(var(--mk, 1)); transform-origin: left; transition: transform 700ms var(--out) calc(var(--i, 0) * 60ms + 200ms); }
.mark--pink::after { background: var(--pink); }
.mark[data-in]:not(.is-in)::after { --mk: 0; }

.h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.15; }
.lead { margin-top: 18px; font-size: 17.5px; line-height: 1.85; color: var(--ink-2); max-width: 30em; }

/* 盖章式入场：从略微倾斜、偏下的位置落定 */
[data-in] { opacity: 0; transform: translateY(26px) rotate(var(--tilt, -1.2deg)); transition: opacity 360ms ease, transform 560ms var(--pop); transition-delay: calc(var(--i, 0) * 60ms); }
[data-in].is-in { opacity: 1; transform: none; }
.mark[data-in] { opacity: 1; transform: none; }
.no-js [data-in] { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):not(.btn--lime):not(.btn--pink):hover { background: #f7f7f7; }
  .lift { transition: transform 160ms var(--out), box-shadow 160ms var(--out); }
  .lift:hover { transform: translate(-3px, -3px); box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 var(--ink); }
}
.lift:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--ink); }

/* ---------- 页头 ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: var(--bw) solid var(--ink); }
.header__inner { height: 72px; display: flex; align-items: center; gap: 44px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.brand svg { width: 34px; height: 34px; transition: transform 300ms var(--pop); }
@media (hover: hover) { .brand:hover svg { transform: rotate(-8deg) scale(1.06); } }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav a { padding: 6px 0; border-bottom: 3px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.nav a.is-cur { color: var(--ink); border-bottom-color: var(--ink); }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
.header__right { margin-left: auto; }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero__title { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.2; }
.hero__actions { margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero__facts { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

.stage { position: relative; height: 620px; }
.phone {
  position: absolute; width: 272px; height: 556px;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 38px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 12px;
  transition: transform 420ms var(--pop), box-shadow 200ms var(--out);
}
.phone__screen { position: relative; height: 100%; border: 2px solid var(--ink); border-radius: 27px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone__bar { flex: none; height: 52px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 15px; border-bottom: 2px solid var(--gray); }
.phone__cap { position: absolute; right: 10px; top: 13px; width: 62px; height: 24px; border: 1.5px solid #d8d8d8; border-radius: 12px; }
.phone__cap::before { content: ""; position: absolute; left: 12px; top: 9px; width: 12px; height: 3px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 0 transparent; }
.phone__cap::after { content: ""; position: absolute; right: 9px; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.phone__body { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }

.phone--a { left: 2%; top: 44px; transform: rotate(-5deg); z-index: 2; }
.phone--b { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.stage.front-b .phone--b { z-index: 3; }
.phone.is-front { transform: rotate(0) translateY(-6px); box-shadow: 14px 14px 0 var(--ink); }

/* 手机 A：聊天读心自动演示 */
.bubble { position: relative; align-self: flex-start; max-width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--gray); font-size: 14px; font-weight: 700; line-height: 1.5; min-height: 44px; transition: opacity 200ms ease; }
.bubble::before { content: ""; position: absolute; left: -7px; top: 14px; width: 10px; height: 10px; background: var(--gray); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.bubble.is-hidden { opacity: 0; }
.scan { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; pointer-events: none; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(90deg, transparent, rgba(204,255,51,.85) 45%, transparent 55%); transform: translateX(-100%); }
.scan.is-on::after { animation: scan 700ms var(--drawer) forwards; }
@keyframes scan { to { transform: translateX(100%); } }

.res { border: 2px solid var(--ink); border-radius: 10px; padding: 12px; box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity 200ms ease, transform 360ms var(--pop); }
.res.is-on { opacity: 1; transform: none; }
.res__who { font-size: 12px; font-weight: 700; }
.res__name { margin-top: 2px; font-size: 26px; line-height: 1.2; }
.res__desc { margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.gauge { margin-top: 10px; }
.gauge__label { font-size: 11.5px; font-weight: 700; }
.bars { margin-top: 4px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.bars i { height: 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--gray); transition: background-color 120ms ease; }
.bars i.on { background: var(--pink); }
.advice { border: 2px solid var(--ink); border-radius: 10px; background: var(--lime); padding: 10px 12px; box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(10px); transition: opacity 200ms ease, transform 360ms var(--pop); }
.advice.is-on { opacity: 1; transform: none; }
.advice b { display: block; font-size: 11.5px; }
.advice span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; }

/* 手机 B：复习闪卡自动翻面 */
.fc-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); }
.fc { position: relative; height: 210px; perspective: 900px; }
.fc__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 600ms var(--out); }
.fc.is-flip .fc__inner { transform: rotateY(180deg); }
.fc__face { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); background: #fff; padding: 14px; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fc__back { transform: rotateY(180deg); background: var(--lime); }
.fc__k { font-size: 12px; }
.fc__q { margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.fc__a { margin-top: 10px; font-size: 30px; line-height: 1.2; }
.fc__n { margin-top: auto; font-size: 12px; font-weight: 600; }
.fc-ctl { display: flex; gap: 10px; }
.fc-ctl span { flex: 1; height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); font-size: 14px; font-weight: 800; }
.fc-ctl .ok { background: var(--lime); }
.fc-seg { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: auto; }
.fc-seg i { height: 10px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--gray); }
.fc-seg i.on { background: var(--lime); }

/* 贴纸：随滚动轻微位移（支持 scroll-driven 动画的浏览器才会动） */
.sticker { position: absolute; z-index: 4; font-size: 14px; font-weight: 800; padding: 7px 12px; border: var(--bw) solid var(--ink); border-radius: 9px; box-shadow: 4px 4px 0 var(--ink); background: #fff; white-space: nowrap; rotate: var(--rot); }
.st-1 { --rot: -7deg; left: -4%; top: 12px; background: var(--lime); }
.st-2 { --rot: 6deg; right: 4%; bottom: 36px; background: var(--pink); }
.st-3 { --rot: -4deg; left: 20%; bottom: -6px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sticker { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .st-2 { animation-name: drift2; }
    @keyframes drift { from { translate: 0 30px; } to { translate: 0 -40px; } }
    @keyframes drift2 { from { translate: 0 -20px; } to { translate: 0 40px; } }
  }
}

/* ---------- 类型滚动条 ---------- */
.ticker { background: var(--ink); color: #fff; border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 12px; padding-right: 40px; font-size: 16px; white-space: nowrap; }
.ticker__item b { font-family: var(--heavy); font-weight: 900; font-size: 20px; color: var(--lime); }
.ticker__item span { color: #cfcfcf; }
.ticker__item i { width: 10px; height: 10px; background: var(--pink); border-radius: 2px; transform: rotate(45deg); margin-left: 28px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 产品段落 ---------- */
.sec { padding: 112px 0; }
.sec--gray { background: var(--gray); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.sec--ink { background: var(--ink); color: #fff; }
.sec__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.sec__kind { display: flex; gap: 10px; margin-bottom: 20px; }

.steps { margin-top: 36px; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.step__n { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; font-size: 18px; background: var(--lime); }
.step b { display: block; font-size: 17px; }
.step span { font-size: 14.5px; color: var(--ink-2); }

/* 读心演示 */
.demo { padding: 26px; }
.demo__label { font-size: 14px; font-weight: 800; }
.demo__label + .chips, .demo__label + .msgs { margin-top: 10px; }
.msgs { display: grid; gap: 10px; }
.msg { position: relative; text-align: left; padding: 11px 14px 11px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--gray); font-size: 16px; font-weight: 700; transition: transform 100ms var(--out), box-shadow 100ms var(--out), background-color 150ms ease; box-shadow: 3px 3px 0 var(--ink); }
.msg:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.msg[aria-checked="true"] { background: #fff; outline: 3px solid var(--pink); outline-offset: 2px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 18px; border: var(--bw) solid var(--ink); border-radius: 999px; font-family: var(--heavy); font-weight: 900; font-size: 16px; background: #fff; transition: background-color 150ms ease, color 150ms ease, transform 100ms var(--out); }
.chip:active { transform: scale(.96); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; }
.demo__gap { height: 22px; }
.demo__go { margin-top: 24px; width: calc(100% - var(--sh-btn)); }
.demo__out { margin-top: 28px; display: grid; gap: 16px; }
.demo__out[hidden] { display: none; }
.out-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.out-head .box { padding: 8px 14px; font-size: 14px; font-weight: 700; --sh: 4px; }
.out-head .box b { font-family: var(--heavy); font-weight: 900; font-size: 20px; margin-left: 6px; }
.out-card { padding: 20px 22px; }
.out-card__who { font-size: 16px; font-family: var(--heavy); font-weight: 900; }
.out-card__name { margin-top: 4px; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.15; }
.out-card__desc { margin-top: 10px; font-size: 17px; font-weight: 700; }
.out-card .bars { grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 6px; }
.out-card .bars i { height: 20px; border-width: 2px; border-radius: 4px; }
.out-card .gauge__label { font-size: 14px; }
.out-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.out-advice { padding: 16px 20px; background: var(--lime); }
.out-advice b { font-size: 14px; }
.out-advice p { margin-top: 4px; font-size: 20px; line-height: 1.45; }
.demo__foot { margin-top: 16px; font-size: 13px; color: var(--muted); }
.pop { animation: popIn 420ms var(--pop) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* 复习 */
.feats { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat { padding: 16px 16px 18px; --sh: 5px; }
.feat b { display: block; font-size: 18px; }
.feat span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

.quiz { position: relative; overflow: hidden; padding: 26px 26px 24px; min-height: 500px; display: flex; flex-direction: column; }
.quiz__top { display: flex; align-items: center; gap: 14px; }
.seg { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg i { height: 18px; border: var(--bw) solid var(--ink); border-radius: 5px; background: var(--gray); transition: background-color 200ms ease; }
.seg i.on { background: var(--lime); }
.seg i.miss { background: var(--pink); }
.streak { flex: none; font-size: 14px; padding: 5px 10px; border: var(--bw) solid var(--ink); border-radius: 7px; background: #fff; transition: background-color 200ms ease; }
.streak.is-hot { background: var(--lime); }
.streak.is-bump { animation: bump 260ms var(--pop); }
@keyframes bump { 50% { transform: scale(1.14) rotate(-3deg); } }
.quiz__meta { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.quiz__q { margin-top: 8px; font-size: 25px; line-height: 1.5; font-weight: 700; min-height: 76px; }
.opts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; text-align: left; font-size: 18px; font-weight: 700; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); transition: transform 100ms var(--out), box-shadow 100ms var(--out), background-color 150ms ease; }
.opt:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.opt__k { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 6px; font-size: 14px; font-family: var(--heavy); font-weight: 900; background: #fff; }
@media (hover: hover) and (pointer: fine) { .opt:hover:not(:disabled) { background: #f7f7f7; } }
.opt[aria-checked="true"], .opt.is-right { background: var(--lime); }
.opt.is-wrong { background: var(--pink); animation: shake 320ms var(--out); }
.opt:disabled { cursor: default; }
.opt:disabled:not(.is-right):not(.is-wrong) { color: var(--muted); border-color: #bdbdbd; box-shadow: 4px 4px 0 #bdbdbd; }
.opt:disabled:not(.is-right):not(.is-wrong) .opt__k { border-color: #bdbdbd; }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.quiz__foot { margin-top: auto; padding-top: 26px; display: flex; justify-content: flex-end; }
.quiz__foot .btn { min-width: 150px; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 26px 24px; border-top: var(--bw) solid var(--ink); display: flex; align-items: center; gap: 20px; transform: translateY(105%); transition: transform 260ms var(--out); }
.sheet.is-open { transform: none; }
.sheet[data-state="right"] { background: var(--lime); }
.sheet[data-state="wrong"] { background: var(--pink); }
.sheet__body { flex: 1; min-width: 0; }
.sheet__title { font-size: 22px; }
.sheet__text { margin-top: 4px; font-size: 15px; line-height: 1.65; font-weight: 500; }
.sheet .btn { flex: none; min-width: 120px; background: #fff; }
.done { display: none; flex: 1; flex-direction: column; justify-content: center; }
.quiz.is-done .done { display: flex; }
.quiz.is-done .q-area { display: none; }
.done__score { font-size: 72px; line-height: 1; }
.done__score small { font-size: 26px; margin-left: 6px; }
.done p { margin-top: 18px; font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 26em; }
.done__actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.q-area { display: flex; flex-direction: column; flex: 1; transition: opacity 160ms ease, transform 200ms var(--out); }
.q-area.is-leaving { opacity: 0; transform: translateX(-14px); }
.q-area.is-entering { opacity: 0; transform: translateX(14px); transition: none; }

.subjects { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.subj { position: relative; overflow: hidden; min-height: 150px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; --sh: 5px; rotate: var(--rot, 0deg); transition: rotate 300ms var(--pop), transform 160ms var(--out), box-shadow 160ms var(--out), background-color 150ms ease; }
.subj:nth-child(4n+1) { --rot: -1.5deg; } .subj:nth-child(4n+2) { --rot: 1deg; } .subj:nth-child(4n+3) { --rot: -.6deg; } .subj:nth-child(4n) { --rot: 1.6deg; }
.subj__g { position: absolute; right: 12px; top: 6px; font-family: var(--font-math); font-size: 54px; line-height: 1.1; font-style: italic; color: var(--ink); opacity: .14; transition: opacity 200ms ease, transform 300ms var(--pop); }
.subj b { font-size: 19px; }
.subj span { font-size: 13px; font-weight: 700; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .subj:hover { rotate: 0deg; background: var(--lime); }
  .subj:hover .subj__g { opacity: .9; transform: scale(1.08) rotate(-6deg); }
}

/* AI 入门课 */
.learn-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.learn-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.learn-stats .box { padding: 12px 18px; --sh: 5px; }
.learn-stats b { font-size: 34px; line-height: 1; }
.learn-stats span { display: block; font-size: 13px; font-weight: 700; margin-top: 4px; }
.rail-wrap { position: relative; margin-top: 48px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 272px; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.ch { scroll-snap-align: start; min-height: 232px; padding: 18px 18px 20px; display: flex; flex-direction: column; --sh: 6px; }
.ch__n { font-size: 44px; line-height: 1; }
.ch__t { margin-top: 12px; font-size: 19px; line-height: 1.35; }
.ch__first { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.ch__c { margin-top: auto; padding-top: 14px; }
.ch--opt { background: var(--gray); }
.rail-ctl { display: flex; gap: 12px; }
.rail-ctl button.btn { width: 56px; padding: 0; font-size: 22px; }

.grade { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.grade__q { padding: 22px; }
.grade__q small { font-size: 13px; font-weight: 800; color: var(--muted); }
.grade__q p { margin-top: 8px; font-size: 20px; font-weight: 800; }
.grade__ans { margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 8px; font-size: 15.5px; line-height: 1.7; }
.grade__r { padding: 22px; background: var(--lime); display: flex; flex-direction: column; }
.grade__score { display: flex; align-items: baseline; gap: 8px; }
.grade__score b { font-size: 64px; line-height: 1; }
.grade__score span { font-size: 18px; font-weight: 800; }
.grade__r p { margin-top: 12px; font-size: 16px; line-height: 1.75; }
.grade__r p b { font-weight: 800; }

/* 顺差去哪了 */
.ts { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.ts .lead { color: #cfcfcf; }
.ts__art { border: var(--bw) solid #fff; border-radius: var(--r); box-shadow: var(--sh) var(--sh) 0 var(--lime); padding: 24px; background: #1a1a1a; }
.ts__art svg { display: block; width: 100%; height: auto; }
.ts__flow { fill: none; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--out); transition-delay: calc(var(--i, 0) * 120ms); }
.ts__art.is-in .ts__flow { stroke-dashoffset: 0; }
.ts__node { fill: #fff; }
.ts__lab { fill: #fff; font-size: 13px; font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: #1a1a1a; stroke-width: 5px; stroke-linejoin: round; }
.ts__lab--r { text-anchor: end; }
.ts .btn { margin-top: 36px; }
.ts__cap { margin-top: 14px; font-size: 13px; color: #8a8a8a; }

/* 关于 */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fact { padding: 18px; --sh: 5px; min-height: 130px; display: flex; flex-direction: column; }
.fact small { font-size: 13px; font-weight: 800; color: var(--muted); }
.fact b { margin-top: auto; font-size: 22px; line-height: 1.3; }
.fact--lime { background: var(--lime); }
.fact--pink { background: var(--pink); }
.fact--pink small { color: var(--ink); }

/* 页脚 */
.footer { border-top: var(--bw) solid var(--ink); padding: 40px 0 48px; font-size: 14px; color: var(--ink-2); }
.footer__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; color: var(--ink); }
.footer__legal { margin-top: 18px; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* 常见问题 */
.faqs { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: start; }
.faqs__list { display: grid; gap: 16px; }
.faq { --sh: 5px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-align: left; font-size: 18px; transition: background-color 150ms ease; }
.faq__q:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.faq__q .heavy { flex: 1; }
.faq__ic { position: relative; flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 7px; background: #fff; transition: background-color 150ms ease; }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 220ms var(--out); }
.faq__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__ic { background: var(--lime); }
.faq__q[aria-expanded="true"] .faq__ic::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--out); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 20px 20px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.faq__a a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .faq__q:hover { background: #f7f7f7; } }
.beian { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .hero, .sec__grid, .ts, .about, .faqs { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 48px; }
  .stage { height: 600px; max-width: 560px; width: 100%; margin: 0 auto; }
  .subjects { grid-template-columns: repeat(2, 1fr); }
  .grade { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --sh: 5px; }
  .header__inner { height: 62px; gap: 16px; }
  .brand { font-size: 20px; }
  .sec { padding: 80px 0; }
  .hero__actions .btn { width: calc(100% - var(--sh-btn)); }
  .lead { font-size: 16px; }
  .stage { height: 500px; }
  .phone { width: 220px; height: 452px; padding: 9px; border-radius: 32px; box-shadow: 7px 7px 0 var(--ink); }
  .phone__screen { border-radius: 23px; }
  .phone__body { padding: 12px 10px; gap: 10px; }
  .phone--a { left: 0; top: 40px; }
  .res__name { font-size: 21px; }
  .fc { height: 180px; }
  .fc__q { font-size: 16px; }
  .sticker { font-size: 12.5px; padding: 5px 9px; }
  .st-1 { left: auto; right: 0; top: -6px; }
  .demo { padding: 18px 16px; }
  .out-advice p { font-size: 17px; }
  .quiz { padding: 18px 16px 16px; min-height: 480px; }
  .quiz__q { font-size: 21px; min-height: 64px; }
  .opts { grid-template-columns: 1fr; gap: 12px; }
  .opt { min-height: 54px; }
  .sheet { padding: 16px; flex-direction: column; align-items: stretch; gap: 14px; }
  .feats, .facts { grid-template-columns: 1fr; }
  .subjects { gap: 14px; }
  .subj { min-height: 120px; }
  .rail { grid-auto-columns: 240px; }
  .rail-ctl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-in] { transform: none; transition: opacity 300ms ease; }
  .ticker__track { animation: none; }
  .sheet { transform: none; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms; }
  .sheet.is-open { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
  .opt.is-wrong, .streak.is-bump, .pop, .scan.is-on::after { animation: none; }
  .q-area.is-leaving, .q-area.is-entering, .res, .advice { transform: none; }
  .btn:active:not(:disabled), .opt:active:not(:disabled), .lift:active, .msg:active { transform: none; }
  .ts__flow, .faq__a { transition: none; }
}
