@import url("brand.css");

/* ==========================================================================
   Landing — 事务所年报式 editorial
   与 CPA landing 的差异：横向标尺替代竖版心线、关系网络作视觉母题、
   金沙点缀、数字排版加重、无跑马灯（剧本逐段展开）
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  line-height: 1.75;
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* 纸面颗粒 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--primary); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }

/* ── 导航：玻璃质感 ───────────────────────────────
   不用"塑料白 + 模糊"那套：底色取纸色而非纯白，叠 1px 内亮边与内阴影模拟纸面
   压出的边缘折射，饱和度略提让底下的内容透上来仍有暖调。 */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(244, 244, 240, .78);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid rgba(0, 102, 140, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 12px rgba(0, 102, 140, .05);
}
.nav-links a.active { color: var(--primary); }
.nav-links a:not(.nav-cta) { position: relative; padding-bottom: 3px; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--primary); transition: width .25s ease;
}
.nav-links a.active::after, .nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* 跳到主内容：键盘用户第一个可聚焦元素 */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--primary); color: #fff; padding: 10px 16px; font-size: 13px; border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip:focus { top: 12px; }
.nav-in { display: flex; align-items: center; gap: 14px; height: 66px; }
.nav-logo { height: 26px; }
/* 竖线加高到能罩住两行落款块，否则它只对齐第一行、视觉上把块劈开 */
.nav-rule { width: 1px; height: 32px; background: var(--line); }
.nav-brand { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.nav-unit {
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .1em; color: var(--text-faint); white-space: nowrap;
}
.nav-title { font-size: var(--fs-h3); font-weight: 700; color: var(--bdo-navy); letter-spacing: -.01em; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: var(--fs-body); color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  padding: 9px 18px; background: var(--primary); color: #fff !important; border-radius: var(--r-sm);
  font-weight: 600; transition: background .15s;
}
.nav-cta:hover { background: var(--primary-dim); }

/* 卡片化：与应用页统一的浮起卡片语言 */
.nav-cta, .btn-lg { border-radius: var(--r-sm); }

/* ── 横向标尺：呼应审计"期间"概念，替代 CPA 的竖版心线 ── */
.ruler {
  height: 26px; border-top: 1px solid var(--line); position: relative;
  display: flex; align-items: flex-start;
}
.ruler i { flex: 1; height: 6px; border-left: 1px solid var(--line); }
.ruler i:nth-child(5n+1) { height: 13px; border-left-color: var(--outline); }
.ruler span {
  position: absolute; right: 0; top: 9px; font-family: var(--font-headline);
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint);
}

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 104px 0 76px; position: relative; overflow: hidden; }
.hero-net { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px); line-height: 1.06; font-weight: 700;
  letter-spacing: -.025em; color: var(--text); max-width: 15em; margin-bottom: 26px;
  text-wrap: balance;
}
.hero h1 em {
  font-family: var(--font-headline); font-style: italic; font-weight: 600;
  color: var(--primary); letter-spacing: 0;
}
.hero-lead { font-size: 17px; color: var(--text-2); max-width: 34em; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-lg {
  padding: 14px 30px; background: var(--primary); color: #fff; border-radius: var(--r-sm);
  font-size: var(--fs-h3); font-weight: 600; transition: all .16s; box-shadow: var(--shadow-sm);
}
.btn-lg:hover { background: var(--primary-dim); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-lg.ghost { background: transparent; color: var(--text); border: 1px solid var(--outline); }
.btn-lg.ghost:hover { background: var(--card); border-color: var(--text); }

/* 数字锚点 */
.stats { display: flex; gap: 60px; margin-top: 72px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-headline); font-size: 46px; font-weight: 700;
  line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-num.accent { color: var(--primary); }
.stat-num sub { font-size: 15px; font-weight: 500; vertical-align: baseline; margin-left: 3px; color: var(--text-3); }
.stat-label {
  margin-top: 9px; font-size: var(--fs-xs); color: var(--text-3);
  letter-spacing: .02em; max-width: 13em;
}

/* ── 区块 ────────────────────────────────────────── */
/* 上下 padding 光学配平：视觉重心偏上，底部略大于顶部才显得均衡 */
.section { padding: 84px 0 96px; }
.section.sunk { background: var(--card-sunk); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: 46px; max-width: 40em; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head h2 {
  font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 700;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 14px;
  text-wrap: balance;
}
.sec-head p { color: var(--text-2); text-wrap: pretty; }

/* 痛点：等宽等高 2×2。曾用非对称错位栅格追求"不通用"，
   但四条内容长度不齐时会变成大小不一的错乱，规整反而更耐看。
   grid-auto-rows:1fr 保证四张卡完全等高，不随文案长短起伏。 */
.pain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  grid-auto-rows: 1fr; align-items: stretch;
}

.pain {
  padding: 24px 26px 26px; position: relative; background: var(--card);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  transition: box-shadow .22s ease, transform .22s ease;
  --mx: 50%; --my: 0%;
}
.pain::before {
  /* 满宽贴合卡片顶边，上方两角跟随卡片圆角；配色与「进入系统」按钮一致 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); border-radius: var(--r-lg) var(--r-lg) 0 0; z-index: 2;
}
/* Spotlight：光标位置照亮顶边，用金沙做低强度光晕，不做霓虹辉光 */
.pain::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: radial-gradient(340px circle at var(--mx) var(--my),
              rgba(0, 102, 140, .07), transparent 68%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.pain:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.pain:hover::after { opacity: 1; }
.pain h3 { transition: color .2s ease; }
.pain:hover h3 { color: var(--primary); }
.pain .no {
  font-family: var(--font-headline); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .09em; color: var(--primary); margin-bottom: 10px;
}
.pain h3 { font-size: var(--fs-h3); font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pain p { font-size: var(--fs-body); color: var(--text-3); line-height: 1.6; }

/* 剧本：sticky 层叠。滚动时后一张压到前一张之上，像翻阅装订好的报告，
   而不是常见的科技风卡片飞入。每张下移 14px 露出下缘，形成纸张厚度。 */
.cases { position: relative; }
.case {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 52px; align-items: center;
  position: sticky; top: 92px;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 34px 36px; margin-bottom: 22px;
  box-shadow: var(--shadow-lift);
  transition: box-shadow .3s ease;
}
.case:nth-child(1) { top: 92px; }
.case:nth-child(2) { top: 106px; }
.case:nth-child(3) { top: 120px; }
.case:nth-child(4) { top: 134px; }
.case:last-child { margin-bottom: 0; }

/* 纸张纹理：让层叠看起来像纸而不是玻璃面板 */
.case::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; border-radius: var(--r-lg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23c)' opacity='0.045'/%3E%3C/svg%3E");
}
/* min-width:0 不能省：grid item 默认 min-width:auto，不会收缩到小于内容。
   里面的表格设了 min-width 后会把整个 grid item 撑破屏幕，溢出被 body 的
   overflow-x:clip 剪掉，且 .sheet 自身不溢出所以还滑不动——看着就是"表格被截断"。 */
.case > * { position: relative; z-index: 1; min-width: 0; }
.case-no {
  font-family: var(--font-headline); font-style: italic; font-size: 46px; font-weight: 600;
  color: var(--primary-soft); line-height: 1; margin-bottom: 12px;
}
.case h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -.01em; }
.case p { font-size: var(--fs-body); color: var(--text-2); line-height: 1.75; }
.case-kicker {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--primary); font-weight: 500;
}
/* 关系链容器：只留背景与内描边，去掉"边框+阴影+白底"的通用卡片三件套 */
.case-vis {
  background: var(--card-sunk); padding: 24px 20px; border-radius: var(--r-md);
}

/* 关系链 SVG 的实体配色必须与 graph.html 画布同源，否则同一套图例两处对不上。
   走 class 而非 fill="var(--x)"：CSS 变量用在 SVG 表现属性上各浏览器支持不一致。 */
.chain .e-client { fill: var(--node-client); }
.chain .e-company { fill: var(--node-company); }
.chain .e-person { fill: var(--node-person); }

/* 关系链 SVG 内的文字 */
.chain text { font-family: var(--font-body); font-size: 11px; fill: var(--text-2); }
.chain text.n { font-size: 11.5px; font-weight: 500; fill: var(--text); }
.chain text.rel { font-size: 10px; fill: var(--text-faint); }
.chain .seg { stroke-dasharray: 260; stroke-dashoffset: 260; }
.reveal.in .chain .seg { animation: draw .9s ease forwards; }
.reveal.in .chain .seg:nth-of-type(2) { animation-delay: .18s; }
.reveal.in .chain .seg:nth-of-type(3) { animation-delay: .36s; }
.reveal.in .chain .seg:nth-of-type(4) { animation-delay: .54s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 规则表 */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.rule { background: var(--card); padding: 16px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: box-shadow .18s ease; }
.rule:hover { box-shadow: var(--shadow-card); }
.rule .id {
  font-family: var(--font-headline); font-size: var(--fs-label); font-weight: 700;
  color: var(--primary); letter-spacing: .06em; margin-bottom: 6px;
}
.rule .t { font-size: var(--fs-body); color: var(--text); line-height: 1.35; }
/* R-L1/R-L2 只在上市公司口径下触发，必须与第四条各项区分开，否则会被读成通用规则 */
.rule.listed { background: var(--primary-soft); }
.rule.listed .id { display: flex; align-items: center; gap: 7px; }
.rule.listed .id em {
  font-style: normal; font-size: 9px; letter-spacing: .04em; padding: 2px 6px;
  border-radius: var(--r-pill); background: var(--card); color: var(--text-3);
}

.note {
  margin-top: 28px; padding: 20px 24px; background: var(--primary-soft);
  border-radius: var(--r-md); border-left: 3px solid var(--primary); font-size: var(--fs-body); color: var(--secondary);
  line-height: 1.75;
}

/* 关系链 SVG 内的数字锚点 */
.chain text.figure-svg {
  font-family: var(--font-headline); font-size: 15px; font-weight: 700; fill: var(--primary);
}

/* 底稿预览 */
.sheet { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.sheet.flat { box-shadow: none; border-color: var(--line-soft); }
.sheet-title { color: var(--primary); font-weight: 600; }
.sheet td.hit { color: var(--primary); }
.sheet td.lapsed { color: var(--warn); }
.sheet td.clear { color: var(--text-3); }
.path-note { color: var(--text-faint); }
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--card-sunk); border-bottom: 1px solid var(--line); }
.sheet-bar span { font-size: var(--fs-xs); color: var(--text-3); }
.sheet table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.sheet th { text-align: left; padding: 10px 14px; background: var(--page); color: var(--text-2); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--text); vertical-align: top; }
.sheet td.rid { font-family: var(--font-headline); font-weight: 600; color: var(--primary); white-space: nowrap; }

/* 收尾 CTA：深墨面板是 BDO 规范色，非误用。
   上缘压一条金沙细线 + 面板内叠噪点，让它读作"翻到封底"而不是"贴错了图层"。 */
.closing {
  padding: 100px 0 108px; background: linear-gradient(135deg, #0b3d52 0%, #00668c 100%); color: #fff;
  position: relative; overflow: hidden;
  
}
.closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23d)'/%3E%3C/svg%3E");
}
.closing::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 380px; height: 380px;
  border: 1px solid rgba(201, 185, 138, .18); border-radius: 50%;
}
.closing .wrap { position: relative; z-index: 2; }

/* 文字链接：替代第二个幽灵按钮，降低视觉噪音 */
.text-link {
  font-size: var(--fs-body); color: var(--text-2); border-bottom: 1px solid var(--outline);
  padding-bottom: 2px; transition: all .18s ease; margin-left: 26px;
}
.text-link:hover { color: var(--primary); border-color: var(--primary); }
.closing .text-link { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.closing .text-link:hover { color: var(--primary-container); border-color: var(--primary-container); }
.closing .eyebrow { color: var(--primary-container); }
.closing h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; margin: 16px 0 18px; color: #fff; }
.closing p { color: rgba(255,255,255,.72); max-width: 32em; margin-bottom: 34px; }
.closing .btn-lg { background: #fff; color: var(--text); }
.closing .btn-lg:hover { background: var(--page); }

/* 页脚：左右两块 + 正中一条竖线。
   用 grid 的 1fr 1px 1fr 而不是 space-between —— 后者会让竖线随两边内容
   宽度左右浮动，而这条线在视觉上应当钉在正中。 */
.foot { padding: 44px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; gap: 40px; }
.foot-l { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-logo { height: 40px; }
/* 左右两块的落款行共用这一个类：要求两边字号/字色/字距完全一致，
   拆成两条规则迟早会各自漂 */
.foot-unit { font-size: var(--fs-body); color: var(--text-2); letter-spacing: .14em; }
.foot-rule { width: 1px; height: 56px; background: var(--line); justify-self: center; }
.foot-r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 12px; }
/* "DESIGNED & BUILT BY" 直接复用 .eyebrow：它本就是全大写 + .09em 字距 + faint 色 */
.foot-note {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  text-align: center; font-size: var(--fs-xs); color: var(--text-faint); letter-spacing: .06em;
}

/* 滚动入场 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s } .d2 { transition-delay: .14s } .d3 { transition-delay: .21s } .d4 { transition-delay: .28s }

/* 眼眉基础样式此前整个缺失（只有 .serif 修饰类），plain .eyebrow 一直退化成正文字号。
   hero 与收尾用的就是它，补上全大写小标签的本来面目。 */
.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint);
}

/* 衬线小写 eyebrow：避免通篇全大写标签，也用上品牌的 Cormorant */
.eyebrow.serif {
  font-family: var(--font-headline); font-style: italic; font-size: 16px; font-weight: 600;
  text-transform: none; letter-spacing: 0; color: var(--text-3);
}
/* 章节眼眉的英文词与导航同名，正体加重与后面的中文拉开，点进来有落点感 */
.eyebrow.serif b { font-style: normal; font-weight: 700; color: var(--primary); }
.closing .eyebrow.serif { color: var(--primary-container); }

/* ── 口径切换 ─────────────────────────────────────
   纯 CSS：两个同名 radio 藏起来，靠 :checked ~ 兄弟选择器换面板。
   落地页无构建、且要在 JS 失效时也能读，所以不引 JS。
   radio + label 天然可键盘操作，焦点环靠 :focus-visible 转投到 label 上。 */
.std {
  margin-top: 30px; background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden; position: relative;
}
.std > input { position: absolute; opacity: 0; pointer-events: none; }
.std-head {
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 20px 24px 18px; border-bottom: 1px solid var(--line);
}
.std-intro { flex: 1; min-width: 260px; }
.std-intro h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--text); margin-bottom: 5px; }
.std-intro p { font-size: var(--fs-xs); color: var(--text-3); }
.std-tabs { display: flex; gap: 4px; padding: 4px; background: var(--page); border-radius: var(--r-md); }
.std-tabs label {
  padding: 7px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-3); cursor: pointer; transition: all .16s; white-space: nowrap;
}
.std-tabs label:hover { color: var(--text); }
#std-cas:checked ~ .std-head label[for="std-cas"],
#std-listed:checked ~ .std-head label[for="std-listed"] { background: var(--primary); color: #fff; }
#std-cas:focus-visible ~ .std-head label[for="std-cas"],
#std-listed:focus-visible ~ .std-head label[for="std-listed"] { outline: 2px solid var(--primary); outline-offset: 2px; }

.std-body { padding: 20px 24px 4px; }
.std-pane { display: none; }
#std-cas:checked ~ .std-body .std-pane[data-p="cas"],
#std-listed:checked ~ .std-body .std-pane[data-p="listed"] { display: block; animation: entry-soft .32s ease-out; }
@keyframes entry-soft { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.std-rule {
  font-size: var(--fs-body); color: var(--secondary); margin-bottom: 14px;
  padding-left: 12px; border-left: 3px solid var(--primary-container);
}
.std-rule strong { color: var(--primary); font-weight: 700; }
.std-foot { padding: 0 24px 22px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; }
/* 上市口径面板里，与 CAS 36 相同的部分压暗，新增的两条才是重点 */
.sheet tr.dim td { color: var(--text-faint); }
.sheet tr.dim td.rid { color: var(--text-3); }
.sheet tr.ellip td { color: var(--text-faint); font-style: italic; }
.sheet tr.add td { background: var(--primary-soft); font-weight: 500; }
.sheet tr.add td em {
  font-style: normal; font-size: 9px; font-weight: 700; margin-left: 7px; padding: 2px 6px;
  border-radius: var(--r-pill); background: var(--primary); color: #fff; vertical-align: 1px;
}

/* ── 讲解片 ───────────────────────────────────────
   浅色页上的播放器：不用 HBJ 那套深色内联样式，走落地页自己的卡片语言。 */
.video-sec { padding: 8px 0 20px; }
.promo {
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: #0b1418;
  box-shadow: var(--shadow-lift);
}
.promo-ctl {
  max-width: 1120px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.promo-ctl button {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-size: var(--fs-body);
  transition: all .15s;
}
.promo-ctl button:hover { border-color: var(--primary); color: var(--primary); }
.promo-hint { font-size: var(--fs-xs); color: var(--text-faint); letter-spacing: .04em; margin-left: 6px; }

/* 表格可横滑提示：由脚本按实际是否溢出添加，不溢出就不显示，免得提示说假话 */
.tbl-hint {
  margin-top: 8px; display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--text-faint);
}
.tbl-hint::before { content: "↔"; font-size: 13px; line-height: 1; }

/* ── 交付物：导出的 PNG ───────────────────────────── */
.artifact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 34px; align-items: center; margin-top: 26px; }
.artifact > * { min-width: 0; } /* 同 .case：grid item 不加这句不会收缩 */
.artifact-txt h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--text); margin-bottom: 10px; }
.artifact-txt p { font-size: var(--fs-body); color: var(--text-2); line-height: 1.75; margin-bottom: 10px; }
.artifact-file {
  display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--page); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3);
}
.artifact-img { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.artifact-img svg { display: block; width: 100%; height: auto; }
/* 导出图内的图例文字：比画布小一档，与 exportPNG() 的字号对应 */
.chain.shot text.lg { font-size: 9.5px; fill: var(--text-2); }
.chain.shot text.lg-cap { font-size: 8px; font-weight: 700; fill: var(--text-faint); letter-spacing: .06em; }
.chain.shot text.n { font-size: 9px; }
.chain.shot text.rel { font-size: 8px; }

/* 关系线型与画布 EDGE_STYLE 同源，改色改 brand.css 一处 */
.r-holds { stroke: var(--edge-holds); }
.r-controls { stroke: var(--edge-controls); stroke-width: 1.7; }
.r-serves { stroke: var(--edge-serves); stroke-dasharray: 4 3; }
.r-kin { stroke: var(--edge-kin); stroke-dasharray: 1 3; }
.r-concert { stroke: var(--edge-concert); stroke-dasharray: 6 3; }

/* ── 人机分工三步 ─────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; padding: 26px 24px 24px; background: var(--card);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease;
}
.step:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
/* 步骤之间的连接箭头：说明这是流程不是并列 */
.step + .step::before {
  content: ""; position: absolute; left: -13px; top: 42px; width: 8px; height: 8px;
  border-top: 1.5px solid var(--outline); border-right: 1.5px solid var(--outline);
  transform: rotate(45deg);
}
.step-no {
  font-family: var(--font-headline); font-size: 26px; font-weight: 700;
  color: var(--primary-container); line-height: 1; margin-bottom: 12px;
}
.step h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--text); margin-bottom: 9px; }
.step p { font-size: var(--fs-body); color: var(--text-2); line-height: 1.75; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chain .seg { stroke-dashoffset: 0 !important; animation: none !important; }
  .case { position: static; top: auto !important; }
  .std-pane { animation: none !important; }
  .step:hover { transform: none; }
}

/* ── 响应式 ──────────────────────────────────────── */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  /* 窄屏取消层叠：小屏上 sticky 堆叠会把内容压在一起读不动 */
  .case { position: static; top: auto !important; grid-template-columns: 1fr; gap: 26px; padding: 26px 22px; margin-bottom: 16px; }
  .pain-grid { grid-template-columns: 1fr; gap: 14px; grid-auto-rows: auto; }
  .stats { gap: 34px; }
  .stat-num { font-size: 38px; }
  /* 导航链接不再整条隐掉——当初隐是因为中文标签太长，换成五个短英文词后放得下。
     实测 13px 下五个词共 195px，收到 12px / gap 16px 后整条导航约需 583px。 */
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { font-size: var(--fs-sm); }
  .hero { padding: 68px 0 56px; }
  .section { padding: 58px 0 66px; }
  .text-link { display: inline-block; margin: 14px 0 0; }
  /* 窄屏：三步改竖排，连接箭头转到上方；口径对照与交付物图各自占满一列 */
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .step + .step::before { left: 50%; top: -12px; margin-left: -4px; transform: rotate(135deg); }
  .artifact { grid-template-columns: 1fr; gap: 22px; }
  .std-head { padding: 18px 18px 16px; }
  .std-body { padding: 16px 18px 4px; }
  .std-foot { padding: 0 18px 18px; }
  .std-tabs { width: 100%; }
  .std-tabs label { flex: 1; text-align: center; }
  /* 窄屏表格横向滚动。min-width 按列数分开给：统一 480px 会把五列表的
     「判定依据」压到 166px，行高涨到 137px，挤成一条比滑动更难读。 */
  .sheet { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .sheet table { min-width: 400px; }
  .gsplit { grid-template-columns: 1fr; }
  .promo-ctl { gap: 10px; }
  .promo-hint { flex-basis: 100%; text-align: center; margin: 4px 0 0; }
  #paper > .wrap > .sheet table { min-width: 620px; }
  /* 移动端滚动条自动隐藏，能滑也看不出来；这里强制一条常驻细条 */
  .sheet::-webkit-scrollbar { height: 6px; }
  .sheet::-webkit-scrollbar-track { background: var(--line-soft); }
  .sheet::-webkit-scrollbar-thumb { background: var(--outline); border-radius: 3px; }
  .sheet th, .sheet td { padding: 9px 11px; }
}

/* 再窄一档：让出「关联方图谱」标题，logo 已足够标识品牌。约需 471px。 */
@media (max-width: 640px) and (min-width: 501px) {
  .nav-brand, .nav-rule { display: none; }
  .nav-links { gap: 13px; }
}

/* 500px 以下：五个链接 + CTA 确实排不开（logo 66 + 链接 221 + CTA 88 已超），
   退回只留标题与 CTA。页内 hero 和收尾各有一个大按钮，入口不缺。 */
@media (max-width: 500px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── 为什么是图 ─────────────────────────────────── */
.gsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gcard {
  padding: 26px 28px; border-radius: var(--r-lg); background: var(--card);
  box-shadow: var(--shadow-card); border-top: 3px solid var(--outline);
}
.gcard.on { border-top-color: var(--primary); background: var(--primary-soft); }
.gcard-h { font-size: var(--fs-h3); font-weight: 700; color: var(--text-3); margin-bottom: 10px; }
.gcard.on .gcard-h { color: var(--primary); }
.gcard-h strong { color: var(--text); }
.gcard.on .gcard-h strong { color: var(--primary); }
.gcard p { font-size: var(--fs-body); color: var(--text-2); line-height: 1.75; }

/* 边界三层：第一层打叉，这是全页最诚实的一块，别弱化它 */
.bound { margin-top: 26px; padding: 24px 28px; background: var(--card-sunk); border-radius: var(--r-lg); border: 1px solid var(--line); }
.bound-t { font-size: var(--fs-label); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.bound-rows { display: flex; flex-direction: column; gap: 12px; }
.bound-row { display: flex; gap: 14px; align-items: flex-start; }
.bound-row.off b, .bound-row.off em { color: var(--text-3); }
.bmark {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-high); color: var(--text-faint); font-size: 13px; font-weight: 700; margin-top: 2px;
}
.bmark.on { background: var(--primary); color: #fff; }
.bound-row b { font-size: var(--fs-body); color: var(--text); display: block; }
.bound-row em { font-style: normal; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.65; display: block; margin-top: 3px; }

/* 页脚窄屏：竖线转横线、两块堆叠、右块改左对齐——
   右对齐的短文本在窄屏上会孤悬在一侧，很别扭 */
@media (max-width: 640px) {
  .foot-in { grid-template-columns: 1fr; gap: 22px; }
  .foot-rule { width: 100%; height: 1px; }
  .foot-r { align-items: flex-start; text-align: left; }
  .foot-logo { height: 34px; }
}
