/* ============================================================
   晨星·路西法 · 个人网站 v4 —— 纸墨编辑风 · 营销站结构
   规则(写在这里,改样式前先看):
   1. 朱砂色 --accent 只给"能点的东西":按钮、链接、当前导航、焦点框。装饰一律用墨色。
   2. 动效只用于入场与反馈,单段 ≤ 0.6s,不循环;prefers-reduced-motion 时全部关闭。
   3. 不做滚动劫持、视差、pin;固定定位元素不用 backdrop-filter。
      (只管用这份样式的页面:服务页、笔记、博客。首页 v5 用 css/home.css,滚动叙事的约定写在那边。)
   4. 点击区域 ≥ 44px;390px 宽无横向滚动。
   ============================================================ */

:root {
  /* 冷白极简:标题/数字用无衬线,强调=实心近黑,不靠色相 */
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --paper: #ffffff;
  --paper-2: #fafafa;
  --ink: #1e2124;
  --muted: #6b6b6b;
  --faint: #8f9296;
  --line: #e5e5e5;
  --line-2: #d4d4d6;
  --mark: rgba(30, 33, 36, .08);
  --accent: #1e2124;
  --accent-hover: #000000;
  --on-accent: #ffffff;
  --nav-bg: #ffffff;

  /* 暗场区块(方案 / 短片),深浅模式都一样 */
  --d-bg: #1e2124;
  --d-ink: #f2f3f5;
  --d-muted: #a6abb1;
  --d-faint: #878b90;
  --d-line: #34383d;
  --d-line-2: #4a4e53;
  --d-accent: #ffffff;

  --wrap: 1120px;
  --gutter: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="dark"] {
  --paper: #15181b;
  --paper-2: #1b1e22;
  --ink: #e8eaed;
  --muted: #a2a7ad;
  --faint: #84888d;
  --line: #2a2e32;
  --line-2: #3c4146;
  --mark: rgba(232, 234, 237, .09);
  --accent: #e8eaed;
  --accent-hover: #ffffff;
  --on-accent: #15181b;
  --nav-bg: #15181b;
  --d-bg: #0f1113;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15181b; --paper-2: #1b1e22; --ink: #e8eaed; --muted: #a2a7ad; --faint: #84888d;
    --line: #2a2e32; --line-2: #3c4146; --mark: rgba(232, 234, 237, .09);
    --accent: #e8eaed; --accent-hover: #ffffff; --on-accent: #15181b; --nav-bg: #15181b; --d-bg: #0f1113;
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;          /* 锚点跳转的平滑交给浏览器,滚轮/触控板永远是原生的 */
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.85 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
ol, ul { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 可点击:按钮与链接(唯一使用朱砂色的地方) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--accent); color: var(--on-accent);
  font-size: 16px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 60px; padding: 0 36px; font-family: var(--serif); font-size: clamp(18px, 3vw, 24px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  color: var(--accent); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.link-arrow:hover { border-bottom-color: currentColor; }
main p a, .faq a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- 导航(不透明底色,无毛玻璃) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.seal {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--accent); color: var(--on-accent);
  font: 700 13px/1.05 var(--serif); text-align: center;
  border-radius: 4px;
}
.brand-name { font: 700 19px/1.1 var(--serif); letter-spacing: .1em; display: flex; flex-direction: column; }
.brand-name small { font: 400 11px/1.4 var(--sans); letter-spacing: .08em; color: var(--faint); margin-top: 3px; }

.nav-menu { display: flex; gap: 4px; margin-left: auto; }
.nav-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 15px; color: var(--muted); text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .2s ease, box-shadow .2s ease;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-right: 4px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--on-accent); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  color: var(--muted); border-radius: 2px;
  transition: color .2s ease, background .2s ease;
}
.icon-btn:hover { color: var(--ink); background: var(--mark); }
:root[data-theme="dark"] .i-sun, :root:not([data-theme="dark"]) .i-moon { display: none; }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .25s ease; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 7vw, 80px); }
.kicker {
  font: 500 13px/1.6 var(--mono); letter-spacing: .12em; color: var(--faint);
  padding-top: 14px; border-top: 3px solid var(--ink); display: inline-block;
}
.hero-title {
  margin-top: 28px;
  font-size: clamp(44px, 8.4vw, 104px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
}
.ink-mark {
  background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%);
  padding: 0 .04em;
}
.hero-lead { margin-top: 28px; max-width: 40em; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }

.proof-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.proof-strip > div { padding: 22px 24px 20px 0; }
.proof-strip > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof-strip dt { font: 700 clamp(30px, 3.6vw, 42px)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.proof-strip dd { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.src { display: block; margin-top: 4px; font: 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--faint); }

/* ---------- 区块通用 ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.alt { background: var(--paper-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-no { font: 500 12px/1 var(--mono); letter-spacing: .16em; color: var(--faint); }
.sec-head h2 { margin-top: 14px; font-size: clamp(28px, 4.2vw, 46px); }
.sec-lead { margin-top: 16px; color: var(--muted); font-size: 17px; }
.budget-hint { margin: -8px 0 clamp(20px, 3vw, 32px); max-width: 60em; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.budget-hint b { color: var(--ink); font-weight: 600; }

/* 01 痛点 */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); counter-reset: pain; }
.pains li { padding: 28px 28px 8px 0; counter-increment: pain; }
.pains li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.pains li::before { content: "0" counter(pain); font: 500 12px/1 var(--mono); color: var(--faint); }
.pains h3 { margin-top: 14px; font-size: 21px; }
.pains p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* 02 方案(暗场) */
.dark { background: var(--d-bg); color: var(--d-ink); }
.dark .sec-no, .dark .src { color: var(--d-faint); }
.dark .sec-lead { color: var(--d-muted); }
.dark .budget-hint { color: var(--d-muted); }
.dark ::selection { background: var(--d-ink); color: var(--d-bg); }
.dark :focus-visible { outline-color: var(--d-accent); }

.reel { margin: 0 0 clamp(56px, 8vw, 88px); }
.reel-frame {
  position: relative; aspect-ratio: 16 / 9;
  background: #14171a url("../assets/allyos-poster.jpg") center / cover no-repeat;
  border: 1px solid var(--d-line-2);
  overflow: hidden;
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-play {
  position: absolute; left: 16px; bottom: 16px;
  display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--d-accent); color: #1e2124; border-radius: 2px;
  transition: opacity .25s ease, transform .2s ease;
}
.reel-play:hover { transform: scale(1.05); }
.reel-play .i-pause { display: none; }
.reel.is-playing .reel-play .i-play { display: none; }
.reel.is-playing .reel-play .i-pause { display: block; }
.reel.is-playing .reel-play { opacity: 0; }
.reel.is-playing .reel-frame:hover .reel-play, .reel.is-playing .reel-play:focus-visible { opacity: 1; }

.reel-bar {
  display: flex; align-items: center; gap: 16px; margin-top: 14px;
  font: 12px/1 var(--mono); letter-spacing: .1em; color: var(--d-faint);
}
.reel-tc { color: var(--d-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel-track { position: relative; flex: 1; height: 1px; background: var(--d-line-2); }
.reel-track i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--d-accent); transform: scaleX(0); transform-origin: left; }
.reel-credit { white-space: nowrap; }

.reel-chapters { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 18px; }
.reel-chapters button {
  width: 100%; min-height: 52px; padding: 10px 8px 6px 0;
  border-top: 1px solid var(--d-line-2);
  text-align: left; font: 14px/1.3 var(--serif); color: var(--d-muted);
  transition: color .2s ease;
}
.reel-chapters b { display: block; font: 400 11px/1.4 var(--mono); letter-spacing: .14em; color: var(--d-faint); }
.reel-chapters button:hover { color: var(--d-ink); }
.reel-chapters button.on { color: var(--d-ink); border-top: 2px solid var(--d-accent); padding-top: 9px; }
.reel-chapters button.on b { color: var(--d-accent); }

.pipe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0 16px; }
.pipe li { padding-top: 18px; border-top: 1px solid var(--d-line-2); }
.pipe-n { font: 500 12px/1 var(--mono); color: var(--d-faint); }
.pipe h3 { margin-top: 10px; font-size: 22px; }
.pipe p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--d-muted); }

.tenets {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--d-line-2); border-bottom: 1px solid var(--d-line-2);
}
.tenets > div { padding: 30px 28px 30px 0; }
.tenets > div + div { padding-left: 28px; border-left: 1px solid var(--d-line); }
.tenets h3 { font-size: 21px; }
.tenets p { margin-top: 10px; font-size: 14.5px; color: var(--d-muted); }

/* 03 工程证据:深度案例(数字前置 → 问题 → 角色 → 决策 → 结果) */
.case { border: 1px solid var(--line-2); background: var(--paper); }
.case.study { display: block; }
.case.study + .case.study { margin-top: 40px; }
.case-meta { font: 12px/1.6 var(--mono); letter-spacing: .08em; color: var(--faint); }
.case h3 { margin-top: 10px; font-size: clamp(22px, 2.5vw, 28px); }
.stack { font: 12.5px/1.8 var(--mono); color: var(--faint); }

.case-figures { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-2); }
.case-figures > div { padding: 20px 24px 18px 0; }
.case-figures > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.case-figures dt { font: 700 clamp(24px, 2.8vw, 34px)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.case-figures dd { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.study-body { display: grid; grid-template-columns: 1.6fr 1fr; }
.study-text { padding: clamp(24px, 3.5vw, 40px); }
.study-text .case-meta { margin-bottom: 2px; }
.study-label { margin: 24px 0 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--faint); }
.study-label:first-of-type { margin-top: 18px; }
.study-text p { margin-top: 10px; color: var(--muted); }
.study-text p.stack { margin-top: 16px; }
.study-text .link-arrow { margin-top: 12px; }

.decisions { margin-top: 8px; }
.decisions li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.decisions li:last-child { border-bottom: 0; padding-bottom: 0; }
.decisions b { display: block; font: 700 16.5px/1.5 var(--serif); }
.decisions p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

.study-side { padding: clamp(24px, 3.5vw, 40px); border-left: 1px solid var(--line-2); background: var(--paper-2); }
.study-body.single { grid-template-columns: 1fr; }

.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; color: var(--ink); }
.dg-t { font: 500 13px var(--sans); }
.dg-n { font: 700 20px var(--serif); font-variant-numeric: tabular-nums; }
.diagram figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--faint); }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin-top: 40px; border-top: 1px solid var(--line-2); }
.case-sm { padding: 28px 0 0; }
.case-sm + .case-sm { border-left: 1px solid var(--line); padding-left: 28px; }
.case-sm h3 { margin-top: 8px; font-size: 20px; }
.case-sm p:not(.case-meta) { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.case-sm .link-arrow { margin-top: 6px; }

/* 04 经历 */
.timeline { border-top: 1px solid var(--line-2); }
.timeline li { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline time { font: 13px/1.9 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 19px; }
.timeline p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.skills { margin-top: 44px; display: grid; gap: 10px; }
.skills p { display: grid; grid-template-columns: 200px 1fr; gap: 28px; font-size: 14.5px; color: var(--muted); }
.skills b { font: 600 13px/1.9 var(--sans); color: var(--ink); }

/* 05 合作 */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.offer { padding: 30px 28px 6px 0; }
.offer + .offer { padding-left: 28px; border-left: 1px solid var(--line); }
.offer h3 { font-size: 30px; }
.offer-role { margin-top: 4px; font-weight: 600; }
.offer p:last-child { margin-top: 10px; font-size: 15px; color: var(--muted); }
.offer-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.offer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent); font-size: 14.5px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.offer-links a:hover { border-bottom-color: currentColor; }
.offer-cycle { margin-top: 10px; font: 12.5px/1.7 var(--mono); color: var(--faint); }

/* ---------- 服务与流程页(services.html,老板向) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 18px; }
.step { padding-top: 16px; border-top: 2px solid var(--ink); }
.step-n { font: 500 12px/1 var(--mono); color: var(--faint); }
.step h3 { margin-top: 10px; font-size: 20px; }
.step p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

.notake { margin-top: 40px; border: 1px dashed var(--line-2); padding: clamp(22px, 3vw, 32px); }
.notake h3 { font-size: 19px; }
.notake p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.notake ul { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.notake li { position: relative; padding-left: 1.4em; font-size: 14px; line-height: 1.7; color: var(--muted); }
.notake li::before { content: "×"; position: absolute; left: 0; font: 700 15px/1.7 var(--mono); color: var(--faint); }

.pricing { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); }
.price-col { padding: clamp(24px, 3.5vw, 40px); }
.price-col + .price-col { border-left: 1px solid var(--line-2); background: var(--paper-2); }
.price-col h3 { font-size: 21px; }
.price-col .price-note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.price-col ul { margin-top: 16px; }
.price-col li { position: relative; padding: 8px 0 8px 26px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.price-col li b { color: var(--ink); font-weight: 600; }
.price-col li::before { position: absolute; left: 0; top: 8px; font: 700 13px/1.7 var(--mono); color: var(--ink); }
.price-in li::before { content: "✓"; }
.price-out li::before { content: "+"; }

.trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.trust-cards > div { padding: 24px 26px 22px 0; }
.trust-cards > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.trust-cards b { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.trust-cards p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

.trust-cta { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line-2); margin-top: 48px; }
.trust-main { padding: clamp(28px, 4vw, 44px); }
.trust-main h3 { font-size: clamp(24px, 3vw, 32px); }
.trust-main > p { margin-top: 12px; color: var(--muted); }
.trust-main .btn { margin-top: 24px; }
.trust-main .contact-proof { margin-top: 18px; }
.trust-main .reassure { margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.dark .trust-main .reassure { color: var(--d-muted); }
.trust-side { padding: clamp(28px, 4vw, 44px); border-left: 1px solid var(--line-2); background: var(--paper-2); display: flex; flex-direction: column; justify-content: center; }
.trust-side .magnet-kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--faint); }
.trust-side h3 { margin-top: 12px; font-size: 20px; }
.trust-side p { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.trust-side .link-arrow { margin-top: 16px; align-self: flex-start; }

/* 联系(第二个行动按钮) */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(28px, 4.6vw, 50px); max-width: 16em; margin: 0 auto; }
.contact > .wrap > p:not(.contact-links) { margin: 18px 0 30px; color: var(--muted); }
.contact-links { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-underline-offset: 3px; }

/* 问答 */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0;
  font: 700 18px/1.5 var(--serif); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--faint); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; }

/* 页脚 */
.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 入场动效:只在支持 JS 时生效,≤ 0.5s,不循环 ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .pipe { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .study-body { grid-template-columns: 1fr; }
  .study-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .nav-row { height: 60px; gap: 12px; }
  .brand-name small { display: none; }
  .burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    padding: 6px var(--gutter) 14px;
    background: var(--nav-bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-actions { margin-left: auto; }
  .nav-menu a { min-height: 52px; padding: 0; font-size: 17px; border-bottom: 1px solid var(--line); box-shadow: none; }
  .nav-menu a:last-child { border-bottom: 0; }

  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .pains, .tenets, .cases, .offers { grid-template-columns: 1fr; }
  .pains li, .pains li + li, .tenets > div, .tenets > div + div, .case-sm, .case-sm + .case-sm, .offer, .offer + .offer {
    padding: 24px 0; border-left: 0;
  }
  .pains li + li, .case-sm + .case-sm, .offer + .offer { border-top: 1px solid var(--line); }
  .tenets > div + div { border-top: 1px solid var(--d-line); }

  .case-figures { grid-template-columns: 1fr 1fr; }
  .case-figures > div { padding: 18px 0 16px; }
  .case-figures > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .case-figures > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { border-top: 0; border-left: 2px solid var(--ink); padding: 14px 0 14px 16px; }
  .step h3 { margin-top: 6px; }
  .notake ul { grid-template-columns: 1fr; }

  .pricing, .trust-cta { grid-template-columns: 1fr; }
  .price-col + .price-col, .trust-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .trust-cards { grid-template-columns: 1fr; }
  .trust-cards > div, .trust-cards > div + div { padding: 20px 0; border-left: 0; }
  .trust-cards > div + div { border-top: 1px solid var(--line); }

  .pipe { grid-template-columns: 1fr; gap: 0; }
  .pipe li { display: grid; grid-template-columns: 28px 64px 1fr; align-items: baseline; gap: 10px; padding: 16px 0; }
  .pipe h3, .pipe p { margin: 0; }
  .pipe h3 { font-size: 19px; }

  .reel { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .reel-frame { border-left: 0; border-right: 0; }
  .reel-bar, .reel-chapters { padding: 0 var(--gutter); }
  .reel-credit { display: none; }
  .reel-play { left: 12px; bottom: 12px; width: 44px; height: 44px; }
  .reel-chapters { display: flex; overflow-x: auto; gap: 14px; scrollbar-width: none; }
  .reel-chapters::-webkit-scrollbar { display: none; }
  .reel-chapters li { flex: 0 0 auto; }
  .reel-chapters button { white-space: nowrap; padding-right: 4px; }

  .timeline li, .skills p { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
  .pipe li { grid-template-columns: 24px 1fr; }
  .pipe p { grid-column: 2; }
}

/* ---------- 博客(blog/、en/blog/ 由 scripts/blog.py 生成;沿用上面的颜色与点击区规则) ---------- */
.post { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font: 13px/1.6 var(--mono); color: var(--faint); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-head { margin-top: 12px; }
.post-title { margin-top: 22px; font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.post-lead { margin-top: 18px; font-size: 17px; color: var(--muted); }
.post-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.post-meta a { color: var(--accent); text-underline-offset: 3px; display: inline-block; padding: 10px 0; }
.answer { margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--ink); background: var(--paper-2); }
.answer-label, .toc-label { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--faint); }
.answer p + p { margin-top: 10px; font-size: 17px; line-height: 1.85; }
.answer code, .post-list code { font: .88em var(--mono); background: var(--mark); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
.toc { margin-top: 28px; padding: 16px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc ol { margin-top: 8px; list-style: decimal; padding-left: 1.4em; color: var(--faint); }
.toc a { display: inline-block; padding: 8px 0; color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.prose { margin-top: 36px; font-size: 17px; overflow-wrap: break-word; }
.prose h2 { margin-top: 52px; font-size: clamp(23px, 3vw, 30px); scroll-margin-top: 80px; }
.prose h3 { margin-top: 30px; font-size: 20px; }
.prose h4 { margin-top: 24px; font-size: 17px; }
.prose p { margin-top: 16px; }
.prose ul, .prose ol { margin-top: 16px; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 700; }
.prose code { font: .88em var(--mono); background: var(--mark); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
.prose pre { margin-top: 18px; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--line); overflow-x: auto; font: 13.5px/1.7 var(--mono); }
.prose pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.prose blockquote { margin-top: 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--muted); }
.prose blockquote p { margin-top: 0; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.prose td:first-child { min-width: 9em; }

.author-card { margin-top: 56px; padding: 22px 24px; border: 1px solid var(--line-2); }
.author-card h2 { font-size: 18px; }
.author-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.author-card p b { color: var(--ink); }
.author-card .author-note { font-size: 13px; color: var(--faint); }
.post-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
/* 短片页(night-shift/):竖屏播放器。画面自带暗场,框线跟随深浅色主题 */
.film { margin: 32px auto 0; max-width: 400px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #07070a; border: 1px solid var(--line-2); border-radius: 6px; }
.film figcaption { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--faint); text-align: center; }
/* 短片列表页 films/:每集一个竖屏播放器,新的一集放最前面 */
.ep-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.ep { display: grid; gap: 8px; align-content: start; }
.ep video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #07070a; border: 1px solid var(--line-2); border-radius: 6px; }
.ep-tag { margin: 4px 0 0; font: 600 12px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; }
.ep-tag b { color: var(--paper); background: var(--ink); padding: 1px 6px; border-radius: 3px; }
.ep h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.ep h2 a { color: var(--ink); text-decoration: none; }
.ep h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ep p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.ep .link-arrow { justify-self: start; font-size: 14px; }
@media (max-width: 760px) { .ep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .ep p { font-size: 13.5px; } }
.related { margin-top: 56px; }
.related h2 { font-size: 20px; }

.post-list { margin-top: 18px; border-top: 1px solid var(--line-2); }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-list h2, .post-list h3 { margin-top: 6px; font-size: 20px; line-height: 1.4; }
.post-list h2 a, .post-list h3 a { color: var(--accent); text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-list p:not(.case-meta) { margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--muted); }

@media (max-width: 520px) {
  .post-cta .btn { width: 100%; text-align: center; padding: 10px 20px; }
  .answer { padding: 16px 18px; }
  .prose { font-size: 16.5px; }
}

/* ---------- 尊重"减少动态效果" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ============================================================
   案例集(cases/):证据等级标签、指标卡、可验证性清单、列表卡片
   - 证据等级靠图形(● ◐ ○)和文字区分,不靠颜色,守住第 1 条规则
   - 指标卡每个数字下面都写口径与日期(.src),没有口径的数字不上卡
   - .tbd 只给草稿里的 [[待确认]] 用;scripts/check_cases.py 不过就不合并
   ============================================================ */
.evidence { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 0 14px; border: 1px solid var(--ink); font: 600 13px/1.4 var(--mono); color: var(--ink); text-decoration: none; }
a.evidence:hover { background: var(--mark); }
.evidence i { font-style: normal; font-size: 15px; }
.metrics { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.metrics > div { flex: 1 1 140px; background: var(--paper); padding: 16px 16px 14px; }
.metrics dt { font: 700 clamp(22px, 2.6vw, 27px)/1.15 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.metrics dd { margin-top: 6px; font-size: 13.5px; line-height: 1.55; }
.metrics .src { display: block; margin-top: 6px; font: 11.5px/1.55 var(--mono); color: var(--faint); }
.verify { margin-top: 18px; border-top: 2px solid var(--ink); }
.verify > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.verify dt { font-weight: 700; }
.verify dd { color: var(--muted); }
.case-cards { margin-top: 32px; display: grid; gap: 20px; }
.case-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding: 24px; border: 1px solid var(--line-2); }
.case-card h2 { grid-column: 1; font-size: clamp(20px, 2.4vw, 24px); }
.case-card h2 a { color: var(--accent); text-decoration: none; }
.case-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-card .case-meta, .case-card .sum, .case-card .evidence { grid-column: 1; }
.case-card .sum { color: var(--muted); }
.case-card .evidence { justify-self: start; margin-top: 4px; }
.case-card .key { grid-column: 2; grid-row: 1 / span 4; align-self: center; min-width: 9em; padding-left: 24px; border-left: 1px solid var(--line); }
.case-card .key b { display: block; font: 700 clamp(28px, 3.4vw, 38px)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.case-card .key span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.case-pager { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.tbd { background: var(--mark); color: var(--ink); outline: 1px dashed var(--ink); padding: 0 .2em; }
@media (max-width: 640px) {
  .verify > div { grid-template-columns: minmax(0, 1fr); }
  .case-card { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .case-card .key { grid-column: 1; grid-row: auto; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
