/* 公共层：landing/src/_landing/landing.css（两站同一设计源） */
/* TopTik 平台落地页 · 标样（2026-10-09，方案 v1 方向 A：纸白首屏 + 墨黑第二屏）
   规矩：颜色、字号、间距、圆角、动效只用 tokens.css 里的 --tr-token-*（本文件不得出现十六进制色值，build.py 机检）。 */

@font-face { font-family: "TT Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TT Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "TT Inter"; src: url("fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TT Noto SC"; src: url("fonts/noto-sc-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TT Noto SC"; src: url("fonts/noto-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: var(--tr-token-color-paper-0);
  --paper-2: var(--tr-token-color-paper-50);
  --line: var(--tr-token-color-paper-200);
  --ink: var(--tr-token-color-ink-950);
  --ink-2: var(--tr-token-color-ink-800);
  --text: var(--tr-token-color-text-primary-light);
  --text-2: var(--tr-token-color-text-secondary-light);
  --text-3: var(--tr-token-color-text-tertiary-light);
  --text-d: var(--tr-token-color-text-primary-dark);
  --text-d2: var(--tr-token-color-text-secondary-dark);
  --coral: var(--tr-token-color-coral-brand-500);
  --act: var(--tr-token-color-coral-action-700);
  --act-h: var(--tr-token-color-coral-action-hover-800);
  --ok: var(--tr-token-color-petrol-500);
  --warn: var(--tr-token-color-ochre-500);
  --bad: var(--tr-token-color-coral-brand-600);
  --s1: var(--tr-token-size-spacing-0); --s2: var(--tr-token-size-spacing-1); --s3: var(--tr-token-size-spacing-2);
  --s4: var(--tr-token-size-spacing-3); --s6: var(--tr-token-size-spacing-5); --s8: var(--tr-token-size-spacing-6);
  --s12: var(--tr-token-size-spacing-8); --s16: var(--tr-token-size-spacing-9); --s20: var(--tr-token-size-spacing-10); --s28: var(--tr-token-size-spacing-11);
  --r-sm: var(--tr-token-size-radius-sm); --r-md: var(--tr-token-size-radius-md); --r-lg: var(--tr-token-size-radius-lg);
  --f12: var(--tr-token-font-size-px-caption); --f13: var(--tr-token-font-size-px-body-sm); --f15: var(--tr-token-font-size-px-body-md);
  --f17: var(--tr-token-font-size-px-body-lg); --f22: var(--tr-token-font-size-px-title-md); --f28: var(--tr-token-font-size-px-title-lg);
  --f36: var(--tr-token-font-size-px-display-sm); --f48: var(--tr-token-font-size-px-display-md); --f72: var(--tr-token-font-size-px-display-lg);
  --ease: var(--tr-token-motion-easing-enter); --t-fast: var(--tr-token-motion-duration-ms-fast); --t-slow: var(--tr-token-motion-duration-ms-narrative);
  --max: var(--tr-token-layout-marketing-max-width);
  --gut: var(--tr-token-layout-desktop-gutter);
  --sans: "TT Inter", "TT Noto SC", "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  /* 品牌 token 末尾是通用 monospace（Windows 中文落到新宋体），追加无效，故照 token 西文部分展开后在通用族之前插入中文（10-09） */
  --mono: "IBM Plex Mono", SFMono-Regular, Consolas, "TT Noto SC", "Microsoft YaHei", monospace;
}
/* 浏览器默认 code/pre/kbd 是通用 monospace（Windows 西文中文都落新宋体），统一回到品牌等宽栈 */
code, pre, kbd, samp { font-family: var(--mono); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--f17)/1.7 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: var(--s2); }
.skip:focus { left: var(--s4); z-index: 10; background: var(--ink); color: var(--text-d); padding: var(--s2) var(--s3); border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--tr-token-color-signal-blue-600); outline-offset: 2px; border-radius: var(--r-sm); }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav__row { display: flex; align-items: center; gap: var(--s8); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; font-weight: 700; font-size: var(--f17); letter-spacing: -0.02em; color: var(--ink); }
.nav__links { display: flex; gap: var(--s6); margin-left: var(--s4); }
.nav__links a, .link-quiet { text-decoration: none; font-size: var(--f15); color: var(--text-2); transition: color var(--t-fast) var(--ease); }
.nav__links a:hover, .link-quiet:hover { color: var(--ink); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: var(--s6); }
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border-radius: var(--r-sm); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform var(--t-fast) var(--ease); }
.nav__menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__menu nav { position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: 180px; display: grid; padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--ink) 40%, transparent); }
.nav__menu nav a { padding: var(--s3); text-decoration: none; font-size: var(--f15); color: var(--ink); border-radius: var(--r-sm); }
.nav__menu nav a:hover { background: var(--paper-2); }

/* 按钮：一屏只一个珊瑚主按钮；珊瑚底用纸白字只在 action-700 上（对比度达标） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s6); border-radius: var(--r-sm); font: 500 var(--f15)/1 var(--sans); text-decoration: none; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.btn--sm { min-height: 40px; padding: 0 var(--s4); font-size: var(--f13); }
.btn--primary { background: var(--act); color: var(--paper); }
.btn--primary:hover { background: var(--act-h); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--text-d); }
.btn--dark:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.eyebrow { font: 500 var(--f13)/1.4 var(--sans); letter-spacing: 0.06em; color: var(--text-3); }
.lede { font-size: var(--f17); color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.fine { font-size: var(--f13); color: var(--text-3); }

/* 1 Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; pointer-events: none; }
/* 统一 12 栏：各区块列距一致，右栏起点对齐 */
.hero__row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s12); align-items: center; padding: var(--s20) 0 var(--s20); }
.hero__copy { display: grid; gap: var(--s6); grid-column: 1 / span 7; }
.hero .route { grid-column: 8 / span 5; }
.hero h1 { font-size: clamp(var(--f36), 5vw, var(--f72)); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.hero h1 .line { display: block; }

/* 品牌图形：请求 → 路由 → 响应 */
.route { margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--s3); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--ink) 40%, transparent); }
.route code { font: 400 var(--f13)/1.6 var(--mono); color: var(--ink); }
.route code.muted { color: var(--text-3); }
.route__req, .route__res { display: grid; gap: var(--s1); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--paper-2); }
.route__res { background: var(--ink); }
.route__res code { color: var(--text-d); }
.route__res b { color: var(--coral); font-weight: 500; }
.route__tag { font: 500 var(--f12)/1 var(--sans); letter-spacing: 0.08em; color: var(--text-3); }
.route__res .route__tag { color: var(--text-d2); }
.route__mid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2); padding-block: var(--s2); }
.route__node { padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); font: 500 var(--f13)/1.35 var(--sans); color: var(--ink); text-align: center; }
.route__node--hub { background: var(--ink); border-color: var(--ink); color: var(--text-d); }
.route__fork { position: relative; height: 156px; }
.route__lines { width: 100%; height: 100%; overflow: visible; }
.route__path { fill: none; vector-effect: non-scaling-stroke; }
.route__path--main { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; }
.route__path--standby { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: 0.6; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.route__label { position: absolute; left: 50%; transform: translateX(-50%); padding: 2px var(--s2); border-radius: 999px; background: var(--paper); font: 500 var(--f12)/1.4 var(--sans); white-space: nowrap; }
.route__label--main { top: calc(50% - 0.75em); color: var(--ink); border: 1px solid var(--coral); }
.route__label--standby { color: var(--text-3); border: 1px solid var(--line); }
.route__label--top { top: calc(10% - 0.75em); }
.route__label--bottom { top: calc(90% - 0.75em); }
.route__cap { justify-self: end; font: 400 var(--f12)/1 var(--sans); color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--text-3); flex: none; }
.dot--ok { background: var(--ok); }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }
.dot--idle { background: var(--line); }

/* 2 数据带（墨黑第二屏） */
.band { background: var(--ink); color: var(--text-d); padding: var(--s20) 0; }
.band__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s3); align-items: end; margin-bottom: var(--s8); }
.band h2 { font-size: var(--f36); line-height: 1.2; }
.band__head > :first-child, .section__head > :first-child { grid-column: 1 / span 5; }
.band__head > p, .section__head > p { grid-column: 6 / span 7; }
.band__head p { color: var(--text-d2); font-size: var(--f15); }
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-2); border-radius: var(--r-lg); }
.status { width: 100%; border-collapse: collapse; font-size: var(--f15); font-variant-numeric: tabular-nums; }
.status th { text-align: left; font: 500 var(--f12)/1.4 var(--sans); letter-spacing: 0.06em; color: var(--text-d2); padding: var(--s3) var(--s6); border-bottom: 1px solid var(--ink-2); white-space: nowrap; }
.status td { padding: var(--s4) var(--s6); border-bottom: 1px solid var(--ink-2); white-space: nowrap; }
.status tr:last-child td { border-bottom: 0; }
.status .num { text-align: right; }
.status .m { font-weight: 500; color: var(--text-d); }
.status .v { color: var(--text-d2); font-size: var(--f13); }
.state { display: inline-flex; align-items: center; gap: var(--s2); }
.state small { color: var(--text-d2); font-size: var(--f12); }
.band__stamp { margin-top: var(--s4); font-size: var(--f13); color: var(--text-d2); }
.band__more { display: inline-block; margin-top: var(--s6); color: var(--text-d); font-size: var(--f15); text-underline-offset: 4px; }

/* 通用 section */
.section { padding: var(--s20) 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--alt .fine { color: var(--text-2); }
.section__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s3); align-items: end; margin-bottom: var(--s8); }
.section h2, .section__title { font-size: var(--f36); line-height: 1.2; color: var(--ink); }
.section__title { margin-bottom: var(--s8); }
.section__head p { color: var(--text-2); font-size: var(--f15); }
.more { display: inline-block; margin-top: var(--s6); font-size: var(--f15); color: var(--ink); text-underline-offset: 4px; }

/* 3 模型卡 */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.mcard { display: grid; gap: var(--s3); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.mcard:hover { border-color: var(--ink); transform: translateY(-2px); }
.mcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.mcard__group { font: 500 var(--f12)/1 var(--sans); letter-spacing: 0.06em; color: var(--text-3); }
.mcard h3 { font-size: var(--f17); line-height: 1.3; color: var(--ink); }
.mcard p { font-size: var(--f13); color: var(--text-2); min-height: 2.6em; }
.mcard__price { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mcard__price span { display: grid; gap: 2px; font-size: var(--f12); color: var(--text-3); }
.mcard__price b { font-size: var(--f17); font-weight: 500; color: var(--ink); }

/* 4 三步 + 代码 */
.steps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s8); align-items: start; }
.steps__copy { display: grid; gap: var(--s6); grid-column: 1 / span 5; }
.steps .code { grid-column: 6 / span 7; }
.steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: s; }
.steplist li { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s3); counter-increment: s; }
.steplist li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 500 var(--f15)/1.6 var(--mono); color: var(--act); }
.steplist b { font-size: var(--f17); color: var(--ink); }
.steplist span { font-size: var(--f15); color: var(--text-2); }
.code { border-radius: var(--r-lg); background: var(--ink); color: var(--text-d); overflow: hidden; box-shadow: 0 32px 64px -40px color-mix(in srgb, var(--ink) 70%, transparent); }
.code__bar { display: flex; align-items: flex-end; gap: var(--s2); padding: var(--s2) var(--s2) 0; border-bottom: 1px solid var(--ink-2); }
.code__tabs { display: flex; gap: var(--s1); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code__tabs button { white-space: nowrap; flex: none; appearance: none; border: 0; background: none; color: var(--text-d2); font: 500 var(--f13)/1 var(--sans); padding: var(--s3) var(--s4); border-radius: var(--r-sm) var(--r-sm) 0 0; cursor: pointer; }
.code__tabs button[aria-selected="true"] { color: var(--text-d); background: var(--ink-2); }
.code__copy { flex: none; margin: 0 0 var(--s2) auto; align-self: center; appearance: none; border: 1px solid var(--ink-2); background: none; color: var(--text-d2); font: 500 var(--f12)/1 var(--sans); padding: var(--s2) var(--s3); border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; }
.code__copy:hover { color: var(--text-d); }
.code__body { margin: 0; padding: var(--s6); overflow-x: auto; font: 400 var(--f13)/1.75 var(--mono); }
.code__body .c, .code__body .k { color: var(--coral); }
.code__body .s { color: var(--tr-token-color-semantic-success-bg); }
.code__body .n { color: var(--tr-token-color-semantic-desktop-bg); }
.code__foot { padding: var(--s4) var(--s6); border-top: 1px solid var(--ink-2); font-size: var(--f13); color: var(--text-d2); }
.code__foot code { font-family: var(--mono); color: var(--text-d); }
.code__foot a { color: var(--text-d); }

/* 5 服务证据 */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.proof article { display: grid; align-content: start; gap: var(--s3); padding: var(--s8) var(--s6); border-top: 2px solid var(--ink); }
.proof h3 { font-size: var(--f22); line-height: 1.35; color: var(--ink); }
.proof p { font-size: var(--f15); color: var(--text-2); }
.proof a { font-size: var(--f13); color: var(--ink); text-underline-offset: 4px; }

/* 6 桌面端 */
.desk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s8); align-items: center; }
.desk__copy { display: grid; gap: var(--s6); grid-column: 1 / span 5; }
.desk__shot { grid-column: 6 / span 7; }
.desk__copy p:not(.eyebrow):not(.fine) { color: var(--text-2); font-size: var(--f17); }
.desk__shot { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; box-shadow: 0 40px 80px -48px color-mix(in srgb, var(--ink) 55%, transparent); }
.desk__bar { display: flex; align-items: center; gap: 6px; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); font-size: var(--f12); color: var(--text-3); }
.desk__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.desk__bar span { margin-left: var(--s2); }
.desk__body { display: grid; grid-template-columns: 160px 1fr; min-height: 260px; }
.desk__side { display: grid; align-content: start; gap: var(--s2); padding: var(--s4); border-right: 1px solid var(--line); background: var(--paper-2); font-size: var(--f13); color: var(--text-2); }
.desk__side b { color: var(--ink); margin-bottom: var(--s2); }
.desk__side .on { color: var(--ink); font-weight: 500; }
.desk__main { display: grid; align-content: start; gap: var(--s4); padding: var(--s6); font-size: var(--f15); }
.desk__main .u { justify-self: end; max-width: 80%; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--paper-2); }
.desk__main .a { color: var(--text-2); }
.desk__ok { display: flex; gap: var(--s2); }
.desk__ok span { padding: var(--s2) var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line); font-size: var(--f13); }
.desk__ok span:first-child { background: var(--ink); color: var(--text-d); border-color: var(--ink); }
.desk__note { padding: var(--s2) var(--s4); font-size: var(--f12); color: var(--text-3); border-top: 1px dashed var(--line); }

/* 7 FAQ + 收尾 */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s8); align-items: start; }
.faq .section__title { margin-bottom: 0; grid-column: 1 / span 5; }
.faq__list { grid-column: 6 / span 7; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s6) 0; font-size: var(--f17); font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--s6); color: var(--text-2); font-size: var(--f15); }
.closing { margin-top: var(--s20); padding: var(--s16) 0 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.closing h2 { font-size: var(--f48); color: var(--ink); }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: var(--s12) 0 var(--s8); font-size: var(--f13); color: var(--text-3); }
.foot__row { display: flex; justify-content: space-between; gap: var(--s8); flex-wrap: wrap; }
.foot__row p { margin-top: var(--s2); }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-content: start; }
.foot__oss { margin-top: var(--s6); }

/* 子页：页头 / 左右分栏 / 公司信息 / 总体状态 */
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.page-head { position: relative; border-bottom: 1px solid var(--line); }
.page-head__row { display: grid; gap: var(--s6); padding: var(--s20) 0 var(--s16); justify-items: start; }
.page-head h1 { font-size: clamp(var(--f36), 4.4vw, var(--f72)); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.page-head h1 .line { display: block; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s6); align-items: start; }
.split__head { grid-column: 1 / span 5; }
.split__body { grid-column: 6 / span 7; }
.big { font-size: var(--f22); line-height: 1.6; color: var(--ink); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--f13); color: var(--text-3); padding-top: 2px; }
.facts dd { margin: 0; font-size: var(--f15); color: var(--ink); }
.facts a { text-underline-offset: 4px; }
.band--page h1 { font-size: var(--f48); line-height: 1.15; }
.overall { display: inline-flex; align-items: center; gap: var(--s3); margin-bottom: var(--s6); padding: var(--s3) var(--s4); border: 1px solid var(--ink-2); border-radius: var(--r-md); font-size: var(--f17); font-weight: 500; }
.overall:empty { display: none; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 20px; vertical-align: middle; }
.spark i { display: block; width: 4px; border-radius: 1px; background: var(--ok); }
.spark i.w { background: var(--warn); }
.spark i.b { background: var(--bad); }
.spark i.e { background: var(--ink-2); height: 4px; }
.status .acc { display: block; font-size: var(--f12); color: var(--text-d2); }
.events { margin-top: var(--s16); }
.events h2 { font-size: var(--f22); margin-bottom: var(--s4); }
.events__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-2); }
.events__list li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--ink-2); font-size: var(--f15); }
.events__list time { color: var(--text-d2); font-variant-numeric: tabular-nums; }
.events__list .none { grid-template-columns: 1fr; color: var(--text-d2); }

/* 桌面端：真实截图 + 三步 */
.shot { margin: 0; display: grid; gap: var(--s2); }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 40px 80px -48px color-mix(in srgb, var(--ink) 55%, transparent); }
.shot figcaption { font-size: var(--f12); color: var(--text-3); }
.shot--hero { padding-bottom: var(--s16); }
.flow { display: grid; gap: var(--s16); }
.flow__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s6); align-items: center; }
.flow__copy { grid-column: 1 / span 4; display: grid; gap: var(--s3); }
.flow__row .shot { grid-column: 5 / span 8; }
.flow__n { font: 500 var(--f15)/1 var(--mono); color: var(--act); }
.flow__copy h3 { font-size: var(--f28); line-height: 1.25; color: var(--ink); }
.flow__copy p:not(.flow__n) { font-size: var(--f17); color: var(--text-2); }

/* 入场：按行揭示（中文不按字飞入）；正文与 CTA 不等动画 */
.js .reveal-lines .line { clip-path: inset(0 0 100% 0); transform: translateY(0.3em); transition: clip-path var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .reveal-lines.is-in .line { clip-path: inset(0 0 -0.2em 0); transform: none; }
.js .reveal-lines.is-in .line:nth-child(2) { transition-delay: 120ms; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero__row, .steps, .desk, .band__head, .section__head, .faq, .split, .flow__row { grid-template-columns: 1fr; }
  .flow__copy, .flow__row .shot, .split__head, .split__body, .hero__copy, .hero .route, .steps__copy, .steps .code, .desk__copy, .desk__shot, .faq .section__title, .faq__list,
  .band__head > :first-child, .band__head > p, .section__head > :first-child, .section__head > p { grid-column: 1 / -1; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: var(--tr-token-layout-mobile-gutter); }
  .nav__links { display: none; }
  .nav__cta { gap: var(--s2); }
  .nav__cta > .link-quiet { display: none; }
  .nav__menu { display: block; }
  .hero__row { padding: var(--s12) 0; gap: var(--s8); }
  .band, .section { padding: var(--s16) 0; }
  .band h2, .section h2, .section__title { font-size: var(--f28); }
  .models { grid-template-columns: 1fr; gap: var(--s2); }
  .mcard { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s4); padding: var(--s4); }
  .mcard__top, .mcard h3, .mcard p { grid-column: 1; }
  .mcard p { min-height: 0; }
  .mcard__price { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr; align-content: center; padding: 0 0 0 var(--s4); border-top: 0; border-left: 1px solid var(--line); text-align: right; }
  .mcard__price span:empty { display: none; }
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .status thead { display: none; }
  .status, .status tbody { display: block; }
  .status tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2) var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--ink-2); }
  .status td { display: block; padding: 0; border: 0; white-space: normal; }
  .status td.m { grid-column: 1 / span 2; }
  .status td:nth-child(2) { grid-column: 3; grid-row: 1; justify-self: end; }
  .status td.num, .status td:last-child { font-size: var(--f13); color: var(--text-d2); text-align: left; }
  .status td.num::before, .status td:last-child::before { content: attr(data-k); display: block; font-size: var(--f12); }
  .state { flex-wrap: wrap; justify-content: flex-end; }
  .desk__body { grid-template-columns: 1fr; }
  .desk__side { display: none; }
  .closing h2 { font-size: var(--f36); }
  .page-head__row { padding: var(--s12) 0; }
  .band--page h1 { font-size: var(--f36); }
  .big { font-size: var(--f17); }
  .facts div { grid-template-columns: 1fr; gap: var(--s1); }
  .route { padding: var(--s4); }
  .route__fork { height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal-lines .line { clip-path: none; transform: none; }
}

/* 10-home：产品站首页版式（自样稿 ai_home/ai.css 迁入）。只用 token。 */

/* 首屏示意：资料 → 七条核对 → 成果（静态） */
.flowfig { grid-column: 8 / span 5; margin: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: var(--s3); align-items: center; padding: var(--s6);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--ink) 40%, transparent); }
.flowfig__col, .flowfig__mid { display: grid; gap: var(--s2); align-content: center; }
.flowfig__mid { padding: var(--s4) var(--s3); border-radius: var(--r-md); background: var(--ink); color: var(--text-d); }
.flowfig__mid .route__tag { color: var(--text-d2); }
.file { display: block; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font: 500 var(--f12)/1.4 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flowfig__out .file { border-color: var(--ink); }
.file--w, .file--p { background: var(--paper-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); font-size: var(--f12); counter-reset: c; }
.checks li { display: flex; align-items: center; gap: var(--s2); counter-increment: c; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.flowfig .route__cap { grid-column: 1 / -1; }

/* 演示区（墨黑） */
.demo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s6); align-items: start; }
.demo__steps { grid-column: 1 / span 5; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: s; }
.demo__steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s3); counter-increment: s; }
.demo__steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 500 var(--f15)/1.6 var(--mono); color: var(--text-d2); }
.demo__steps b { font-size: var(--f17); color: var(--text-d); }
.demo__steps span { font-size: var(--f15); color: var(--text-d2); }
.demo__panel { grid-column: 6 / span 7; display: grid; gap: var(--s6); justify-items: start; padding: var(--s8); border: 1px solid var(--ink-2); border-radius: var(--r-lg); min-height: 260px; align-content: center; }
.demo__ph { color: var(--text-d2); font-size: var(--f15); }

/* 能力包：条目式 */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); border-top: 2px solid var(--ink); padding-top: var(--s6); }
.pack { display: grid; align-content: start; gap: var(--s3); }
.pack__tag { font: 500 var(--f12)/1 var(--sans); letter-spacing: 0.06em; color: var(--ok); }
.pack h3 { font-size: var(--f22); color: var(--ink); }
.pack p:not(.pack__tag) { font-size: var(--f15); color: var(--text-2); }
.pack a { font-size: var(--f13); color: var(--ink); text-underline-offset: 4px; }
.pack__shot { margin-top: var(--s12); }

/* 四条承诺：四列 */
.proof--4 { grid-template-columns: repeat(4, 1fr); }

/* 价格档 */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tiers div { display: grid; gap: var(--s1); padding: var(--s6); border-right: 1px solid var(--line); background: var(--paper); }
.tiers div:last-child { border-right: 0; }
.tiers span { font-size: var(--f13); color: var(--text-3); }
.tiers b { font-size: var(--f28); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tiers small { font-size: var(--f13); color: var(--text-2); }
.tiers__cta { margin-top: var(--s6); }
.steplist--wide { grid-column: 6 / span 7; }

@media (max-width: 1024px) {
  .flowfig, .demo__steps, .demo__panel, .steplist--wide { grid-column: 1 / -1; }
  .demo { grid-template-columns: 1fr; }
  .packs, .proof--4 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tiers div:nth-child(2) { border-right: 0; }
  .tiers div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .flowfig { grid-template-columns: 1fr; padding: var(--s4); }
  .demo__panel { padding: var(--s6); }
}

/* 样稿修正（10-09 首轮截图）：长标题第二行 11 字，首屏上限收一点防断成三行；成品截图不抢能力包 */
.hero h1 { font-size: clamp(var(--f36), 4.1vw, var(--f72)); }
.pack__shot { max-width: 66%; margin-left: auto; }
@media (max-width: 1024px) { .pack__shot { max-width: none; } }

/* 演示输出区（site.js demoBlock 写入 [data-demo-out]） */
.demo__out { width: 100%; display: grid; gap: var(--s3); }
.demo__panel .help a { color: var(--text-d); }

/* 成品展示：左说明右截图（10-09 首页实装：解决截图左侧大块留白） */
.showcase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s8); row-gap: var(--s6); align-items: center; margin-top: var(--s16); }
.showcase__copy { grid-column: 1 / span 4; display: grid; gap: var(--s3); }
.showcase__copy h3 { font-size: var(--f28); line-height: 1.25; color: var(--ink); }
.showcase__copy p:not(.eyebrow) { font-size: var(--f17); color: var(--text-2); }
.showcase__copy a { font-size: var(--f15); color: var(--ink); text-underline-offset: 4px; }
.showcase .shot { grid-column: 5 / span 8; }
@media (max-width: 1024px) { .showcase { grid-template-columns: 1fr; } .showcase__copy, .showcase .shot { grid-column: 1 / -1; } }

/* 手机：标题在「整理成」后断行；首屏示意图核对项收成一行，成果留在首屏 */
.m-br, .checks__sum { display: none; }
@media (max-width: 640px) {
  .m-br { display: inline; }
  .checks { display: none; }
  .checks__sum { display: block; font-size: var(--f13); font-weight: 500; color: var(--text-d); }
}


/* 20-dynamic：site.js 动态生成的组件在新视觉下的样式（结构与类名不动，只在 body[data-tt] 页面生效）。只用 token。 */

/* 顶栏（renderShell 新分支输出 .nav / .nav__row / #site-nav.nav__links / #account / [data-menu]） */
body[data-tt] #site-header { position: sticky; top: 0; z-index: 5; }
body[data-tt] .nav__burger { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }
body[data-tt] .nav__burger svg { width: 22px; height: 22px; margin: auto; }
body[data-tt] #account { display: inline-flex; align-items: center; }

/* 按钮（site.js 用 .button.primary/.secondary/.ghost/.small） */
body[data-tt] .button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-sm);
  font: 500 var(--f15)/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; background: none; color: var(--ink); transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
body[data-tt] .button.small { min-height: 36px; padding: 0 var(--s3); font-size: var(--f13); }
body[data-tt] .button.primary { background: var(--act); color: var(--paper); }
body[data-tt] .button.primary:hover { background: var(--act-h); }
body[data-tt] .button.secondary { border-color: var(--line); background: var(--paper); }
body[data-tt] .button.secondary:hover { border-color: var(--ink); }
body[data-tt] .button.ghost:hover { background: var(--paper-2); }
body[data-tt] .button:disabled { opacity: 0.55; cursor: progress; }
body[data-tt] .button .icon { width: 16px; height: 16px; }
body[data-tt] .button-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
body[data-tt] .link { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }

/* 账户菜单（loadMe） */
body[data-tt] .account-menu { position: relative; display: inline-flex; }
body[data-tt] .who .avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--text-d); font-size: var(--f12); }
body[data-tt] .who .help { color: var(--text-3); font-size: var(--f12); }
body[data-tt] .menu { position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: 200px; display: none; padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--ink) 40%, transparent); z-index: 6; }
body[data-tt] .menu[data-open="true"] { display: grid; }
body[data-tt] .menu a, body[data-tt] .menu .link { padding: var(--s3); border-radius: var(--r-sm); text-decoration: none; font-size: var(--f15); color: var(--ink); }
body[data-tt] .menu a:hover, body[data-tt] .menu .link:hover { background: var(--paper-2); }

/* 徽章与状态（statusBadge / 演示进度） */
body[data-tt] .badge { display: inline-flex; align-items: center; gap: var(--s1); padding: 2px var(--s2); border-radius: 999px; border: 1px solid var(--line);
  font: 500 var(--f12)/1.4 var(--sans); color: var(--text-2); background: var(--paper); white-space: nowrap; }
body[data-tt] .badge .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* 小字状态：文字用语义深色（纸白底对比 ≥4.5:1，线 A 10-09），点保留品牌状态色 */
body[data-tt] .badge.delivered, body[data-tt] .badge.pass, body[data-tt] .badge.done { color: var(--tr-token-color-semantic-success-text); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
body[data-tt] .badge.beta, body[data-tt] .badge.warn, body[data-tt] .badge.needs_ack { color: var(--tr-token-color-semantic-warning-text); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
body[data-tt] .badge.fail, body[data-tt] .badge.failed, body[data-tt] .badge.blocked { color: var(--tr-token-color-semantic-danger-text); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
body[data-tt] .badge.delivered .status-dot, body[data-tt] .badge.pass .status-dot, body[data-tt] .badge.done .status-dot { background: var(--ok); }
body[data-tt] .badge.beta .status-dot, body[data-tt] .badge.warn .status-dot, body[data-tt] .badge.needs_ack .status-dot { background: var(--warn); }
body[data-tt] .badge.fail .status-dot, body[data-tt] .badge.failed .status-dot, body[data-tt] .badge.blocked .status-dot { background: var(--bad); }
body[data-tt] .help { font-size: var(--f13); color: var(--text-3); }
body[data-tt] .muted { color: var(--text-2); }
body[data-tt] .notice { padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line); font-size: var(--f15); }
body[data-tt] .notice.error { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--tr-token-color-semantic-danger-text); background: var(--tr-token-color-semantic-danger-bg); }
body[data-tt] .empty { padding: var(--s8); color: var(--text-3); }

/* 能力包卡（packCard 输出 article.card）：条目式，顶线分隔，不做卡片堆 */
body[data-tt] #packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s8) var(--s8); border-top: 2px solid var(--ink); padding-top: var(--s6); }
body[data-tt] #packs-grid .card { display: grid; align-content: start; justify-items: start; gap: var(--s3); }
body[data-tt] #packs-grid .card h3 { font-size: var(--f22); line-height: 1.3; color: var(--ink); }
body[data-tt] #packs-grid .card p { font-size: var(--f15); }
body[data-tt] #packs-grid .card .help { font-size: var(--f13); }
body[data-tt] #packs-grid .card .button { min-height: 0; padding: 0; border: 0; background: none; font-size: var(--f13); text-decoration: underline; text-underline-offset: 4px; }
body[data-tt].packs-detail #packs-grid { grid-template-columns: repeat(2, 1fr); }

/* 演示输出（demoBlock；放在墨黑带里） */
body[data-tt] .band .demo-progress { display: grid; gap: var(--s3); }
body[data-tt] .band .card-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
body[data-tt] .band .badge { background: transparent; border-color: var(--ink-2); color: var(--text-d); }
/* 深色区：状态文字一律浅色（深绿小字对比度仅 2.91:1，Codex 10-09），状态色只放在点上 */
body[data-tt] .band .badge.pass, body[data-tt] .band .badge.done, body[data-tt] .band .badge.delivered,
body[data-tt] .band .badge.warn, body[data-tt] .band .badge.needs_ack,
body[data-tt] .band .badge.fail, body[data-tt] .band .badge.failed, body[data-tt] .band .badge.blocked { color: var(--text-d); }
body[data-tt] .band .badge.pass .status-dot, body[data-tt] .band .badge.done .status-dot, body[data-tt] .band .badge.delivered .status-dot { background: var(--ok); }
body[data-tt] .band .badge.warn .status-dot, body[data-tt] .band .badge.needs_ack .status-dot { background: var(--warn); }
body[data-tt] .band .badge.fail .status-dot, body[data-tt] .band .badge.failed .status-dot, body[data-tt] .band .badge.blocked .status-dot { background: var(--bad); }
body[data-tt] .band .help { color: var(--text-d2); }
body[data-tt] .progress-meter { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 999px; background: var(--ink-2); overflow: hidden; }
body[data-tt] .progress-meter::-webkit-progress-bar { background: var(--ink-2); border-radius: 999px; }
body[data-tt] .progress-meter::-webkit-progress-value { background: var(--coral); border-radius: 999px; }
body[data-tt] .progress-meter::-moz-progress-bar { background: var(--coral); }
body[data-tt] .demo-checks { display: grid; gap: var(--s2); margin-top: var(--s4); }
body[data-tt] .check-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--ink-2); }
body[data-tt] .check-marker { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: var(--f12); background: var(--ink-2); color: var(--text-d); }
body[data-tt] .check-marker.pass { background: var(--ok); }
body[data-tt] .check-marker.warn { background: var(--warn); }
body[data-tt] .check-marker.fail { background: var(--bad); }
body[data-tt] .check-topline { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
body[data-tt] .check-topline h3 { font-size: var(--f15); color: var(--text-d); }
body[data-tt] .band .narrative { margin-top: var(--s6); display: grid; gap: var(--s2); }
body[data-tt] .band .eyebrow { color: var(--text-d2); }
body[data-tt] .process-list { margin: 0; padding-left: var(--s6); display: grid; gap: var(--s2); font-size: var(--f15); }
body[data-tt] .demo-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); margin-top: var(--s6); }
body[data-tt] .demo-previews img { width: 100%; border-radius: var(--r-md); background: var(--paper); }
body[data-tt] .output-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
body[data-tt] .output-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border: 1px solid var(--ink-2); border-radius: var(--r-md); text-decoration: none; color: var(--text-d); }
body[data-tt] .output-card:hover { border-color: var(--text-d2); }
body[data-tt] .output-card .icon { width: 20px; height: 20px; }
body[data-tt] .output-card strong { display: block; font-size: var(--f15); }
body[data-tt] .file-meta { font-size: var(--f12); color: var(--text-d2); }
body[data-tt] .band .notice.error { color: var(--text-d); border-color: var(--bad); background: transparent; }   /* 深色区不吃浅底（线 A 10-09：浅字浅底 1.21:1） */

/* 下载卡（#dl-card，desktop()） */
body[data-tt] #dl-card { display: grid; justify-items: center; gap: var(--s3); }   /* v2：首屏内一行版本 + 三步，不再是框 */
body[data-tt] #dl-card h2 { font-size: var(--f28); }
body[data-tt] .report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); }
body[data-tt] .report-kpis div { display: grid; gap: var(--s1); padding: var(--s4); border-right: 1px solid var(--line); }
body[data-tt] .report-kpis div:last-child { border-right: 0; }
body[data-tt] .report-kpis strong { font-size: var(--f22); color: var(--ink); font-variant-numeric: tabular-nums; }
body[data-tt] .report-kpis span { font-size: var(--f13); color: var(--text-3); }
body[data-tt] #dl-card code { font-family: var(--mono); font-size: var(--f13); }

/* 提示条 */
body[data-tt] .toast { position: fixed; left: 50%; bottom: var(--s8); transform: translateX(-50%); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--ink); color: var(--text-d); font-size: var(--f15); z-index: 9; }
body[data-tt] [hidden] { display: none !important; }

@media (max-width: 1024px) {
  body[data-tt] #packs-grid, body[data-tt].packs-detail #packs-grid { grid-template-columns: 1fr; }
}
/* 641–1024：8 个链接 + 账户横排会挤（裁判线 B），汉堡菜单断点提到 1024 */
@media (max-width: 1024px) {
  body[data-tt] .nav__burger { display: grid; }
  body[data-tt] #site-nav { display: none; }
  body[data-tt] #site-nav[data-open="true"] { display: grid; position: absolute; left: var(--gut); right: var(--gut); top: 64px; padding: var(--s2); gap: 0;
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--ink) 40%, transparent); }
  body[data-tt] #site-nav[data-open="true"] a { padding: var(--s3); font-size: var(--f15); color: var(--ink); }
  body[data-tt] .who .help { display: none; }
}
@media (max-width: 640px) {
  body[data-tt] .who span:not(.avatar) { display: none; }
  body[data-tt] .report-kpis { grid-template-columns: 1fr; }
  body[data-tt] .report-kpis div { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* 30-pages：产品站第一批（能力包 / 经营复盘包 / 桌面端）页面专属的小块样式。只用 token。 */
.page-head .eyebrow .badge { margin-left: var(--s2); vertical-align: middle; }
.ask__cta { margin-top: var(--s6); }
.dl__lede { margin-top: var(--s4); font-size: var(--f15); }
.split__head .flow__n, .steps__copy .flow__n { margin-bottom: var(--s2); }
.section__title .flow__n { display: block; margin-bottom: var(--s2); }

/* 深色区里的编号与说明（复盘包页「样品」） */
.flow__n--d { display: block; margin-bottom: var(--s2); font: 500 var(--f15)/1 var(--mono); color: var(--text-d2); }
.demo__note { display: grid; gap: var(--s4); }
.big-d { font-size: var(--f17); font-weight: 500; color: var(--text-d); }
.facts--d { border-top-color: var(--ink-2); }
.facts--d div { border-bottom-color: var(--ink-2); }
.facts--d dt { color: var(--text-d2); }
.facts--d dd { color: var(--text-d); }
.band .help a, .band .fine a { color: var(--text-d); }

/* 价格页：四档并排（共享边框，不做卡片堆）；标准档墨黑顶线强调 */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--s3); padding: var(--s8) var(--s6); border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; }
.plan--hot { box-shadow: inset 0 3px 0 var(--ink); background: var(--paper-2); }
.plan__name { font-size: var(--f13); color: var(--text-3); font-weight: 500; }
.plan__price { font: 700 var(--f48)/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.plan__price span { font-size: var(--f22); margin-right: 2px; }
.plan__for { font-size: var(--f15); color: var(--text-2); }
.plan ul { margin: 0; padding-left: var(--s4); display: grid; gap: var(--s1); font-size: var(--f13); color: var(--text-2); }
.plan .btn { justify-self: start; }
.plans__note { margin-top: var(--s4); }

/* 浅色背景表格（平台站 .status 原为墨黑带设计） */
.table-wrap--light { border-color: var(--line); }
.status--light th { color: var(--text-3); border-bottom-color: var(--line); }
.status--light td { border-bottom-color: var(--line); color: var(--text); }
.status--light .m { color: var(--ink); }
.status--light .v { color: var(--text-2); }
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(2) { border-right: 0; }
  .plan:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .status--light tr { border-bottom-color: var(--line); }
  .status--light td.num, .status--light td:last-child { color: var(--text-2); }
}

/* 模型页：接口三栏 + site.js 生成的分组模型表（.product-section / .data-table，浅底） */
.eps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.ep { display: grid; align-content: start; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }
.ep__name { font-size: var(--f13); font-weight: 500; color: var(--text-3); }
.ep__url { font: 400 var(--f13)/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
body[data-tt] #models .product-section + .product-section { margin-top: var(--s16); }
body[data-tt] #models .section-head { margin-bottom: var(--s6); }
body[data-tt] #models .section-head h2 { font: 700 var(--f28)/1.25 var(--sans); color: var(--ink); }
body[data-tt] #models .section-head .help { margin-top: var(--s2); }
body[data-tt] #models .table-wrap { border-color: var(--line); background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--f13); font-variant-numeric: tabular-nums; }
.data-table th { text-align: left; font: 500 var(--f12)/1.4 var(--sans); letter-spacing: 0.04em; color: var(--text-3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { min-width: 15rem; }
.data-table td:first-child strong { display: block; font-size: var(--f15); font-weight: 500; color: var(--ink); }
.data-table td:first-child code { font-family: var(--mono); }
.data-table td:first-child .help:last-child { display: block; margin-top: var(--s1); }
.data-table .link { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; font-size: var(--f12); }
.data-table td[data-label="探测"] { white-space: nowrap; }
.data-table td[data-label="探测"] .help { display: block; }
.data-table td[data-label="接口"] .badge { margin: 0 var(--s1) var(--s1) 0; color: var(--text-2); }
@media (max-width: 1024px) {
  .eps { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 768px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table tr { padding: var(--s4); border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { position: relative; padding: var(--s1) 0 var(--s1) 7rem; border: 0; min-width: 0; white-space: normal; }
  .data-table td::before { content: attr(data-label); position: absolute; left: 0; top: var(--s1); font-size: var(--f12); line-height: 1.8; color: var(--text-3); }
  .data-table td[data-label="探测"] .help { display: inline; margin-left: var(--s2); }
  .data-table td:first-child { min-width: 0; padding: 0 0 var(--s3); }
  .data-table td:first-child::before { content: none; }
}

/* 文档页：左侧粘性目录 + 正文；代码块沿用 .code 墨黑样式 */
.docs { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s16); align-items: start; }
.docs__toc { position: sticky; top: calc(var(--s20) + var(--s4)); display: grid; gap: var(--s2); font-size: var(--f13); }
.docs__toc .eyebrow { margin-bottom: var(--s2); }
.docs__toc a { color: var(--text-2); text-decoration: none; padding: var(--s1) 0; }
.docs__toc a:hover { color: var(--ink); }
.docs__body { display: grid; gap: var(--s16); min-width: 0; max-width: 52rem; }
.doc-section { display: grid; gap: var(--s4); scroll-margin-top: calc(var(--s20) + var(--s4)); }
.doc-section h2 { font: 700 var(--f28)/1.25 var(--sans); color: var(--ink); }
.doc-section h2 .flow__n { display: block; margin-bottom: var(--s2); }
.doc-section h3 { font: 500 var(--f15)/1.4 var(--sans); color: var(--ink); margin-top: var(--s2); }
.doc-section p, .doc-list { font-size: var(--f15); line-height: 1.75; color: var(--text-2); }
.doc-section p code, .doc-list code, .doc-note code { font: 400 0.9em var(--mono); color: var(--ink); background: var(--paper-2); padding: 1px 5px; border-radius: var(--r-sm); }
.doc-list { margin: 0; padding-left: var(--s6); display: grid; gap: var(--s2); }
.doc-note { border-left: 3px solid var(--coral); padding: var(--s3) var(--s4); background: var(--paper-2); font-size: var(--f15); color: var(--text-2); }
.doc-section .code__body { white-space: pre; }
@media (max-width: 768px) {
  /* 手机上长地址不横向截断：代码块折行显示（复制按原文） */
  .doc-section .code__body { white-space: pre-wrap; overflow-wrap: anywhere; }
}
@media (max-width: 1024px) {
  .docs { grid-template-columns: 1fr; gap: var(--s8); }
  .docs__toc { position: static; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--s1) var(--s4); padding-bottom: var(--s6); border-bottom: 1px solid var(--line); }
  .docs__toc .eyebrow { grid-column: 1 / -1; }
  .docs__body { gap: var(--s12); }
}

/* 法律三页：正文条款原样，只换排版（窄栏、行高、条款编号） */
.legal { font-size: var(--f15); line-height: 1.85; color: var(--text-2); }
.legal > * { max-width: 46rem; }   /* 栏宽限在子元素上，容器仍是 .wrap 全宽，正文与标题左对齐 */
.legal > * + * { margin-top: var(--s4); }
.legal h2 { margin-top: var(--s12); font: 700 var(--f22)/1.4 var(--sans); color: var(--ink); }
.legal h3 { margin-top: var(--s8); font: 500 var(--f17)/1.4 var(--sans); color: var(--ink); }
.legal ol, .legal ul { padding-left: 1.4em; display: grid; gap: var(--s2); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--f13); }
.legal th, .legal td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text-3); font-weight: 500; }
.page-head .legal__meta { max-width: none; font-size: var(--f13); color: var(--text-3); }
.legal > :first-child { margin-top: 0; }

/* ===== 第三批：登录 / 密钥 / 用量 ===== */
.section--tight { padding: var(--s12) 0; }
.page-head--acct .page-head__row { padding: var(--s16) 0 var(--s12); }
.page-head--acct h1 { font-size: var(--f48); }

/* 登录：左墨黑品牌区 + 右表单 */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: calc(100vh - var(--s20)); }
.auth__stage { order: -1; display: flex; align-items: center; padding: var(--s20) var(--s16); }   /* DOM 里表单在前（键盘/读屏先到登录框），桌面视觉上品牌区排左 */
.auth__copy { display: grid; gap: var(--s6); max-width: 34rem; }
.auth__copy h1 { font: 700 var(--f48)/1.15 var(--sans); color: var(--text-d); }
.auth__copy h1 .line { display: block; }   /* 按行揭示：.line 必须是块，否则两行挤成一行被 clip-path 裁掉 */
.auth__lede { font-size: var(--f17); color: var(--text-d2); }
.auth__lede a { color: var(--text-d); }
.auth__flow { list-style: none; margin: var(--s4) 0 0; padding: var(--s6) 0 0; border-top: 1px solid var(--ink-2); display: grid; gap: var(--s4); font-size: var(--f15); color: var(--text-d); }
.auth__flow li { display: flex; align-items: baseline; gap: var(--s4); }
.auth__flow .flow__n--d { display: inline; margin: 0; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: var(--s20) var(--s8); }
.auth__form { width: min(100%, 26rem); display: grid; gap: var(--s6); }
.auth__form h2 { font: 700 var(--f28)/1.25 var(--sans); color: var(--ink); }
.auth__form .muted { margin-top: var(--s2); }
#login-form { display: grid; gap: var(--s4); }
body[data-tt] .auth__submit { width: 100%; min-height: 48px; }
.auth__back { font-size: var(--f13); color: var(--text-2); }

/* 表单控件 */
body[data-tt] .field { display: grid; gap: var(--s2); }
body[data-tt] .field label { font-size: var(--f13); font-weight: 500; color: var(--ink); }
body[data-tt] .field input { width: 100%; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font: 400 var(--f15)/1.4 var(--sans); }
body[data-tt] .field input:hover { border-color: var(--text-3); }
body[data-tt] .field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
body[data-tt] .password-row { display: flex; gap: var(--s2); }
body[data-tt] .password-row .button { min-height: 44px; flex: none; }
body[data-tt] .form-error { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--tr-token-color-semantic-danger-bg); color: var(--tr-token-color-semantic-danger-text); font-size: var(--f13); }
body[data-tt] .button.danger { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--paper); color: var(--tr-token-color-semantic-danger-text); }
body[data-tt] .button.danger:hover { background: var(--tr-token-color-semantic-danger-bg); }

/* 账户指标（共享边框一排，不做卡片堆） */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.metrics--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { display: grid; gap: var(--s2); align-content: start; padding: var(--s6); border-right: 1px solid var(--line); min-width: 0; }
.metric:last-child { border-right: 0; }
.metric__label { font-size: var(--f13); color: var(--text-3); }
.metric__value { font: 700 var(--f28)/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* 区块小标题 */
.acct-head { display: grid; gap: var(--s2); margin-bottom: var(--s6); }
.acct-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.acct-head h2 { font: 700 var(--f22)/1.3 var(--sans); color: var(--ink); }
.acct-link { font-size: var(--f13); color: var(--text-2); }

/* 创建密钥表单 + 明文结果 */
.key-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: var(--s4); align-items: end; }
#key-result { margin-top: var(--s6); display: grid; gap: var(--s3); }
body[data-tt] .secret { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4); border-radius: var(--r-md); background: var(--ink); color: var(--text-d); }
body[data-tt] .secret code { flex: 1; min-width: 0; font: 400 var(--f13)/1.5 var(--mono); overflow-wrap: anywhere; }

/* 统计窗口切换 */
body[data-tt] .filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
body[data-tt] .filters .button { border-color: var(--line); }
body[data-tt] .filters .button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* 每日用量折线（site.js 生成 SVG） */
.chart-box { margin: 0; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
body[data-tt] .usage-chart { display: block; width: 100%; height: auto; max-height: 22rem; }
body[data-tt] .usage-chart .chart-grid { stroke: var(--line); stroke-width: 1; }
body[data-tt] .usage-chart text { fill: var(--text-3); font: 400 var(--f12) var(--sans); }
body[data-tt] .usage-chart .chart-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
body[data-tt] .usage-chart .chart-area { fill: var(--paper-2); }
body[data-tt] .usage-chart circle { fill: var(--coral); }

/* 账户表格：非首列的补充说明换行显示（已用 / 到期） */
.data-table td:not(:first-child) .help { display: block; }
#keys td:first-child, #by-model td:first-child, #recent td:first-child { min-width: 12rem; }

@media (max-width: 1024px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__stage { padding: var(--s12) var(--gut); }
  .auth__copy h1 { font-size: var(--f36); }
  .auth__stage { order: 0; }   /* 窄屏回到 DOM 顺序：表单在前、品牌区在后 */
  .auth__panel { padding: var(--s12) var(--gut); justify-content: flex-start; }
  .metrics--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics--4 .metric:nth-child(2) { border-right: 0; }
  .metrics--4 .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .key-form { grid-template-columns: 1fr 1fr; }
  .key-form .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .page-head--acct h1 { font-size: var(--f36); }
  .metrics, .metrics--4 { grid-template-columns: 1fr; }
  .metric, .metrics--4 .metric:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .metric__value { font-size: var(--f22); }
  .key-form { grid-template-columns: 1fr; }
  .chart-box { padding: var(--s3); overflow-x: auto; }
  body[data-tt] .usage-chart { min-width: 600px; max-height: none; }   /* 手机上不把图压扁到刻度读不出，横向滑动看 */
  body[data-tt] .button.danger, body[data-tt] .filters .button, body[data-tt] .secret .button { min-height: 44px; }   /* 触控高度 */
}

/* ===== v2 桌面端下载页（少字多图）===== */
.dl-hero { padding: var(--s20) 0 var(--s16); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.dl-hero__row { display: grid; justify-items: center; text-align: center; gap: var(--s6); margin-bottom: var(--s16); }
.dl-hero__row h1 { font: 700 var(--f72)/1.08 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.dl-hero__row h1 .line { display: block; }
.dl-hero__row .lede { margin-inline: auto; }
.dl-hero__row .actions { justify-content: center; }
.dl-meta { display: grid; justify-items: center; gap: var(--s3); }
.dl-meta__line { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s4); font-size: var(--f13); color: var(--text-3); }
.dl-meta__line b { color: var(--ink); font-weight: 700; }
.dl-meta__line code { font-family: var(--mono); }
.dl-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: var(--f13); color: var(--text-2); }
.dl-steps li { counter-increment: s; }
.dl-steps li::before { content: counter(s) "  "; font-family: var(--mono); color: var(--coral); }
/* 窗口框：真实截图放在统一的浅色窗口里 */
.win { margin: 0 auto; max-width: 64rem; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 40px 80px -48px color-mix(in srgb, var(--ink) 55%, transparent); }
.win__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win img { display: block; width: 100%; height: auto; }
/* 三个要点：图标 + 一行 */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12); }
.feat { display: grid; gap: var(--s3); align-content: start; }
.feat__ic { width: 28px; height: 28px; fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font: 700 var(--f17)/1.4 var(--sans); color: var(--ink); }
.feat p { font-size: var(--f15); color: var(--text-2); }
.dl-fine { margin-top: var(--s12); text-align: center; }
@media (max-width: 1024px) { .dl-hero__row h1 { font-size: var(--f48); } .feats { gap: var(--s8); } }
@media (max-width: 640px) {
  .dl-hero { padding: var(--s12) 0; }
  .dl-hero__row { margin-bottom: var(--s8); }
  .dl-hero__row h1 { font-size: var(--f36); }
  .feats { grid-template-columns: 1fr; }
  .dl-steps { flex-direction: column; align-items: center; }
}

/* ===== v2 首页（少字多图）===== */
.hero--v2 .hero__row { align-items: center; }
.hero--v2 .hero__copy { grid-column: 1 / span 6; }
.hero-shot { grid-column: 7 / span 6; position: relative; margin: 0; padding: 0 0 var(--s12) var(--s8); }
.hero-shot__main { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--ink) 60%, transparent); }
.hero-shot__sub { position: absolute; left: 0; bottom: 0; width: 78%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--ink) 50%, transparent); }
.hero-shot figcaption { position: absolute; right: 0; bottom: var(--s2); font-size: var(--f12); color: var(--text-3); }
.demo__steps--short li { grid-template-columns: auto; }
.demo__steps--short li b { font-size: var(--f17); }
/* 三种用法：图在上、一行字在下，整卡可点 */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.use { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s2); padding: var(--s4) var(--s4) var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color: inherit; text-decoration: none; transition: border-color var(--t-fast, .15s), transform var(--t-fast, .15s); }
.use:hover { border-color: var(--ink); transform: translateY(-2px); }
.use h3 { margin-top: var(--s3); font: 700 var(--f17)/1.4 var(--sans); color: var(--ink); }
.use p { font-size: var(--f15); color: var(--text-2); }
.use__go { margin-top: var(--s2); font-size: var(--f13); font-weight: 500; color: var(--ink); }
.use__pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--paper-2); }
.use__pic img { width: 100%; height: 100%; object-fit: contain; }
.use__pic--files { padding: var(--s3); }
.use__pic--files img { height: auto; object-fit: contain; border-radius: var(--r-sm); box-shadow: 0 12px 24px -18px color-mix(in srgb, var(--ink) 50%, transparent); }
.use__pic--shot img { object-fit: cover; object-position: left top; }   /* 真实界面截图：铺满卡图区，从左上角取景 */
.use__pic--chat { align-content: center; justify-items: stretch; gap: var(--s2); padding: var(--s4); }
.bub { max-width: 82%; padding: var(--s2) var(--s3); border-radius: 12px; font-size: var(--f12); line-height: 1.5; background: var(--paper); color: var(--text); border: 1px solid var(--line); }
.bub--me { justify-self: end; background: var(--ink); color: var(--text-d); border-color: var(--ink); }
.use__tag { position: absolute; right: var(--s2); top: var(--s2); font-style: normal; font-size: var(--f12); color: var(--text-3); }
.uses__dev { margin-top: var(--s6); font-size: var(--f13); color: var(--text-3); }
.uses__dev a { margin-left: var(--s2); color: var(--text-2); }
/* 能力包紧凑行：首页只看名称与状态 */
.packs-row { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s12); align-items: start; }
.packs-row__head h2 { font: 700 var(--f28)/1.25 var(--sans); color: var(--ink); }
.packs-row__head p { margin-top: var(--s2); font-size: var(--f15); color: var(--text-2); }
body[data-tt] .packs-row #packs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); border: 0; }
body[data-tt] .packs-row #packs-grid .card { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); gap: var(--s2); }
body[data-tt] .packs-row #packs-grid .card p.muted, body[data-tt] .packs-row #packs-grid .card .help:not(.badge) { display: none; }
body[data-tt] .packs-row #packs-grid .card h3 { font-size: var(--f15); }
/* 承诺：图标 + 两行短语 */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s8); }
.promise { display: grid; gap: var(--s1); }
.promise svg { width: 26px; height: 26px; margin-bottom: var(--s2); fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise b { font-size: var(--f15); color: var(--ink); }
.promise span { font-size: var(--f13); color: var(--text-3); }
.promise a { color: var(--text-2); }
/* 价格条（墨黑一行） */
.price-band { background: var(--ink); color: var(--text-d); padding: var(--s16) 0; }
.price-band__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s6); }
.price-band h2 { font: 700 var(--f36)/1.2 var(--sans); color: var(--text-d); }
.price-band p { margin-top: var(--s2); font-size: var(--f15); color: var(--text-d2); }
.btn--on-dark { color: var(--text-d); border-color: var(--ink-2); background: transparent; }
.btn--on-dark:hover { border-color: var(--text-d2); }
@media (max-width: 1024px) {
  .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }   /* 平板仍三列，不出现 2+1 空位 */
  .packs-row { grid-template-columns: 1fr; gap: var(--s6); }
  body[data-tt] .packs-row #packs-grid { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr 1fr; }
  .hero-shot { grid-column: 1 / -1; width: 100%; max-width: 40rem; padding-left: 0; }
  .hero--v2 .hero__copy { grid-column: 1 / -1; }   /* 单列时文字区也占满，否则 span 6 会生成隐式列把图挤窄 */
}
@media (max-width: 760px) {
  .uses { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .promises { gap: var(--s6); }
  .price-band h2 { font-size: var(--f28); }
  /* 手机：叠图改上下排，图注回到文档流（Codex 10-09：图注压文件条） */
  .hero-shot { padding-bottom: 0; display: grid; gap: var(--s3); }
  .hero-shot__sub { position: static; width: 100%; }
  .hero-shot figcaption { position: static; justify-self: end; }
}

/* Public chat entry. Existing product tokens; no background model requests. */
body[data-page="guest"] { min-height: 100svh; display: flex; flex-direction: column; }
.guest-main { flex: 1; display: grid; align-items: center; padding: var(--s16) var(--s6); }
.guest-stage { width: min(100%, 760px); margin: auto; transform: translateY(-4vh); }
.guest-title { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-bottom: var(--s12); font-size: var(--f36); font-weight: 500; letter-spacing: -0.04em; }
.guest-title img { width: 48px; height: 48px; }
.guest-composer { border: 1px solid var(--line); border-radius: var(--tr-token-size-radius-xl); background: var(--paper); box-shadow: 0 8px 36px color-mix(in srgb, var(--ink) 5%, transparent); padding: var(--s4); }
.guest-compose-start { display: block; border: 0; background: transparent; font: inherit; font-size: var(--f17); color: var(--text-2); padding: var(--s2); min-height: 70px; text-align: left; width: 100%; cursor: text; }
.guest-toolbar { display: flex; align-items: center; gap: var(--s2); }
.guest-control { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 44px; min-height: 44px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--text-2); font: inherit; font-size: var(--f13); cursor: pointer; }
.guest-control:hover { background: var(--paper-2); color: var(--ink); }
.guest-control svg { width: 20px; height: 20px; }
.guest-model { margin-left: auto; padding: 0 var(--s3); }
.guest-send { background: var(--ink); color: var(--paper); border-radius: 50%; }
.guest-send:hover { background: var(--ink-2); color: var(--paper); }
.guest-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2) var(--s6); padding: var(--s4) var(--s6); color: var(--text-3); font-size: var(--f12); }
.guest-foot a { text-decoration: none; }
.guest-foot a:hover { text-decoration: underline; }
.guest-login { color: var(--text); background: var(--paper); width: min(460px, calc(100% - 32px)); max-height: calc(100svh - 32px); border: 1px solid var(--line); border-radius: var(--tr-token-size-radius-xl); padding: var(--s8); box-shadow: 0 30px 90px color-mix(in srgb, var(--ink) 20%, transparent); }
.guest-login::backdrop { background: color-mix(in srgb, var(--ink) 28%, transparent); backdrop-filter: blur(5px); }
.guest-login-open { overflow: hidden; }
.guest-login__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s6); }
.guest-login__head img { width: 36px; height: 36px; }
.guest-login__close { margin-right: calc(-1 * var(--s2)); }
.guest-login h2 { font-size: var(--f28); margin-bottom: var(--s2); }
.guest-login .field { display: grid; gap: var(--s2); margin-top: var(--s6); }
.guest-login label { font-size: var(--f15); }
.guest-login input { font: inherit; font-size: var(--f15); min-width: 0; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); padding: var(--s3); color: var(--text); }
.guest-login .password-row { display: flex; align-items: center; gap: var(--s2); }
.guest-login .password-row input { flex: 1; width: 0; }
.guest-login .password-row button { border: 0; background: transparent; padding: var(--s2); font: inherit; font-size: var(--f13); cursor: pointer; min-height: 44px; }
.guest-login .auth__submit { width: 100%; margin: var(--s6) 0; justify-content: center; }
.guest-login .help { font-size: var(--f13); color: var(--text-2); }
.guest-login .form-error { margin-top: var(--s4); color: var(--tr-token-color-semantic-danger-text); font-size: var(--f15); }
.guest-login .muted { font-size: var(--f15); color: var(--text-2); }
@media (max-width: 640px) {
  .guest-main { padding: var(--s8) var(--s4); }
  .guest-stage { transform: translateY(-6vh); }
  .guest-title { font-size: var(--f28); margin-bottom: var(--s8); }
  .guest-title img { width: 40px; height: 40px; }
  .guest-composer { padding: var(--s3); }
  .guest-compose-start { font-size: var(--f15); min-height: 76px; }
  .guest-login { padding: var(--s6); }
  body[data-page="guest"] .guest-login input { font-size: var(--f17); }
}
@media (max-height: 600px) {
  .guest-stage { transform: none; }
  .guest-main { padding-block: var(--s6); }
}

/* 扩展字包（构建生成）：法律长文独有的字，按 unicode-range 按需下载 */
@font-face { font-family: "TT Noto SC"; src: url("fonts/noto-sc-ext-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+4E88-4E89, U+4E8C, U+4E94, U+4ED4, U+4ED6, U+4F18, U+4FA7, U+4FB5, U+5012, U+507F, U+516B, U+516D, U+51B5, U+521D, U+534E, U+5356, U+5361, U+53CD, U+57DF, U+5B88, U+5BB3, U+5C06, U+5C3D, U+5C81, U+5DDD, U+5E74, U+5F71, U+5F8B, U+6062, U+6270, U+627F, U+6297, U+62AC, U+62C5, U+62E8, U+635F, U+6458, U+64AD, U+653B, U+65E9, U+6613, U+671B, U+6839, U+6846, U+6B22, U+76CA, U+76D1, U+79DF, U+7A0E, U+7EA0, U+7EC3, U+7EC8, U+8096, U+8BA2, U+8BBC, U+8BC9, U+8D22-8D23, U+8D54, U+8EAB, U+8F96, U+8FDD, U+8FF0, U+9020, U+9075, U+907F, U+94F6, U+9662, U+96C6; }
@font-face { font-family: "TT Noto SC"; src: url("fonts/noto-sc-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+4E88-4E89, U+4E8C, U+4E94, U+4ED4, U+4ED6, U+4F18, U+4FA7, U+4FB5, U+5012, U+507F, U+516B, U+516D, U+51B5, U+521D, U+534E, U+5356, U+5361, U+53CD, U+57DF, U+5B88, U+5BB3, U+5C06, U+5C3D, U+5C81, U+5DDD, U+5E74, U+5F71, U+5F8B, U+6062, U+6270, U+627F, U+6297, U+62AC, U+62C5, U+62E8, U+635F, U+6458, U+64AD, U+653B, U+65E9, U+6613, U+671B, U+6839, U+6846, U+6B22, U+76CA, U+76D1, U+79DF, U+7A0E, U+7EA0, U+7EC3, U+7EC8, U+8096, U+8BA2, U+8BBC, U+8BC9, U+8D22-8D23, U+8D54, U+8EAB, U+8F96, U+8FDD, U+8FF0, U+9020, U+9075, U+907F, U+94F6, U+9662, U+96C6; }
