/* ==========================================================================
   Gandi 社区版 官网 — 设计系统
   纯静态，无外部字体/图标依赖，可直接 file:// 打开
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
    color-scheme: light;

    --bg: #f4f6fb;
    --bg-raised: #ffffff;
    --bg-sunken: #eceff8;
    --bg-inverse: #0b1220;

    --ink: #0d1526;
    --ink-soft: #2b3648;
    --muted: #5f6b80;
    --muted-soft: #8b94a6;

    --line: #e2e7f1;
    --line-strong: #cfd7e6;

    --brand: #2f6bff;
    --brand-strong: #1c4fd6;
    --brand-soft: #e8eeff;
    --warm: #ffb703;
    --warm-soft: #fff4d6;
    --mint: #12a594;
    --mint-soft: #ddf5f1;
    --danger: #d64545;

    --shadow-sm: 0 1px 2px rgba(13, 21, 38, .06), 0 1px 3px rgba(13, 21, 38, .04);
    --shadow-md: 0 6px 20px -8px rgba(13, 21, 38, .18), 0 2px 8px rgba(13, 21, 38, .05);
    --shadow-lg: 0 30px 60px -28px rgba(13, 21, 38, .32), 0 12px 28px -18px rgba(13, 21, 38, .18);
    --shadow-phone: 0 40px 80px -30px rgba(16, 32, 66, .45), 0 0 0 1px rgba(13, 21, 38, .08);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;

    --container: 1140px;
    --gutter: 24px;
    --header-h: 68px;

    --font-sans: "Inter", "Segoe UI Variable", "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;

    --bg: #070b14;
    --bg-raised: #0e1524;
    --bg-sunken: #0a101d;
    --bg-inverse: #f4f6fb;

    --ink: #eaf0fc;
    --ink-soft: #cdd6e8;
    --muted: #97a3ba;
    --muted-soft: #6d7a92;

    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);

    --brand: #7aa2ff;
    --brand-strong: #a8c2ff;
    --brand-soft: rgba(122, 162, 255, .14);
    --warm: #ffd166;
    --warm-soft: rgba(255, 209, 102, .14);
    --mint: #4fd8c4;
    --mint-soft: rgba(79, 216, 196, .14);
    --danger: #ff8080;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, .8);
    --shadow-lg: 0 40px 80px -40px #000, 0 10px 30px -20px rgba(0, 0, 0, .9);
    --shadow-phone: 0 50px 90px -40px #000, 0 0 0 1px rgba(255, 255, 255, .12);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    /* 顶部环境光 */
    content: "";
    position: fixed;
    inset: -30vh 0 auto;
    height: 90vh;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(58% 46% at 22% 6%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 72%),
        radial-gradient(46% 40% at 82% 0%, color-mix(in oklab, var(--warm) 18%, transparent), transparent 70%);
    opacity: .85;
}

html[data-theme="dark"] body::before { opacity: .55; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.18;
    letter-spacing: -.02em;
    font-weight: 700;
    text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; display: block; }

/* 作者样式里的 display 会盖掉 UA 的 [hidden]，必须显式还原 */
[hidden] { display: none !important; }

code, kbd {
    font-family: var(--font-mono);
    font-size: .875em;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .12em .42em;
    color: var(--ink);
}

:focus-visible {
    outline: 2.5px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: color-mix(in oklab, var(--brand) 28%, transparent); }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- 3. 布局 ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 1;
}

.section { padding: clamp(56px, 8vw, 108px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--line); }
.section--raised { background: var(--bg-raised); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
}
.section-head--center .eyebrow::before { display: none; }

/* ---------- 4. 顶栏 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    background: color-mix(in oklab, var(--bg) 78%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    background: color-mix(in oklab, var(--bg) 92%, transparent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.02em;
    text-decoration: none;
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand small {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--muted-soft);
    line-height: 1.2;
}
.brand b { font-size: .98rem; line-height: 1.1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-block: 0;
}
.nav-links a {
    display: block;
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 550;
    text-decoration: none;
    transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links a:hover { background: var(--bg-sunken); color: var(--ink); }
.nav-links a[aria-current="page"] {
    background: var(--brand-soft);
    color: var(--brand-strong);
}

html[data-theme="dark"] .nav-links a[aria-current="page"] { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--bg-raised);
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

/* ---------- 5. 按钮 ---------- */
.btn {
    --btn-bg: var(--brand);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-size: .93rem;
    font-weight: 650;
    letter-spacing: -.005em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
        background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
    box-shadow: 0 8px 18px -10px color-mix(in oklab, var(--brand) 70%, transparent);
}
.btn:hover { transform: translateY(-1.5px); text-decoration: none; box-shadow: 0 14px 26px -14px color-mix(in oklab, var(--brand) 75%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
}
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }

.btn--warm {
    --btn-bg: var(--warm);
    --btn-fg: #231a03;
    box-shadow: 0 8px 18px -10px color-mix(in oklab, var(--warm) 80%, transparent);
}
.btn--warm:hover { box-shadow: 0 14px 26px -14px color-mix(in oklab, var(--warm) 85%, transparent); }

.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"],
.btn:disabled {
    background: var(--bg-sunken);
    color: var(--muted-soft);
    border-color: var(--line);
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 6. 标签 ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .01em;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}
.tag--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.tag--warm { background: var(--warm-soft); border-color: transparent; color: #8a5b00; }
.tag--mint { background: var(--mint-soft); border-color: transparent; color: #0a7a6d; }
.tag--live::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--mint) 25%, transparent);
}

html[data-theme="dark"] .tag--warm { color: var(--warm); }
html[data-theme="dark"] .tag--mint { color: var(--mint); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 7. Hero ---------- */
.hero {
    padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px);
    position: relative;
}
.hero .container {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
    font-style: normal;
    background: linear-gradient(96deg, var(--brand) 8%, color-mix(in oklab, var(--brand) 55%, var(--mint)) 52%, var(--warm) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    color: var(--muted);
    max-width: 54ch;
    margin-bottom: 28px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed var(--line-strong);
    font-size: .84rem;
    color: var(--muted-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--brand); }

.hero-version {
    margin-top: 16px;
    font-size: .82rem;
    color: var(--muted-soft);
    letter-spacing: .01em;
}
.hero-version b {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--ink-soft);
}

/* 手机 + 浮动产物卡 */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
}

.export-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.export-strip .export-card {
    flex: 1 1 150px;
    min-width: 0;
    padding: 10px 12px;
}
.export-strip .export-card small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone {
    --phone-w: 268px;
    width: var(--phone-w);
    aspect-ratio: 268 / 552;
    border-radius: 38px;
    padding: 9px;
    background: linear-gradient(160deg, #2b3448, #10151f 40%, #232c3d);
    box-shadow: var(--shadow-phone);
    position: relative;
    transform: rotate(-3deg);
    transition: transform .6s var(--ease);
}
.hero-visual:hover .phone { transform: rotate(-1.2deg) translateY(-6px); }

.phone::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 30px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.phone-screen {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #f7f8fc;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #10182a;
    font-size: 11px;
    line-height: 1.35;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #34405a;
}
.status-bar .dots { display: flex; gap: 3px; align-items: center; }
.status-bar i {
    display: block; width: 3px; background: #34405a; border-radius: 1px;
}
.status-bar i:nth-child(1) { height: 4px; }
.status-bar i:nth-child(2) { height: 6px; }
.status-bar i:nth-child(3) { height: 8px; }
.status-bar .battery {
    width: 17px; height: 8px; border: 1.4px solid #34405a; border-radius: 2.5px;
    position: relative;
}
.status-bar .battery::after {
    content: ""; position: absolute; inset: 1.4px; background: #34405a; border-radius: 1px;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 10px;
}
.app-bar img { width: 22px; height: 22px; border-radius: 7px; }
.app-bar b { font-size: 12.5px; letter-spacing: -.02em; }
.app-bar .pill {
    margin-left: auto;
    font-size: 8.5px;
    font-weight: 700;
    padding: 2.5px 7px;
    border-radius: 999px;
    background: #e9eeff;
    color: #2f6bff;
}

.app-body {
    flex: 1;
    padding: 0 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow: hidden;
}

.hero-card {
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(140deg, #2f6bff, #5b8bff 55%, #7aa2ff);
    color: #fff;
    box-shadow: 0 10px 22px -14px rgba(47, 107, 255, .9);
}
.hero-card small { font-size: 8.5px; opacity: .82; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.hero-card b { display: block; font-size: 13.5px; line-height: 1.3; margin: 3px 0 8px; letter-spacing: -.02em; }
.hero-card .mini-btn {
    display: inline-block;
    font-size: 8.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-card {
    background: #fff;
    border: 1px solid #e6eaf4;
    border-radius: 12px;
    padding: 9px;
    box-shadow: 0 2px 5px rgba(16, 24, 40, .04);
}
.mini-card .thumb {
    height: 34px;
    border-radius: 8px;
    margin-bottom: 6px;
    background:
        radial-gradient(60% 80% at 30% 20%, #ffe6a8, transparent 60%),
        linear-gradient(135deg, #cfe0ff, #eef3ff 60%, #ffd8e4);
}
.mini-card b { display: block; font-size: 9.5px; letter-spacing: -.01em; }
.mini-card span { font-size: 8px; color: #7b869c; }

.proj-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6eaf4;
    border-radius: 12px;
    padding: 8px 9px;
}
.proj-row .sq {
    width: 26px; height: 26px; border-radius: 8px;
    background: linear-gradient(135deg, #ffd166, #ff9f43);
    flex-shrink: 0;
}
.proj-row .meta { min-width: 0; }
.proj-row b { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-row span { font-size: 8px; color: #7b869c; }
.proj-row .go {
    margin-left: auto; font-size: 8px; font-weight: 700; color: #2f6bff;
    background: #eef2ff; padding: 3px 7px; border-radius: 999px;
}

.tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 7px 10px 16px;
    background: rgba(255, 255, 255, .92);
    border-top: 1px solid #eceff8;
    backdrop-filter: blur(10px);
}
.tab-bar span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 7.5px;
    font-weight: 650;
    color: #9aa4b8;
}
.tab-bar span.on { color: #2f6bff; }
.tab-bar i {
    width: 15px; height: 15px; border-radius: 5px;
    border: 1.6px solid currentColor;
    opacity: .9;
}
.tab-bar span.on i { background: rgba(47, 107, 255, .14); }

/* 浮动产物卡 */
.export-stack {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 198px;
    flex-shrink: 0;
}

.export-card {
    background: color-mix(in oklab, var(--bg-raised) 94%, transparent);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 13px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 11px;
    animation: float-in .9s var(--ease) both;
}
.export-card:nth-child(2) { animation-delay: .12s; }
.export-card:nth-child(3) { animation-delay: .24s; }
.export-card .ico {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    flex-shrink: 0;
    background: var(--brand-soft);
    color: var(--brand-strong);
}
html[data-theme="dark"] .export-card .ico { color: var(--brand); }
.export-card .ico svg { width: 16px; height: 16px; }
.export-card b { display: block; font-size: .82rem; line-height: 1.3; }
.export-card small { font-size: .7rem; color: var(--muted); font-family: var(--font-mono); }

@keyframes float-in {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to { opacity: 1; transform: none; }
}

/* ---------- 8. 卡片 ---------- */
.card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: clamp(20px, 2.6vw, 30px);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    position: relative;
    overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .93rem; }
.card > *:last-child { margin-bottom: 0; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: .88rem;
    font-weight: 650;
    color: var(--brand);
}
.card-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(3px); }

.card-ico {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 16px;
    background: var(--brand-soft);
    color: var(--brand-strong);
}
html[data-theme="dark"] .card-ico { color: var(--brand); }
.card-ico svg { width: 20px; height: 20px; }
.card-ico--warm { background: var(--warm-soft); color: #9a6a00; }
html[data-theme="dark"] .card-ico--warm { color: var(--warm); }
.card-ico--mint { background: var(--mint-soft); color: #0a7a6d; }
html[data-theme="dark"] .card-ico--mint { color: var(--mint); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.product-card { display: flex; flex-direction: column; }
.product-card .tag { align-self: flex-start; margin-bottom: 14px; }
.product-card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.product-card li {
    position: relative;
    padding-left: 20px;
    font-size: .87rem;
    color: var(--muted);
    margin-bottom: 7px;
}
.product-card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .58em;
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 2px solid color-mix(in oklab, var(--brand) 55%, transparent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature {
    padding: 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-raised);
}
.feature h4 { margin: 0 0 6px; font-size: .98rem; letter-spacing: -.01em; }
.feature p { font-size: .86rem; color: var(--muted); margin: 0; }
.feature .num {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .06em;
    display: block;
    margin-bottom: 10px;
}

/* ---------- 9. 出口矩阵 ---------- */
.ports {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.port {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.port-head { display: flex; align-items: center; gap: 10px; }
.port-head .ico {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--bg-sunken);
    color: var(--ink);
    flex-shrink: 0;
}
.port-head .ico svg { width: 17px; height: 17px; }
.port-head b { font-size: .95rem; }
.port-head small { display: block; font-size: .74rem; color: var(--muted-soft); font-family: var(--font-mono); }
.port p { font-size: .85rem; color: var(--muted); margin: 0; }
.port .where {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: .76rem;
    color: var(--muted-soft);
    display: flex;
    gap: 6px;
    align-items: center;
}
.port .where svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- 10. 步骤 ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 26px 22px 22px;
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 1px solid var(--line);
}
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; font-size: 1rem; }
.step p { font-size: .87rem; color: var(--muted); margin: 0; }

/* ---------- 11. 表格 ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    box-shadow: var(--shadow-sm);
}
table.matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: .89rem;
    min-width: 720px;
}
table.matrix caption {
    caption-side: top;
    text-align: left;
    padding: 16px 20px 0;
    font-size: .8rem;
    color: var(--muted);
}
table.matrix th,
table.matrix td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.matrix thead th {
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted-soft);
    background: var(--bg-sunken);
    font-weight: 700;
    white-space: nowrap;
}
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix tbody tr:hover { background: color-mix(in oklab, var(--brand-soft) 45%, transparent); }
table.matrix td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
.ok { color: var(--mint); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }
.partial { color: var(--warm); font-weight: 700; }

/* ---------- 12. FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-raised);
    padding: 4px 20px;
    margin-bottom: 10px;
    transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 30px 15px 0;
    font-weight: 600;
    font-size: .95rem;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 16px; font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- 13. 提示条 ---------- */
.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in oklab, var(--warm) 45%, var(--line));
    background: var(--warm-soft);
    font-size: .87rem;
    color: var(--ink-soft);
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: #9a6a00; }
html[data-theme="dark"] .notice svg { color: var(--warm); }
.notice b { color: var(--ink); }
.notice--info {
    border-color: color-mix(in oklab, var(--brand) 32%, var(--line));
    background: var(--brand-soft);
}
.notice--info svg { color: var(--brand-strong); }
html[data-theme="dark"] .notice--info svg { color: var(--brand); }

/* ---------- 14. 页头（内页） ---------- */
.page-head {
    padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 3vw, 44px);
}
.page-head .container { display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 10px; }
.page-head p { max-width: 62ch; color: var(--muted); font-size: 1.02rem; }
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .8rem;
    color: var(--muted-soft);
    margin-bottom: 6px;
}
.breadcrumb a { color: var(--muted-soft); }
.breadcrumb span { opacity: .5; }

/* ---------- 15. 下载页 ---------- */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.dl-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    padding: clamp(22px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.dl-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -60% auto;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklab, var(--brand) 16%, transparent), transparent 68%);
    pointer-events: none;
}
.dl-card--warm::after { background: radial-gradient(circle, color-mix(in oklab, var(--warm) 22%, transparent), transparent 68%); }
.dl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dl-head .ico {
    width: 44px; height: 44px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--bg-sunken);
    flex-shrink: 0;
}
.dl-head .ico svg { width: 22px; height: 22px; }
.dl-head b { display: block; font-size: 1.06rem; letter-spacing: -.01em; }
.dl-head small { font-size: .78rem; color: var(--muted-soft); }
.dl-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: .83rem;
    margin: 0 0 20px;
    padding: 14px 0 0;
    border-top: 1px dashed var(--line);
}
.dl-meta dt { color: var(--muted-soft); }
.dl-meta dd { margin: 0; color: var(--ink-soft); font-family: var(--font-mono); font-size: .8rem; }
.dl-card .btn { margin-top: auto; z-index: 1; }
.dl-foot { margin-top: 10px; font-size: .74rem; color: var(--muted-soft); text-align: center; }

.log-list { list-style: none; padding: 0; margin: 0; }.log-list li {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}
.log-list li:last-child { border-bottom: 0; }
.log-list .ver { font-family: var(--font-mono); font-size: .82rem; color: var(--brand); font-weight: 700; }
.log-list .ver small { display: block; color: var(--muted-soft); font-weight: 500; font-size: .72rem; }
.log-list ul { margin: 0; padding-left: 18px; color: var(--muted); }
.log-list ul li {
    display: list-item;
    padding: 2px 0;
    border: 0;
    font-size: .87rem;
    grid-template-columns: none;
    gap: 0;
}

/* 实时更新记录 */
.ver-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    vertical-align: middle;
}
html[data-theme="dark"] .ver-chip { color: var(--brand); }

.log-items {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.log-items li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: .87rem;
    color: var(--muted);
    line-height: 1.55;
}
.log-items li:last-child { border-bottom: 0; }
.log-items .log-tag {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    margin-top: 2px;
    background: var(--bg-sunken);
    color: var(--muted);
    border: 1px solid var(--line);
}
.log-items .log-empty {
    display: block;
    color: var(--muted-soft);
    font-size: .85rem;
    border-bottom: 0;
}
.dl-foot.is-warn { color: var(--warm); }
html[data-theme="light"] .dl-foot.is-warn { color: #9a6a00; }
.btn.is-pending { opacity: .6; pointer-events: none; }

/* ---------- 16. CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 58px);
    background: linear-gradient(135deg, #101a2e, #16233d 45%, #0d1526);
    color: #eef2fb;
    box-shadow: var(--shadow-lg);
}
.cta::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 55%;
    height: 220%;
    background: radial-gradient(circle at 30% 30%, rgba(122, 162, 255, .35), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 209, 102, .22), transparent 62%);
    pointer-events: none;
}
.cta .inner { position: relative; max-width: 640px; }
.cta h2 { color: #fff; }
.cta p { color: #b9c4da; }
.cta .btn--ghost { --btn-fg: #eef2fb; border-color: rgba(255, 255, 255, .3); }
.cta .btn--ghost:hover { border-color: #fff; }

/* ---------- 17. 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-raised);
    padding: 48px 0 34px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 34px;
}
.footer-brand p { font-size: .85rem; color: var(--muted); max-width: 34ch; margin-top: 12px; }
.footer-col h4 {
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-soft);
    margin-bottom: 12px;
    font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .87rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--muted-soft);
}
.footer-bottom .dot { opacity: .45; margin-inline: 6px; }

/* ---------- 17b. 内页：分栏 / 清单 / 示意 ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}
.split--reverse .split-visual { order: -1; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy > p { color: var(--muted); font-size: 1.01rem; }
.split-visual { display: grid; place-items: center; }

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
}
.check-list li::before {
    position: absolute;
    left: 0;
    top: .05em;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .62rem;
    font-weight: 800;
    color: #fff;
    background: var(--mint);
    content: "✓";
}
.check-list--warn li::before { content: "×"; background: var(--warm); color: #3a2a00; }
.check-list--plain li::before {
    content: "";
    background: transparent;
    border: 2px solid color-mix(in oklab, var(--brand) 55%, transparent);
}
.check-list code { font-size: .78rem; }

/* 编辑界面示意 */
.phone--editor { --phone-w: 300px; transform: rotate(1.6deg); }
.phone--editor:hover { transform: rotate(.6deg) translateY(-4px); }
.phone--editor .phone-screen { background: #10141f; color: #dfe6f5; }
.phone--editor .status-bar { color: #aab4c9; }
.phone--editor .status-bar i,
.phone--editor .status-bar .battery { background: #aab4c9; border-color: #aab4c9; }
.phone--editor .status-bar .battery { background: transparent; }
.phone--editor .status-bar .battery::after { background: #aab4c9; }

.editor-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 8px;
    font-size: 10.5px;
}
.editor-bar .back {
    width: 18px; height: 18px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    line-height: 1;
}
.editor-bar b { font-size: 10.5px; letter-spacing: -.01em; }
.editor-bar .save {
    margin-left: auto;
    font-size: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(79, 216, 196, .16);
    color: #6ff0da;
}

.stage-mock {
    position: relative;
    margin: 0 10px 8px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #0b1020;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.stage-sky {
    position: absolute;
    inset: 0 0 34% 0;
    background: linear-gradient(#22304d, #33456b 70%, #4a5f8c);
}
.stage-ground {
    position: absolute;
    inset: 66% 0 0 0;
    background: linear-gradient(#2a3a2c, #1b2820);
}
.stage-sprite {
    position: absolute;
    left: 34%;
    bottom: 30%;
    width: 14%;
    aspect-ratio: 1;
    border-radius: 4px;
    background: linear-gradient(135deg, #ffd166, #ff9f43);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.stage-badge {
    position: absolute;
    left: 6px; top: 6px;
    font-size: 7.5px;
    padding: 1.5px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: #cfd8ea;
    letter-spacing: .04em;
}

.block-area {
    flex: 1;
    padding: 2px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.block-row { display: flex; }
.block-row.indent { padding-left: 12px; }
.block-row.indent2 { padding-left: 24px; }
.blk {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 650;
    color: #fff;
    letter-spacing: -.01em;
    box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, .18);
}
.blk--hat { background: #f0b429; color: #3b2a00; }
.blk--move { background: #3f7bff; }
.blk--ctrl { background: #f28b24; }
.blk--look { background: #9b59e0; }

.tools-panel {
    margin: 6px 8px 10px;
    background: rgba(28, 35, 51, .96);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 8px 10px 6px;
    box-shadow: 0 12px 24px -14px #000;
}
.tools-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #9fb0cc;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 4px;
}
.tools-x { font-size: 12px; line-height: 1; opacity: .7; }
.tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8.5px;
    padding: 3.5px 0;
    color: #c6d2e6;
}
.tool-row b { font-weight: 700; color: #8fb4ff; font-size: 8.5px; }
.tool-row b.on { color: #6ff0da; }

/* 架构 */
.arch {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}
.arch-col {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    padding: 22px;
}
.arch-col h4 { margin: 0 0 12px; font-size: .95rem; }
.arch-col .check-list { margin-top: 0; }
.arch-col .check-list li { font-size: .86rem; }
.arch-arrow { text-align: center; color: var(--muted-soft); }
.arch-arrow svg { width: 34px; height: 34px; margin-inline: auto; color: var(--brand); }
.arch-arrow small { display: block; font-size: .7rem; margin-top: 4px; white-space: nowrap; }

/* 文件/构建 示意窗 */
.file-mock {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    box-shadow: var(--shadow-lg);
}
.file-mock__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--line);
}
.file-mock__bar .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--line-strong);
}
.file-mock__bar .dot:nth-child(1) { background: #ff6b6b; }
.file-mock__bar .dot:nth-child(2) { background: #ffd166; }
.file-mock__bar .dot:nth-child(3) { background: #4fd8c4; }
.file-mock__bar .path {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--muted-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-mock__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.file-mock:hover .file-item { border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.file-item .ext {
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-strong);
}
html[data-theme="dark"] .file-item .ext { color: var(--brand); }
.file-item .name { font-size: .86rem; font-weight: 600; }
.file-item .size { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--muted-soft); }

.file-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .74rem;
    color: var(--muted-soft);
    padding-top: 4px;
}
.file-hint svg { width: 14px; height: 14px; color: var(--mint); flex-shrink: 0; }

.build-step {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    color: var(--muted-soft);
}
.build-step .mark {
    width: 18px; height: 18px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: .62rem;
    font-weight: 800;
    border: 1px solid var(--line-strong);
    flex-shrink: 0;
}
.build-step.done { color: var(--ink-soft); }
.build-step.done .mark { background: var(--mint-soft); border-color: transparent; color: #0a7a6d; }
html[data-theme="dark"] .build-step.done .mark { color: var(--mint); }
.build-step.active { color: var(--ink); font-weight: 600; }
.build-step.active .mark {
    background: var(--brand);
    border-color: transparent;
    color: #fff;
    animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 55%, transparent); }
    50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--brand) 0%, transparent); }
}

.progress {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-sunken);
    overflow: hidden;
    margin: 4px 0 2px;
}
.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), color-mix(in oklab, var(--brand) 55%, var(--mint)));
}

/* 打包选项示意 */
.opt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    font-size: .84rem;
}
.opt-row .label { flex: 1; min-width: 0; font-weight: 550; }
.opt-row .label small {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    color: var(--muted-soft);
    margin-top: 1px;
}
.switch {
    position: relative;
    width: 36px;
    height: 21px;
    border-radius: 999px;
    background: var(--brand);
    flex-shrink: 0;
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.switch.is-off { background: var(--line-strong); }
.switch.is-off::after { right: auto; left: 3px; }
.lock-badge {
    font-size: .66rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--warm-soft);
    color: #8a5b00;
    white-space: nowrap;
}
html[data-theme="dark"] .lock-badge { color: var(--warm); }

/* 桌面窗口示意 */
.window-mock {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    box-shadow: var(--shadow-lg);
}
.window-mock__titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 0;
    background: color-mix(in oklab, var(--bg-sunken) 80%, var(--bg));
    border-bottom: 1px solid var(--line);
}
.wm-tabs { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.wm-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px 9px 0 0;
    font-size: .78rem;
    color: var(--muted);
    white-space: nowrap;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wm-tab.is-active {
    background: var(--bg-raised);
    color: var(--ink);
    box-shadow: 0 -1px 0 var(--line-strong), 1px 0 0 var(--line), -1px 0 0 var(--line);
    font-weight: 600;
}
.wm-fav {
    width: 12px; height: 12px;
    border-radius: 3.5px;
    background: linear-gradient(135deg, #ffd166, #ff9f43);
    flex-shrink: 0;
}
.wm-fav--alt { background: linear-gradient(135deg, #7aa2ff, #3f6fe0); }
.wm-fav--warm { background: linear-gradient(135deg, #ff9bce, #ff6b9d); }
.wm-x { margin-left: 2px; font-size: .86rem; opacity: .45; }
.wm-new {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border-radius: 7px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
}
.wm-version {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: .64rem;
    color: var(--muted-soft);
    white-space: nowrap;
}
.wm-controls { display: flex; align-items: center; gap: 12px; padding: 0 4px 8px; color: var(--muted); font-size: .82rem; }
.wm-controls .close { color: #e5484d; }

.window-mock__body {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    background: var(--bg-raised);
}
.wm-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    background: var(--bg-sunken);
    border-right: 1px solid var(--line);
}
.wm-rail-item {
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 1.6px solid var(--line-strong);
}
.wm-rail-item.is-on { border-color: var(--brand); background: color-mix(in oklab, var(--brand) 22%, transparent); }
.wm-rail-item--last { margin-top: auto; border-style: dashed; }

.wm-editor { display: flex; flex-direction: column; min-width: 0; }
.wm-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--line);
    font-size: .76rem;
    color: var(--muted);
}
.wm-chip { font-weight: 550; }
.wm-chip--right {
    margin-left: auto;
    color: var(--brand);
    font-weight: 650;
    background: var(--brand-soft);
    padding: 3px 9px;
    border-radius: 999px;
}
.wm-canvas {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    background:
        radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 16px 16px,
        var(--bg);
    min-height: 280px;
}
.wm-workspace { display: flex; flex-direction: column; gap: 8px; }
.wm-block {
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: .74rem;
    font-weight: 650;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16);
}
.wm-block--hat { background: #f0b429; color: #3b2a00; }
.wm-block--move { background: #3f7bff; }
.wm-block--ctrl { background: #f28b24; }
.wm-block--look { background: #9b59e0; }
.wm-block--indent { margin-left: 22px; }

.wm-stage {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    background: #0b1020;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
    min-height: 180px;
}
.wm-stage-sky { position: absolute; inset: 0 0 34% 0; background: linear-gradient(#22304d, #33456b 70%, #4a5f8c); }
.wm-stage-ground { position: absolute; inset: 66% 0 0 0; background: linear-gradient(#2a3a2c, #1b2820); }
.wm-stage-sprite {
    position: absolute;
    left: 36%;
    bottom: 30%;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 5px;
    background: linear-gradient(135deg, #ffd166, #ff9f43);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.wm-stage-tag {
    position: absolute;
    left: 8px; top: 8px;
    font-size: .62rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: #cfd8ea;
    letter-spacing: .04em;
}

@media (max-width: 640px) {
    .wm-canvas { grid-template-columns: 1fr; }
    .wm-version, .wm-tab:nth-child(3) { display: none; }
}

.hero .window-mock {
    width: 100%;
}
/* 首页 hero 里的窗口较窄，顶栏版本字样会挤压页签，直接隐藏 */
.hero .wm-version {
    display: none;
}

/* 性能对比示意 */
.perf-mock {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    padding: 22px;
    box-shadow: var(--shadow-lg);
}
.perf-row { margin-bottom: 20px; }
.perf-row .cap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.perf-row .cap b { color: var(--ink); font-size: .84rem; }
.perf-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--bg-sunken);
    overflow: hidden;
}
.perf-bar span { display: block; height: 100%; border-radius: inherit; }
.perf-bar--bad span { width: 94%; background: linear-gradient(90deg, #ff9f43, #ff6b6b); }
.perf-bar--good span { width: 24%; background: linear-gradient(90deg, var(--mint), #6ee7b7); }
.perf-note { font-size: .72rem; color: var(--muted-soft); margin-top: 6px; }

/* ==========================================================================
   网页版打包器（studio）
   ========================================================================== */
.studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 20px;
    align-items: start;
}

.studio-main { display: flex; flex-direction: column; gap: 16px; }

.studio-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.studio-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.studio-card__head .step-no {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}
html[data-theme="dark"] .studio-card__head .step-no { color: var(--brand); }
.studio-card__head h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.studio-card__head p { margin: 0; font-size: .8rem; color: var(--muted-soft); }
.studio-card__head .tag { margin-left: auto; }
.studio-card__body { padding: 18px 20px; }

/* 拖放区 */
.dropzone {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: color-mix(in oklab, var(--bg-sunken) 60%, transparent);
    padding: 26px 20px;
    text-align: center;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-icon {
    width: 44px; height: 44px;
    margin: 0 auto 12px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    color: var(--brand);
}
.dropzone .dz-icon svg { width: 20px; height: 20px; }
.dropzone b { display: block; font-size: .95rem; margin-bottom: 4px; }
.dropzone span { font-size: .82rem; color: var(--muted); }
.dropzone .dz-actions { margin-top: 14px; display: flex; justify-content: center; gap: 8px; }
.dropzone .dz-meta {
    margin-top: 12px;
    font-size: .74rem;
    color: var(--muted-soft);
    font-family: var(--font-mono);
}

/* 格式选择 */
.format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.format-option {
    position: relative;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-raised);
    cursor: pointer;
    transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.format-option:hover { border-color: var(--line-strong); }
.format-option input { position: absolute; opacity: 0; pointer-events: none; }
.format-option .radio {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}
.format-option .radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand);
    transform: scale(0);
    transition: transform .18s var(--ease);
}
.format-option:has(input:checked) {
    border-color: var(--brand);
    background: color-mix(in oklab, var(--brand-soft) 70%, transparent);
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand) 45%, transparent) inset;
}
.format-option:has(input:checked) .radio { border-color: var(--brand); }
.format-option:has(input:checked) .radio::after { transform: scale(1); }
.format-option:has(input:disabled) { cursor: not-allowed; opacity: .72; background: var(--bg-sunken); }
.format-option b { display: block; font-size: .88rem; line-height: 1.3; }
.format-option small { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.format-option .fmt-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .62rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--warm-soft);
    color: #8a5b00;
}
html[data-theme="dark"] .format-option .fmt-badge { color: var(--warm); }
.format-option .fmt-badge--soon { background: var(--bg-sunken); color: var(--muted); border: 1px solid var(--line); }

/* 表单 */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field small.hint { font-size: .72rem; color: var(--muted-soft); }
.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    padding: 8px 11px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .86rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
}
.field input:disabled,
.field select:disabled { background: var(--bg-sunken); color: var(--muted-soft); cursor: not-allowed; }

/* 分段控件 */
.segmented {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    gap: 2px;
    flex-wrap: wrap;
}
.segmented button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .8rem;
    padding: 5px 11px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .18s var(--ease), color .18s var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] {
    background: var(--bg-raised);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* 折叠组 */
.option-group { border-top: 1px solid var(--line); }
.option-group:first-child { border-top: 0; }
.option-group > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    padding: 14px 20px;
    font-size: .9rem;
    font-weight: 600;
    transition: background .18s var(--ease);
}
.option-group > summary::-webkit-details-marker { display: none; }
.option-group > summary:hover { background: var(--bg-sunken); }
.option-group > summary .chev {
    margin-left: auto;
    width: 8px; height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .25s var(--ease);
    flex-shrink: 0;
}
.option-group[open] > summary .chev { transform: rotate(-135deg); }
.option-group > summary .g-icon {
    width: 24px; height: 24px;
    border-radius: 7px;
    display: grid; place-items: center;
    background: var(--bg-sunken);
    color: var(--muted);
    flex-shrink: 0;
}
.option-group > summary .g-icon svg { width: 13px; height: 13px; }
.option-group > summary .count {
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted-soft);
    background: var(--bg-sunken);
    border-radius: 999px;
    padding: 1px 7px;
}
.option-group__body { padding: 4px 20px 18px; }

/* 开关行 */
.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .label { flex: 1; min-width: 0; }
.toggle-row .label b { display: block; font-size: .86rem; font-weight: 600; }
.toggle-row .label small { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.toggle-row .switch { margin-top: 2px; }
.toggle-row.is-locked { opacity: .85; }
.toggle-row.is-locked .label small { color: #8a5b00; }
html[data-theme="dark"] .toggle-row.is-locked .label small { color: var(--warm); }

/* 摘要侧栏 */
.summary {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.summary-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.summary-card__head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    font-weight: 650;
}
.summary-card__head .dot-live {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--mint) 22%, transparent);
}
.summary-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: .82rem;
}
.summary-row span { color: var(--muted); }
.summary-row b { font-weight: 600; text-align: right; }
.summary-row code {
    font-size: .76rem;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 5px;
}
.summary-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.summary-list li {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.45;
}
.summary-list li::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--line-strong);
    margin-top: .5em;
    flex-shrink: 0;
}
.summary-actions { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.summary-note {
    font-size: .72rem;
    color: var(--muted-soft);
    text-align: center;
    line-height: 1.5;
}

/* 原生能力提示 */
.native-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.native-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    padding: 20px;
    overflow: hidden;
}
.native-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in oklab, var(--bg-sunken) 55%, transparent) 9px 10px);
    pointer-events: none;
    opacity: .55;
}
.native-card > * { position: relative; z-index: 1; }
.native-card .lock-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--warm-soft);
    color: #8a5b00;
    margin-bottom: 10px;
}
html[data-theme="dark"] .native-card .lock-chip { color: var(--warm); }
.native-card h4 { margin: 0 0 6px; font-size: 1rem; }
.native-card p { font-size: .84rem; color: var(--muted); margin: 0; }

/* 轻提示 */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: var(--bg-raised);
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    font-size: .84rem;
    font-weight: 550;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 90;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html[data-theme="dark"] .toast { background: var(--bg-inverse); color: #0b1220; }

@media (max-width: 1080px) {
    .studio { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 720px) {
    .format-grid, .field-grid, .native-grid { grid-template-columns: 1fr; }
    .studio-card__head { flex-wrap: wrap; }
}

/* 应用图标选择器 */
.icon-field {
    display: flex;
    gap: 14px;
    align-items: center;
}
.icon-preview {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-sunken);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--muted-soft);
}
.icon-preview svg { width: 24px; height: 24px; }
.icon-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-field__meta { min-width: 0; flex: 1; }
.icon-field__name {
    font-size: .84rem;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.4;
}

/* 开场动画预览 */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.intro-option {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-raised);
    cursor: pointer;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.intro-option input { position: absolute; opacity: 0; pointer-events: none; }
.intro-option img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0b1020;
}
.intro-option__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
}
.intro-option__meta b { font-size: .84rem; font-weight: 600; }
.intro-option__meta small { font-size: .72rem; color: var(--muted-soft); }
.intro-option:hover { border-color: var(--line-strong); }
.intro-option:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand) 26%, transparent);
}
.intro-option:has(input:checked)::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* 打包工作台页头 */
.studio-head {
    padding: clamp(28px, 4vw, 44px) 0 clamp(18px, 2vw, 26px);
}
.studio-head .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.studio-head h1 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 6px 0 8px;
}
.studio-head p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.studio-head .head-actions { display: flex; gap: 8px; align-items: center; }

@media (max-width: 640px) {
    .intro-grid { grid-template-columns: 1fr; }
}

/* 带手机截图的页头 */
.page-head--split .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}
.page-head--split .page-head__copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.page-head--split .phone-shot { width: 100%; justify-self: end; }

@media (max-width: 920px) {
    .page-head--split .container { grid-template-columns: minmax(0, 1fr) min(240px, 46vw); }
    .page-head--split .phone-shot { justify-self: end; }
}
@media (max-width: 560px) {
    .page-head--split .container { grid-template-columns: 1fr; }
    .page-head--split .phone-shot { justify-self: start; width: min(220px, 70vw); }
}

/* 真实截图 */
.shot-frame {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    box-shadow: var(--shadow-lg);
}
.shot-frame img {
    display: block;
    width: 100%;
    height: auto;
}
.shot-frame figcaption {
    padding: 10px 14px;
    font-size: .76rem;
    color: var(--muted-soft);
    border-top: 1px solid var(--line);
    background: var(--bg-sunken);
}
.hero .shot-frame { width: 100%; }
.shot-frame--link { display: block; cursor: zoom-in; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.shot-frame--link:hover { transform: translateY(-2px); box-shadow: 0 40px 70px -40px rgba(13, 21, 38, .45); }

/* 手机截图 */
.phone-shot {
    margin: 0;
    width: min(290px, 100%);
    padding: 9px;
    border-radius: 36px;
    background: linear-gradient(160deg, #2b3448, #10151f 40%, #232c3d);
    box-shadow: var(--shadow-phone);
}
.phone-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}
.phone-shot figcaption {
    padding: 8px 6px 2px;
    font-size: .74rem;
    color: #93a0b8;
    text-align: center;
}
.phone-shot--editor { width: min(320px, 100%); }

/* 视口兜底：WebView 导航后未重新应用 viewport 时（触屏设备 + 视口异常宽），
   由 site.js 加上 .force-mobile，强制单列 + 收窄版面。 */
html.force-mobile .container { max-width: 520px; padding-inline: 16px; }
html.force-mobile .nav-toggle { display: grid; }
html.force-mobile .nav-actions .btn { display: none; }
html.force-mobile .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-width: 520px;
    margin-inline: auto;
    padding: 12px 16px 20px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h));
}
html.force-mobile .nav-links:not(.is-open) { display: none; }
html.force-mobile .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
html.force-mobile .hero .container,
html.force-mobile .split,
html.force-mobile .arch,
html.force-mobile .two-col,
html.force-mobile .product-grid,
html.force-mobile .ports,
html.force-mobile .feature-grid,
html.force-mobile .feature-grid--4,
html.force-mobile .steps,
html.force-mobile .dl-grid,
html.force-mobile .native-grid,
html.force-mobile .footer-grid { grid-template-columns: 1fr; }
html.force-mobile .hero-visual { flex-direction: column; }
html.force-mobile .step { padding: 22px 18px 18px; }
html.force-mobile .cta { padding: 28px 22px; }

.shot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 820px) {
    .shot-grid { grid-template-columns: 1fr; }
}

/* ---------- 18. 动效 ---------- */
/* 默认可见；只有 JS 生效时才做入场动画，避免脚本失败导致整页空白 */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media print {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .site-header { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1020px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { min-height: 0; margin-top: 8px; flex-direction: column; gap: 18px; }
    .hero-copy { max-width: none; }
    .export-stack { width: 100%; max-width: 380px; }
    .export-card:nth-child(2), .export-card:nth-child(3) { margin-left: 0; }
    .product-grid, .ports, .feature-grid, .feature-grid--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
    .split { grid-template-columns: 1fr; gap: 26px; }
    .split--reverse .split-visual { order: 0; }
    .two-col,
    .arch { grid-template-columns: 1fr; }
    .arch-arrow { padding: 2px 0; }
    .arch-arrow svg { transform: rotate(90deg); }
    .arch-arrow small { margin-top: 2px; }
}

@media (max-width: 720px) {
    :root { --gutter: 18px; }
    .nav-toggle { display: grid; }
    .nav-links {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px var(--gutter) 20px;
        background: var(--bg-raised);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav-links.is-open { opacity: 1; transform: none; visibility: visible; }
    .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
    .nav-actions .btn { display: none; }
    .product-grid, .ports, .feature-grid, .feature-grid--4, .steps, .dl-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { justify-items: start; }
    .phone { --phone-w: 240px; }
    .log-list li { grid-template-columns: 1fr; gap: 6px; }
    .section-head { margin-bottom: 26px; }
}

@media (max-width: 420px) {
    .brand small { display: none; }
    .phone { --phone-w: 216px; }
}

/* 窄屏下手机截图收窄并居中（放在 .phone-shot 定义之后，确保生效） */
@media (max-width: 560px) {
    .phone-shot--editor { width: min(250px, 72vw); margin-inline: auto; }
    .phone-shot { margin-inline: auto; }
}