/* ==========================================================================
   Heimdallr S5 — 宣传站样式表
   深色科技风 · 玻璃拟态 · 渐变光晕
   ========================================================================== */

:root {
    --bg:            #05070e;
    --bg-2:          #080b16;
    --surface:       rgba(255, 255, 255, 0.035);
    --surface-2:     rgba(255, 255, 255, 0.06);
    --border:        rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text:          #eaf0ff;
    --text-2:        #a9b4d0;
    --text-3:        #6c7796;

    --cyan:          #43e8ff;
    --blue:          #5b8cff;
    --violet:        #8b5cff;
    --green:         #3ddc97;
    --amber:         #ffb545;

    --grad:          linear-gradient(120deg, #43e8ff 0%, #5b8cff 55%, #8b5cff 100%);
    --grad-soft:     linear-gradient(120deg, rgba(67,232,255,.16), rgba(139,92,255,.16));

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow:    0 24px 60px -20px rgba(0, 0, 0, .75);
    --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .85);

    --container: 1200px;
    --header-h: 74px;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; color: var(--text-2); }
ul { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(67, 232, 255, .28); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 背景装饰 ---------- */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.bg-glow-1 { top: -280px; left: -160px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(67,232,255,.42), transparent 68%); }
.bg-glow-2 { top: 120px; right: -220px; width: 760px; height: 760px; background: radial-gradient(circle, rgba(139,92,255,.34), transparent 68%); }
.bg-noise {
    position: absolute; inset: 0; opacity: .028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 头部 ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(6, 9, 18, .78);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(140deg, rgba(67,232,255,.16), rgba(139,92,255,.16));
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 0 24px rgba(67,232,255,.14);
}
.logo-text { display: inline-flex; align-items: baseline; gap: 5px; font-size: 18px; letter-spacing: -.01em; }
.logo-text b { font-weight: 700; }
.logo-text i {
    font-style: normal; font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
    position: relative; padding: 8px 11px; border-radius: 9px;
    font-size: 14px; color: var(--text-2); font-weight: 500; white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
    background: var(--grad); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 11px;
    font-size: 14.5px; font-weight: 600; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }

.btn-primary {
    color: #04121b;
    background: var(--grad);
    box-shadow: 0 12px 30px -10px rgba(67, 232, 255, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(67, 232, 255, .7); }

.btn-outline {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface);
}
.btn-outline:hover { border-color: rgba(67,232,255,.55); background: rgba(67,232,255,.08); transform: translateY(-2px); }

.btn-ghost {
    color: var(--text-2); border-color: var(--border); background: transparent; font-weight: 500;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.dot-live {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 0 rgba(61, 220, 151, .6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61,220,151,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(61,220,151,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border);
}
.nav-toggle span { display: block; width: 18px; height: 1.8px; background: var(--text); margin: 0 auto; border-radius: 2px; transition: transform .28s, opacity .28s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 76px) 0 40px; z-index: 1; }
.hero-inner {
    display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px; margin-bottom: 22px;
    border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--surface); font-size: 13px; color: var(--text-2);
    backdrop-filter: blur(8px);
}
.hero-title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; line-height: 1.78; max-width: 620px; color: var(--text-2); }
.hero-sub b { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.chk { color: var(--green); font-weight: 800; font-size: 13px; }

/* 终端卡片 */
.hero-visual { position: relative; }
.terminal-card {
    position: relative; z-index: 2;
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--border-strong);
    background: linear-gradient(160deg, rgba(14,19,34,.94), rgba(8,11,20,.94));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}
.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 16px;
    background: rgba(255,255,255,.035);
    border-bottom: 1px solid var(--border);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-red { background: #ff5f57; } .t-yellow { background: #febc2e; } .t-green { background: #28c840; }
.t-title { margin-left: 10px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.terminal-body {
    margin: 0; padding: 22px 20px; font-size: 12.8px; line-height: 2.05;
    color: var(--text-2); overflow-x: auto;
}
.terminal-body .c-dim { color: var(--text-3); }
.terminal-body .c-cmd { color: var(--cyan); font-weight: 600; }
.terminal-body .c-ok { color: var(--green); }
.terminal-body .c-num { color: var(--amber); }
.terminal-body .c-live { color: var(--cyan); font-weight: 700; }
.terminal-foot { display: flex; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-chip {
    font-size: 12px; color: var(--text-2); padding: 5px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
}
.stat-chip b { color: var(--cyan); font-weight: 700; }

.float-card {
    position: absolute; z-index: 3;
    padding: 12px 16px; border-radius: var(--r-md);
    background: rgba(10,14,26,.9);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column; gap: 2px;
    animation: floaty 5.5s ease-in-out infinite;
}
.float-card-1 { top: -18px; right: -14px; }
.float-card-2 { bottom: -20px; left: -18px; animation-delay: -2.6s; }
.fc-num { font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-label { font-size: 11.5px; color: var(--text-3); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* 跑马灯 */
.marquee-wrap { margin-top: 68px; }
.marquee {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 18px 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex; gap: 26px; width: max-content;
    animation: scrollX 42s linear infinite;
}
.marquee-track span { font-size: 14px; color: var(--text-3); white-space: nowrap; font-weight: 500; }
.marquee-track span:nth-child(4n+1) { color: var(--text-2); }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 通用区块 ---------- */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.014) 18%, rgba(255,255,255,.014) 82%, transparent); }
.section-head { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { font-size: 16.5px; color: var(--text-3); margin: 0; }

/* ---------- 核心指标 ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric-card {
    padding: 32px 26px; border-radius: var(--r-lg);
    border: 1px solid var(--border); background: var(--surface);
    position: relative; overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.metric-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(67,232,255,.6), transparent);
    opacity: 0; transition: opacity .3s;
}
.metric-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.metric-card:hover::before { opacity: 1; }
.metric-num { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.metric-num .counter {
    font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-num em { font-style: normal; font-size: 17px; font-weight: 700; color: var(--text-2); }
.metric-label { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.metric-desc { font-size: 13.5px; color: var(--text-3); }

/* ---------- 功能特性 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    padding: 30px 26px; border-radius: var(--r-lg);
    border: 1px solid var(--border); background: var(--surface);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(67,232,255,.4);
    box-shadow: 0 24px 50px -26px rgba(67,232,255,.5);
}
.feature-icon {
    display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px;
    border-radius: 14px; color: var(--cyan);
    background: var(--grad-soft); border: 1px solid var(--border-strong);
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; line-height: 1.72; color: var(--text-3); margin: 0; }

/* ---------- 架构 ---------- */
.arch-flow {
    display: grid; grid-template-columns: 200px 1fr 200px; gap: 26px; align-items: center;
    margin-bottom: 56px;
}
.arch-node {
    padding: 26px 20px; text-align: center; border-radius: var(--r-lg);
    border: 1px solid var(--border); background: var(--surface);
}
.arch-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; color: var(--blue); background: var(--surface-2); border: 1px solid var(--border); }
.arch-node h4 { font-size: 15.5px; margin-bottom: 6px; }
.arch-node p { font-size: 12.8px; color: var(--text-3); margin: 0; }

.arch-core {
    border-radius: var(--r-lg); padding: 22px;
    border: 1px solid rgba(67,232,255,.28);
    background: linear-gradient(150deg, rgba(67,232,255,.07), rgba(139,92,255,.06));
    box-shadow: inset 0 0 60px rgba(67,232,255,.05), var(--shadow);
}
.arch-core-head {
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 18px; text-align: center;
}
.arch-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.arch-step {
    padding: 16px 14px; border-radius: var(--r-md);
    background: rgba(6,9,18,.55); border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 5px;
}
.as-idx { font-family: var(--mono); font-size: 11px; color: var(--cyan); font-weight: 700; }
.arch-step b { font-size: 14px; }
.arch-step i { font-style: normal; font-size: 11.8px; color: var(--text-3); line-height: 1.5; }
.arch-core-foot {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong);
    font-size: 12.5px; color: var(--text-2);
}
.af-arrow { color: var(--text-3); }
.af-live { color: var(--green); font-weight: 700; }

.arch-arrow { display: grid; place-items: center; }
.arch-arrow span {
    position: relative; display: block; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(67,232,255,.75), transparent);
}
.arch-arrow span::after {
    content: ""; position: absolute; top: 50%; right: -1px; transform: translateY(-50%);
    width: 0; height: 0; border: 5px solid transparent; border-left-color: rgba(67,232,255,.9);
}

.rule-table {
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--border); background: var(--surface);
}
.rt-head, .rt-row { display: grid; grid-template-columns: 1.1fr 1.6fr .7fr; gap: 16px; padding: 15px 24px; align-items: center; }
.rt-head { background: rgba(255,255,255,.045); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.rt-row { border-top: 1px solid var(--border); font-size: 14px; transition: background .2s; }
.rt-row:hover { background: rgba(67,232,255,.04); }
.rt-k code {
    font-size: 12.8px; padding: 4px 10px; border-radius: 7px;
    background: rgba(67,232,255,.1); color: var(--cyan); border: 1px solid rgba(67,232,255,.22);
}
.rt-v { color: var(--text-2); }
.rt-s em { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(139,92,255,.16); color: #b79dff; border: 1px solid rgba(139,92,255,.3); }
.rt-s i { color: var(--text-3); }

/* ---------- 协议 ---------- */
.proto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proto-card {
    padding: 32px 28px; border-radius: var(--r-lg);
    border: 1px solid var(--border); background: var(--surface);
    transition: transform .3s, border-color .3s;
}
.proto-card:hover { transform: translateY(-6px); border-color: rgba(91,140,255,.45); }
.proto-tag {
    display: inline-block; margin-bottom: 16px; padding: 5px 13px; border-radius: 8px;
    font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em;
    background: var(--grad); color: #04121b;
}
.proto-card h3 { font-size: 18px; margin-bottom: 18px; }
.proto-card li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14.2px; color: var(--text-2); border-top: 1px solid var(--border); }
.proto-card li:first-child { border-top: none; }

/* ---------- 场景 ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scenario-card {
    position: relative; padding: 32px 28px; border-radius: var(--r-lg);
    border: 1px solid var(--border); background: var(--surface); overflow: hidden;
    transition: transform .3s, border-color .3s, background .3s;
}
.scenario-card::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 160px; height: 160px;
    border-radius: 50%; background: radial-gradient(circle, rgba(67,232,255,.16), transparent 70%);
    opacity: 0; transition: opacity .35s;
}
.scenario-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.scenario-card:hover::after { opacity: 1; }
.sc-index { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--cyan); }
.scenario-card h3 { font-size: 18px; margin: 12px 0 10px; }
.scenario-card p { font-size: 14px; color: var(--text-3); margin: 0; position: relative; z-index: 1; }

/* ---------- 管理控制台预览 ---------- */
.console-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.console-card {
    position: relative;
    margin: 0;
    padding: 14px 14px 26px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s, box-shadow .35s;
    overflow: hidden;
}
.console-card::before {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(67,232,255,.6), transparent);
    opacity: 0; transition: opacity .35s;
}
.console-card:hover {
    transform: translateY(-8px);
    border-color: rgba(67,232,255,.4);
    box-shadow: 0 40px 80px -32px rgba(67,232,255,.4);
}
.console-card:hover::before { opacity: 1; }
.console-tag {
    position: absolute; top: 24px; right: 24px; z-index: 2;
    padding: 5px 12px; border-radius: 999px;
    font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
    background: var(--grad); color: #04121b;
    box-shadow: 0 8px 22px -8px rgba(67,232,255,.55);
}
.console-frame {
    position: relative;
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: #f3f4f9;
    box-shadow: 0 30px 60px -28px rgba(0,0,0,.65), inset 0 0 0 1px rgba(0,0,0,.05);
}
.console-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ecedf3, #e5e7ee);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.console-bar .cb { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.console-bar .cb-r { background: #ff5f57; }
.console-bar .cb-y { background: #febc2e; }
.console-bar .cb-g { background: #28c840; }
.console-bar .cb-title {
    margin-left: 10px; font-family: var(--mono);
    font-size: 11.5px; color: #6b7280;
}
.console-frame img {
    display: block; width: 100%; height: auto;
    -webkit-user-drag: none; user-select: none;
}
.console-card figcaption { padding: 18px 8px 2px; }
.console-card figcaption h3 { font-size: 17px; margin-bottom: 6px; }
.console-card figcaption p { font-size: 13.6px; color: var(--text-3); margin: 0; line-height: 1.7; }

/* ---------- 部署 ---------- */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deploy-step {
    padding: 30px 26px; border-radius: var(--r-lg);
    border: 1px solid var(--border); background: var(--surface);
}
.ds-num {
    display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
    border-radius: 11px; font-weight: 800; font-size: 16px;
    background: var(--grad); color: #04121b;
}
.deploy-step h3 { font-size: 17px; margin-bottom: 16px; }
.code-block {
    margin: 0; padding: 16px 18px; border-radius: var(--r-md);
    background: rgba(3,5,11,.75); border: 1px solid var(--border);
    font-size: 12.4px; line-height: 1.85; color: var(--text-2);
    overflow-x: auto; white-space: pre;
}
.ds-tip { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.ds-tip code, .compile-note code {
    font-size: 12.4px; padding: 2px 7px; border-radius: 6px;
    background: rgba(67,232,255,.1); color: var(--cyan);
}

.compile-note {
    display: flex; align-items: flex-start; gap: 14px; margin-top: 26px; padding: 22px 24px;
    border-radius: var(--r-lg); border: 1px solid rgba(61,220,151,.28);
    background: rgba(61,220,151,.055);
}
.cn-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--green); background: rgba(61,220,151,.12); flex-shrink: 0; }
.compile-note p { margin: 0; font-size: 14px; color: var(--text-2); }
.compile-note b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border-radius: var(--r-md); border: 1px solid var(--border);
    background: var(--surface); overflow: hidden; transition: border-color .25s, background .25s;
}
.faq-item[open] { border-color: rgba(67,232,255,.32); background: var(--surface-2); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 20px 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 15.8px; font-weight: 600; }
.faq-ic { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-ic::before, .faq-ic::after {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    background: var(--cyan); border-radius: 2px; transition: transform .28s;
}
.faq-ic::before { width: 13px; height: 2px; }
.faq-ic::after { width: 2px; height: 13px; }
.faq-item[open] .faq-ic::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { padding: 0 24px 22px; }
.faq-a p { margin: 0; font-size: 14.4px; line-height: 1.8; color: var(--text-3); }

/* ---------- 联系 ---------- */
.section-contact { padding-bottom: 110px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: clamp(26px, 3.2vw, 38px); margin-top: 12px; }
.contact-copy > p { font-size: 16px; color: var(--text-3); max-width: 520px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.contact-card {
    display: flex; align-items: center; gap: 16px; padding: 20px 22px;
    border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
    transition: transform .25s, border-color .25s, background .25s;
}
a.contact-card:hover { transform: translateX(6px); border-color: rgba(67,232,255,.45); background: var(--surface-2); }
.contact-card.is-static { cursor: default; }
.cc-icon {
    display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 13px; color: var(--cyan);
    background: var(--grad-soft); border: 1px solid var(--border-strong);
}
.cc-body { display: flex; flex-direction: column; }
.cc-body em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.cc-body b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.contact-form-wrap {
    padding: 34px 32px; border-radius: var(--r-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(165deg, rgba(14,19,34,.8), rgba(8,11,20,.8));
    box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.contact-form h3 { font-size: 21px; margin-bottom: 6px; }
.cf-sub { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 11px;
    background: rgba(3,5,11,.6); border: 1px solid var(--border);
    color: var(--text); font-size: 14.6px; font-family: inherit;
    transition: border-color .22s, box-shadow .22s, background .22s;
    resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
    outline: none; border-color: rgba(67,232,255,.6); background: rgba(3,5,11,.85);
    box-shadow: 0 0 0 3px rgba(67,232,255,.13);
}
.field.has-error input, .field.has-error textarea { border-color: rgba(255,107,107,.65); }
.field-err { font-size: 12.6px; color: #ff8b8b; }
.cf-privacy { margin: 16px 0 0; font-size: 12.4px; color: var(--text-3); text-align: center; }

.form-result { text-align: center; padding: 16px 0; }
.form-result .fr-icon {
    display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px;
    border-radius: 50%; font-size: 28px; font-weight: 700; color: #04121b;
    background: linear-gradient(140deg, #3ddc97, #43e8ff);
    box-shadow: 0 16px 40px -14px rgba(61,220,151,.75);
}
.form-result h3 { font-size: 22px; margin-bottom: 10px; }
.form-result p { font-size: 14.6px; color: var(--text-2); margin-bottom: 24px; }
.form-result p a { color: var(--cyan); font-weight: 600; }

/* ---------- 页面头部(子页) ---------- */
.page-hero { position: relative; z-index: 1; padding: calc(var(--header-h) + 70px) 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-hero p { font-size: 17px; color: var(--text-3); }

/* ---------- CTA 横幅 ---------- */
.cta-band {
    position: relative; z-index: 1; margin-top: 20px;
    background: linear-gradient(120deg, rgba(67,232,255,.09), rgba(139,92,255,.09));
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding-top: 54px; padding-bottom: 54px; flex-wrap: wrap;
}
.cta-copy h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-copy p { margin: 0; color: var(--text-2); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; z-index: 1; background: rgba(4,6,12,.6); border-top: 1px solid var(--border); padding-top: 62px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-desc { font-size: 14px; color: var(--text-3); max-width: 300px; margin-bottom: 10px; }
.footer-ver { font-size: 12.5px; color: var(--text-3); margin: 0; }
.footer-col h4 { font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-3); padding: 5px 0; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--cyan); padding-left: 5px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; }
.c-label { font-size: 12px; color: var(--text-3); padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.footer-contact a { color: var(--text-2); }
.footer-contact a:hover { color: var(--cyan); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 24px; padding-bottom: 30px; border-top: 1px solid var(--border);
}
.copyright, .beian { margin: 0; font-size: 13px; color: var(--text-3); }
.beian a { color: var(--text-3); transition: color .2s; }
.beian a:hover { color: var(--cyan); }
.beian .sep { margin: 0 10px; color: var(--border-strong); }

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 90;
    width: 46px; height: 46px; border-radius: 13px; font-size: 19px;
    color: var(--text); background: rgba(10,14,26,.85); border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px); opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .3s, border-color .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); border-color: rgba(67,232,255,.6); color: var(--cyan); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 620px; }
    .metric-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .arch-flow { grid-template-columns: 1fr; }
    .arch-arrow { display: none; }
    .arch-node { display: flex; align-items: center; gap: 16px; text-align: left; }
    .arch-icon { margin: 0; }
    .deploy-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1180px) {
    .header-actions .btn-ghost { display: none; }
}

@media (max-width: 900px) {
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 16px 24px 26px; margin: 0;
        background: rgba(6,9,18,.97); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: opacity .28s, transform .28s, visibility .28s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-link { padding: 13px 14px; font-size: 15.5px; }
    .nav-link.is-active::after { left: 14px; right: auto; width: 22px; }
    .nav-toggle { display: flex; }
    .header-actions .btn-ghost { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .proto-grid, .scenario-grid, .console-grid { grid-template-columns: 1fr; }
    .arch-steps { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
    .container { padding: 0 18px; }
    .section { padding: 74px 0; }
    .metric-grid, .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .rt-head, .rt-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
    .rt-head { display: none; }
    .rt-row { border-top: 1px solid var(--border); padding: 16px 18px; }
    .hero-actions .btn { width: 100%; }
    .contact-form-wrap { padding: 26px 22px; }
    .float-card { display: none; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
