/* ============================================================================
   ERPLite 官网样式
   ----------------------------------------------------------------------------
   一条规矩：颜色只出现在变量里。深浅两套主题各定义一次，页面与组件一律引用
   var(--x)，不做 `[data-theme] .某组件` 这样的二次覆盖——那种写法会在主题切到
   第三套时全盘失效。唯一例外是强调色（六个模块一色），它在浅色下需要压深一档，
   所以在浅色块里重新赋值一次变量，而不是改组件规则。

   版式：wrap 1180 定宽；长文靠段落自身的 max-width 收行长，而不是把容器改窄——容器一窄，
   页头（1180）与正文（880）的左边界就对不上，看起来像两栏错位。section 纵向节奏 88px，移动端降到 64px。
   ============================================================================ */

/* ── 变量 ───────────────────────────────────────────────────────────────── */
:root {
    --wrap: 1180px;
    --radius: 14px;
    --radius-lg: 20px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b111f;
    --bg-soft: #0d1524;
    --surface: #111a2c;
    --surface-2: #16203a;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .17);
    --text: #e9eefb;
    --text-2: #a6b3cc;
    --text-3: #71809d;
    --brand: #5b7cff;
    --brand-2: #3d63f0;
    --brand-soft: rgba(91, 124, 255, .15);
    --brand-line: rgba(91, 124, 255, .38);
    --ok: #3ddc97;
    --warn: #ffb454;
    --bad: #ff7a7a;
    --code-bg: #070c16;
    --code-line: rgba(255, 255, 255, .08);
    --code-fg: #cfd8ec;
    /* 提示气泡：两套主题都走深底浅字，但深色主题下必须比页面底色亮一档——
       同色的话气泡只剩一圈描边在飘，三角彻底看不见。 */
    --tip-bg: #202c46;
    --tip-line: rgba(255, 255, 255, .22);
    --tip-fg: #eef4ff;
    --nav-bg: rgba(11, 17, 31, .78);
    --glow: rgba(61, 99, 240, .28);
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --hero-grid: rgba(255, 255, 255, .035);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fc;
    --bg-soft: #eef2fa;
    --surface: #ffffff;
    --surface-2: #f4f7fe;
    --line: rgba(16, 30, 60, .1);
    --line-strong: rgba(16, 30, 60, .2);
    --text: #13203a;
    --text-2: #4d5c78;
    --text-3: #75839c;
    --brand: #2f5bff;
    --brand-2: #1f45d9;
    --brand-soft: rgba(47, 91, 255, .09);
    --brand-line: rgba(47, 91, 255, .3);
    --ok: #0f9d62;
    --warn: #b26a00;
    --bad: #d43c3c;
    /* 深色代码面板在浅色主题里也保持深底（与正文形成"这是命令，不是正文"的分界），
       因此面板前景色不能跟着 --text 走，单独一条变量。 */
    --code-bg: #0d1728;
    --code-line: rgba(255, 255, 255, .1);
    --code-fg: #dbe4f6;
    /* 浅色主题下气泡本来就是深底，与白底对比足够，不必再提亮。 */
    --tip-bg: #101a2c;
    --tip-line: rgba(255, 255, 255, .16);
    --tip-fg: #eef4ff;
    --nav-bg: rgba(245, 247, 252, .82);
    --glow: rgba(47, 91, 255, .16);
    --shadow: 0 16px 40px rgba(20, 40, 90, .1);
    --hero-grid: rgba(16, 30, 60, .05);
}

/* 六个模块的强调色。浅色下压深一档：同一串 #5b9dff 在白底上会糊成一片浅蓝。 */
.accent-blue   { --accent: #5b9dff; }
.accent-teal   { --accent: #2fd6c3; }
.accent-violet { --accent: #a888ff; }
.accent-amber  { --accent: #ffb454; }
.accent-pink   { --accent: #ff8fb1; }
.accent-cyan   { --accent: #4fd0ff; }

:root[data-theme="light"] .accent-blue   { --accent: #2f6fe0; }
:root[data-theme="light"] .accent-teal   { --accent: #0f9a8b; }
:root[data-theme="light"] .accent-violet { --accent: #7048d8; }
:root[data-theme="light"] .accent-amber  { --accent: #b8760c; }
:root[data-theme="light"] .accent-pink   { --accent: #d64b7a; }
:root[data-theme="light"] .accent-cyan   { --accent: #0b8fb8; }

/* ── 基础 ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* 横滚在营销站上永远是错的：出现它的那一刻，右半边内容已经被裁掉了，
       用户看到的是"字被切了"而不是"可以拖动"。clip 不像 hidden 那样建立滚动容器，
       所以 sticky 顶栏照常工作。根因见下面的 min-width 补丁。 */
    overflow-x: clip;
}

/* ── 防止长内容撑破布局 ───────────────────────────────────────────────────
   grid / flex 子项的 min-width 默认是 auto（= 按内容撑开），一个 white-space:pre
   的代码块就能把整列顶宽，连带整个 body 溢出，最后表现为「全站右半边被裁」。
   给所有可能装代码 / 长串的容器显式 min-width:0，让它们内部自己横向滚动。 */
.hero-grid > *,
.stack-grid > *,
.two-col > *,
.module-grid > *,
.scene-grid > *,
.pillar > *,
.feature-block > *,
.step-card > *,
.batch-item > *,
.check-list li > *,
.foot-grid > *,
.term-card,
.tree-card,
.code-inline,
.flow-card,
.req-grid > *,
.db-grid > *,
.coop-grid > *,
.surround-grid > *,
.ai-flow > *,
.ai-sample-grid > *,
.ai-lane-grid > *,
.ai-guard > *,
.ai-mini-grid > * {
    min-width: 0;
}

h1, h2, h3, h4 {
    margin: 0 0 .55em;
    line-height: 1.28;
    letter-spacing: -.015em;
    font-weight: 680;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 740; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-2); }

code {
    font-family: var(--mono);
    font-size: .88em;
    padding: .12em .4em;
    border-radius: 5px;
    background: var(--brand-soft);
    color: var(--text);
}

pre { margin: 0; }
/* code 自带 color（见上一条），所以 pre 上设的正文色永远传不到里面的 code——
   深色代码面板里于是留着一段 --text 色的字：暗底 + 暗字，浅色主题下整块代码
   「消失」。这里必须显式交还继承权，面板的 color 才能落到字上。 */
pre code { padding: 0; background: none; color: inherit; }

::selection { background: var(--brand-soft); color: var(--text); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
/* narrow 只是语义标记：宽度与 wrap 一致，保证页头与正文左边界对齐。
   真正控制行长的是 .sec-lede / .sec-head p 的 max-width。 */
.wrap.narrow { max-width: var(--wrap); }

.ico { flex: 0 0 auto; vertical-align: -.18em; }
.ico-sm { width: 15px; height: 15px; }
.ico-xs { width: 13px; height: 13px; }
.ico.ok { color: var(--ok); }
.ico.bad { color: var(--bad); }

/* ── 滚动进度条 ─────────────────────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--brand-2), var(--brand), #7fd0ff);
    z-index: 90;
    transition: width .1s linear;
}

/* ── 导航 ───────────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--nav-bg);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { border-radius: 8px; display: block; }
.brand-name { font-size: 1.5rem; font-weight: 740; letter-spacing: -.02em; }
.brand-lite { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--text-2);
    font-size: .94rem;
    font-weight: 500;
    transition: color .16s var(--ease), background .16s var(--ease);
}

.nav-links a:hover { color: var(--text); background: var(--brand-soft); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 13px; right: 13px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: all .16s var(--ease);
}

.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--brand-soft); }

/* 图标旁的文字标签默认不出现——桌面靠 data-tip 气泡说明，窄屏才放出文字，
   见 820 断点。写死 display:none 而不是条件渲染，是因为窄屏下还要用。 */
.ico-label { display: none; }

.ico-theme-light { display: none; }
:root[data-theme="light"] .ico-theme-dark { display: none; }
:root[data-theme="light"] .ico-theme-light { display: block; }

.nav-burger { display: none; }

/* ── 提示气泡（data-tip） ─────────────────────────────────────────────────
   纯 CSS：::after 出文字、::before 出小三角，不挂 JS。理由是这个站是静态 SSR，
   提示语属于内容的一部分——脚本被拦、被 CSP 干掉时，顶栏两个图标就不该变成哑巴。
   顶栏图标、回到顶部、技术栈芯片共用这一套，位置差异只在使用处覆盖 top/bottom。
   宽度用 max-content + max-width 兜底：短提示一行，长提示（技术栈那句列了六种数据库）
   宁可换行，也不横向顶出滚动条。

   **隐藏必须用 display:none，不能只靠 opacity:0**：绝对定位的气泡即使是透明的也参与
   scrollWidth 计算，页面靠右的芯片会把整页顶出 20 多像素的横向溢出（实测 520 宽 +22px）。
   淡入交给 animation——display 不支持 transition。 */
[data-tip] { position: relative; }

[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 120;
    display: none;
    width: max-content;
    max-width: min(240px, 62vw);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--tip-line);
    background: var(--tip-bg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    color: var(--tip-fg);
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .01em;
    text-align: center;
    white-space: normal;
    translate: -50% 0;
    pointer-events: none;
}

/* 小三角用旋转方块：比 border 三角更容易和气泡的描边接上，不会露一道缝。 */
[data-tip]::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    z-index: 121;
    display: none;
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--tip-line);
    border-left: 1px solid var(--tip-line);
    background: var(--tip-bg);
    transform: rotate(45deg);
    translate: -50% 0;
    pointer-events: none;
}

/* 延迟 0.22s 出现：只是鼠标横穿顶栏去点「在线演示」时，一闪而过的气泡反而是干扰。 */
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
    display: block;
    animation: tip-in .16s var(--ease) .22s both;
}

[data-tip]:hover::before,
[data-tip]:focus-visible::before {
    display: block;
    animation: tip-in .16s var(--ease) .22s both;
}

@keyframes tip-in {
    from { opacity: 0; translate: -50% -4px; }
    to { opacity: 1; translate: -50% 0; }
}

/* 回到顶部在右下角，气泡朝下会掉出视口——这一处翻到上方，三角的方向跟着翻。 */
.fab-top[data-tip]::after { top: auto; bottom: calc(100% + 8px); }
.fab-top[data-tip]::before {
    top: auto;
    bottom: calc(100% + 3px);
    border-top: none;
    border-left: none;
    border-right: 1px solid var(--tip-line);
    border-bottom: 1px solid var(--tip-line);
}
.fab-top[data-tip]:hover::after,
.fab-top[data-tip]:focus-visible::after,
.fab-top[data-tip]:hover::before,
.fab-top[data-tip]:focus-visible::before {
    animation-name: tip-in-up;
}

@keyframes tip-in-up {
    from { opacity: 0; translate: -50% 4px; }
    to { opacity: 1; translate: -50% 0; }
}

/* 真实触摸设备没有 hover：气泡永远不会出现，留着只会让点击后残留一块提示，
   所以这一档直接关掉，图标含义交给按钮旁的文字标签（见下方 820 断点）。 */
@media (hover: none) {
    [data-tip]::after,
    [data-tip]::before { display: none !important; }
}

/* ── 按钮 ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s var(--ease), background .16s var(--ease),
                border-color .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease);
}

.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .89rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: 12px; }

.btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-ghost:hover { color: var(--text); background: var(--brand-soft); border-color: var(--brand-line); }

/* ── 小标签 ─────────────────────────────────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid var(--line);
    color: var(--text-2);
    background: var(--surface-2);
    white-space: nowrap;
}

.pill-live { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .76rem;
    color: var(--text-2);
    border: 1px solid var(--line);
    background: var(--surface-2);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 76px 0 0;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
}

.aurora.a1 { width: 620px; height: 620px; top: -280px; left: -160px; background: radial-gradient(circle, rgba(47, 91, 255, .55), transparent 68%); }
.aurora.a2 { width: 520px; height: 520px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(79, 208, 255, .35), transparent 68%); }
.aurora.a3 { width: 460px; height: 460px; top: 240px; right: 22%; background: radial-gradient(circle, rgba(168, 136, 255, .26), transparent 70%); }

:root[data-theme="light"] .aurora { opacity: .5; }

.grid-mask {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px),
                      linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    padding-bottom: 64px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .86rem;
    color: var(--text-3);
    margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .line { display: block; }

.grad {
    background: linear-gradient(100deg, var(--brand) 8%, #7fd0ff 52%, #a888ff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: 1.06rem;
    color: var(--text-2);
    max-width: 40em;
    margin-bottom: 28px;
}

.lede b { color: var(--text); font-weight: 620; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: .84rem;
    color: var(--text-3);
}

.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ico { color: var(--ok); }

/* 首屏那一行开源地址：做成胶囊而不是按钮。它是「能不能自己改」的答案，
   但主次仍要排在「直接进在线演示」之后——两个主按钮并列，读者反而不知道先点哪个。 */
.hero-src {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    margin-top: 20px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .82rem;
    color: var(--text-3);
    transition: all .16s var(--ease);
}

.hero-src:hover { color: var(--text); border-color: var(--brand-line); background: var(--brand-soft); }
.hero-src .ico { color: var(--brand); }
.hero-src b { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--text-2); }
.hero-src:hover b { color: var(--text); }
.hero-src em {
    font-style: normal;
    font-size: .71rem;
    letter-spacing: .02em;
    padding-left: 9px;
    border-left: 1px solid var(--line);
    color: var(--text-3);
}

/* 右侧业务链路卡：一张发单从审核走到凭证 */
.hero-visual { position: relative; }

.flow-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.flow-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: .86rem;
    background: var(--surface-2);
}

.flow-head b { font-weight: 600; color: var(--text); }
.flow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(61, 220, 151, .14);
}
.flow-amt { margin-left: auto; font-family: var(--mono); font-size: .84rem; color: var(--text-2); }

.flow-steps { list-style: none; margin: 0; padding: 16px 18px 6px; }

.flow-steps li {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    position: relative;
}

.flow-steps li::before {
    content: "";
    position: absolute;
    left: 5px; top: 16px; bottom: 0;
    width: 1px;
    background: var(--line);
}

.flow-steps li:last-child::before { display: none; }

.flow-steps i {
    flex: 0 0 auto;
    width: 11px; height: 11px;
    margin-top: 6px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    background: var(--bg);
    z-index: 1;
}

.flow-steps li.done i { border-color: var(--ok); background: var(--ok); }
.flow-steps li.live i {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--brand-soft); }
    50% { box-shadow: 0 0 0 7px transparent; }
}

.flow-steps b { display: block; font-size: .9rem; font-weight: 600; }
.flow-steps em { display: block; font-style: normal; font-size: .79rem; color: var(--text-3); line-height: 1.5; }

.flow-voucher {
    margin: 0 12px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--code-bg);
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: .78rem;
}

.fv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7f8dab;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, .12);
}

.fv-tag { color: var(--ok); }

.fv-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    color: var(--code-fg);
}

.fv-row b { font-weight: 500; }
.fv-row.muted { color: #7f8dab; }

/* 数据条 */
.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 8px;
}

.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 1.75rem; font-weight: 720; letter-spacing: -.03em; color: var(--text); }
.stat span { display: block; font-size: .86rem; color: var(--text-2); margin-top: 2px; }
.stat em { display: block; font-style: normal; font-size: .76rem; color: var(--text-3); margin-top: 6px; line-height: 1.5; }

/* ── 区块骨架 ───────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 720px; margin-bottom: 42px; }
.sec-head p { color: var(--text-2); font-size: 1rem; }

.sec-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 640;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.sec-lede { font-size: 1.04rem; color: var(--text-2); max-width: 46em; }

.sec-more { margin-top: 32px; }

/* 页面头（非首页） */
.page-head {
    padding: 72px 0 40px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 340px at 12% -18%, var(--glow), transparent 70%),
        var(--bg-soft);
}

.page-head h1 { margin-bottom: 18px; }
.page-head .sec-eyebrow { margin-bottom: 14px; }

.anchor-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.anchor-chip {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    font-size: .86rem;
    transition: all .16s var(--ease);
}

.anchor-chip:hover { color: var(--text); border-color: var(--brand-line); background: var(--brand-soft); }

/* ── 模块卡片 ───────────────────────────────────────────────────────────── */
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 同一行的卡片拉到同一高度：首页每块只放三条短句，行高一致才扫得完；
       不设 1fr 时，文字少的那张会比邻居矮一截，六张卡片像没对齐的砖。 */
    grid-auto-rows: 1fr;
    gap: 18px;
}

.module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px 22px 20px;
    overflow: hidden;
    transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.module-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent, var(--brand));
    opacity: .8;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent, var(--brand)) 42%, transparent);
    box-shadow: var(--shadow);
}

.module-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }

/* 图标块用 flex 而非 inline-flex：inline 级元素会参与行框的基线对齐，
   在多行容器里会把图标往下推半行，和旁边的文字对不齐。 */
.module-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--accent, var(--brand));
    background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, var(--brand)) 28%, transparent);
}

.module-head h3 { margin-bottom: 2px; font-size: 1.05rem; }
.module-head p { font-size: .82rem; color: var(--text-3); margin: 0; line-height: 1.5; }

.tick-list { list-style: none; margin: 0; padding: 0; }

.tick-list li {
    position: relative;
    padding-left: 16px;
    font-size: .86rem;
    color: var(--text-2);
    line-height: 1.66;
    margin-bottom: 7px;
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .62em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent, var(--brand));
    opacity: .75;
}

.tick-list li:last-child { margin-bottom: 0; }

/* ── 三条主线 ───────────────────────────────────────────────────────────── */
.pillar-list { display: flex; flex-direction: column; gap: 18px; }

.pillar {
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 42px;
    align-items: start;
    padding: 30px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.pillar.flip .pillar-copy { order: 2; }
.pillar.flip .pillar-points { order: 1; }

.pillar-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    margin-bottom: 14px;
}

.pillar-copy h3 { font-size: 1.24rem; margin-bottom: 10px; }
.pillar-copy p { color: var(--text-2); font-size: .93rem; }

.pillar-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.pillar-points li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--text-2);
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.pillar-points .ico { color: var(--ok); margin-top: 5px; }

/* ── 手机端场景 ─────────────────────────────────────────────────────────── */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene-grid.six { grid-template-columns: repeat(3, 1fr); }

.scene-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
    transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.scene-card:hover { transform: translateY(-3px); border-color: var(--brand-line); }

.scene-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    margin-bottom: 12px;
}

.scene-card h3 { font-size: 1rem; margin-bottom: 2px; }
.scene-where { display: block; font-style: normal; font-size: .78rem; color: var(--text-3); margin-bottom: 14px; }

.scene-steps { margin: 0; padding-left: 18px; font-size: .85rem; color: var(--text-2); line-height: 1.8; }
.scene-steps li::marker { color: var(--brand); font-weight: 700; }

/* ── 技术栈与终端 ───────────────────────────────────────────────────────── */
.stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.stack-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

.stack-chip {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    font-size: .84rem;
    font-family: var(--mono);
    cursor: default;
    position: relative;
    transition: all .16s var(--ease);
}

.stack-chip:hover { color: var(--text); border-color: var(--brand-line); background: var(--brand-soft); }

.term-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--code-bg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.term-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .03);
}

.code-dots { display: inline-flex; gap: 5px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a4560; display: block; }
.code-dots i:nth-child(1) { background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }

.term-title { font-family: var(--mono); font-size: .78rem; color: #7f8dab; }

.term-body {
    margin: 0;
    padding: 18px 18px 20px;
    font-family: var(--mono);
    font-size: .82rem;
    line-height: 1.9;
    color: var(--code-fg);
    overflow-x: auto;
}

.c-dim { color: #6c7a99; }
.c-prompt { color: #7fd0ff; }
.c-ok { color: #3ddc97; }
.c-blue { color: #7fa4ff; }

.copy-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: #a6b3cc;
    font: inherit;
    font-size: .74rem;
    cursor: pointer;
    transition: all .16s var(--ease);
}

.copy-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
.copy-btn.done { color: var(--ok); border-color: rgba(61, 220, 151, .4); }

/* ── 收尾 CTA ───────────────────────────────────────────────────────────── */
.cta-section { padding-top: 0; }

.cta-box {
    position: relative;
    text-align: center;
    padding: 56px 32px;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 240px at 50% -30%, var(--glow), transparent 70%),
        var(--surface);
    overflow: hidden;
}

.cta-box.compact { padding: 44px 28px; }
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { color: var(--text-2); max-width: 44em; margin: 0 auto 24px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-actions.center { margin-top: 34px; }

.cta-note { display: block; margin-top: 18px; font-size: .8rem; color: var(--text-3); }

/* ── 功能总览页 ─────────────────────────────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 14px; }

.feature-block {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    /* 顶部对齐：默认的 stretch 会让左栏图标随行高下沉，与右侧第一条要点错开半行，
       扫一眼像「标题没对齐」——这类错位最容易被当成排版事故。 */
    align-items: start;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    scroll-margin-top: 96px;
    position: relative;
    overflow: hidden;
}

.feature-block::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent, var(--brand));
}

.feature-side h2 { font-size: 1.3rem; margin: 14px 0 6px; }
.feature-side p { font-size: .86rem; color: var(--text-3); margin: 0; }

.feature-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }

.feature-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--text-2);
}

.feature-points .ico { color: var(--ok); margin-top: 5px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col.wide { grid-template-columns: 1.15fr .85fr; }

.back-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px;
}

.back-card h3 { font-size: 1.04rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.back-card > p { font-size: .89rem; color: var(--text-2); margin-bottom: 14px; }

.cross-list { list-style: none; margin: 0; padding: 0; }

.cross-list li {
    position: relative;
    padding-left: 22px;
    font-size: .87rem;
    color: var(--text-2);
    margin-bottom: 8px;
    line-height: 1.65;
}

.cross-list li::before {
    content: "×";
    position: absolute;
    left: 4px; top: 0;
    color: var(--bad);
    font-weight: 700;
}

.surround-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.surround-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px;
}

.surround-item b {
    display: block;
    font-size: 2rem;
    font-weight: 730;
    letter-spacing: -.04em;
    color: var(--brand);
    line-height: 1.1;
    margin-bottom: 8px;
}

.surround-item h4 { font-size: .96rem; margin-bottom: 6px; }
.surround-item p { font-size: .82rem; color: var(--text-3); margin: 0; line-height: 1.6; }

.note-strip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
    background: var(--brand-soft);
    font-size: .87rem;
    color: var(--text-2);
}

.note-strip .ico { color: var(--brand); margin-top: 3px; }
.note-strip.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.note-strip.warn .ico { color: var(--warn); }
.note-strip b { color: var(--text); }

/* ── 手机端页 ───────────────────────────────────────────────────────────── */
.batch-list { display: flex; flex-direction: column; gap: 10px; }

.batch-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.batch-no {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand);
}

.batch-item h3 { font-size: 1rem; margin-bottom: 4px; }
.batch-item p { font-size: .86rem; color: var(--text-2); margin: 0; }
.batch-tag { font-size: .78rem; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.def-list { margin: 0; display: flex; flex-direction: column; gap: 0; }

.def-list > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.def-list > div:first-child { border-top: 1px solid var(--line); }
.def-list dt { font-weight: 620; font-size: .94rem; }
.def-list dd { margin: 0; font-size: .89rem; color: var(--text-2); }

/* ── 部署页 ─────────────────────────────────────────────────────────────── */
.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.req-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px;
}

.req-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    margin-bottom: 12px;
}

.req-card h4 { font-size: .98rem; margin-bottom: 6px; }
.req-card p { font-size: .82rem; color: var(--text-3); margin: 0; }

.step-list { display: flex; flex-direction: column; gap: 12px; }

.step-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.step-no { font-family: var(--mono); font-size: 1.2rem; font-weight: 600; color: var(--brand); }
.step-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-body > p { font-size: .88rem; color: var(--text-2); }

.code-inline {
    position: relative;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: var(--code-bg);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
}

.code-inline pre { flex: 1 1 auto; overflow-x: auto; font-family: var(--mono); font-size: .82rem; line-height: 1.75; color: var(--code-fg); }
.code-inline .copy-btn { margin-top: -2px; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.check-list li {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--warn);
    border-radius: 10px;
    background: var(--surface);
}

.check-list b { font-size: .93rem; }
.check-list span { font-size: .86rem; color: var(--text-2); }

.tree-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--code-bg);
    padding: 20px 22px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.tree {
    font-family: var(--mono);
    font-size: .8rem;
    line-height: 1.95;
    color: var(--code-fg);
    white-space: pre;
}

/* 数据库档位：紧跟在「环境要求」后面，用一道细线断开上下两块白区。 */
.db-section { border-top: 1px solid var(--line); padding-top: 72px; }

/* 两列而不是三列：卡片要装一整行注册代码（最长 55 个字符），
   三列时那行只能折成两截或藏进横向滚动，读者照样看不全。 */
.db-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.db-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px 20px;
}

.db-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.db-head h4 { font-size: .95rem; margin: 0; }

.db-kind {
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-3);
    white-space: nowrap;
}

/* 默认档单独给个色：读者扫一眼就知道「开箱即用的是哪个」，不用读说明。 */
.db-kind.is-default { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

/* 注册代码行：宁可折成两行也要把整句露出来。
   卡片只有三百来像素宽，nowrap 会把 `SqliteFactory>(conn)` 这半截藏进横向滚动里——
   读者看不到完整那一行，等于没写。 */
.db-reg {
    display: block;
    font-size: .74rem;
    line-height: 1.6;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--code-bg);
    color: var(--code-fg);
    white-space: pre;
    overflow-x: auto;
}

.db-card p { margin: 10px 0 0; font-size: .85rem; color: var(--text-2); }

.db-switch { margin-top: 26px; }

/* ── 关于页 ─────────────────────────────────────────────────────────────── */
.struct-notes { display: flex; flex-direction: column; gap: 14px; }

.struct-note { border-left: 2px solid var(--brand-line); padding-left: 16px; }
.struct-note h4 { font-size: .92rem; margin-bottom: 4px; }
.struct-note p { font-size: .85rem; color: var(--text-2); margin: 0; }

.stack-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

.stack-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--line);
    font-size: .89rem;
}

.stack-row:last-child { border-bottom: none; }
.stack-row b { font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--brand); }
.stack-row span { color: var(--text-2); }

.boundary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.boundary-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--text-2);
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.boundary-list .ico { margin-top: 4px; }

.license-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 30px 0 34px;
}

.license-item {
    text-align: center;
    padding: 20px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.license-item b { display: block; font-size: 1rem; font-weight: 640; }
.license-item span { font-size: .78rem; color: var(--text-3); }

/* ── AI 页 ───────────────────────────────────────────────────────────────── */
/* 眉标 + 状态标签同一行：AI 是规划中的能力，标签必须跟标题长在一起，
   而不是另起一行或只在页脚提一句——读者第一眼就该知道这页讲的是「还没交付的东西」。 */
.eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.eyebrow-row .sec-eyebrow { margin-bottom: 0; }

.pill-soon {
    color: var(--warn);
    border-color: color-mix(in srgb, var(--warn) 42%, transparent);
    background: color-mix(in srgb, var(--warn) 12%, transparent);
}

.ai-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.ai-why {
    border: 1px solid var(--line);
    border-top: 2px solid var(--brand-line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px;
}

.ai-why h3 { font-size: 1rem; margin-bottom: 8px; }
.ai-why p { font-size: .87rem; color: var(--text-2); margin: 0; line-height: 1.65; }

/* 五步链路。每步左「机器」右「人」，两种颜色分开，一眼看得见它在哪停手。 */
.ai-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.ai-step {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
}

.ai-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.ai-step-no {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .06em;
    color: var(--text-3);
}

.ai-step-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 9px;
    color: var(--brand);
    background: var(--brand-soft);
}

.ai-step h3 { font-size: .96rem; margin-bottom: 12px; }

.ai-split { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-split dt { font-size: .7rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 4px; }
.ai-split .is-ai dt { color: var(--brand); }
.ai-split .is-human dt { color: var(--ok); }
.ai-split dd { margin: 0; font-size: .8rem; line-height: 1.62; color: var(--text-2); }

/* 解析结果示例：左边真 JSON、右边读法。两列在 1080 以下叠成一列。 */
.ai-sample-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: start;
    margin-top: 34px;
}

.ai-sample-copy h3 { font-size: 1.06rem; margin-bottom: 12px; }
.ai-sample-copy p { font-size: .89rem; color: var(--text-2); }

.ai-sample-list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 用 flex 而不是 grid：li 里既有图标又有夹在文字中间的 <code>，
   做成 grid 会把每个裸文本节点都变成独立格子，行内代码就跟后面的字叠在一起。 */
.ai-sample-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    line-height: 1.62;
    color: var(--text-2);
}

.ai-sample-list .ico { flex: 0 0 18px; color: var(--ok); margin-top: 3px; }
.ai-sample-list li > span { flex: 1 1 auto; min-width: 0; }

/* 行内的料号 / 字段名不许断行：`C-0021` 被拆成 `C-` 换行 `0021` 就认不出来了。 */
.ai-sample-copy code { white-space: nowrap; }

.ai-sample-note {
    font-size: .82rem;
    color: var(--text-3);
    border-left: 2px solid var(--line-strong);
    padding-left: 12px;
    margin: 0;
}

/* 三个场景 */
.ai-lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.ai-lane {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px;
}

.ai-lane-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    margin-bottom: 14px;
    color: var(--brand);
    background: var(--brand-soft);
}

.ai-lane h3 { font-size: 1rem; margin-bottom: 14px; line-height: 1.45; }

.ai-io { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ai-io > div { display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.ai-io dt { font-size: .76rem; color: var(--text-3); padding-top: 1px; }
.ai-io dd { margin: 0; font-size: .84rem; line-height: 1.62; color: var(--text-2); }

.ai-lane-points {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-lane-points li {
    position: relative;
    padding-left: 14px;
    font-size: .82rem;
    line-height: 1.6;
    color: var(--text-2);
}

.ai-lane-points li::before {
    content: "";
    position: absolute;
    left: 0; top: .58em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

/* 五条边界。两条一排，最后一条独占一行——它是「有据可查」，
   前面四条讲不许做什么，这一条讲做完要留痕，性质不同。 */
.ai-guard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ai-guard {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
}

.ai-guard:last-child { grid-column: 1 / -1; }

.ai-guard-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    color: var(--brand);
    background: var(--brand-soft);
}

.ai-guard h3 { font-size: .95rem; margin-bottom: 6px; }
.ai-guard p { font-size: .85rem; color: var(--text-2); margin: 0; line-height: 1.65; }

/* 现状表：三列，状态用色块。窄屏横向滚动，不折行——折行的表格比滚动更难读。 */
.ai-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.ai-status { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .87rem; }

.ai-status th {
    text-align: left;
    padding: 14px 18px;
    font-size: .74rem;
    font-weight: 640;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.ai-status td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    vertical-align: top;
    line-height: 1.6;
}

.ai-status tr:last-child td { border-bottom: none; }
.ai-status td:first-child { color: var(--text); font-weight: 560; }

.ai-stage {
    display: inline-flex;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}

.ai-stage.is-ready { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.ai-stage.is-wip { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 42%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.ai-stage.is-no { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 38%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }

/* 首页那条预告带：一格方框，不跟上下区块抢背景色，所以不必挤进 section-alt 的交替节奏。 */
.ai-band {
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--brand-soft), transparent 64%), var(--surface);
    padding: 40px;
}

.ai-band h2 { font-size: 1.5rem; margin-bottom: 12px; }
.ai-band-lede { font-size: .95rem; color: var(--text-2); max-width: 54em; margin: 0; }

.ai-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }

.ai-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
}

.ai-mini b { font-size: .92rem; line-height: 1.45; }
.ai-mini-text { font-size: .8rem; color: var(--text-3); line-height: 1.55; }

.ai-mini-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    color: var(--brand);
    background: var(--brand-soft);
}

.ai-band-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.ai-band-note { font-size: .8rem; color: var(--text-3); }

/* ── 首页开源区块 ───────────────────────────────────────────────────────── */
/* 仓库地址单独占一行、用等宽字：它是要被记住和手敲的东西，不是装饰。 */
.repo-card .repo-url {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 5px 10px;
    border-radius: 7px;
    background: var(--code-bg);
    color: var(--code-fg);
    font-family: var(--mono);
    font-size: .8rem;
    line-height: 1.6;
    white-space: nowrap;
    overflow-x: auto;
}

/* 三条注解（许可证边界 / 编译前置 / 没有两套代码）用虚线隔开：
   它们是「看源码之前」的提示，不是功能点，所以不与上面的对勾列表同权。 */
.repo-notes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px dashed var(--line);
}

.repo-notes li {
    position: relative;
    padding-left: 15px;
    font-size: .82rem;
    line-height: 1.65;
    color: var(--text-3);
}

.repo-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .75;
}

.repo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ── 合作与联系页 ───────────────────────────────────────────────────────── */
.tick-card { position: relative; }
.tick-card h3 { font-size: 1.02rem; margin-bottom: 12px; }

.tick-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76rem;
    font-weight: 640;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.tick-badge.is-free { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.tick-badge.is-paid { color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }

.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.tick-list li {
    position: relative;
    padding-left: 20px;
    font-size: .87rem;
    color: var(--text-2);
}

/* 用 CSS 画勾，不塞图标：这一列会有三四条，塞 Icon 组件只会让每行多一个 DOM。 */
.tick-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--brand);
    opacity: .7;
}

.coop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.coop-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px 26px;
}

.coop-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    margin-bottom: 14px;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
}

.coop-card h3 { font-size: 1rem; margin-bottom: 8px; }
.coop-card p { font-size: .87rem; color: var(--text-2); margin-bottom: 12px; }
.coop-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.coop-card li { font-size: .85rem; color: var(--text-2); }
.coop-card li::marker { color: var(--brand); }

.contact-list { display: flex; flex-direction: column; gap: 10px; }

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.contact-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--brand);
    background: var(--brand-soft);
}

.contact-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-label { font-size: .76rem; color: var(--text-3); }
.contact-value { font-size: .95rem; font-weight: 600; color: var(--text); word-break: break-all; }
a.contact-value:hover { color: var(--brand); }
.contact-hint { font-size: .78rem; color: var(--text-3); }

/* 复制按钮在浅色卡片上要跟着主题走：代码块里那套白色半透明描边到白底上就没了。 */
.copy-btn.copy-mini {
    margin-left: auto;
    align-self: center;
    border-color: var(--line-strong);
    background: var(--surface-2);
    color: var(--text-2);
}

.copy-btn.copy-mini:hover { color: var(--text); border-color: var(--brand-line); background: var(--brand-soft); }

.prep-lede { font-size: .88rem; color: var(--text-2); margin-bottom: 16px; }

.prep-list {
    counter-reset: prep;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prep-list li {
    counter-increment: prep;
    position: relative;
    padding: 12px 16px 12px 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: .87rem;
    color: var(--text-2);
}

.prep-list li::before {
    content: counter(prep, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 14px;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--brand);
}

/* ── 404 / 错误页 ───────────────────────────────────────────────────────── */
.error-head { padding-bottom: 56px; }

.err-code {
    display: block;
    font-family: var(--mono);
    font-size: clamp(3rem, 9vw, 5.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
    color: transparent;
    background: linear-gradient(100deg, var(--brand), #7fd0ff 60%, transparent);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 14px;
}

.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.link-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: transform .18s var(--ease), border-color .18s var(--ease);
}

.link-card:hover { color: var(--text); transform: translateY(-2px); border-color: var(--brand-line); }
.link-card .ico { color: var(--brand); grid-row: span 2; margin-top: 3px; }
.link-card b { font-size: .96rem; }
.link-card span { font-size: .82rem; color: var(--text-3); }

.req-id { margin-top: 20px; font-size: .8rem; color: var(--text-3); }

/* ── 页脚 ───────────────────────────────────────────────────────────────── */
.foot {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 52px 0 28px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 36px;
    padding-bottom: 36px;
}

.foot-brand p { margin: 14px 0 16px; font-size: .85rem; color: var(--text-3); line-height: 1.7; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 7px; }

.foot-col h4 { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }

.foot-col a {
    display: block;
    font-size: .87rem;
    color: var(--text-2);
    padding: 4px 0;
}

.foot-col a:hover { color: var(--text); }

/* 页脚里不可点的联系方式（微信号 / 公众号名）与链接同排，视觉重量要一致，
   否则「微信」那一行看起来像禁用状态。 */
.foot-text {
    display: block;
    font-size: .87rem;
    color: var(--text-2);
    padding: 4px 0;
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--text-3);
}

.foot-meta { display: inline-flex; align-items: center; gap: 8px; }
.foot-meta b { color: var(--text-2); font-weight: 600; }
.foot-meta a { color: var(--text-2); }
.foot-meta a:hover { color: var(--brand); }
.foot-icp { margin-left: 10px; color: inherit; transition: color .16s var(--ease); }
.foot-icp:hover { color: var(--brand); }

.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: .6; }

/* ── 回到顶部 ───────────────────────────────────────────────────────────── */
.fab-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all .22s var(--ease);
    z-index: 70;
}

.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.fab-top:hover { color: var(--text); border-color: var(--brand-line); background: var(--brand-soft); }

/* ── 入场动画 ───────────────────────────────────────────────────────────── */
/* 默认完全可见；只有 <html> 上有 js 类（由 head 里的内联脚本加）才先藏起来等滚动。
   反过来写（默认 opacity:0、靠 JS 放出来）的结果是：脚本一失败，整页空白。 */
[data-reveal] {
    opacity: 1;
    transform: none;
}

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

html.js [data-reveal].in { opacity: 1; transform: none; }

/* ============================================================================
   首页「三个问题」
   ----------------------------------------------------------------------------
   三张卡里最重的是那句「现在能答到什么程度」，所以状态标签贴在卡片底部而不是标题旁：
   读者先读完答案，再看到成色，顺序反了就成了先看免责声明。
   ============================================================================ */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pain-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.pain-ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
}

.pain-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--text); }
.pain-card p { margin: 0; font-size: .9rem; color: var(--text-2); line-height: 1.78; }
.pain-card .ai-stage { margin-top: auto; }

/* ============================================================================
   业务闭环页（/flow）
   ----------------------------------------------------------------------------
   四步是竖着排的一条流水线：左边是序号与竖线，右边是这一步的卡片。
   竖排而不是四宫格，是因为「一条流」要看出先后——四宫格会被读成四个并列功能，
   而这里想说的是「第二步没了，第一步的产出就没着落」。
   ============================================================================ */

/* 概览条紧贴页头：页头已经把四步讲过一遍，这里只做导航与状态提醒，再给 88px 就空了。 */
.flow-strip-sec { padding-top: 30px; padding-bottom: 30px; }

.flow-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.flow-chip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    min-width: 0;
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.flow-chip:hover { border-color: var(--brand-line); background: var(--surface-2); transform: translateY(-2px); }
.flow-chip-no { font-family: var(--mono); font-size: .74rem; letter-spacing: .09em; color: var(--text-3); }
.flow-chip-title { font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.45; }
.flow-chip .ai-stage { align-self: flex-start; }

.flow-timeline { display: flex; flex-direction: column; }

.flow-step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; scroll-margin-top: 90px; }

.flow-rail { display: flex; flex-direction: column; align-items: center; }

.flow-no {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    border: 1px solid var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
    font-family: var(--mono);
    font-size: .84rem;
    font-weight: 640;
    letter-spacing: .04em;
}

/* 竖线从序号底下一直接到下一张卡，最后一步不画——画了就是个悬空的尾巴。 */
.flow-line {
    flex: 1;
    width: 1px;
    min-height: 26px;
    margin: 8px 0 0;
    background: linear-gradient(var(--line-strong), var(--line));
}

.flow-step:last-child .flow-line { display: none; }

.flow-card {
    min-width: 0;
    margin-bottom: 22px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.flow-step:last-child .flow-card { margin-bottom: 0; }

.flow-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.flow-ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    border: 1px solid var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
}

.flow-card-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 1.16rem; }
.flow-card-head .ai-stage { flex: none; }

.flow-claim { margin: 0 0 18px; font-size: .99rem; color: var(--text); line-height: 1.72; }

.flow-io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }

.flow-io > div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.flow-io dt {
    margin-bottom: 6px;
    font-size: .72rem;
    font-weight: 640;
    letter-spacing: .09em;
    color: var(--text-3);
}

.flow-io dd { margin: 0; font-size: .87rem; color: var(--text-2); line-height: 1.68; }

.flow-now { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.flow-now li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 9px;
    align-items: start;
    font-size: .89rem;
    color: var(--text-2);
    line-height: 1.72;
}

.flow-now .ico { color: var(--ok); margin-top: 5px; }

/* 「还差哪一截」用暖色而不是红色：红是「坏了」，暖色是「还没到」。 */
.flow-gap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--warn) 38%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--warn) 8%, transparent);
    font-size: .86rem;
    color: var(--text-2);
    line-height: 1.7;
}

.flow-gap-tag {
    flex: none;
    margin-top: 2px;
    padding: 2px 9px;
    border: 1px solid color-mix(in srgb, var(--warn) 44%, transparent);
    border-radius: 999px;
    color: var(--warn);
    font-size: .72rem;
    font-weight: 640;
    letter-spacing: .03em;
    white-space: nowrap;
}

.flow-where { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .79rem; color: var(--text-3); }

/* 状态标签补两档：/ai 那页只有「已具备 / 研发中 / 不做」，
   闭环页多了「只做了一半」与「排在路线图上」——这两种恰好是最常被问到的，不能塞进那三档里凑。 */
.ai-stage.is-part { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.ai-stage.is-next { color: var(--text-3); border-color: var(--line-strong); background: transparent; }

/* 用户要求减少动效时一律直出：动画是装饰，不该挡内容。 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .flow-steps li.live i { animation: none; }
    .btn:hover, .module-card:hover, .scene-card:hover, .link-card:hover { transform: none; }
}

/* ── 响应式 ─────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 560px; }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .scene-grid, .scene-grid.six { grid-template-columns: repeat(2, 1fr); }
    .stack-grid { grid-template-columns: 1fr; gap: 30px; }
    .req-grid { grid-template-columns: repeat(2, 1fr); }
    .db-grid { grid-template-columns: repeat(2, 1fr); }
    .surround-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-flow { grid-template-columns: repeat(2, 1fr); }
    .ai-sample-grid { grid-template-columns: 1fr; }
    .ai-lane-grid { grid-template-columns: 1fr; }
    .ai-band { padding: 32px; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .pillar { grid-template-columns: 1fr; gap: 24px; }
    .pillar.flip .pillar-copy { order: 0; }
    .pillar.flip .pillar-points { order: 0; }
    .two-col.wide { grid-template-columns: 1fr; }
    .feature-block { grid-template-columns: 220px 1fr; gap: 24px; }
}

@media (max-width: 820px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 16px 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; font-size: .98rem; }
    .nav-links a.active::after { display: none; }
    .nav-links a.active { background: var(--brand-soft); }
    .nav-burger { display: inline-flex; }
    .nav-cta { display: none; }

    /* 触屏既没有 hover 也没有气泡，顶栏那两个图标就只剩一个图形。
       窄屏的导航项都收进汉堡菜单了，腾出来的位置正好放两个字。 */
    .icon-btn.has-label { width: auto; padding: 0 11px; gap: 6px; }
    .icon-btn.has-label .ico-label { display: inline; font-size: .84rem; font-weight: 500; letter-spacing: .01em; }

    .hero { padding-top: 52px; }
    .section { padding: 64px 0; }
    .page-head { padding: 52px 0 32px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid var(--line); }
    .stat:nth-child(2n) { border-right: none; }
    .stat:nth-last-child(-n+2) { border-bottom: none; }
    .module-grid, .scene-grid, .scene-grid.six, .surround-grid, .req-grid, .license-box, .link-cards { grid-template-columns: 1fr; }
    .db-grid, .coop-grid { grid-template-columns: 1fr; }
    .ai-why-grid, .ai-guard-grid, .ai-mini-grid, .ai-flow { grid-template-columns: 1fr; }
    .pain-grid { grid-template-columns: 1fr; }
    .ai-guard:last-child { grid-column: auto; }
    .ai-band { padding: 26px 22px; }
    .two-col { grid-template-columns: 1fr; }
    .feature-block { grid-template-columns: 1fr; }
    .def-list > div { grid-template-columns: 1fr; gap: 6px; }
    .check-list li { grid-template-columns: 1fr; gap: 8px; }
    .stack-row { grid-template-columns: 1fr; gap: 4px; }
    .batch-item { grid-template-columns: 44px 1fr; }
    .batch-tag { display: none; }
    .foot-grid { grid-template-columns: 1fr; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
    .cta-box { padding: 40px 22px; }
    .hero-cta .btn, .cta-actions .btn { flex: 1 1 auto; }

    /* 闭环页：序号栏收窄但不隐藏——它是「这是第几步」的唯一提示，藏了就只剩一摞卡片。 */
    .flow-strip { grid-template-columns: 1fr 1fr; }
    .flow-step { grid-template-columns: 34px 1fr; gap: 12px; }
    .flow-no { width: 32px; height: 32px; border-radius: 9px; font-size: .74rem; }
    .flow-card { padding: 20px 18px; margin-bottom: 14px; }
    .flow-io { grid-template-columns: 1fr; }
    .flow-gap { flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
    .wrap { padding: 0 18px; }
    .nav-inner { padding: 10px 18px; gap: 12px; justify-content: space-between; }
    .hero-note { flex-direction: column; gap: 6px; }
    /* 地址比屏幕宽，宁可截断也不让它顶出横向滚动条——hover 时 title 里还有完整地址。 */
    .hero-src { width: 100%; gap: 7px; }
    .hero-src b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hero-src em { display: none; }
    .stat { padding: 16px; }
    .stat b { font-size: 1.45rem; }
    .flow-strip { grid-template-columns: 1fr; }
}
