/* ============================================================
   TrustedAccessPath 落地页 · Bento 网格风
   白底 + 柔和粉彩卡片 + 大圆角 + 苹果发布会质感
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --c-ink: #0f1729;
    --c-body: #4b5563;
    --c-muted: #9aa3b2;
    --c-blue: #2e6bf6;
    --c-blue-deep: #1d54d8;
    --c-line: #eceef3;
    --c-bg: #ffffff;
    --card-bg: #ffffff;
    --tint-blue: #eef4ff;
    --tint-violet: #f3f0ff;
    --tint-mint: #e9f7f1;
    --tint-amber: #fff6ea;
    --radius-lg: 26px;
    --radius-md: 18px;
    --shadow-card: 0 1px 2px rgba(15, 23, 41, .04), 0 12px 32px -12px rgba(15, 23, 41, .10);
    --shadow-hover: 0 2px 4px rgba(15, 23, 41, .05), 0 24px 48px -16px rgba(46, 107, 246, .22);
    --nav-bg: rgba(255, 255, 255, .82);
    --glass-bg: rgba(255, 255, 255, .75);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    color-scheme: light;
}

/* ---------- 深色主题变量 ---------- */
[data-theme="dark"] {
    --c-ink: #eef2fa;
    --c-body: #a8b1c5;
    --c-muted: #667089;
    --c-blue: #5b8bf8;
    --c-blue-deep: #86a9ff;
    --c-line: rgba(255, 255, 255, .09);
    --c-bg: #0b0f1d;
    --card-bg: #121828;
    --tint-blue: rgba(91, 139, 248, .14);
    --tint-violet: rgba(151, 124, 246, .14);
    --tint-mint: rgba(52, 211, 153, .12);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .45);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -16px rgba(46, 107, 246, .3);
    --nav-bg: rgba(13, 18, 34, .8);
    --glass-bg: rgba(255, 255, 255, .05);
    color-scheme: dark;
}

/* 主题切换:View Transitions 淡入淡出 */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .45s;
    animation-timing-function: ease;
}

::selection { background: rgba(46, 107, 246, .28); }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--c-bg); -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font);
    color: var(--c-body);
    background: var(--c-bg);
    line-height: 1.7;
    letter-spacing: .012em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-synthesis-weight: none;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: min(1200px, 93%); margin-inline: auto; }

/* ---------- 进场动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px) scale(.985);
    transition: opacity .65s cubic-bezier(.22, .61, .36, 1), transform .65s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

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

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn-blue {
    color: #fff;
    background: var(--c-blue);
    padding: 12px 26px;
    font-size: 15px;
    box-shadow: 0 8px 20px -6px rgba(46, 107, 246, .55);
}
.btn-blue:hover { background: var(--c-blue-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(46, 107, 246, .6); }

.btn-ink {
    color: #fff;
    background: var(--c-ink);
    padding: 14px 32px;
    font-size: 16px;
    box-shadow: 0 10px 26px -8px rgba(15, 23, 41, .5);
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(15, 23, 41, .55); }

/* ============================================================
   导航栏(悬浮胶囊)
   ============================================================ */
.nav {
    position: fixed;
    top: 14px;
    left: 0; right: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 12px 0 20px;
    background: var(--nav-bg);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    box-shadow: 0 8px 32px -12px rgba(15, 23, 41, .12);
}

/* 主题切换按钮 */
.theme-toggle {
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--c-line);
    background: transparent;
    color: var(--c-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.theme-toggle:hover { background: rgba(127, 140, 170, .12); transform: rotate(12deg); }
.theme-toggle svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .35s ease;
}
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
.nav-logo img { height: 38px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--c-body);
    transition: color .2s ease;
}
.nav-links a:hover { color: var(--c-ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}
.nav-burger span { width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero(居中)
   ============================================================ */
.hero { padding: 168px 0 56px; text-align: center; }

.hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.22;
    color: var(--c-ink);
    text-wrap: balance;
}
.hero-sub {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: clamp(15.5px, 2vw, 17.5px);
    color: var(--c-body);
}
.hero-actions { margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Bento 网格
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: 1.65fr 1fr 1fr;
    grid-auto-rows: minmax(210px, auto);
    gap: 20px;
    margin-top: 56px;
}

.card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-line);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    padding: 26px 26px 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* 卡片头:图标 + 标题 + 描述 */
.card-head { display: flex; gap: 13px; align-items: flex-start; }
.card-icon {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.card-icon svg { width: 21px; height: 21px; }
.card-head h3 { font-size: 16.5px; font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.card-head p { font-size: 13px; color: var(--c-muted); line-height: 1.55; margin-top: 2px; }

/* --- 地图大卡 --- */
.card-map { grid-column: 1; grid-row: 1 / 3; background: linear-gradient(165deg, #f4f8ff 0%, #eef4ff 60%, #eaf1ff 100%); }
.card-map .card-icon { background: #dce9ff; color: var(--c-blue); }

.map-visual { position: relative; flex: 1; min-height: 260px; margin: 18px 0 14px; }
.map-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-status {
    position: absolute;
    left: 10px; bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-ink);
    box-shadow: 0 4px 14px rgba(15, 23, 41, .08);
}
.map-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }

.map-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--glass-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    padding: 14px 6px;
}
.map-stats div { text-align: center; position: relative; }
.map-stats div + div::before {
    content: "";
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: var(--c-line);
}
.map-stats b {
    display: block;
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 800;
    color: var(--c-blue);
    letter-spacing: -.01em;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.map-stats span { font-size: 12px; color: var(--c-muted); }

/* --- 仪表卡 --- */
.card-speed { background: linear-gradient(170deg, #f7f3ff 0%, #f1ecff 100%); }
.card-speed .card-icon { background: #e6ddff; color: #7c5cf0; }
.gauge-wrap { flex: 1; display: grid; place-items: center; padding: 10px 0 2px; }
.gauge-wrap svg { width: min(210px, 88%); height: auto; }

/* --- 多端卡 --- */
.card-devices { background: linear-gradient(170deg, #ecf9f3 0%, #e5f5ee 100%); }
.card-devices .card-icon { background: #d3f0e2; color: #0f9d6c; }
.devices-visual { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 16px 0 6px; }
.devices-visual svg { color: #175d45; }

.os-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    padding: 9px 12px;
}
.os-row svg { width: 18px; height: 18px; color: var(--c-ink); opacity: .82; }

/* --- 安全卡 --- */
.card-secure { background: linear-gradient(170deg, #eef6ff 0%, #e8f1ff 100%); }
.card-secure .card-icon { background: #d8e8ff; color: var(--c-blue); }
.secure-visual { flex: 1; display: grid; place-items: center; padding: 8px 0 2px; position: relative; }
.secure-visual svg { width: min(110px, 50%); height: auto; }

/* 旋转轨道环 + 卫星点 */
.secure-orbit {
    position: absolute;
    left: 50%; top: 50%;
    border: 1.5px dashed rgba(46, 107, 246, .3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 18s linear infinite;
    pointer-events: none;
}
.orbit-1 { width: 128px; height: 128px; }
.orbit-2 {
    width: 178px; height: 178px;
    border-color: rgba(124, 92, 240, .22);
    animation-duration: 30s;
    animation-direction: reverse;
}
.secure-orbit i {
    position: absolute;
    top: -5px; left: 50%;
    width: 9px; height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: var(--c-blue);
    box-shadow: 0 0 10px rgba(46, 107, 246, .8);
}
.orbit-2 i { background: #7c5cf0; box-shadow: 0 0 10px rgba(124, 92, 240, .8); }

@keyframes orbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 漂浮特性标签 */
.secure-tag {
    position: absolute;
    z-index: 1;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-blue-deep);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(46, 107, 246, .18);
    padding: 4px 11px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 41, .08);
    backdrop-filter: blur(4px);
    animation: floatY 5s ease-in-out infinite;
    white-space: nowrap;
}
.secure-tag.t1 { left: 6%; top: 14%; }
.secure-tag.t2 { right: 6%; top: 34%; animation-delay: 1.4s; color: #7c3aed; }
.secure-tag.t3 { left: 9%; bottom: 10%; animation-delay: 2.4s; color: #0f9d6c; }

/* --- 深色流媒体卡 --- */
.card-stream {
    background: linear-gradient(150deg, #101426 0%, #171d33 60%, #1a2140 100%);
    border-color: rgba(255, 255, 255, .06);
}
.card-stream::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(320px 200px at 88% 0%, rgba(124, 92, 240, .28), transparent 62%),
        radial-gradient(280px 180px at 5% 100%, rgba(46, 107, 246, .24), transparent 62%),
        radial-gradient(200px 140px at 60% 50%, rgba(34, 211, 238, .08), transparent 60%);
    pointer-events: none;
}
.card-stream > * { position: relative; }
.card-stream .card-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.card-stream h3 { color: #fff; }
.card-stream .card-head p { color: rgba(255, 255, 255, .55); }

.stream-badge {
    margin-left: auto;
    align-self: flex-start;
    flex: none;
    font-size: 11.5px;
    font-weight: 600;
    color: #8ff0c8;
    background: rgba(52, 211, 153, .12);
    border: 1px solid rgba(52, 211, 153, .28);
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

/* 双行品牌胶囊跑马灯 */
.stream-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 18px;
    min-width: 0;
}
.stream-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.stream-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: streamMove 26s linear infinite;
}
.stream-track.reverse { animation-direction: reverse; animation-duration: 32s; }
.card-stream:hover .stream-track { animation-play-state: paused; }

@keyframes streamMove {
    to { transform: translateX(calc(-50% - 5px)); }
}

.schip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    color: #e6ebff;
    white-space: nowrap;
    transition: background .25s ease, border-color .25s ease;
}
.schip:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .28); }
.schip svg { width: 15px; height: 15px; flex: none; }

/* ============================================================
   通用小节
   ============================================================ */
.section { padding: 96px 0 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 44px; }
.section-head h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: .01em;
    line-height: 1.3;
    text-wrap: balance;
}
.section-head p { margin-top: 12px; font-size: 15.5px; color: var(--c-body); }

/* ---------- 客户端卡片 ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    padding: 32px 26px 28px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.app-logo {
    width: 78px; height: 78px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: var(--tint-blue);
    display: grid;
    place-items: center;
}
.app-card:nth-child(2) .app-logo { background: var(--tint-violet); }
.app-card:nth-child(3) .app-logo { background: var(--tint-mint); }
.app-logo img { width: 56px; height: 56px; object-fit: contain; }
.app-card h3 { font-size: 17px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.app-card p { font-size: 14px; color: var(--c-body); }
.app-os {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-blue);
    background: var(--tint-blue);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ---------- 用户评价 ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quote-card {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.quote-stars { display: flex; gap: 3px; color: #f59e0b; }
.quote-stars svg { width: 15px; height: 15px; }
.quote-card blockquote { font-size: 14px; color: var(--c-body); flex: 1; }
.quote-user { display: flex; align-items: center; gap: 10px; }
.quote-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.quote-user b { display: block; font-size: 14px; color: var(--c-ink); line-height: 1.3; }
.quote-user span { font-size: 12px; color: var(--c-muted); }

/* ---------- 底部 CTA ---------- */
.cta {
    margin-top: 96px;
    border-radius: 32px;
    background: linear-gradient(150deg, #101426 0%, #16204a 55%, #1d2a6e 100%);
    padding: 72px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 72px -24px rgba(16, 20, 38, .5);
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(460px 280px at 18% 18%, rgba(46, 107, 246, .35), transparent 62%),
        radial-gradient(420px 260px at 85% 85%, rgba(124, 92, 240, .3), transparent 62%);
    pointer-events: none;
}
.cta > * { position: relative; }
/* 点阵纹理层 */
.cta .cta-texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 20%, #000, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 90% at 50% 20%, #000, transparent 78%);
    pointer-events: none;
}
.cta h2 { font-size: clamp(25px, 3.8vw, 36px); font-weight: 800; color: #fff; letter-spacing: .01em; line-height: 1.35; text-wrap: balance; }
.cta p { margin: 12px auto 0; max-width: 440px; color: rgba(255, 255, 255, .72); font-size: 15.5px; }

/* 卖点勾选行 */
.cta-points {
    display: flex;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.cta-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .88);
}
.cta-points svg { width: 16px; height: 16px; color: #6ee7b7; flex: none; }

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.cta .btn {
    background: #fff;
    color: #0f1729;
    padding: 14px 34px;
    font-size: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.cta .btn:hover { transform: translateY(-2px); }
.cta .btn.cta-ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: none;
    backdrop-filter: blur(6px);
}
.cta .btn.cta-ghost:hover { background: rgba(255, 255, 255, .18); }

/* 平台支持行 */
.cta-os {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.cta-os svg { width: 15px; height: 15px; color: rgba(255, 255, 255, .5); }
.cta-os span { font-size: 12.5px; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }

/* ---------- 页脚 ---------- */
.footer { padding: 44px 0 40px; }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid var(--c-line);
    padding-top: 32px;
}
.footer-inner img { height: 32px; width: auto; }
.footer-inner p { font-size: 13px; color: var(--c-muted); }

/* ============================================================
   深色主题组件适配
   ============================================================ */

/* logo 反色(黑字变白,蓝色保持) */
[data-theme="dark"] .nav-logo img,
[data-theme="dark"] .footer-inner img {
    filter: invert(1) hue-rotate(195deg) saturate(1.15);
}

/* 主按钮反转:深底上用白色胶囊 */
[data-theme="dark"] .btn-ink {
    background: #eef2fa;
    color: #0f1729;
    box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .65);
}

/* Bento 卡片渐变底 */
[data-theme="dark"] .card-map { background: linear-gradient(165deg, #101a33 0%, #0e1628 100%); }
[data-theme="dark"] .card-map .card-icon { background: rgba(91, 139, 248, .16); }
[data-theme="dark"] .card-speed { background: linear-gradient(170deg, #1a1433 0%, #141026 100%); }
[data-theme="dark"] .card-speed .card-icon { background: rgba(151, 124, 246, .18); color: #a78bfa; }
[data-theme="dark"] .card-devices { background: linear-gradient(170deg, #0d2119 0%, #0b1a14 100%); }
[data-theme="dark"] .card-devices .card-icon { background: rgba(52, 211, 153, .16); color: #34d399; }
[data-theme="dark"] .card-secure { background: linear-gradient(170deg, #0e1a33 0%, #0c1426 100%); }
[data-theme="dark"] .card-secure .card-icon { background: rgba(91, 139, 248, .16); }

/* 地图:大陆点阵与城市标签 */
[data-theme="dark"] #worldDots circle { fill: #33456e; }
[data-theme="dark"] .map-visual text { fill: #93a3c2; }

/* 仪表盘 */
[data-theme="dark"] .gauge-track { stroke: #2b2a4a; }
[data-theme="dark"] .card-speed text { fill: #7d849c; }
[data-theme="dark"] .card-speed .gauge-num,
[data-theme="dark"] .card-speed .gauge-num tspan { fill: #b79cff; }

/* 多端设备线稿 */
[data-theme="dark"] .devices-visual svg { color: #6ee7b7; }
[data-theme="dark"] .devices-visual rect[fill="#fff"] { fill: #0f1f22; }
[data-theme="dark"] .os-row svg { color: #d7e2f5; }

/* 安全卡漂浮标签 */
[data-theme="dark"] .secure-tag {
    background: rgba(18, 26, 46, .88);
    border-color: rgba(91, 139, 248, .28);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .secure-tag.t1 { color: #86a9ff; }
[data-theme="dark"] .secure-tag.t2 { color: #b79cff; }
[data-theme="dark"] .secure-tag.t3 { color: #4ade80; }

/* 客户端 Logo 底色 */
[data-theme="dark"] .app-logo { background: var(--tint-blue); }
[data-theme="dark"] .app-card:nth-child(2) .app-logo { background: var(--tint-violet); }
[data-theme="dark"] .app-card:nth-child(3) .app-logo { background: var(--tint-mint); }

/* CTA 深色下增强边界 */
[data-theme="dark"] .cta { border: 1px solid rgba(255, 255, 255, .07); }

/* ============================================================
   动效精修
   ============================================================ */

/* ---------- 关键帧 ---------- */
@keyframes navIn {
    from { transform: translateY(-18px); opacity: 0; }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -24px) scale(1.08); }
}
@keyframes gradShift {
    to { background-position: 300% 0; }
}
@keyframes shine {
    0% { left: -60%; }
    55%, 100% { left: 130%; }
}
@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}
@keyframes ringPulse {
    0% { transform: scale(.65); opacity: .8; }
    70% { transform: scale(1.75); opacity: 0; }
    100% { transform: scale(1.75); opacity: 0; }
}
@keyframes dotPing {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes chipIn {
    to { opacity: 1; transform: none; }
}
@keyframes glowPulse {
    0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.92); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes ctaGlow {
    from { opacity: .75; }
    to { opacity: 1; transform: translateY(-10px) scale(1.04); }
}

/* ---------- 导航入场 ---------- */
.nav-inner { animation: navIn .7s cubic-bezier(.22, .61, .36, 1) both; }

/* ---------- Hero:渐变标题 + 漂浮光斑 ---------- */
.grad-anim {
    background: linear-gradient(90deg, #2e6bf6, #7c5cf0, #22b8ee, #2e6bf6);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradShift 7s linear infinite;
}

.hero { position: relative; }
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.hero::before {
    width: 380px; height: 380px;
    left: 8%; top: 30%;
    background: radial-gradient(circle, rgba(46, 107, 246, .16), transparent 65%);
    animation: blobDrift 11s ease-in-out infinite;
}
.hero::after {
    width: 420px; height: 420px;
    right: 5%; top: 12%;
    background: radial-gradient(circle, rgba(124, 92, 240, .14), transparent 65%);
    animation: blobDrift 13s ease-in-out infinite reverse;
}

/* ---------- 按钮流光 ---------- */
.btn-ink, .btn-blue, .cta .btn {
    position: relative;
    overflow: hidden;
}
.btn-ink::after, .cta .btn::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-20deg);
    animation: shine 3.8s ease-in-out infinite;
}
.cta .btn::after { background: linear-gradient(105deg, transparent, rgba(46, 107, 246, .18), transparent); }

/* ---------- 地图卡:弧线描画 + 节点脉冲 + 数据包 ---------- */
.card-map .arc {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.card-map.is-visible .arc { animation: drawArc 1.3s cubic-bezier(.4, 0, .2, 1) forwards; }
.card-map.is-visible .arc:nth-of-type(2) { animation-delay: .3s; }
.card-map.is-visible .arc:nth-of-type(3) { animation-delay: .5s; }
.card-map.is-visible .arc:nth-of-type(4) { animation-delay: .2s; }
.card-map.is-visible .arc:nth-of-type(5) { animation-delay: .4s; }

.card-map .packet { opacity: 0; transition: opacity .5s ease 1s; }
.card-map.is-visible .packet { opacity: 1; }

.node-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ringPulse 2.8s ease-out infinite;
}

.map-status .dot { animation: dotPing 2.2s ease-out infinite; }

/* ---------- 多端卡:设备漂浮 ---------- */
.devices-visual svg { animation: floatY 4.6s ease-in-out infinite; }
.devices-visual svg:nth-child(2) { animation-delay: .9s; }
.devices-visual svg:nth-child(3) { animation-delay: 1.8s; }

/* ---------- 安全卡:盾牌呼吸光环 ---------- */
.secure-visual { position: relative; }
.secure-visual::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 150px; height: 150px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 107, 246, .2), transparent 65%);
    animation: glowPulse 3.4s ease-in-out infinite;
    pointer-events: none;
}
.secure-visual svg { position: relative; animation: floatY 5.2s ease-in-out infinite; }

/* ---------- 仪表卡:进度弧充能 ---------- */
.gauge-progress { transition: stroke-dashoffset 1.7s cubic-bezier(.22, .61, .36, 1) .35s; }
.card-speed.is-visible .gauge-progress { stroke-dashoffset: 62; }

/* ---------- CTA 光晕呼吸 ---------- */
.cta::before { animation: ctaGlow 7s ease-in-out infinite alternate; }

/* ---------- 客户端 Logo 悬浮跳动 ---------- */
.app-card:hover .app-logo { transform: translateY(-4px) scale(1.05); }
.app-logo { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .card-map { grid-column: 1 / 3; grid-row: auto; }
    .apps-grid { grid-template-columns: repeat(3, 1fr); }
    .quotes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 130px 0 40px; }

    .nav { top: 10px; }
    .nav-burger { display: flex; }
    .nav-links {
        position: absolute;
        top: 74px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(18px);
        border: 1px solid var(--c-line);
        border-radius: 22px;
        box-shadow: 0 24px 48px rgba(15, 23, 41, .14);
        padding: 8px 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }
    .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-links a { padding: 13px 24px; font-size: 15px; }
    .nav-cta .btn-ghost-link { display: none; }

    .bento { grid-template-columns: 1fr; }
    .card-map { grid-column: auto; }
    .map-stats { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
    .map-stats div:nth-child(3)::before { display: none; }

    .apps-grid { grid-template-columns: 1fr; }
    .quotes-grid { grid-template-columns: 1fr; }
    .section { padding: 72px 0 0; }
}
