/* ============================================================
   m.zhayd.com — "Ambient OS 2036" 移动端设计系统
   玻璃拟态 + 极光背景 + 环境自适应主题 + 应用级 Dock
   ============================================================ */

:root {
    --accent-1: #22d3ee;   /* 电光青 */
    --accent-2: #818cf8;   /* 星际靛 */
    --accent-3: #e879f9;   /* 霓虹品红 */
    --ok: #34d399;
    --err: #f87171;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --dock-h: 68px;
    --pill-h: 34px;      /* 状态胶囊高度（行内，与顶栏同一行居中） */
    /* 顶部间距（确定性设计）：顶栏本体贴顶 top = 0，
       --top-inset 为栏内上下对称内衬，内容行在栏内垂直居中 */
    --top-inset: 14px;
    --topbar-h: 66px;    /* 顶栏渲染高度：内容 38 + 上下内边距 14*2 */
    /* 顶栏总占高 = 贴顶，即行高本身：供命令面板定位与锚点避让复用 */
    --topbar-total: var(--topbar-h);
    /* 锚点跳转需避开的总高度（顶栏 + 呼吸间距） */
    --anchor-offset: calc(var(--topbar-total) + 14px);
    --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2) 50%, var(--accent-3));
}

/* ---------- 暗色（默认） ---------- */
:root, [data-theme="dark"] {
    --bg: #05060f;
    --bg-soft: #0b0e1d;
    --glass: rgba(255, 255, 255, .06);
    --glass-strong: rgba(255, 255, 255, .10);
    --glass-border: rgba(255, 255, 255, .12);
    --header-bg: rgba(8, 10, 22, .92);
    --text: #eef1ff;
    --muted: #9aa3c0;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    --glow: 0 0 24px rgba(129, 140, 248, .35);
}

/* ---------- 亮色 ---------- */
[data-theme="light"] {
    --bg: #eef2fb;
    --bg-soft: #ffffff;
    --glass: rgba(255, 255, 255, .62);
    --glass-strong: rgba(255, 255, 255, .8);
    --glass-border: rgba(20, 30, 60, .10);
    --header-bg: rgba(255, 255, 255, .94);
    --text: #10142b;
    --muted: #5b6480;
    --shadow: 0 16px 40px rgba(30, 40, 80, .14);
    --glow: 0 0 22px rgba(129, 140, 248, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 24px);
    transition: background .4s ease, color .4s ease;
}

/* ---------- 全局链接 / 排版 / 焦点基础 ---------- */
a { color: inherit; text-decoration: none; }
::selection { background: rgba(129, 140, 248, .35); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { letter-spacing: -.02em; }

/* ---------- 极光动态背景 ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(129, 140, 248, .18), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(34, 211, 238, .14), transparent 60%),
        var(--bg);
}
.aurora span {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: radial-gradient(circle, var(--accent-2), transparent 65%); top: -20vmax; left: -15vmax; }
.aurora span:nth-child(2) { background: radial-gradient(circle, var(--accent-1), transparent 65%); bottom: -25vmax; right: -18vmax; animation-delay: -8s; }
.aurora span:nth-child(3) { background: radial-gradient(circle, var(--accent-3), transparent 65%); top: 30%; left: 40%; width: 40vmax; height: 40vmax; animation-delay: -16s; }
[data-theme="light"] .aurora span { opacity: .22; }
@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); }
    100% { transform: translate3d(-5vmax, 5vmax, 0) scale(.95); }
}

/* ---------- 玻璃基元 ---------- */
.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ---------- 状态胶囊（内联于顶栏同一行，居中的灵动岛式状态条） ---------- */
.dynpill {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--pill-h);
    padding: 0 15px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    transition: background .35s ease, border-color .35s ease;
}
.dynpill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .5);
}
.dynpill.ok .dot { background: var(--ok); animation: pulse 2s infinite; }
.dynpill.err .dot { background: var(--err); }
.dynpill .pill-time { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- 顶栏（单行集成：品牌 | 状态胶囊 | 操作区）---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    /* 顶部距离：本体贴顶，栏内上下对称 14px 内衬，胶囊/品牌/操作区同处一行 */
    padding: var(--top-inset) 20px;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .55);
    transition: box-shadow .3s ease, border-color .3s ease;
}
/* 窄屏保行：优先收起胶囊时间与品牌副标，再收紧边距/控件 */
@media (max-width: 390px) {
    .topbar { padding-inline: 14px; }
    .dynpill .pill-time { display: none; }
    .brand-sub { display: none; }
    .brand-mark { width: 32px; height: 32px; font-size: 17px; }
    .iconbtn { width: 34px; height: 34px; }
}
/* 滚动后抬升层级：加深投影，与下方内容清晰分层 */
.topbar.is-scrolled {
    box-shadow: 0 14px 38px -18px rgba(0, 0, 0, .55);
    border-bottom-color: var(--glass-border);
}
/* 底部发丝级品牌渐变线：克制而点睛 */
.topbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1.5px;
    background: var(--grad);
    opacity: .55;
}
/* 品牌区：渐变标识块 + 单色字标，稳重专业 */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}
.brand-mark {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--grad);
    color: #05060f;
    font-weight: 900;
    font-size: 19px;
    box-shadow: var(--glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--text);
}
.brand-sub {
    font-size: 11px;
    letter-spacing: .5px;
    color: var(--muted);
}
.topbar-actions { display: flex; gap: 10px; }
.iconbtn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s, border-color .2s, color .2s;
}
.iconbtn:hover { background: var(--glass-strong); border-color: var(--accent-2); color: var(--accent-1); }
.iconbtn:active { transform: scale(.9); }
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- 主容器 ---------- */
.shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 8px;
}

/* ---------- Hero / 问候 ---------- */
.hero { margin: 8px 0 22px; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--muted);
    padding: 5px 12px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.5px;
}
.hero h1 .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .lead { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Glanceable 实时卡片 ---------- */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.widget {
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.widget:active { transform: scale(.97); }
.widget .w-label { font-size: 12px; color: var(--muted); }
.widget .w-value { font-size: 22px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.widget .w-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.widget.wide { grid-column: span 2; }
.widget .w-value.ok { color: var(--ok); }
.widget .w-value.err { color: var(--err); }

/* ---------- 遥测控制台（Glanceable HUD ·  mission-cabin 风格实时面板） ---------- */
.tele {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}
/* HUD 细网格背景 */
.tele::before {
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(148, 163, 184, .05) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, .05) 0 1px, transparent 1px 28px);
    pointer-events: none;
}
/* 极光扫掠：光带缓慢扫过面板，营造活体系统感 */
.tele::after {
    content: "";
    position: absolute; top: 0; left: -40%;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(34, 211, 238, .09), rgba(232, 121, 249, .09), transparent);
    animation: tele-sweep 7s linear infinite;
    pointer-events: none;
}
@keyframes tele-sweep {
    0% { left: -40%; }
    100% { left: 100%; }
}
.tele-head {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted);
}
.tele-live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.tele-live .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .5);
    animation: pulse 2s infinite;
}
.tele-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tele-clock { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; letter-spacing: 1px; }
.tele-grid { position: relative; display: grid; grid-template-columns: 1fr; }
.tele-cell { position: relative; padding: 18px 18px 22px; }
.tele-cell + .tele-cell { border-top: 1px solid var(--glass-border); }
.tc-label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.tc-value {
    margin-top: 6px;
    font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(34, 211, 238, .35);
}
.tc-value.ok { color: var(--ok); text-shadow: 0 0 24px rgba(52, 211, 153, .45); }
.tc-value.err { color: var(--err); text-shadow: 0 0 24px rgba(248, 113, 113, .45); }
.tc-sub { margin-top: 4px; font-size: 11px; color: var(--muted); letter-spacing: .5px; }
/* 单元底部扫描线 */
.tc-scan {
    position: absolute; left: 18px; right: 18px; bottom: 10px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), transparent 85%);
    opacity: .55;
}
@media (min-width: 600px) {
    .tele-grid { grid-template-columns: repeat(3, 1fr); }
    .tele-cell + .tele-cell { border-top: 0; border-left: 1px solid var(--glass-border); }
}

/* ---------- 品牌宣言（构建未来数字体验） ---------- */
.manifesto {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0 0 26px;
    padding: 34px 22px 30px;
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}
.manifesto::before {
    content: "";
    position: absolute; top: -130px; left: 50%; transform: translateX(-50%);
    width: 420px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 121, 249, .16), transparent 70%);
    pointer-events: none;
}
.m-kicker {
    position: relative;
    font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--muted);
}
.m-title {
    position: relative;
    margin-top: 12px;
    font-size: clamp(26px, 7.5vw, 38px);
    line-height: 1.3; font-weight: 800; letter-spacing: 2px;
}
.m-title .l2 {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.m-statement {
    position: relative;
    margin: 14px auto 0;
    max-width: 36em;
    color: var(--muted);
    font-size: 14px; line-height: 1.95;
}
/* 页脚品牌标语 */
.footer-brand { margin: 2px 0 8px; }
.footer-brand strong {
    display: block; font-size: 14px; letter-spacing: 2px;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.footer-brand span {
    display: block;
    margin: 6px auto 0;
    max-width: 30em;
    font-size: 11.5px; line-height: 1.8;
    color: var(--muted);
}

/* ---------- 区块标题 ---------- */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin: 6px 2px 12px;
}
.section-title h2 { font-size: 17px; font-weight: 700; }
.section-title .hint { font-size: 12px; color: var(--muted); }

/* ---------- 功能卡片 ---------- */
.card-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
.card {
    display: flex; align-items: center; gap: 14px;
    border-radius: var(--radius-md);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, border-color .25s;
}
.card:active { transform: scale(.97); }
.card:hover { box-shadow: var(--glow); border-color: rgba(129, 140, 248, .5); transform: translateY(-2px); }
.card .c-icon {
    flex: 0 0 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(232, 121, 249, .18));
    border: 1px solid var(--glass-border);
    color: var(--accent-1);
}
.card .c-icon svg { width: 22px; height: 22px; }
.card h2 { font-size: 16px; font-weight: 700; }
.card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card .c-arrow { margin-left: auto; color: var(--muted); }

/* 双列小卡（未来特性展示） */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.feature {
    border-radius: var(--radius-md);
    padding: 16px;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.feature:active { transform: scale(.96); }
.feature .f-emoji { font-size: 24px; }
.feature h3 { font-size: 14px; font-weight: 700; margin-top: 8px; }
.feature p { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 底部 Dock ---------- */
.dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom) + 14px);
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.dock a, .dock button {
    flex: 1;
    min-width: 62px;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .2s, background .2s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.dock a svg, .dock button svg { width: 20px; height: 20px; }
.dock a.active, .dock button.active { color: var(--text); background: var(--glass-strong); }
.dock a:active, .dock button:active { transform: scale(.9); }
.dock .ai-slot {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--glow);
}
.dock .ai-slot.active { color: #fff; }

/* ---------- 遮罩 / 命令面板 / Sheet 通用 ---------- */
.scrim {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(3, 4, 10, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* 命令面板 */
.palette {
    position: fixed;
    top: calc(var(--topbar-total) + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-16px) scale(.98);
    width: min(560px, calc(100vw - 32px));
    z-index: 80;
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0; pointer-events: none;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
    box-shadow: var(--shadow);
}
.palette.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); }
.palette input {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    border-bottom: 1px solid var(--glass-border);
}
.palette .p-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.p-item {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 12px 12px;
    border: none; border-radius: 14px;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.p-item:hover, .p-item.sel { background: var(--glass-strong); }
.p-item .p-emoji { font-size: 18px; }
.p-item .p-tag { margin-left: auto; font-size: 11px; color: var(--muted); }

/* AI 协理 Sheet */
.sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    max-height: 76vh;
    display: flex; flex-direction: column;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--bg-soft);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(.22, 1, .36, 1);
    box-shadow: var(--shadow);
}
.sheet.show { transform: translateY(0); }
.sheet .grabber {
    width: 44px; height: 5px; border-radius: 999px;
    background: var(--glass-border);
    margin: 10px auto 4px;
}
.sheet header {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 18px 12px;
    border-bottom: 1px solid var(--glass-border);
}
.sheet header .ai-avatar {
    width: 34px; height: 34px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--grad); color: #fff; font-weight: 800;
}
.sheet header h3 { font-size: 16px; }
.sheet header .sub { font-size: 12px; color: var(--muted); }
.sheet .msgs {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.msg { max-width: 82%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: var(--glass); border: 1px solid var(--glass-border); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.sheet .composer {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--glass-border);
}
.sheet .composer input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.sheet .composer .iconbtn { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 999px; }
.sheet .composer .send { background: var(--grad); color: #fff; border: none; }
.sheet .composer .mic.on { background: var(--err); color: #fff; animation: pulse 1.4s infinite; }

/* ---------- 状态页 ---------- */
.status-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
.status-item {
    display: flex; justify-content: space-between; align-items: center;
    border-radius: var(--radius-md);
    padding: 16px;
}
.status-item .label { color: var(--muted); font-size: 14px; }
.status-item .value { font-weight: 700; font-variant-numeric: tabular-nums; }
.value.ok { color: var(--ok); }
.value.error, .value.err { color: var(--err); }

/* ---------- 页脚 ---------- */
.site-footer {
    max-width: 720px;
    margin: 10px auto 0;
    padding: 22px 16px 8px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--glass-border);
}
.site-footer .icp a { color: var(--muted); text-decoration: none; }
.site-footer .icp a:hover { color: var(--accent-2); }

/* 页脚导航链接 */
.footer-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 14px; margin-bottom: 12px; font-size: 12.5px;
}
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent-2); }

/* ---------- 下拉刷新指示 ---------- */
.ptr {
    position: fixed; top: 0; left: 50%;
    transform: translate(-50%, -60px);
    z-index: 65;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    transition: transform .2s ease;
    color: var(--accent-2);
}
.ptr.spin svg { animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ============================================================
   内容页 / 列表 / 详情 / 表单 —— 专业内容设计系统
   层级：页头 → 区块标题（渐变强调条）→ 内容卡片 → 元信息
   统一圆角 / 间距 / 色彩节奏；宽屏自动升级双列网格
   ============================================================ */

/* ---------- 页头 ---------- */
.page-head { margin: 6px 0 24px; }
.page-head .eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: var(--muted);
    padding: 6px 13px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    margin-bottom: 14px; letter-spacing: .3px;
}
.page-head h1 {
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.15; font-weight: 800; letter-spacing: -1px;
}
.page-head h1 .grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .lead { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 56ch; }

/* ---------- 面包屑 ---------- */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumb a { color: var(--muted); transition: color .2s; }
.crumb a:hover { color: var(--accent-2); }
.crumb .sep { opacity: .45; }
.crumb .cur {
    color: var(--text); font-weight: 600;
    max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 法律页签导航（隐私政策 / 服务条款 / 网站地图 互链） ---------- */
.tabnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tabnav a {
    font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 9px 16px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    transition: color .2s, background .2s, border-color .2s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.tabnav a:active { transform: scale(.94); }
.tabnav a:hover { color: var(--text); border-color: rgba(129, 140, 248, .45); }
.tabnav a.active {
    color: #fff; background: var(--grad); border-color: transparent;
    box-shadow: 0 6px 16px rgba(129, 140, 248, .3);
}

/* ---------- 区块标题（渐变强调条） ---------- */
.section-title {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 4px 2px 14px;
}
.section-title h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; }
.section-title h2::before {
    content: ""; flex: 0 0 4px; width: 4px; height: 17px; border-radius: 2px;
    background: var(--grad);
}
.section-title .hint { font-size: 12px; color: var(--muted); }
a.hint { transition: color .2s; }
a.hint:hover { color: var(--accent-2); }

/* 分组描述（合作伙伴 / 资源中心 分组说明） */
.section-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin: -6px 2px 14px; }

/* ---------- 内容卡片网格 ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
@media (min-width: 600px) { .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.tile {
    position: relative;
    display: flex; flex-direction: column;
    border-radius: 20px;
    padding: 18px 18px 14px;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, border-color .25s;
}
.tile::before {   /* 顶部渐变发丝线 */
    content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .55), transparent);
}
.tile:active { transform: scale(.98); }
.tile:hover { box-shadow: var(--glow); border-color: rgba(129, 140, 248, .45); transform: translateY(-2px); }
.tile .t-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tile .t-icon {
    flex: 0 0 46px; width: 46px; height: 46px;
    display: grid; place-items: center;
    font-size: 22px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(232, 121, 249, .16));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, .05);
}
.tile h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.tile .t-tag { font-size: 12px; font-weight: 500; color: var(--accent-2); margin-top: 4px; }
.tile .t-desc {
    font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tile .t-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}
.tile .t-more {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 12px; font-weight: 600; color: var(--accent-2); white-space: nowrap;
}
.tile .t-more::after { content: "›"; font-size: 14px; transition: transform .2s; }
.tile:hover .t-more::after { transform: translateX(3px); }
.tile .t-meta {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 12px; color: var(--muted); min-width: 0;
}

/* 精选标记 */
.badge {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 700; letter-spacing: .3px;
    padding: 4px 11px; border-radius: 999px;
    background: var(--grad); color: #fff;
    box-shadow: 0 4px 12px rgba(129, 140, 248, .35);
}

/* ---------- 标签 / chips ---------- */
.chip {
    display: inline-block; font-size: 11px; color: var(--muted);
    padding: 4px 10px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- 详情页 Hero ---------- */
.detail-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); padding: 24px 20px; margin-bottom: 22px;
    background: var(--glass); border: 1px solid var(--glass-border);
}
.detail-hero::before {
    content: ""; position: absolute; top: -70px; right: -50px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, .22), transparent 70%);
    pointer-events: none;
}
.detail-hero .d-icon {
    width: 62px; height: 62px;
    display: grid; place-items: center;
    font-size: 28px; border-radius: 18px; margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(232, 121, 249, .18));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .06);
}
.detail-hero h1 { font-size: clamp(24px, 6.5vw, 32px); font-weight: 800; line-height: 1.25; }
.detail-hero .d-sub { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 9px; }
.detail-hero .tags { margin-top: 14px; }

/* ---------- 文章 / 正文排版 ---------- */
.article {
    border-radius: var(--radius-md); padding: 20px 18px; margin-bottom: 24px;
    background: var(--glass); border: 1px solid var(--glass-border);
}
.article h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 20px 0 10px; }
.article h2::before {
    content: ""; flex: 0 0 3px; width: 3px; height: 14px; border-radius: 2px;
    background: var(--grad);
}
.article h2:first-child { margin-top: 0; }
.article p { color: var(--text); font-size: 14.5px; line-height: 1.9; margin-bottom: 12px; opacity: .92; }
.article ul { margin: 2px 0 12px; padding-left: 2px; list-style: none; }
.article ul li {
    position: relative; padding-left: 20px; margin-bottom: 10px;
    font-size: 14px; color: var(--text); line-height: 1.7; opacity: .92;
}
.article ul li::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--grad);
}
.article .meta { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.article pre {
    white-space: pre-wrap; word-break: break-word;
    font-family: inherit; font-size: 14.5px; line-height: 1.9; color: var(--text); opacity: .92;
}
.article a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* 键值信息行 */
.kv {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 13px 2px; border-bottom: 1px solid var(--glass-border); font-size: 14px;
}
.kv:first-child { padding-top: 2px; }
.kv:last-child { border-bottom: none; padding-bottom: 2px; }
.kv .k { color: var(--muted); flex: 0 0 auto; font-size: 13px; }
.kv .v { text-align: right; font-weight: 600; word-break: break-word; }

/* ---------- 表单 ---------- */
.form-card {
    border-radius: var(--radius-lg); padding: 22px 18px; margin-bottom: 26px;
    background: var(--glass); border: 1px solid var(--glass-border);
}
.field { margin-bottom: 16px; }
.field label { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field label .req { color: var(--err); }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 15px; font-size: 15px;
    border-radius: 14px; border: 1px solid var(--glass-border);
    background: var(--bg-soft); color: var(--text); outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.field select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3c0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
    padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(129, 140, 248, .18);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.btn {
    width: 100%; padding: 14px; font-size: 15px; font-weight: 700; letter-spacing: .3px;
    border: none; border-radius: 14px; cursor: pointer;
    background: var(--grad); color: #fff;
    box-shadow: 0 8px 20px rgba(129, 140, 248, .28);
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.ghost {
    background: var(--glass); color: var(--text);
    border: 1px solid var(--glass-border); box-shadow: none;
}
.form-msg { margin-top: 14px; font-size: 14px; padding: 12px 14px; border-radius: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(52, 211, 153, .14); color: var(--ok); border: 1px solid rgba(52, 211, 153, .3); }
.form-msg.err { background: rgba(248, 113, 113, .14); color: var(--err); border: 1px solid rgba(248, 113, 113, .3); }

/* ---------- CTA 横幅 ---------- */
.cta {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); padding: 28px 22px; margin: 6px 0 28px;
    text-align: center; background: var(--grad); color: #fff;
    box-shadow: var(--glow);
}
.cta::before, .cta::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .14); pointer-events: none;
}
.cta::before { width: 140px; height: 140px; top: -60px; left: -40px; }
.cta::after { width: 180px; height: 180px; bottom: -90px; right: -50px; }
.cta h2 { font-size: 20px; font-weight: 800; }
.cta p { font-size: 14px; opacity: .92; margin-top: 8px; }
.cta .btn {
    width: auto; display: inline-block; margin-top: 18px; padding: 12px 30px;
    background: #fff; color: #10142b; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* ---------- 空状态 ---------- */
.empty {
    text-align: center; color: var(--muted); font-size: 14px;
    padding: 40px 20px; border-radius: var(--radius-md);
    background: var(--glass); border: 1px dashed var(--glass-border);
    margin-bottom: 26px;
}

/* ============================================================
   专业页面增强组件 —— 大气 Hero / 数据亮点 / 文档目录 / 编号分节
   用于 隐私政策·服务条款·合作伙伴·资源中心·网站地图
   复用现有玻璃拟态与渐变变量，宽屏自动升级多列
   ============================================================ */

/* ---------- 大气 Hero 横幅（居中） ---------- */
.page-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 36px 22px 30px; margin: 6px 0 24px;
    text-align: center;
    background: var(--glass); border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}
.page-hero::before {   /* 顶部极光光晕 */
    content: ""; position: absolute; top: -90px; left: 50%; transform: translateX(-50%);
    width: 340px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, .3), transparent 70%);
    pointer-events: none;
}
.page-hero::after {    /* 底部渐变发丝线 */
    content: ""; position: absolute; bottom: 0; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), transparent);
}
.page-hero > * { position: relative; }
.page-hero .ph-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--muted);
    padding: 6px 14px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--glass-border);
    margin-bottom: 18px;
}
.page-hero .ph-emblem {
    width: 74px; height: 74px; margin: 0 auto 18px;
    display: grid; place-items: center;
    font-size: 36px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(232, 121, 249, .2));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, .07), var(--glow);
}
.page-hero h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.16; font-weight: 800; letter-spacing: -1px; }
.page-hero h1 .grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .ph-lead { margin: 14px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 44ch; }

/* Hero 内文档元信息胶囊行 */
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.doc-meta .dm-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--muted);
    padding: 6px 12px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
}

/* ---------- 数据亮点条 ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 26px; }
.stat {
    position: relative; overflow: hidden; text-align: center;
    border-radius: var(--radius-md); padding: 18px 8px;
    background: var(--glass); border: 1px solid var(--glass-border);
}
.stat::before {
    content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .5), transparent);
}
.stat .s-num {
    font-size: 26px; font-weight: 800; line-height: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat .s-label { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ---------- 居中分区标题（大气） ---------- */
.section-head { text-align: center; margin: 10px 0 18px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.section-head .sh-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 8px auto 0; max-width: 48ch; }

/* ---------- 法律文档目录 TOC ---------- */
.toc {
    border-radius: var(--radius-md); padding: 18px; margin-bottom: 22px;
    background: var(--glass); border: 1px solid var(--glass-border);
}
.toc .toc-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .3px; margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr; gap: 1px; }
@media (min-width: 560px) { .toc ol { grid-template-columns: repeat(2, 1fr); gap: 1px 16px; } }
.toc li { counter-increment: toc; }
.toc a {
    display: flex; align-items: baseline; gap: 10px;
    padding: 8px 10px; border-radius: 10px;
    font-size: 13.5px; color: var(--muted);
    transition: background .2s, color .2s;
}
.toc a:hover { background: var(--glass-strong); color: var(--text); }
.toc a::before {
    content: counter(toc, decimal-leading-zero);
    flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--accent-2);
    font-variant-numeric: tabular-nums;
}

/* ---------- 编号文档分节 ---------- */
.doc-section {
    position: relative; scroll-margin-top: var(--anchor-offset);
    border-radius: var(--radius-md); padding: 20px 18px; margin-bottom: 14px;
    background: var(--glass); border: 1px solid var(--glass-border);
    transition: border-color .25s, box-shadow .25s;
}
.doc-section:hover { border-color: rgba(129, 140, 248, .35); box-shadow: var(--glow); }
.doc-section .ds-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.doc-section .ds-num {
    flex: 0 0 auto; width: 34px; height: 34px;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800; border-radius: 11px;
    background: var(--grad); color: #fff;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 12px rgba(129, 140, 248, .28);
}
.doc-section h2 { font-size: 16.5px; font-weight: 800; line-height: 1.4; }
.doc-section p { font-size: 14.5px; line-height: 1.9; color: var(--text); opacity: .92; margin-bottom: 10px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { list-style: none; margin: 4px 0 10px; padding-left: 2px; }
.doc-section ul li {
    position: relative; padding-left: 20px; margin-bottom: 9px;
    font-size: 14px; line-height: 1.7; color: var(--text); opacity: .92;
}
.doc-section ul li::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--grad);
}
.doc-section .ds-note {
    margin-top: 6px; padding: 12px 14px; border-radius: 12px;
    font-size: 13px; line-height: 1.7; color: var(--muted);
    background: var(--glass); border: 1px solid var(--glass-border); border-left: 3px solid var(--accent-2);
}

/* ---------- 合作伙伴 Logo 卡片（居中） ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 30px; }
@media (min-width: 600px) { .partner-grid { grid-template-columns: repeat(4, 1fr); } }
.partner-card {
    text-align: center; border-radius: 20px; padding: 24px 14px 20px;
    background: var(--glass); border: 1px solid var(--glass-border);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, border-color .25s;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(129, 140, 248, .45); }
.partner-card .pc-icon {
    width: 62px; height: 62px; margin: 0 auto 14px;
    display: grid; place-items: center; font-size: 32px; border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(232, 121, 249, .16));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, .05);
}
.partner-card h3 { font-size: 15px; font-weight: 700; }
.partner-card p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---------- 网站地图分组面板 ---------- */
.sm-group {
    border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px;
    background: var(--glass); border: 1px solid var(--glass-border);
}
.sm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sm-head .sm-icon {
    flex: 0 0 auto; width: 34px; height: 34px;
    display: grid; place-items: center; font-size: 18px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(232, 121, 249, .16));
    border: 1px solid var(--glass-border);
}
.sm-head h2 { font-size: 15.5px; font-weight: 800; }
.sm-head .sm-count {
    margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent-2);
    padding: 3px 9px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
}
.link-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 560px) { .link-list { grid-template-columns: repeat(2, 1fr); gap: 2px 14px; } }
.link-list a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: 10px;
    font-size: 13.5px; color: var(--text);
    transition: background .2s, color .2s, transform .2s;
}
.link-list a::before { content: "›"; color: var(--accent-2); font-weight: 700; }
.link-list a:hover { background: var(--glass-strong); color: var(--accent-2); transform: translateX(2px); }

/* ---------- CTA 双按钮 ---------- */
.cta .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.cta .btn-row .btn { width: auto; margin-top: 0; padding: 13px 30px; }
.cta .btn.ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .75); box-shadow: none; }

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
