/* 前台设计系统:设计 token + 全站组件与页面样式;号码页专用样式在 card.css。
   颜色/字号/圆角/阴影一律取 token;深色模式段覆写同名 token。
   拟物件(SIM 芯片、条码、票券缺口)与品牌卡面、深色 footer 为独立色域,不受 token 约束。 */

/* Design Tokens */
:root {
    /* 文字 */
    --ink: #16324a;
    --ink-2: #4a6683;
    --ink-3: #587089;
    /* 品牌强调色(点缀,不大面积铺) */
    --sky: #0f86d4;
    --sky-deep: #0b6bb0;
    --sky-soft: #bfe3fb;
    --mint: #1fb995;
    --mint-ink: #0d7f66; /* 薄荷绿文字,白底对比度 4.5 以上 */
    --sun: #ff9d4d;
    /* 品牌衍生:tint 底 / 描边 / 彩影 / 渐变 */
    --sky-tint: rgba(122, 199, 250, .16);
    --sky-tint-2: rgba(122, 199, 250, .28);
    --sky-brd: rgba(15, 134, 212, .28);
    --sky-brd-2: rgba(15, 134, 212, .45);
    --mint-tint: rgba(31, 185, 149, .16);
    --glow-sky: 0 4px 12px -4px rgba(16, 120, 190, .45);
    --glow-sky-lg: 0 8px 18px -6px rgba(16, 120, 190, .55);
    --glow-card: 0 10px 24px -14px rgba(13, 100, 178, .5);
    --glow-card-hover: 0 16px 32px -14px rgba(13, 100, 178, .58);
    --grad-brand: linear-gradient(135deg, #0c78c0, var(--sky-deep)); /* 两端配白字均达 4.5 */
    --card-face: var(--sky-deep); /* 品牌卡面纯色平涂(独立色域) */
    /* 语义状态(文字 / 底 / 描边) */
    --ok: #087443;
    --ok-bg: rgba(16, 185, 120, .14);
    --ok-brd: rgba(16, 160, 96, .32);
    --warn: #8a5f00;
    --warn-bg: rgba(240, 175, 40, .16);
    --warn-brd: rgba(220, 160, 40, .35);
    --danger: #b4482a;
    --danger-bg: rgba(230, 120, 80, .14);
    --danger-brd: rgba(210, 90, 55, .32);
    --danger-solid: #b4482a; /* 危险按钮实底,深浅主题同值 */
    --idle: #4a6683;
    --idle-bg: rgba(120, 140, 160, .14);
    --idle-brd: rgba(120, 140, 160, .3);
    /* 顶栏高度,须与 .nav-inner 的 height 一致 */
    --nav-h: 72px;
    /* 表面 / 背景 / 描边 */
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-2: #f5f8fb;
    --surface-3: #eef3f8;
    --border: rgba(23, 50, 74, .10);
    --border-2: rgba(23, 50, 74, .15);
    --hairline: rgba(23, 50, 74, .07);
    --scrim: rgba(15, 30, 45, .42);
    --scrim-sky: rgba(9, 50, 92, .42); /* 对话框遮罩 */
    /* 圆角阶梯 */
    --r-xs: 8px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 999px;
    /* 阴影阶梯(克制) */
    --sh-sm: 0 1px 2px rgba(23, 50, 74, .06), 0 1px 1px rgba(23, 50, 74, .04);
    --sh-md: 0 6px 16px -8px rgba(23, 50, 74, .18), 0 2px 6px -3px rgba(23, 50, 74, .07);
    --sh-lg: 0 16px 36px -14px rgba(23, 50, 74, .2), 0 5px 12px -5px rgba(23, 50, 74, .07);
    /* 字号阶梯(UI 文本必用;display 数字可例外) */
    --t-2xs: .7rem; --t-xs: .75rem; --t-sm: .82rem; --t-base: .9rem; --t-md: 1rem; --t-lg: 1.15rem; --t-title: 1.3rem; --t-xl: 1.4rem;
    --font-display: "Avenir Next", "Avenir", "Futura", "Gill Sans", "Trebuchet MS", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, "Cascadia Code", Consolas, "Courier New", monospace;
}

/* 繁体用港台字体 */
:root:lang(zh-TW) {
    --font-display: "Avenir Next", "Avenir", "Futura", "Gill Sans", "Trebuchet MS", "PingFang TC", "Heiti TC", "Source Han Sans TC", "Microsoft JhengHei", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Heiti TC", "Source Han Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}

:root:lang(zh-HK) {
    --font-display: "Avenir Next", "Avenir", "Futura", "Gill Sans", "Trebuchet MS", "PingFang HK", "PingFang TC", "Source Han Sans HC", "Microsoft JhengHei", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang HK", "PingFang TC", "Source Han Sans HC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x:clip 须同时加在 html 与 body;clip 不建立滚动容器,不影响 .nav 的 sticky */
html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: clip; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: rgba(15, 134, 212, .22); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* 背景层:安静,仅顶部一点极淡品牌光 */
.sky {
    position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(1000px 560px at 14% -10%, rgba(122, 199, 250, .16), transparent 60%),
        linear-gradient(180deg, #f6f9fc 0%, var(--bg) 60%);
}

/* 布局原语 */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0 0; }
.kicker {
    font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 600;
    letter-spacing: .32em; text-transform: uppercase; color: var(--sky-deep);
    display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; flex: none; width: 26px; height: 2px; background: linear-gradient(90deg, var(--sky), var(--mint)); border-radius: 2px; }
@media (max-width: 560px) { .kicker { letter-spacing: .14em; } }
h2 {
    font-family: var(--font-display); font-weight: 800; letter-spacing: .01em;
    font-size: clamp(1.65rem, 3.4vw, 2.35rem); line-height: 1.25; margin-top: 14px;
}
.section-lead { color: var(--ink-2); margin-top: 12px; max-width: 40em; }
/* 标题折行时各行长度均衡 */
h1, h2, h3 { text-wrap: balance; }
/* 正文避免末行只剩一个词 */
p, li { text-wrap: pretty; }

/* 通用组件 */

/* 产品面(.glass 为实心白面板) */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
}

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: var(--t-base);
    padding: 11px 22px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary {
    color: #fff;
    background: var(--grad-brand);
    box-shadow: var(--glow-sky);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--glow-sky-lg); }
.btn-primary:active { transform: none; }
.btn-lite {
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--sh-sm);
}
.btn-lite:hover { border-color: var(--sky-brd-2); background: var(--surface-2); }
.btn-danger { color: #fff; background: var(--danger-solid); box-shadow: var(--sh-md); }
.btn-danger:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-danger:active { transform: none; filter: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; filter: none !important; }
.btn-sm { padding: 8px 16px; font-size: var(--t-sm); border-radius: var(--r-sm); }

/* 同一行里的几段信息靠间距分开,不加分隔符 */
.meta-gap { margin-left: 12px; }

/* 徽标胶囊基座 */
.badge, .chip, .order-pill, .package-badge, .package-days, .topup-amount-tag, .stock {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--t-2xs); font-weight: 600; line-height: 1.5;
    padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap;
}
/* 主状态徽标(订单 / 号码状态)略大一号 */
.order-pill { font-size: var(--t-xs); }
/* 语义配色(默认无边;需要描边的组件在自身规则里加 -brd) */
.is-danger { color: var(--danger); background: var(--danger-bg); }
.is-idle { color: var(--idle); background: var(--idle-bg); }
.is-brand { color: var(--sky-deep); background: var(--sky-tint); }
/* 订单状态 → 语义色(类名由数据拼出:opill status-{status}) */
.order-pill.status-1 { color: var(--warn); background: var(--warn-bg); }             /* 待支付 */
.order-pill.status-2 { color: var(--sky-deep); background: var(--sky-tint-2); }      /* 已支付 / 开通中 */
.order-pill.status-3 { color: var(--ok); background: var(--ok-bg); }                 /* 已完成 */
.order-pill.status-4, .order-pill.status-6 { color: var(--idle); background: var(--idle-bg); } /* 已关闭 / 已退款 */
.order-pill.status-5 { color: var(--danger); background: var(--danger-bg); }         /* 开通异常 */
/* mono 标签胶囊 */
.chip {
    font-family: var(--font-mono); letter-spacing: .1em;
    color: var(--sky-deep); background: var(--sky-tint-2); border: 1px solid var(--sky-brd);
}
/* 库存徽标(首页 ticket) */
.stock { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-brd); padding: 5px 12px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.stock.out { color: var(--idle); background: var(--idle-bg); border-color: var(--idle-brd); }
.stock.out::before { background: var(--idle); }

/* 图标小盒基座(grid 居中 + 三档尺寸) */
.icon-box, .user-center-todo-icon, .info-icon, .usage-row-icon, .buy-notice-icon, .info-head-icon,
.usage-icon, .tag-message .icon, .num-add .plus, .metric .metric-icon, .step-number, .user-avatar {
    display: grid; place-items: center; flex: none;
}
/* 34px 档:行内条目图标 */
.info-icon, .usage-row-icon, .buy-notice-icon, .tag-message .icon { width: 34px; height: 34px; border-radius: var(--r-sm); }
.buy-notice-icon svg { width: 17px; height: 17px; }
/* 40px 档:列表 / 面板头图标 */
.user-center-todo-icon, .num-add .plus, .metric .metric-icon { width: 40px; height: 40px; border-radius: var(--r-sm); }
/* 44px 档:区块主图标 */
.info-head-icon, .usage-icon { width: 44px; height: 44px; border-radius: var(--r-md); }
/* 默认 tint 配色(个性配色在各组件区覆盖) */
.user-center-todo-icon, .info-icon, .buy-notice-icon { color: var(--sky-deep); background: var(--sky-tint); }

/* 可选瓷砖基座(面额 / 支付方式) */
.topup-amount-option, .pay-option {
    cursor: pointer;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}
.topup-amount-option:hover, .pay-option:hover { border-color: var(--sky-brd-2); transform: translateY(-1px); }
.topup-amount-option.is-on, .pay-option.is-on {
    border-color: var(--sky);
    background: var(--sky-tint);
}
/* 付款方式图标(品牌固有色,特例) */
.pay-icon { flex: none; width: 18px; height: 18px; }
.setting-input {
    width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
    font-size: var(--t-base); color: var(--ink); font-family: inherit;
    background: var(--surface); border: 1.5px solid var(--border-2);
    transition: border-color .15s, background .15s;
} .setting-input:focus { outline: none; border-color: var(--sky); } .setting-input::placeholder { color: var(--ink-3); }
.setting-input { flex: 1; max-width: 240px; padding: 8px 14px; }
/* iOS Safari 对 <16px 输入框聚焦时会整页放大,窄屏提到 16px */
@media (max-width: 680px) {
    .setting-input { font-size: var(--t-md); }
}
/* 开关(span=静态示意;button=可交互,如语音信箱) */
.switch { flex: none; width: 42px; height: 24px; border-radius: var(--r-pill); background: var(--idle-bg); position: relative; opacity: .55; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s; }
.switch.is-on { background: var(--sky); opacity: 1; }
.switch.is-on::after { transform: translateX(18px); }
button.switch { appearance: none; -webkit-appearance: none; border: 0; padding: 0; cursor: pointer; opacity: 1; }
button.switch:disabled { cursor: not-allowed; opacity: .55; }
button.switch.is-busy { opacity: .55; }
/* 语音信箱状态加载:开关呈骨架 shimmer */
button.switch.is-loading { opacity: 1; cursor: default; background: linear-gradient(100deg, var(--sky-tint-2) 30%, rgba(255, 255, 255, .85) 50%, var(--sky-tint-2) 70%); background-size: 220% 100%; animation: shimmer 1.3s ease-in-out infinite; }
button.switch.is-loading::after { opacity: 0; }
#voicemail-msgs-load[hidden] { display: none; } /* .btn 的 display 会压过 [hidden] 的 UA 样式 */
/* 空状态基座:图标圆盘 + 标题 + 说明 */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 11px; margin: 14px 0 4px; padding: 26px 22px; text-align: center; border: 1px dashed var(--border-2); border-radius: var(--r-md); }
.empty-state[hidden] { display: none; } /* display:flex 会压过 [hidden] 的 UA 样式,需显式关闭 */
/* 紧凑档:只有一行说明(可带一个按钮),用于套餐区、搜索无结果等行内空态 */
.empty-state.is-compact { gap: 14px; padding: 20px; font-size: var(--t-sm); color: var(--ink-3); }
.empty-state.is-compact p { margin: 0; }

/* 提示框统一度量(登录报错 .error-tip、法务说明 .legal-note、号码冻结 .console-lock):中圆角 + 12/16 内边距 + 细边框 + 小号字,色调按语义 */
.error-tip, .legal-note, .console-lock {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px; border: 1px solid; border-radius: var(--r-md);
    font-size: var(--t-sm); line-height: 1.6;
}
.error-tip {
    margin-top: 18px;
    background: var(--danger-bg); border-color: var(--danger-brd); color: var(--danger);
}

/* 状态版式:错误/空态页(插画 + 标题 + 说明 + 动作) */
.state { max-width: 460px; margin: clamp(44px, 9vw, 108px) auto; padding: 0 24px; text-align: center; }
.state-art { position: relative; width: 224px; height: 164px; margin: 0 auto 28px; }
/* 插画背后的品牌柔光 */
.state-art::before { content: ""; position: absolute; inset: -18px; z-index: 0;
    background: radial-gradient(closest-side, var(--sky-tint), transparent 74%); }
.state-sim { position: relative; z-index: 1; width: 100%; height: 100%; display: block;
    animation: state-float 5.5s ease-in-out infinite; transform-origin: 50% 62%; }
@keyframes state-float { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-7px) rotate(.5deg); } }
.sim-shadow { fill: var(--sky-tint); }
.sim-body { fill: var(--sky-tint); stroke: var(--sky-brd); stroke-width: 2; }
.sim-chip { fill: var(--sky-soft); stroke: var(--sky-brd); stroke-width: 1.4; }
.badge-bg { fill: var(--surface); stroke: var(--danger-brd); stroke-width: 2.4; }
.badge-mark { stroke: var(--danger); stroke-width: 2.8; stroke-linecap: round; fill: none; }
.state-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin: 0 0 12px; letter-spacing: -.01em; }
.state-desc { max-width: 32ch; margin: 0 auto 30px; color: var(--ink-3); font-size: var(--t-base); line-height: 1.7; }
.state-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .state-sim { animation: none; } }
/* 入场动效(仅首屏,克制) */
.rise-in { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.22, .8, .3, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 轻提示(AppUI.toast):顶部居中,几秒后自动淡出 */
.app-toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.app-toast { display: flex; flex-direction: column; gap: 2px; min-width: 220px; max-width: min(420px, calc(100vw - 32px)); padding: 11px 18px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-lg); text-align: center; animation: toastIn .28s cubic-bezier(.2, .8, .3, 1); transition: opacity .3s ease, transform .3s ease; }
.app-toast b { font-size: var(--t-sm); font-weight: 700; line-height: 1.35; }
.app-toast span { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.4; }
.app-toast.tone-ok { border-color: var(--ok-brd); }
.app-toast.tone-ok b { color: var(--ok); }
.app-toast.tone-danger { border-color: var(--danger-brd); }
.app-toast.tone-danger b { color: var(--danger); }
.app-toast.is-out { opacity: 0; transform: translateY(-6px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .app-toast { animation: none; transition: none; } }

/* 对话框(全站确认 / 提示模态) */
.app-dialog {
    width: min(420px, calc(100vw - 40px));
    margin: auto; /* 复位全局 *{margin:0},恢复 <dialog> 的居中 */
    padding: 0; border: 0; overflow: visible;
    color: var(--ink); background: transparent;
}
.app-dialog::backdrop { background: var(--scrim-sky); -webkit-backdrop-filter: blur(3px) saturate(1.1); backdrop-filter: blur(3px) saturate(1.1); }
.app-dialog[open] { animation: dialogIn .22s cubic-bezier(.22, .9, .3, 1); }
.app-dialog-card {
    padding: 22px 22px 18px; text-align: left;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); box-shadow: var(--sh-lg);
}
.app-dialog-head { display: flex; align-items: center; gap: 12px; }
/* 图标盒:icbox 40px 档 */
.app-dialog-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--sky-deep); background: var(--sky-tint); }
.app-dialog-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-dialog.tone-ok .app-dialog-icon { color: var(--ok); background: var(--ok-bg); }
.app-dialog.tone-warn .app-dialog-icon { color: var(--warn); background: var(--warn-bg); }
.app-dialog.tone-danger .app-dialog-icon { color: var(--danger); background: var(--danger-bg); }
.app-dialog-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--t-md); line-height: 1.4; color: var(--ink); }
.app-dialog-msg { margin: 12px 0 0; color: var(--ink-2); font-size: var(--t-base); line-height: 1.7; white-space: pre-line; }
.app-dialog-msg:empty { display: none; }
.app-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.app-dialog-actions .btn { min-width: 92px; justify-content: center; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* 站点框架 */

/* 活动横幅:导航之上随页面滚走;底色两套主题相同,保证白字对比度 */
.promo { background: linear-gradient(90deg, #0a5c99, #0b6bb0); color: #fff; }
.promo-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 46px; }
.promo-msg { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-sm); line-height: 1.5; text-align: center; }
.promo-text { font-weight: 700; overflow-wrap: anywhere; }
.promo-go { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; white-space: nowrap; }
.promo-go:hover { text-decoration: underline; }
.promo-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
    border: 0; border-radius: var(--r-pill); background: none; color: #fff; opacity: .8; cursor: pointer; transition: opacity .15s, background .15s;
}
.promo-close:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.promo-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
    .promo-inner { padding: 6px 42px; }
    .promo-msg { font-size: var(--t-xs); }
    .promo-close { right: 8px; }
}

/* 导航 */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.brand .sim { width: 28px; height: 28px; flex: none; }
.brand b { color: var(--sky-deep); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: var(--t-base); font-weight: 500; color: var(--ink-2); margin: 0 auto; }
.nav-links a { position: relative; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--sky), var(--mint)); transition: right .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
/* 折叠区包裹:桌面 display:contents,移动端转为浮层 */
.nav-drawer { display: contents; }
.nav-scrim { display: none; }
.user-pill {
    display: inline-flex; align-items: center; gap: 9px;
    height: 38px; padding: 0 11px 0 3px; border-radius: var(--r-pill); cursor: pointer;
    font: inherit; color: var(--ink-3); background: var(--surface); border: 1px solid var(--border);
    transition: color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .12s ease;
}
.user-avatar {
    position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
    background: var(--grad-brand); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); line-height: 1; text-transform: uppercase;
}
.user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.user-name {
    font-size: var(--t-base); font-weight: 600; color: var(--ink);
    max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-caret { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.user-menu.is-open .user-caret { transform: rotate(180deg); }
.user-menu .nav-menu-panel { min-width: 200px; }
.user-menu-out { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login {
    display: inline-flex; align-items: center; justify-content: center; height: 38px;
    font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); color: var(--sky-deep);
    padding: 0 22px; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--sky-brd);
    transition: all .25s ease;
}
.nav-login:hover { background: var(--card-face); border-color: var(--card-face); color: #fff; box-shadow: var(--glow-sky-lg); }
/* 汉堡开关:桌面隐藏,移动端显示 */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.nav-burger .icon-close { display: none; }

/* 页脚(独立深色域,不用浅色 token) */
footer {
    position: relative; margin-top: 110px; color: #c6dcec;
    background:
        radial-gradient(700px 260px at 12% -60px, rgba(64, 150, 214, .30), transparent 70%),
        radial-gradient(600px 240px at 88% 110%, rgba(43, 167, 238, .10), transparent 70%),
        linear-gradient(180deg, #12293e, #0b1a29);
}
footer::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 199, 250, .45) 30%, rgba(124, 199, 250, .45) 70%, transparent);
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(150px, auto)); column-gap: 80px; row-gap: 40px; padding: 68px 0 52px; }
.foot-brand .brand { color: #fff; font-size: 1.3rem; }
.foot-brand .brand b { color: #7cc7fa; }
.foot-slogan { margin-top: 18px; color: #9dbdd6; max-width: 22em; line-height: 1.8; font-size: var(--t-base); }
.foot-col h4 { font-size: var(--t-sm); font-weight: 600; color: #fff; letter-spacing: .02em; margin-bottom: 14px; }
.foot-col a { display: block; width: fit-content; padding: 6px 0; color: #9dbdd6; font-size: var(--t-base); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-base {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
    font-size: var(--t-sm); color: #7fa2bd; letter-spacing: .02em;
}

/* 首页 */

/* Hero */
.hero { position: relative; padding: 88px 0 0; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
.hero h1 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2.15rem, 5vw, 3.35rem); line-height: 1.22; letter-spacing: .01em;
    margin: 22px 0 20px;
}
.hero h1 .highlight, .rates-hero h1 .highlight { position: relative; white-space: nowrap; }
.hero h1 .highlight::before, .rates-hero h1 .highlight::before {
    content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .04em; height: .42em;
    border-radius: .21em; background: linear-gradient(90deg, rgba(122, 199, 250, .65), rgba(142, 233, 201, .6)); /* 荧光笔划线,装饰特例 */
}
.hero-subtitle { color: var(--ink-2); font-size: var(--t-lg); max-width: 30em; line-height: 1.85; }
.hero-subtitle b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 560px) {
    .hero-cta { gap: 12px; }
    .hero-cta .btn { flex: 1 1 100%; text-align: center; }
}

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 28px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); color: var(--ink-2); font-weight: 500; }
.hero-trust svg { color: var(--mint); flex: none; }

/* 云朵(装饰) */
.cloud { position: absolute; pointer-events: none; filter: blur(3px); opacity: .4; }
.cloud i, .cloud::before, .cloud::after { content: ""; display: block; position: absolute; background: rgba(255, 255, 255, .7); border-radius: var(--r-pill); }
.cloud-1 { top: 2%; left: 52%; width: 180px; height: 52px; animation: drift 46s ease-in-out infinite alternate; }
.cloud-1 i { width: 180px; height: 44px; top: 18px; }
.cloud-1::before { width: 76px; height: 56px; left: 26px; top: -16px; }
.cloud-1::after { width: 56px; height: 44px; left: 96px; top: -8px; }
.cloud-2 { top: 64%; left: -40px; width: 130px; height: 40px; opacity: .7; animation: drift 60s ease-in-out infinite alternate-reverse; }
.cloud-2 i { width: 130px; height: 32px; top: 12px; }
.cloud-2::before { width: 54px; height: 40px; left: 20px; top: -12px; }
.cloud-2::after { width: 40px; height: 30px; left: 68px; top: -6px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(70px); } }

/* Hero 右侧舞台 */
.stage { position: relative; height: 500px; }
.globe { position: absolute; right: -30px; top: 24px; width: 430px; height: 430px; color: rgba(15, 134, 212, .30); }
.orbit { position: absolute; right: -30px; top: 24px; width: 430px; height: 430px; pointer-events: none; color: rgba(11, 107, 176, .55); }
.orbit path { stroke-dasharray: 5 9; animation: dashmove 26s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -280; } }

.tag-message {
    position: absolute; bottom: 52px; right: -4px; z-index: 3; width: 316px; max-width: calc(100vw - 32px);
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 15px; border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .92); border: 1px solid rgba(126, 151, 171, .24);
    box-shadow: 0 16px 36px rgba(31, 75, 108, .16), 0 2px 8px rgba(31, 75, 108, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    animation: messageIn .65s cubic-bezier(.22, 1, .36, 1) .85s both;
}
.tag-message .icon { width: 38px; height: 38px; margin-top: 1px; border-radius: 50%; background: linear-gradient(145deg, #35d29f, #11996f); color: #fff; box-shadow: 0 5px 12px rgba(17, 153, 111, .22); }
.tag-message .icon svg { width: 18px; height: 18px; }
.tagmsg-body { flex: 1; min-width: 0; }
.tagmsg-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; line-height: 1.2; }
.tagmsg-meta b { color: var(--ink); font-size: var(--t-sm); font-weight: 700; }
.tagmsg-meta span { flex: none; color: var(--ink-3); font-size: var(--t-2xs); }
.tag-message p { margin: 5px 0 1px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
.tag-message .code { font-family: var(--font-mono); font-size: 1.04em; font-weight: 800; letter-spacing: .1em; color: var(--ink); }
.tagmsg-subtitle { display: block; color: var(--ink-3); font-size: var(--t-xs); line-height: 1.4; }
@keyframes messageIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 信号波纹 */
.ripples { position: absolute; left: 34px; bottom: 96px; width: 20px; height: 20px; z-index: 1; }
.ripples span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(15, 134, 212, .5); animation: ripple 3.2s ease-out infinite; }
.ripples span:nth-child(2) { animation-delay: 1.05s; }
.ripples span:nth-child(3) { animation-delay: 2.1s; }
@keyframes ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(4.4); opacity: 0; } }

/* 实体票券卡(拟物件:缺口/渐变/投影不受 token 约束) */
.ticket {
    --notch-y: calc(100% - 92px);
    position: relative;
    background:
        radial-gradient(420px 200px at 110% -20%, rgba(142, 233, 201, .35), transparent 60%),
        radial-gradient(520px 260px at -20% 0%, rgba(122, 199, 250, .38), transparent 55%),
        linear-gradient(160deg, #ffffff 0%, #f4faff 100%);
    border-radius: var(--r-xl);
    -webkit-mask:
        radial-gradient(circle 12px at 0 var(--notch-y), transparent 11px, #000 12px),
        radial-gradient(circle 12px at 100% var(--notch-y), transparent 11px, #000 12px);
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle 12px at 0 var(--notch-y), transparent 11px, #000 12px),
        radial-gradient(circle 12px at 100% var(--notch-y), transparent 11px, #000 12px);
    mask-composite: intersect;
    filter: drop-shadow(0 14px 26px rgba(26, 100, 158, .16));
    transition: transform .35s ease, filter .35s ease;
}
.ticket:hover { transform: translateY(-6px); filter: drop-shadow(0 22px 36px rgba(26, 100, 158, .2)); }
.ticket-top { padding: 26px 26px 22px; }
.ticket-route {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: var(--t-2xs); font-weight: 600; letter-spacing: .18em; color: var(--ink-3);
}
.ticket-route .line { flex: 1; height: 0; border-top: 2px dashed var(--border-2); position: relative; }
.ticket-route .line svg { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); color: var(--sky-deep); }
.ticket-hardware { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 18px; }
.ticket-hardware .chip { /* 拟物 nano SIM 卡,不进 token */
    width: 52px; height: 40px; border-radius: 8px 2px 8px 8px; position: relative; display: block; padding: 0; border: 0; /* 抵消 .chip 胶囊基座继承的天蓝描边 */
    background: linear-gradient(145deg, #fffef8 0%, #eef1ef 62%, #ccd5d8 100%);
    clip-path: polygon(6% 0, 94% 0, 100% 6%, 100% 77%, 77% 100%, 6% 100%, 0 94%, 0 6%);
    filter: drop-shadow(0 3px 4px rgba(74, 86, 91, .2));
}
/* 信号条(首页两处共用一套) */
.sigwave { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.sigwave i { width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--sky), var(--mint)); }
.sigwave i:nth-child(1) { height: 8px; opacity: .55; }
.sigwave i:nth-child(2) { height: 13px; opacity: .7; }
.sigwave i:nth-child(3) { height: 19px; opacity: .85; }
.sigwave i:nth-child(4) { height: 26px; }
.ticket h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-title); letter-spacing: .01em; }
.ticket-subtitle { color: var(--ink-2); font-size: var(--t-base); margin-top: 6px; overflow-wrap: anywhere; }

.ticket-stub {
    height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 0 26px; border-top: 2px dashed var(--border-2);
}
.price { font-family: var(--font-display); display: flex; align-items: baseline; gap: 2px; line-height: 1; }
.price .currency { font-size: var(--t-md); font-weight: 700; color: var(--sky-deep); }
.price .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; } /* display 数字 */
.price .price-note { font-size: var(--t-xs); color: var(--ink-3); margin-left: 7px; font-family: var(--font-body); }
.barcode { /* 拟物条码 */
    align-self: stretch; margin: 18px 0; width: 34px; flex: none;
    background: repeating-linear-gradient(180deg, rgba(23, 50, 74, .75) 0 2px, transparent 2px 5px, rgba(23, 50, 74, .75) 5px 6px, transparent 6px 10px);
    border-radius: 2px; opacity: .5;
}
.stage .ticket {
    position: absolute; left: 50%; top: 50%; width: min(400px, 92%);
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: 2;
    animation: heroFloat 9s ease-in-out infinite;
}
.stage .ticket:hover { transform: translate(-50%, -54%) rotate(-3deg); }
@keyframes heroFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }

/* 指标条 */
.metrics { padding: 96px 0 0; }
.metrics-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 30px 18px; }
.metric { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 18px; }
.metric + .metric { border-left: 1px solid var(--hairline); }
.metric .metric-icon { margin-bottom: 6px; color: var(--sky-deep); background: var(--sky-tint); }
.metric .metric-icon svg { width: 22px; height: 22px; }
.metric .value { flex: none; white-space: nowrap; font-family: var(--font-mono); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; color: var(--sky-deep); line-height: 1.1; } /* display 数字 */
.metric .value small { font-size: var(--t-md); font-weight: 600; letter-spacing: .05em; margin-left: 4px; color: var(--mint-ink); }
.metric .label { font-size: var(--t-base); color: var(--ink-2); text-wrap: pretty; }

/* 尾部购买入口横幅 */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 30px 36px; border-radius: var(--r-lg);
}
.cta-band h2 { font-size: var(--t-xl); margin: 0; }
.cta-band p { color: var(--ink-2); font-size: var(--t-base); margin: 6px 0 0; }
.cta-band .btn { flex: none; }

/* 场景区 */
.usage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
/* 同一行卡片的图标 / 标题 / 正文按行对齐,标题折行时正文不错位 */
.usage-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 26px 24px 28px; border-radius: var(--r-md); transition: transform .3s ease, box-shadow .3s ease; }
.usage-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.usage-icon { justify-self: start; margin-bottom: 16px; color: #fff; box-shadow: var(--glow-sky); }
.usage-card:nth-child(1) .usage-icon { background: linear-gradient(135deg, #2ba7ee, #0d7ac7); }
.usage-card:nth-child(2) .usage-icon { background: linear-gradient(135deg, #28cba2, #149d84); }
.usage-card:nth-child(3) .usage-icon { background: linear-gradient(135deg, #ffb469, #f68b2c); }
.usage-card:nth-child(4) .usage-icon { background: linear-gradient(135deg, #38b6d8, #1f8fb9); }
.usage-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); }
.usage-card p { color: var(--ink-2); font-size: var(--t-sm); margin-top: 8px; line-height: 1.75; }

/* 流程区 */
.steps-wrap { position: relative; margin-top: 56px; }
.steps-line { position: absolute; top: 37px; left: 9%; right: 9%; height: 0; border-top: 2.5px dashed var(--sky-brd-2); }
.steps-line .plane { position: absolute; top: -13px; left: 56%; color: var(--sky-deep); transform: rotate(12deg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.step { text-align: center; padding: 0 16px; }
.step-no {
    width: 74px; height: 74px; margin: 0 auto; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-mono); font-weight: 700; font-size: var(--t-xl); color: var(--sky-deep);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--sh-md), inset 0 0 0 5px var(--sky-tint);
    transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover .step-no { transform: translateY(-4px) scale(1.04); box-shadow: var(--sh-lg), inset 0 0 0 5px var(--mint-tint); }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-lg); margin-top: 22px; }
.step p { color: var(--ink-2); font-size: var(--t-base); margin-top: 10px; line-height: 1.8; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .9fr 1.5fr; gap: 56px; align-items: start; margin-top: 8px; }
.faq-side { position: sticky; top: 110px; }
.faq-side p { color: var(--ink-2); margin-top: 14px; line-height: 1.85; max-width: 22em; }
.faq-side .mail {
    display: inline-flex; margin-top: 22px; font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: .06em;
    color: var(--sky-deep); border-bottom: 1.5px dashed var(--sky-brd-2); padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}
.faq-side .mail:hover { color: var(--ink); border-color: var(--ink); }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-list details { border-radius: var(--r-md); overflow: hidden; transition: box-shadow .3s ease; }
.faq-list details:hover { box-shadow: var(--sh-lg); }
.faq-list summary {
    list-style: none; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 22px 26px;
    font-family: var(--font-display); font-weight: 700; font-size: var(--t-md);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 22px; height: 22px; flex: none; }
.faq-toggle::before, .faq-toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    background: var(--sky-deep); border-radius: 2px; transition: transform .3s ease;
}
.faq-toggle::before { width: 15px; height: 2.5px; }
.faq-toggle::after { width: 2.5px; height: 15px; }
details[open] .faq-toggle::after { transform: rotate(90deg); }
details[open] .faq-toggle::before { transform: rotate(180deg); }
.faq-answer { padding: 0 26px 24px; color: var(--ink-2); font-size: var(--t-base); line-height: 1.85; max-width: 38em; }
.faq-answer a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 3px; }
details[open] .faq-answer { animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 法务页与关于我们(/legal/* /about) */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(30px, 4vw, 50px) 24px 90px; }
.legal-head { margin-bottom: 20px; }
.legal-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 10px; }
.legal-head .subtitle { color: var(--ink-2); font-size: var(--t-md); margin: 0; line-height: 1.7; text-wrap: pretty; }
.legal-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.legal-body { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); }
.legal-body section { padding: 0; } /* 抵消全局 section 的 96px 顶距 */
.legal-body section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.legal-body h2 {
    display: flex; align-items: baseline; gap: 10px;
    font-family: var(--font-display); font-weight: 800; font-size: var(--t-lg); margin: 0 0 12px;
}
.legal-body h2 .number { flex: none; font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 700; color: var(--sky-deep); letter-spacing: .04em; }
.legal-body h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); margin: 18px 0 8px; }
.legal-body p { color: var(--ink-2); font-size: var(--t-base); line-height: 1.85; margin: 0 0 10px; text-wrap: pretty; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body b { color: var(--ink); font-weight: 600; }
.legal-body ul, .legal-body ol { margin: 8px 0 12px; padding-left: 1.4em; color: var(--ink-2); font-size: var(--t-base); line-height: 1.85; }
.legal-body li { margin-bottom: 6px; text-wrap: pretty; }
.legal-body li::marker { color: var(--sky-deep); font-weight: 600; }
.legal-body a { color: var(--sky-deep); font-weight: 600; border-bottom: 1px dashed var(--sky-brd); }
.legal-body a:hover { color: var(--sky); border-bottom-style: solid; }
.legal-body section[id] { scroll-margin-top: 96px; } /* 锚点跳转时让出顶部导航 */
/* 提示块 */
.legal-note {
    margin: 14px 0;
    background: var(--sky-tint); border-color: var(--sky-brd); color: var(--ink-2);
}
.legal-note svg { flex: none; margin-top: 2px; color: var(--sky-deep); }
/* 企业信息表(about 页) */
.legal-pairs { display: grid; grid-template-columns: minmax(7em, max-content) minmax(0, 1fr); gap: 10px 16px; margin: 14px 0 0; } /* 标签列给最小宽度,同页多组清单的值能对齐 */
.legal-pairs + p { margin-top: 14px; }
/* 关于我们:联系方式两列小卡,图标用 .info-icon 浅色图标块 */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.about-grid + p { margin-top: 14px; }
.about-item {
    display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 14px 16px;
    border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.about-item .info-icon { color: var(--sky-deep); background: var(--sky-tint); }
.about-item-txt { min-width: 0; }
.about-item-label { display: block; margin-top: 1px; font-size: var(--t-xs); color: var(--ink-3); }
/* 联系卡里的邮箱和电话不加下划线 */
.legal-body a.about-item-value { display: inline-block; margin-top: 2px; font-size: var(--t-base); font-weight: 600; color: var(--ink); border-bottom: 0; overflow-wrap: anywhere; }
.legal-body a.about-item-value:hover { color: var(--sky-deep); border-bottom: 0; }
.legal-pairs > div {
    display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline;
    padding: 12px 15px; border-radius: var(--r-sm);
    background: var(--surface-2); border: 1px solid var(--border);
}
.legal-pairs dt { font-size: var(--t-sm); color: var(--ink-3); white-space: nowrap; }
.legal-pairs dd { margin: 0; font-size: var(--t-base); color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
    .legal-pairs { grid-template-columns: minmax(0, 1fr); }
    .legal-pairs > div { display: flex; flex-direction: column; gap: 2px; }
}
/* 页脚导航(条款间互链) */
.legal-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.legal-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600;
    color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
    transition: all .18s ease;
}
.legal-nav a:hover { color: var(--sky-deep); border-color: var(--sky-brd-2); }

/* 用户中心 */
.user-center { max-width: 1040px; margin: 0 auto; padding: clamp(30px, 4vw, 50px) 24px 90px; }
.user-center-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 26px 32px; border-radius: var(--r-lg);
}
.user-center-hero-id { position: relative; display: flex; align-items: center; gap: 18px; }
.user-center-hero-avatar { position: relative; flex: none; width: 62px; height: 62px; font-size: 1.55rem; }
.user-center-hero-meta { position: relative; }
.user-center-hero-meta h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl); margin: 0; }
.user-center-hero-meta p { margin: 3px 0 0; color: var(--ink-3); font-size: var(--t-sm); }
/* UID:点击复制,成功后图标短暂换成勾 */
.user-center-uid {
    display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; color: inherit; font-variant-numeric: tabular-nums; transition: color .15s;
}
.user-center-uid:hover { color: var(--sky-deep); }
/* 站内公告:个人信息卡右侧,多条细线分隔,语义色只给图标 */
.site-notices { position: relative; flex: 1 1 420px; max-width: 560px; margin: -8px 0; }
.site-notice { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: var(--t-sm); line-height: 1.6; color: var(--ink-2); }
.site-notice + .site-notice { border-top: 1px solid var(--hairline); }
.site-notice-icon, .site-notice-close { flex: none; display: flex; align-items: center; justify-content: center; height: 1.6em; }
.site-notice-icon { color: var(--sky-deep); }
.site-notice.is-warning .site-notice-icon { color: var(--warn); }
.site-notice-icon svg { display: block; }
.site-notice-text { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.site-notice-text a { color: var(--sky-deep); font-weight: 700; white-space: nowrap; }
.site-notice-text a:hover { text-decoration: underline; }
.site-notice-close { width: 24px; margin-right: -4px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-3); cursor: pointer; }
.site-notice-close:hover { background: var(--hairline); color: var(--ink); }
/* 放不下时整行排到个人信息下方,细线隔开 */
@media (max-width: 860px) {
    .site-notices { flex-basis: 100%; max-width: none; margin: 4px 0 -6px; padding-top: 6px; border-top: 1px solid var(--hairline); }
}
.user-center-uid svg { width: 14px; height: 14px; flex: none; }
.user-center-uid-ok, .user-center-uid.is-copied .user-center-uid-icon { display: none; }
.user-center-uid.is-copied .user-center-uid-ok { display: block; color: var(--ok); }

/* 分区头 */
.user-center-section { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 42px 0 18px; }
.user-center-section h2 { position: relative; font-family: var(--font-display); font-weight: 800; font-size: var(--t-title); margin: 0; padding-left: 14px; }
.user-center-section h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; border-radius: 3px; background: linear-gradient(var(--sky), var(--mint)); }
.user-center-more { flex: none; font-size: var(--t-base); font-weight: 600; color: var(--sky-deep); }
.user-center-more:hover { color: var(--sky); }
.user-center-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 9px; border-radius: var(--r-pill); background: var(--sky-tint-2); color: var(--sky-deep); font-size: var(--t-2xs); font-weight: 700; line-height: 1; vertical-align: 3px; }

/* 号码卡网格(等宽,添加位与卡同尺寸) */
.num-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 14px; }
/* 品牌卡对象:浅蓝纯色 SIM 卡(独立色域,面上白系为材质) */
.num-card {
    position: relative; overflow: hidden; color: #fff;
    display: flex; flex-direction: column; gap: 12px; padding: 17px 20px; border-radius: var(--r-md);
    background: var(--card-face);
    box-shadow: var(--glow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.num-card:hover { transform: translateY(-2px); box-shadow: var(--glow-card-hover); }
.num-card > * { position: relative; }
.num-card-top { display: flex; align-items: center; justify-content: space-between; }
.num-card-no { font-family: var(--font-display); font-weight: 800; font-size: var(--t-title); letter-spacing: .06em; margin: 0; color: #fff; } /* display 数字 */
.num-card-foot { display: flex; gap: 26px; }
.num-card-label { display: block; font-size: var(--t-2xs); color: rgba(255, 255, 255, .85); margin-bottom: 3px; }
.num-card-value { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); color: #fff; }
.num-card-value.is-warn { color: #fff0a8; }
.num-card-value.is-expired { color: #ffd0d0; }
.num-card-value.is-inactive { color: rgba(255, 255, 255, .85); }
.num-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 600; font-size: var(--t-base); color: rgba(255, 255, 255, .9); }
.num-card:hover .num-card-go svg { transform: translateX(3px); }
.num-card-go svg { transition: transform .22s ease; }
/* 选购添加位 */
.num-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    /* min-height 贴近号码卡高度,独占一行时不塌矮 */
    min-height: 200px; border-radius: var(--r-md); text-align: center;
    border: 1.5px dashed var(--sky-brd); color: var(--sky-deep); font-weight: 600;
    background: var(--surface-2); transition: all .22s ease;
}
.num-add:hover { background: var(--surface); border-color: var(--sky); transform: translateY(-3px); box-shadow: var(--sh-md); }
.num-add .plus { border-radius: 50%; background: var(--sky-tint-2); color: var(--sky-deep); }

/* 段落头搜索(多号态) */
.user-center-section-search { position: relative; display: flex; align-items: center; flex: none; width: min(300px, 100%); }
.user-center-section-search-icon { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
/* 覆盖 .setting-input 的 max-width,左右给放大镜/清除钮留位 */
.user-center-section-search-input { max-width: none; border-radius: var(--r-pill); padding: 8px 34px 8px 37px; }
.user-center-section-search-input[type='search']::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.user-center-section-search-clear { position: absolute; right: 7px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); transition: color .15s, background .15s; }
.user-center-section-search-clear:hover { color: var(--sky-deep); background: var(--sky-tint); }

/* 搜索无命中:虚线弱化空态 */

/* 底部分页;<a> 无 disabled 属性,用 .is-disabled */
.pager-btn.is-disabled { opacity: .38; pointer-events: none; }

/* 多号态移动端:段落头换行,搜索满宽 */
@media (max-width: 680px) {
    .user-center-section { flex-wrap: wrap; }
    .user-center-section-search { width: 100%; }
}

/* 待处理:未生成号码的订单(待支付/开通中/开通异常) */
.user-center-todo { border-radius: var(--r-md); overflow: hidden; }
.user-center-todo-item { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--hairline); }
.user-center-todo-item:last-child { border-bottom: none; }
.user-center-todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.user-center-todo-title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); color: var(--ink); }
.user-center-todo-subtitle { font-size: var(--t-sm); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-center-todo-due { white-space: nowrap; }
.user-center-todo-method { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: bottom; }
.user-center-todo-method .pay-icon { width: 14px; height: 14px; }
.user-center-todo-action { flex: none; }
.user-center-todo-buttons { display: flex; gap: 8px; } /* 待支付:继续支付 + 取消 */
/* 语义色域:异常=危险、待支付=警示、开通中=品牌(图标盒默认已是 sky tint) */
.user-center-todo-item.is-failed .user-center-todo-icon { color: var(--danger); background: var(--danger-bg); }
.user-center-todo-item.is-pay .user-center-todo-icon { color: var(--warn); background: var(--warn-bg); }
.order-pill { flex: none; }

/* 用户中心移动端 */
@media (max-width: 560px) {
    .user-center { padding: 24px 16px 72px; }

    /* Hero:紧凑留白,头像/文字可收缩 */
    .user-center-hero { padding: 20px; gap: 14px; }
    .user-center-hero-id { gap: 14px; width: 100%; min-width: 0; }
    .user-center-hero-meta { flex: 1; min-width: 0; }
    .user-center-hero-meta h1 { font-size: var(--t-title); } /* display 大标题 */

    /* 分区头:压缩纵向节奏 */
    .user-center-section { margin: 30px 0 14px; }
    .user-center-section h2 { font-size: var(--t-lg); }

    /* 待处理行:窄屏把操作降到第二行,按钮满宽好点按 */
    .user-center-todo-item { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 10px; padding: 14px 16px; }
    .user-center-todo-icon { grid-row: 1 / span 2; align-self: start; margin-top: 2px; } /* 图标跨两行,贴顶与标题行对齐 */
    /* 副标题含订单号,窄屏须完整显示 */
    .user-center-todo-subtitle { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
    .user-center-todo-main { grid-column: 2; }
    .user-center-todo-action { grid-column: 2; }
    .user-center-todo-action > .btn { width: 100%; } /* 单操作(联系客服)满宽 */
    .user-center-todo-buttons .btn { flex: 1; } /* 继续支付 + 取消 平分整行 */
}

/* 卡控制台(号码页专用样式在 card.css) */
.console { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 4vw, 44px) 24px 90px; }
.simcard-icon { /* 线条 SIM 图标 */
    flex: none; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 2px 4px rgba(4, 40, 80, .28)); }
.simcard-icon svg { width: 34px; height: 34px; }
.simcard-icon.is-small svg { width: 28px; height: 28px; }
/* 拟物 SIM 金属触点:八枚非对称触点 + 中心绝缘槽 + 短斜向走线 */
.ticket-hardware .chip {
    --chip-line: rgba(100, 66, 11, .64);
    --chip-edge: rgba(119, 79, 16, .52);
    --chip-groove: 1.2px;
    --chip-inset: 4px;
}
.ticket-hardware .chip::before {
    content: ""; position: absolute; inset: var(--chip-inset); border: 1px solid var(--chip-edge); border-radius: 4px;
    background:
        linear-gradient(var(--chip-line), var(--chip-line)) 50% 0 / var(--chip-groove) 100% no-repeat,
        linear-gradient(var(--chip-line), var(--chip-line)) 0 27% / 43% var(--chip-groove) no-repeat,
        linear-gradient(var(--chip-line), var(--chip-line)) 0 52% / 48% var(--chip-groove) no-repeat,
        linear-gradient(var(--chip-line), var(--chip-line)) 0 78% / 42% var(--chip-groove) no-repeat,
        linear-gradient(var(--chip-line), var(--chip-line)) 100% 22% / 42% var(--chip-groove) no-repeat,
        linear-gradient(var(--chip-line), var(--chip-line)) 100% 47% / 48% var(--chip-groove) no-repeat,
        linear-gradient(var(--chip-line), var(--chip-line)) 100% 73% / 43% var(--chip-groove) no-repeat,
        linear-gradient(42deg, transparent 43%, var(--chip-line) 45% 53%, transparent 55%) 42% 35% / 18% 20% no-repeat,
        linear-gradient(138deg, transparent 43%, var(--chip-line) 45% 53%, transparent 55%) 58% 63% / 18% 20% no-repeat,
        linear-gradient(135deg, #ffe9a4 0%, #e8bd63 48%, #c99437 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .58), inset 0 -1px 2px rgba(106, 65, 9, .24);
}
.ticket-hardware .chip::after {
    content: ""; position: absolute; inset: var(--chip-inset); border-radius: 4px; pointer-events: none;
    background:
        linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .3) 39%, transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 30%, rgba(103, 62, 7, .1));
}
/* 深色卡面上的状态胶囊(deep-surface 亮色 ramp,特例) */
.simcard-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: #fff;
    padding: 4px 12px 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.simcard-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #cfe6ff; }
.simcard-status.status-1 .dot { background: #4be59b; box-shadow: 0 0 7px #4be59b; } /* 正常 */
.simcard-status.status-2 .dot { background: #ff8a6a; box-shadow: 0 0 7px #ff8a6a; } /* 已冻结 */
/* 号码 Hero:竖排数字 SIM 卡(号码页、领取页) */
.simcard {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column;
    padding: 15px 20px 14px; border-radius: var(--r-md); color: #fff; /* 与标签栏/面板同 --r-md */
    background: var(--card-face);
    box-shadow: var(--glow-card), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.simcard-rings { position: absolute; right: -26px; bottom: -30px; width: 78px; height: 78px; border-radius: 50%; pointer-events: none;
    border: 1.5px solid rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 15px rgba(255, 255, 255, .07), 0 0 0 32px rgba(255, 255, 255, .045); }
.simcard-main { position: relative; display: flex; align-items: center; gap: 14px; }
/* 状态胶囊贴卡面右上角 */
.simcard > .simcard-status { position: absolute; top: 12px; right: 14px; z-index: 1; }
.simcard-noline { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.simcard-caption { font-size: var(--t-2xs); font-weight: 600; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }
.simcard-no { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 2.9vw, 1.75rem); letter-spacing: .05em; margin: 0; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .16); white-space: nowrap; } /* display 数字 */
.simcard-balance { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
/* 卡面统计位:剩余流量(可点跳套餐 tab)+ 余额;白系半透明属卡面独立色域 */
.simcard-stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.simcard-stat.is-end { align-items: flex-end; }
button.simcard-stat { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 4px 8px; margin: -4px -8px; border-radius: var(--r-xs); transition: background .2s; }
button.simcard-stat:hover { background: rgba(255, 255, 255, .13); }
button.simcard-stat:focus-visible { outline-color: #fff; }
.simcard-go { color: rgba(255, 255, 255, .85); transition: transform .2s; }
button.simcard-stat:hover .simcard-go { transform: translateX(2px); }
.simcard-label { font-size: var(--t-xs); color: rgba(255, 255, 255, .85); letter-spacing: .03em; }
.simcard-val { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: var(--t-title); color: #fff; line-height: 1; text-shadow: 0 1px 10px rgba(0, 0, 0, .18); } /* display 数字,投影保亮端可读 */
.simcard-refresh { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: all .2s; }
.simcard-refresh:hover { background: rgba(255, 255, 255, .3); }
.simcard-refresh.is-spinning svg { animation: spin .7s linear infinite; }

@media (max-width: 560px) {
    .simcard { padding: 16px 17px 15px; }
    .simcard-main { gap: 12px; }
    .simcard > .simcard-status { top: 10px; right: 12px; padding: 2px 9px 2px 8px; font-size: var(--t-2xs); }
    .simcard-no { font-size: var(--t-xl); letter-spacing: .03em; }
    .simcard-val { font-size: var(--t-lg); gap: 8px; }
    /* 视觉 34px,透明 ::after 外扩热区到 44px */
    .simcard-refresh { position: relative; width: 34px; height: 34px; }
    .simcard-refresh::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
}
@media (max-width: 560px) {
    .simcard-icon:not(.is-small) svg { width: 30px; height: 30px; }
}
.tabs { display: inline-flex; gap: 4px; margin: 22px 0 20px; padding: 5px; border-radius: var(--r-md); max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm); }
.tab {
    flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--r-sm);
    font-size: var(--t-base); font-weight: 600; color: var(--ink-3); background: none; border: none; cursor: pointer;
    white-space: nowrap; transition: all .2s ease;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab.is-active { color: #fff; background: var(--grad-brand); box-shadow: var(--glow-sky-lg); }
.tab.is-active:hover { color: #fff; }
/* 平板:去图标收内边距,仍放不下时铺满整行等分 */
@media (max-width: 1000px) {
    .tab svg { display: none; }
    .tab { padding: 9px 13px; }
}
@media (max-width: 800px) {
    .tabs { display: flex; gap: 2px; }
    .tab { flex: 1 1 auto; justify-content: center; padding: 8px 6px; font-size: var(--t-sm); }
}
@media (max-width: 760px) {
    .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 移动端:高频栏目固定在拇指区,低频栏目收进底部抽屉。 */
@media (max-width: 680px) {
    .tabs { display: none; }
    .console { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 360px) {
    .console { padding-left: 14px; padding-right: 14px; }
}

.step-number { width: 25px; height: 25px; border-radius: 50%; font-size: var(--t-sm); font-weight: 800; color: #fff; background: var(--grad-brand); }

/* 充值 / 套餐 */
/* 加载态 keyframes;spin 是全站唯一的转圈动画 */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
/* 付款方式方块(partials/pay_tiles):--pay-columns 列等分,图标与名称横排居中,数字货币名称分币种与网络两行;选中态同面额 */
.pay-options { display: grid; grid-template-columns: repeat(var(--pay-columns, 4), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.pay-option {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 60px; padding: 8px 10px;
    border-radius: var(--r-md); font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2);
}
.pay-option .pay-icon { width: 22px; height: 22px; }
.pay-option.is-on { color: var(--ink); box-shadow: var(--glow-sky); }
.pay-option:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.pay-option-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; text-align: left; white-space: nowrap; }
.pay-option-name small { font-size: var(--t-2xs); font-weight: 500; color: var(--ink-3); }
@media (max-width: 640px) {
    .pay-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.package-dest-chip[hidden]{ display: none; }
.flag { flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px var(--hairline); }
#package-box [hidden] { display: none !important; }
/* 翻页条:首页 / 上一页 / 页码 / 下一页 / 末页,上方细分隔线(用户中心列表与号码页用量共用) */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.pager[hidden] { display: none; }
/* 翻页钮:btn-lite 基座的方形图标钮 */
.pager-btn { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); color: var(--ink-2); }
.pager-btn svg { width: 16px; height: 16px; }
.pager-btn:hover:not([disabled]) { color: var(--sky-deep); background: var(--sky-tint); border-color: var(--sky-brd); }
.pager-btn[disabled] { opacity: .38; }
.usage-page-indicator { font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); min-width: 64px; text-align: center; }
@media (max-width: 680px) {
    .pager-btn { width: 40px; height: 40px; } /* 拇指触控档 */
}

/* 购买 / 结算:左侧信息流 + 右侧粘性订单摘要 */
.buy { max-width: 1080px; margin: 0 auto; padding: clamp(28px, 4vw, 44px) 24px 90px; }
.buy-head { margin-bottom: 26px; }
.buy-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 6px; }
.buy-head p { color: var(--ink-2); font-size: var(--t-md); margin: 0; line-height: 1.7; }
.buy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 352px; align-items: start; gap: 20px; }
.buy-layout-main { display: grid; gap: 20px; }
.buy-panel { padding: 26px 28px; border-radius: var(--r-lg); }
.buy-section-head h2 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--t-title); }
.buy-section-subtitle { margin: 8px 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.7; max-width: 42em; }

/* 购买前须知瓷砖 */
.buy-notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.buy-notice { padding: 15px 17px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.buy-notice.span-2 { grid-column: 1 / -1; }
.buy-notice.is-warning { background: var(--warn-bg); border-color: var(--warn-brd); }
.buy-notice.is-danger { background: var(--danger-bg); border-color: var(--danger-brd); }
.buy-notice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.buy-notice-icon { background: var(--surface); }
.buy-notice.is-warning .buy-notice-icon { color: var(--warn); }
.buy-notice.is-danger .buy-notice-icon { color: var(--danger); }
.buy-notice h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); margin: 0; }
.buy-notice p { margin: 0; font-size: var(--t-sm); line-height: 1.7; color: var(--ink-2); }
.buy-notice p b { color: var(--ink); }
.buy-geo { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; margin-top: 12px; padding: 3px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--warn-brd); }
.buy-geo-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--warn-brd); }
.buy-geo-row:last-child { border-bottom: 0; }
.buy-geo-label { white-space: nowrap; font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.buy-geo-value { font-size: var(--t-sm); color: var(--ink); line-height: 1.6; }
.buy-geo-country { white-space: nowrap; } /* 国名不拆行 */
.buy-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.buy-foot span { font-size: var(--t-sm); color: var(--ink-2); }
.buy-foot a { color: var(--sky-deep); font-weight: 600; }
.buy-foot a:hover { color: var(--sky); }
.buy-foot p { margin: 0; font-size: var(--t-xs); color: var(--ink-3); }

/* 勾选件(订单摘要的同意门槛) */
.buy-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: var(--t-base); color: var(--ink); line-height: 1.5; }
.buy-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.buy-box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--r-xs); border: 1.6px solid var(--sky-brd-2); background: var(--surface); transition: all .15s; margin-top: 1px; }
.buy-box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s; }
.buy-check input:checked + .buy-box { background: var(--grad-brand); border-color: transparent; }
.buy-check input:checked + .buy-box svg { opacity: 1; transform: scale(1); }
/* 未勾选付款时会 focus 回这里,需实色描边 */
.buy-check input:focus-visible + .buy-box { outline: 2px solid var(--sky); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sky-tint-2); }

/* 订单摘要(粘性) */
.buy-order { position: sticky; top: 92px; padding: 24px; border-radius: var(--r-lg); overflow: hidden; }
.buy-order::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); } /* 摘要卡顶部品牌收边 */
.buy-order-label { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; }
.buy-order-label::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--mint)); }
/* 品牌 SIM 条:独立色域,面上白系为材质 */
.buy-sim { display: flex; align-items: center; gap: 13px; margin: 14px 0 0; padding: 15px 17px; border-radius: var(--r-md); color: #fff; background: var(--card-face); box-shadow: var(--glow-card); }
.buy-sim-title { min-width: 0; }
.buy-sim-title b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--t-md); letter-spacing: .04em; }
.buy-sim-title span { display: block; margin-top: 2px; font-size: var(--t-2xs); color: rgba(255, 255, 255, .85); }
.buy-sim .sigwave { margin-left: auto; height: 20px; }
.buy-sim .sigwave i { width: 4px; background: rgba(255, 255, 255, .92); }
.buy-sim .sigwave i:nth-child(1) { height: 6px; }
.buy-sim .sigwave i:nth-child(2) { height: 10px; }
.buy-sim .sigwave i:nth-child(3) { height: 15px; }
.buy-sim .sigwave i:nth-child(4) { height: 20px; }
.buy-order-meta { display: grid; gap: 11px; margin-top: 16px; padding: 16px 0 2px; border-top: 1px solid var(--hairline); }
.buy-order-meta > div { display: flex; justify-content: space-between; gap: 14px; font-size: var(--t-sm); }
.buy-order-meta span { flex: none; color: var(--ink-3); }
.buy-order-meta b { display: inline-flex; align-items: center; gap: 7px; text-align: right; }
/* 下单页付款方式 */
.buy-pay { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.buy-pay-label { font-size: var(--t-sm); color: var(--ink-3); }
.buy-pay .pay-options { margin-top: 8px; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 16px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--sky-tint); }
.buy-total span { color: var(--ink-2); font-size: var(--t-base); }
.buy-total b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--sky-deep); } /* display 价格 */
.buy-agree { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.65; }
.buy-agree a { color: var(--sky-deep); font-weight: 700; }
.buy-agree a:hover { text-decoration: underline; }
.buy-error { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: var(--t-sm); line-height: 1.5; }
.buy-submit { width: 100%; justify-content: center; padding: 15px 20px; font-size: var(--t-md); }

.buy-back { display: block; margin-top: 15px; color: var(--ink-3); font-size: var(--t-sm); text-align: center; }
.buy-back:hover { color: var(--sky-deep); }
/* 领取号码页:白面板 + 浅色号码行 + 摘要明细行,主色只留给按钮 */
.claim { max-width: 400px; margin: 0 auto; padding: clamp(40px, 8vw, 88px) 20px 96px; }
.claim-title { margin: 0 0 24px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); }
.claim-box { padding: 24px; }
.claim-sim { display: flex; align-items: center; gap: 14px; }
.claim-sim-icon { width: 44px; height: 44px; border-radius: var(--r-md); color: var(--sky-deep); background: var(--sky-tint); }
.claim-sim-icon svg { width: 24px; height: 24px; }
.claim-sim-title { min-width: 0; }
.claim-sim-title b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--t-lg); letter-spacing: .03em; color: var(--ink); white-space: nowrap; } /* display 数字 */
.claim-sim-title span { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--ink-3); }
.claim .buy-order-meta { grid-template-columns: minmax(0, 1fr); }
.claim .buy-order-meta > div { align-items: center; min-width: 0; }
.claim .claim-meta-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim .claim-account { flex: 0 1 auto; min-width: 0; gap: 8px; }
.claim .claim-avatar { flex: none; width: 24px; height: 24px; font-size: var(--t-2xs); }
.claim .claim-account-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.btn.claim-submit { width: 100%; margin-top: 20px; }
.claim .legal-note { margin: 18px 0 0; }
.claim-terms { margin-top: 12px; text-align: center; font-size: var(--t-xs); color: var(--ink-3); }
.claim-terms a { color: var(--sky-deep); font-weight: 700; }
.claim-terms a:hover { text-decoration: underline; }
/* 支付结果页:沿用领取页骨架,顶部状态圆标按结果换语义色 */
.pay-result-icon { width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center;
    border-radius: 50%; background: var(--sky-tint); color: var(--sky-deep); box-shadow: 0 0 0 7px var(--sky-tint); }
.pay-result-icon svg { width: 27px; height: 27px; }
.pay-result[data-tone="loading"] .pay-result-icon svg { animation: spin 1s linear infinite; }
.pay-result[data-tone="ok"] .pay-result-icon { background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 7px var(--ok-bg); }
.pay-result[data-tone="wait"] .pay-result-icon { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 7px var(--warn-bg); }
.pay-result[data-tone="fail"] .pay-result-icon { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 7px var(--danger-bg); }
.claim-title.pay-result-title { margin-bottom: 10px; }
.pay-result-desc { margin: 0 auto 24px; text-align: center; color: var(--ink-3); font-size: var(--t-base); line-height: 1.7; }
.pay-result .buy-order-meta { margin-top: 0; padding-top: 0; border-top: 0; grid-template-columns: minmax(0, 1fr); }
.pay-result .buy-order-meta[hidden] { display: none; }
.pay-result .buy-order-meta b { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.pay-result .buy-order-meta[hidden] + .claim-submit { margin-top: 0; }
.btn.pay-result-secondary { width: 100%; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .pay-result[data-tone="loading"] .pay-result-icon svg { animation: none; } }

/* 售罄 */
.buy-soldout { padding: 46px 32px; text-align: center; border-radius: var(--r-lg); }
.buy-soldout h2 { margin: 13px 0 7px; font-family: var(--font-display); font-size: var(--t-title); }
.buy-soldout p { margin: 0 0 22px; color: var(--ink-2); }

@media (max-width: 560px) {
    .buy { padding: 22px 18px 80px; }
    .buy-notice-grid { grid-template-columns: 1fr; }
}

/* 资费与覆盖(/rates 双公示表) */
.rates { padding-bottom: 90px; }

/* Hero(搜索 + 通行证样张装饰) */
.rates-hero { position: relative; padding: 64px 0 0; overflow: visible; }
.rates-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.rates-hero h1 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.24; letter-spacing: .01em;
    margin: 18px 0 16px;
}
.rates-hero-subtitle { color: var(--ink-2); font-size: var(--t-md); max-width: 31em; line-height: 1.85; }
.rates-hero-subtitle b { color: var(--ink); font-weight: 600; }

/* 搜索:筛选两张公示表 */
.rates-search { position: relative; z-index: 5; margin-top: 28px; max-width: 560px; }
.rates-search-icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--sky-deep); pointer-events: none; }
.rates-search-input {
    width: 100%; padding: 15px 22px 15px 48px;
    font: inherit; font-size: var(--t-md); color: var(--ink);
    border: 1px solid var(--sky-brd); border-radius: var(--r-pill);
    background: var(--surface); box-shadow: var(--glow-card);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.rates-search-input:focus { outline: none; border-color: var(--sky); box-shadow: var(--glow-sky-lg); }
.rates-search-input::placeholder { color: var(--ink-3); }
.rates-search-none { margin: -4px 0 0 18px; font-size: var(--t-base); color: var(--ink-2); }
.rates-search-input[disabled] { opacity: .55; }

/* Hero 右侧舞台:经纬球 + 波纹 + 悬浮通行证样张 */
.rates-stage { position: relative; height: 400px; }
.rates-globe { position: absolute; right: -18px; top: 20px; width: 350px; height: 350px; color: rgba(15, 134, 212, .26); }
.rates-stage .ripples { left: 60%; top: 132px; bottom: auto; }
.pass-demo {
    position: absolute; left: 50%; top: 50%; width: min(340px, 96%);
    transform: translate(-50%, -50%) rotate(-5deg); z-index: 2;
    animation: heroFloat 9s ease-in-out infinite;
    pointer-events: none;
}

/* 通行证样张(登机牌,hero 装饰) */
.pass {
    position: relative; overflow: hidden;
    background:
        radial-gradient(420px 200px at 108% -30%, var(--mint-tint), transparent 60%),
        radial-gradient(520px 260px at -18% -12%, var(--sky-tint-2), transparent 55%),
        linear-gradient(165deg, #ffffff 0%, #f5fbff 100%);
    border: 1px solid var(--sky-brd);
    border-radius: var(--r-xl);
    box-shadow: var(--glow-card);
}
.pass-head { padding: 20px 24px 16px; }
.pass-route {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: var(--t-2xs); font-weight: 700; letter-spacing: .16em; color: var(--ink-3);
}
.pass-route-line { display: inline-flex; color: var(--sky-deep); }
.pass-route-tag { margin-left: auto; letter-spacing: .22em; color: var(--sky-deep); }
.pass-dest { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.pass-dest .flag { width: 40px; height: 30px; border-radius: 4px; box-shadow: 0 0 0 1px var(--hairline); flex: none; }
.pass-dest-name { display: flex; flex-direction: column; min-width: 0; }
.pass-dest-name b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.pass-dest-name span { margin-top: 3px; font-family: var(--font-mono); font-size: var(--t-2xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
/* 穿孔分隔:虚线 + 两端半圆缺口(bg=页面底色,overflow hidden 裁成咬口) */
.pass-perforation { position: relative; height: 0; margin: 0 22px; border-top: 2px dashed var(--sky-brd); }
.pass-perforation::before, .pass-perforation::after {
    content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%;
    background: var(--bg); box-shadow: inset 0 1px 2px rgba(23, 50, 74, .12);
}
.pass-perforation::before { left: -22px; transform: translate(-50%, -50%); }
.pass-perforation::after { right: -22px; transform: translate(50%, -50%); }
.pass-body { padding: 18px 24px 6px; }
.pass-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto; }
/* 三栏的标签 / 数值 / 单位按行对齐,标签折行时数值不错位 */
.pass-field { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; padding: 4px 16px; }
.pass-field:first-child { padding-left: 0; }
.pass-field:last-child { padding-right: 0; }
.pass-field + .pass-field { border-left: 1px dashed var(--border-2); }
.pass-field-label { display: block; align-self: end; font-family: var(--font-mono); font-size: var(--t-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pass-field-value { display: block; margin-top: 7px; font-family: var(--font-display); font-weight: 800; font-size: var(--t-lg); line-height: 1.25; color: var(--ink); letter-spacing: -.005em; }
.pass-field-subtitle { display: block; margin-top: 5px; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.5; }
.pass-stub {
    display: flex; align-items: center; gap: 14px;
    margin: 16px 24px 0; padding: 15px 0 18px; border-top: 2px dashed var(--sky-brd);
}
.pass-stub .barcode {
    height: 34px; width: 128px; flex: 0 1 128px; min-width: 48px; margin: 0; opacity: .55; border-radius: 2px;
    background: repeating-linear-gradient(90deg, rgba(23, 50, 74, .8) 0 2px, transparent 2px 5px, rgba(23, 50, 74, .8) 5px 6px, transparent 6px 10px);
}
.pass-code { margin-left: auto; white-space: nowrap; font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }

/* 主体节奏 */
.rates-body { padding-top: 40px; display: flex; flex-direction: column; gap: 30px; }
.rates-body > .metrics-strip { margin: 0; }

/* 公示表(表一/表二共用) */
.rates-tbl { padding: 0 22px; }
.rates-tbl-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 0 14px; }
.rates-tbl-tag { font-family: var(--font-mono); font-size: var(--t-2xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sky-deep); }
.rates-tbl-head h2 { flex: none; max-width: 100%; font-family: var(--font-display); font-size: var(--t-title); font-weight: 800; margin: 0; color: var(--ink); }
.rates-tbl-subtitle { font-size: var(--t-xs); color: var(--ink-3); margin-left: auto; }
.rates-tbl-subtitle b { color: var(--sky-deep); font-weight: 700; }
.rates-tbl-scroll { margin: 0 -22px; padding: 0 22px; } /* 桌面不设 overflow,保留 sticky 表头 */
.rates-tbl table { width: 100%; border-collapse: collapse; }
.rates-tbl thead th {
    text-align: left; padding: 9px 12px; white-space: nowrap;
    font-family: var(--font-display); font-weight: 700; font-size: var(--t-xs); color: var(--ink-2);
    border-bottom: 1px solid var(--border); background: var(--surface-2);
    position: sticky; top: var(--nav-h); z-index: 3; /* 容器有 overflow 时 top 须归零 */
}
.rates-tbl thead th small { font-family: var(--font-body); font-weight: 500; color: var(--ink-3); font-size: var(--t-2xs); }
.rates-muted { color: var(--ink-3); font-size: var(--t-2xs); }
.rates-tbl thead th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.rates-tbl thead th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.rates-tbl td { padding: 9px 12px; border-bottom: 1px dashed var(--hairline); font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; }
.rates-tbl tbody:last-child tr:last-child td { border-bottom: 0; }
/* 大洲分组行 */
.rates-region th {
    text-align: left; padding: 16px 12px 7px;
    font-family: var(--font-display); font-weight: 800; font-size: var(--t-sm); color: var(--ink);
    border-bottom: 1px solid var(--border);
}
.rates-region th span { margin-left: 8px; font-family: var(--font-mono); font-size: var(--t-2xs); font-weight: 700; color: var(--sky-deep); background: var(--sky-tint); padding: 1px 8px; border-radius: var(--r-pill); }
/* 国家列 */
.rates-heading-country { min-width: 200px; }
/* 粘左列不用 display:flex,flex 放在内层 span */
.rates-country { vertical-align: middle; }
.rates-country-inner { display: flex; align-items: center; gap: 8px; }
.rates-country .flag { width: 19px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px var(--hairline); flex: none; }
.rates-country-name { font-weight: 600; color: var(--ink); }
.rates-country small { color: var(--ink-3); font-size: var(--t-2xs); overflow: hidden; text-overflow: ellipsis; }
/* 值语义 */
.rates-num { font-family: var(--font-mono); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.rates-ok { color: var(--ok); font-weight: 700; }
.rates-off { color: var(--ink-3); }
/* 上网列:带虚线的价格悬停或点击弹出「当地网络」浮层 */
td.rates-data .rates-part { display: flex; align-items: center; }
td.rates-data .rates-part + .rates-part { margin-top: 4px; }
.rates-price { position: relative; display: inline-flex; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.rates-price .rates-num { text-decoration: underline dotted var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rates-price:hover .rates-num, .rates-price.is-open .rates-num, .rates-price:focus-visible .rates-num { color: var(--sky-deep); text-decoration-color: var(--sky-deep); }
.rates-tip {
    position: absolute; left: 0; top: calc(100% + 8px); z-index: 6; display: none;
    width: max-content; min-width: 140px; max-width: 240px; padding: 10px 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--sh-lg);
    text-align: left; white-space: normal; font-size: var(--t-xs); line-height: 1.65; font-weight: 500; color: var(--ink-2);
}
.rates-tip > span { display: block; }
.rates-tip .rates-tip-head { margin-bottom: 4px; font-size: var(--t-2xs); font-weight: 600; color: var(--ink-3); }
.rates-price.is-open .rates-tip, .rates-price:focus-visible .rates-tip { display: block; }
@media (hover: hover) { .rates-price:hover .rates-tip { display: block; } }
/* 表尾两行向上弹出,免得在横滚容器底部被裁 */
.rates-tbl tbody:last-of-type tr:nth-last-child(-n+2) .rates-tip { top: auto; bottom: calc(100% + 8px); }
/* 深链高亮 */
.is-flashing td { animation: ratesFlash 2.2s ease-out; }
@keyframes ratesFlash { 0%, 55% { background: var(--sky-tint-2); } 100% { background: transparent; } }
/* 行悬停(排除分组头) */
.rates-tbl tbody tr:not(.rates-region):not(.rates-satellite-group):hover td { background: var(--surface-2); }
/* 表底说明(p 单句 / ol 多点编号两种形态) */
.rates-tbl-note { margin: 0; padding: 12px 0 16px; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.8; border-top: 1px solid var(--hairline); }
ol.rates-tbl-note { padding-left: 20px; }
ol.rates-tbl-note li { padding-left: 2px; }
ol.rates-tbl-note li::marker { color: var(--sky); font-weight: 700; }
/* 表二/卫星:两列窄表,附加费列右对齐 */
.rates-tbl-dest td:last-child, .rates-tbl-dest thead th:last-child { text-align: right; }

/* 折叠块(卫星/特殊网络):summary 头 + 展开插入 table */
.rates-fold > summary {
    list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 18px 0;
}
.rates-fold > summary::-webkit-details-marker { display: none; }
.rates-fold-head { flex: none; max-width: 100%; font-family: var(--font-display); font-size: var(--t-base); font-weight: 800; color: var(--ink); }
.rates-fold-subtitle { font-size: var(--t-xs); color: var(--ink-3); }
.rates-fold > summary::after {
    content: ""; margin-left: auto; flex: none; width: 8px; height: 8px;
    border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.rates-fold[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.rates-fold .rates-tbl-scroll { padding-bottom: 16px; }
/* 卫星折叠:类别分组行(卫星/机上/海事) */
.rates-satellite-group th {
    text-align: left; padding: 15px 12px 7px;
    font-family: var(--font-display); font-weight: 800; font-size: var(--t-sm); color: var(--ink);
    border-bottom: 1px solid var(--border);
}
.rates-satellite-group-icon { display: inline-block; vertical-align: -3px; margin-right: 7px; }
.rates-satellite-group-sat .rates-satellite-group-icon { color: var(--sky-deep); }
.rates-satellite-group-air .rates-satellite-group-icon { color: var(--warn); }
.rates-satellite-group-sea .rates-satellite-group-icon { color: var(--mint); }
.rates-satellite-group th span { margin-left: 8px; font-family: var(--font-mono); font-size: var(--t-2xs); font-weight: 700; color: var(--sky-deep); background: var(--sky-tint); padding: 1px 8px; border-radius: var(--r-pill); }

/* 计费说明 */
.rates-notes { padding: 20px 22px; }
.rates-notes-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.rates-note-icon { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; color: var(--sky-deep); background: var(--sky-tint); }
.rates-note-icon svg { width: 18px; height: 18px; }
.rates-notes h2 { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 800; margin: 0; color: var(--ink); }
.rates-notes ol { margin: 0; padding-left: 22px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.9; }
.rates-notes li { padding-left: 3px; }
.rates-notes li::marker { color: var(--sky); font-weight: 700; }

/* 搜索 + 大洲快捷跳转(窄屏吸顶,见 680 媒体查询) */
.rates-bar { display: flex; flex-direction: column; gap: 14px; }
.rates-bar .rates-search { margin-top: 0; }
.rates-regions { display: flex; flex-wrap: wrap; gap: 8px; }
.rates-regions::-webkit-scrollbar { display: none; }
.rates-regions a {
    flex: none; padding: 5px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border);
    font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.rates-regions a:hover { color: var(--sky-deep); border-color: var(--sky-brd); }
td.rates-more { display: none; }
/* 流量套餐起价列(每 GB 最低价);「套餐」前缀只在窄屏列表态出现 */
td.rates-package .rates-num { color: var(--sky-deep); }
.rates-package-label, .rates-label { display: none; }
/* 计费说明可折叠(窄屏默认收起) */
.rates-notes > summary { list-style: none; cursor: pointer; user-select: none; }
.rates-notes > summary::-webkit-details-marker { display: none; }
.rates-notes > summary::after {
    content: ""; margin-left: auto; width: 7px; height: 7px; margin-top: -4px;
    border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg);
}
.rates-notes[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.rates-notes:not([open]) > summary { margin-bottom: 0; }
/* 响应式 */
/* 宽屏:搜索栏用负边距上移进页头左栏(窄屏须在正文里吸顶) */
@media (min-width: 901px) {
    .rates-hero-copy { align-self: end; padding-bottom: 136px; }
    .rates-body > .rates-bar { position: relative; z-index: 6; margin-top: -130px; max-width: calc(52.5% - 21px); }
    /* 大洲跳转可越过搜索框右缘 100px,止于登机牌左侧 */
    .rates-regions { gap: 6px; margin-right: -100px; }
    .rates-regions a { padding: 5px 12px; }
}
@media (max-width: 900px) {
    .rates-hero-grid { grid-template-columns: 1fr; gap: 0; }
    /* 窄屏隐藏装饰,登机牌转为静态卡片 */
    .rates-globe, .rates-stage .ripples { display: none; }
    .rates-stage { height: auto; margin-top: 22px; }
    .pass-demo { position: static; transform: none; animation: none; width: 100%; max-width: 440px; margin: 0 auto; }
}
/* ≤1080 容器内横滚:sticky 表头改按容器解析故 top 归零,国家列粘左 */
@media (max-width: 1080px) {
    .rates-tbl-scroll { overflow-x: auto; }
    .rates-tbl thead th { top: 0; }
    .rates-tbl thead th.rates-heading-country,
    .rates-tbl td.rates-country {
        position: sticky; left: 0; z-index: 2;
        /* 粘住的单元格自带底色 */
        background: var(--surface);
        box-shadow: 1px 0 0 var(--hairline);
    }
    /* 左上角那一格同时粘顶又粘左,层级必须压过只粘一个方向的邻居 */
    .rates-tbl thead th.rates-heading-country { z-index: 4; }
    /* 上网列横滚态靠右,免被粘左国家列遮挡 */
    .rates-tbl td.rates-data, .rates-tbl thead th:last-child { text-align: right; }
    td.rates-data .rates-part { justify-content: flex-end; }
    .rates-tip { left: auto; right: 0; }
    .rates-tbl td.rates-package { text-align: right; }
}
@media (max-width: 680px) {
    .rates-hero { padding-top: 44px; }
    .rates-body { padding-top: 28px; gap: 24px; }
    .rates-tbl { padding: 0 16px; }
    .rates-tbl-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
    .rates-tbl-head { flex-wrap: wrap; gap: 8px 12px; padding-top: 16px; }
    .rates-tbl-subtitle { margin-left: 0; width: 100%; }
    /* 卫星折叠头:副标题独占次行,箭头用 order 留在首行右端 */
    .rates-fold > summary { flex-wrap: wrap; gap: 6px 12px; }
    .rates-fold > summary::after { order: 2; }
    .rates-fold-subtitle { order: 3; width: 100%; }
    .rates-tbl td, .rates-tbl thead th { padding: 8px 10px; }
    /* 国家列 + 上网列宽度之和须落在横滚可视区内,取 px 与 vw 较小值 */
    .rates-heading-country { min-width: min(150px, 40vw); }
    .rates-country small { display: none; } /* 窄屏国家列只留中文名,英文让位 */
    .rates-heading-data, td.rates-data { min-width: min(140px, 38vw); max-width: min(155px, 42vw); }

    /* 表二/卫星两列表:放开首列换行、去掉宽度下限,整表落在屏内 */
    .rates-tbl-dest .rates-heading-country { min-width: 0; }
    .rates-tbl-dest td.rates-country, .rates-tbl-dest .rates-country-name { white-space: normal; min-width: 0; }
    .rates-tbl-dest td:last-child { white-space: normal; } /* 双价在格内折行 */

    /* 窄屏:隐藏资费总览卡片,搜索栏与大洲标签吸在顶栏下 */
    .rates-stage { display: none; }
    .rates-bar {
        position: sticky; top: var(--nav-h); z-index: 20; gap: 10px;
        margin: 0 -16px; padding: 10px 16px 12px;
        transition: background-color .2s ease, box-shadow .2s ease;
    }
    .rates-bar.is-stuck {
        background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 var(--hairline);
    }
    #tbl-stay tbody { scroll-margin-top: 100px; } /* 叠加 html 的 scroll-padding(让顶栏),再让出吸顶搜索栏 */

    /* 窄屏表一改为国家列表,点行展开详情 */
    #tbl-stay .rates-tbl-scroll { overflow: visible; margin: 0; padding: 0; }
    #tbl-stay table, #tbl-stay tbody { display: block; }
    #tbl-stay thead { display: none; } /* 行尾价格各自带单位,隐藏表头行 */
    #tbl-stay .rates-region, #tbl-stay .rates-region th { display: block; }
    #tbl-stay .rates-region th { padding: 16px 2px 8px; }
    #tbl-stay .rates-region[hidden], #tbl-stay tr[id][hidden] { display: none; }
    #tbl-stay tr[id] {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px;
        padding: 12px 2px; border-bottom: 1px dashed var(--hairline); cursor: pointer;
    }
    #tbl-stay tr[id] > td {
        display: none; padding: 0; border: 0; white-space: normal; min-width: 0; max-width: none;
        position: static; background: none; box-shadow: none;
    }
    #tbl-stay tr[id] > td.rates-country { display: block; grid-column: 1; grid-row: 1; align-self: center; }
    #tbl-stay .rates-country-name { white-space: normal; }
    #tbl-stay tr[id] > td.rates-data {
        display: grid; grid-template-columns: auto 14px; column-gap: 12px; align-items: center; justify-content: end;
        grid-column: 2; grid-row: 1; text-align: right;
    }
    #tbl-stay td.rates-data > * { grid-column: 1; }
    #tbl-stay td.rates-data::after {
        content: ""; grid-column: 2; grid-row: 1 / span 4; justify-self: center; width: 7px; height: 7px; margin-top: -4px;
        border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg);
    }
    #tbl-stay tr.is-open td.rates-data::after { margin-top: 3px; transform: rotate(-135deg); }
    #tbl-stay .rates-price { cursor: inherit; }
    #tbl-stay .rates-price .rates-num { text-decoration: none; }
    #tbl-stay .rates-tip { display: none !important; }
    /* 展开详情为清单:每项一行,名称靠左、数值靠右,整组一块浅底,首尾圆角 */
    #tbl-stay tr.is-open[id] { row-gap: 0; }
    #tbl-stay tr.is-open > td[data-label] {
        display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; row-gap: 2px;
        grid-column: 1 / -1; padding: 8px 12px; background: var(--surface-2); text-align: right;
    }
    #tbl-stay tr.is-open > td[data-label] + td[data-label] { box-shadow: inset 0 1px 0 var(--surface); }
    #tbl-stay tr.is-open > td[data-label] > * + * { margin-left: 4px; }
    #tbl-stay tr.is-open .rates-label {
        display: inline-flex; align-items: center; gap: 8px; margin-right: auto; padding-right: 12px;
        font-size: var(--t-sm); color: var(--ink-2); text-align: left; white-space: nowrap;
    }
    #tbl-stay .rates-label svg { width: 16px; height: 16px; flex: none; color: var(--sky-deep); }
    #tbl-stay tr.is-open > td[data-label] .rates-num::after { content: var(--u, none); margin-left: 1px; font-family: var(--font-body); font-size: var(--t-2xs); font-weight: 500; color: var(--ink-3); }
    #tbl-stay tr.is-open > td:nth-child(2) { margin-top: 8px; border-radius: var(--r-sm) var(--r-sm) 0 0; }
    #tbl-stay tr.is-open > td.rates-more,
    #tbl-stay tr.is-open.has-package:not(:has(.rates-more)) > td.rates-data,
    #tbl-stay tr.is-open:not(.has-package):not(:has(.rates-more)) > td:nth-child(5) { border-radius: 0 0 var(--r-sm) var(--r-sm); }
    #tbl-stay tr.is-open > td.rates-more { font-size: var(--t-xs); line-height: 1.6; color: var(--ink-2); }
    #tbl-stay tr.is-open > td.rates-more > span:last-child { flex: 1 1 auto; text-align: right; }

    /* 窄屏压缩首屏:页头、吸顶栏、计费说明、表头都收紧,首屏多露几行国家 */
    .rates-hero { padding-top: 24px; }
    .rates-hero h1 { font-size: 1.7rem; margin: 10px 0 8px; }
    .rates-hero-subtitle { font-size: var(--t-sm); line-height: 1.7; }
    .rates-body { padding-top: 16px; gap: 14px; }
    .rates-bar { gap: 8px; padding: 8px 16px 10px; }
    .rates-search-input { padding-top: 10px; padding-bottom: 10px; box-shadow: none; } /* 字号保持 16px,iOS 聚焦不缩放 */
    /* 吸顶栏内单行横滑,右缘渐隐提示还有内容 */
    .rates-regions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
    .rates-regions a { padding: 4px 12px; font-size: var(--t-xs); }
    .rates-notes { padding: 10px 16px; }
    .rates-notes .rates-note-icon { width: 28px; height: 28px; }
    .rates-notes .rates-note-icon svg { width: 15px; height: 15px; }
    .rates-notes h2 { font-size: var(--t-md); }
    .rates-notes[open] > summary { margin-bottom: 8px; }
    #tbl-stay .rates-tbl-tag { display: none; }
    #tbl-stay .rates-tbl-head { padding: 12px 0 10px; }
    #tbl-stay .rates-region th { padding: 12px 2px 6px; }
    #tbl-stay tr[id] { padding: 10px 2px; }
    /* 有在售套餐的行:行尾显示「套餐 €X 起」,按量上网价挪进展开详情 */
    #tbl-stay .rates-package-label { display: inline; margin-right: 4px; font-size: var(--t-2xs); color: var(--ink-3); }
    #tbl-stay .rates-package-value { white-space: nowrap; }
    #tbl-stay tr.has-package[id] > td.rates-package {
        display: grid; grid-template-columns: auto 14px; column-gap: 12px; align-items: center; justify-content: end;
        grid-column: 2; grid-row: 1; text-align: right;
    }
    #tbl-stay td.rates-package::after {
        content: ""; grid-column: 2; justify-self: center; width: 7px; height: 7px; margin-top: -4px;
        border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg);
    }
    #tbl-stay tr.is-open td.rates-package::after { margin-top: 3px; transform: rotate(-135deg); }
    #tbl-stay tr.has-package[id] > td.rates-data { display: none; }
    #tbl-stay tr.has-package.is-open[id] > td.rates-data { display: flex; grid-column: 1 / -1; grid-row: auto; }
    #tbl-stay tr.has-package td.rates-data::after { content: none; }
    /* 行尾值有套餐价也有按量价,各自带 /GB 或 /MB */
    #tbl-stay td.rates-package .rates-num::after { content: "/GB"; margin-left: 2px; font-family: var(--font-body); font-size: var(--t-2xs); font-weight: 500; color: var(--ink-3); }
    #tbl-stay tr:not(.has-package) td.rates-data .rates-num::after {
        content: "/MB"; margin-left: 2px; font-family: var(--font-body); font-size: var(--t-2xs); font-weight: 500; color: var(--ink-3);
    }
}
/* <375:放开国名折行并给国家列封顶,免被粘左列遮挡 */
@media (max-width: 374px) {
    .rates-heading-country, .rates-tbl td.rates-country { max-width: 40vw; }
    .rates-country-name { white-space: normal; min-width: 0; }
}

/* 跨页响应式 */
@media (max-width: 1000px) {
    .usage-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .stage { height: 440px; margin-top: 8px; }
    .globe, .orbit { right: 50%; transform: translateX(56%); }
    .faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .faq-side { position: static; }
    .buy-layout { grid-template-columns: 1fr; }
    .buy-order { position: static; }
}
/* 顶栏折叠为汉堡抽屉 */
@media (max-width: 960px) {
    .nav-burger {
        display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto;
        border-radius: var(--r-sm); color: var(--ink); background: var(--surface); border: 1px solid var(--border); cursor: pointer;
    }
    .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--sky); outline-offset: 2px; }
    .nav-toggle:checked ~ .nav-burger .icon-menu { display: none; }
    .nav-toggle:checked ~ .nav-burger .icon-close { display: block; }
    /* 折叠区为 .nav 下沿的绝对定位浮层,展开不改变文档高度 */
    .nav-drawer {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
        flex-direction: column; padding: 4px 24px 20px;
        background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--sh-lg);
        max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    }
    .nav-toggle:checked ~ .nav-drawer { display: flex; animation: drawerIn .22s ease-out; }
    /* 遮罩与抽屉同一定位基准(.nav),压暗下方页面;展开时锁住页面滚动 */
    .nav-toggle:checked ~ .nav-scrim {
        display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 54; height: 100vh;
        background: var(--scrim); animation: scrimIn .22s ease-out;
    }
    html:has(.nav-toggle:checked) { overflow: hidden; }
    .nav-links, .nav-actions { display: flex; width: 100%; margin: 0; }
    /* 抽屉:站内导航在上,账户面板收尾;可跳转的行带右侧箭头 */
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 0; }
    .nav-links a {
        display: flex; align-items: center; padding: 15px 4px;
        font-size: var(--t-md); font-weight: 600; color: var(--ink);
        border-bottom: 1px solid var(--hairline);
    }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-links a::after, .user-menu .nav-menu-item::after {
        content: ""; position: static; flex: none; width: 7px; height: 7px; margin-left: auto;
        background: none; border: solid var(--ink-3); border-width: 1.6px 1.6px 0 0; border-radius: 1px;
        transform: rotate(45deg); transition: none;
    }
    .nav-actions {
        flex-direction: column; align-items: stretch; gap: 0;
        margin-top: 12px; padding: 6px; border-radius: var(--r-lg); background: var(--surface-2);
    }
    .nav-actions:has(.nav-login) { padding: 0; background: none; }
    .nav-login { height: auto; padding: 12px; }
    /* 账户面板:身份行 + 菜单项平铺 */
    .nav-drawer .nav-menu.user-menu > .user-pill {
        width: 100%; height: auto; padding: 10px; gap: 12px; text-align: left; pointer-events: none;
        color: inherit; background: transparent; border: 0; border-radius: var(--r-md); box-shadow: none;
    }
    .user-pill .user-avatar { width: 42px; height: 42px; flex: none; font-size: var(--t-md); }
    .user-name { flex: 1; min-width: 0; max-width: none; font-size: var(--t-md); font-weight: 700; }
    .user-caret { display: none; }
    .user-menu .nav-menu-panel {
        display: flex; position: static; min-width: 0; margin-top: 2px; padding: 4px 0 0; gap: 0;
        background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none;
    }
    .user-menu .nav-menu-item { gap: 17px; padding: 9px 12px 9px 15px; font-size: var(--t-base); color: var(--ink); border-radius: var(--r-md); }
    .user-menu .nav-menu-item > svg:first-child {
        width: 32px; height: 32px; padding: 7px; border-radius: var(--r-sm);
        color: var(--sky-deep); background: var(--surface); border: 1px solid var(--border);
    }
    .user-menu-out { margin: 0; padding: 0; border: 0; }
    .user-menu-out .nav-menu-item { color: var(--ink-2); }
    .user-menu-out .nav-menu-item::after { display: none; }
}
@media (max-width: 680px) {
    section { padding: 68px 0 0; }
    .usage-grid { grid-template-columns: 1fr; }
    /* 导航栏固定单行高度 */
    :root { --nav-h: 64px; }
    .nav-inner { height: 64px; }
    .hero { padding-top: 56px; }
    .stage { height: 400px; }
    .globe, .orbit { width: 340px; height: 340px; top: 40px; }
    .tag-message { right: 2px; bottom: 22px; width: min(306px, calc(100vw - 36px)); padding: 12px 14px; }
    .metrics-strip { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 24px; }
    /* 图标居左,数值与说明上下叠放 */
    .metric { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; text-align: left; padding: 0; }
    .metric .metric-icon { grid-row: span 2; margin-bottom: 0; }
    .metric + .metric { border-left: 0; border-top: 1px solid var(--hairline); padding-top: 22px; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps-line { display: none; }
    .cta-band { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
    .cta-band .btn { justify-content: center; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 52px 0 40px; }
    .foot-brand { grid-column: 1 / -1; }
    .ticket-stub { padding: 0 20px; }
    .barcode { display: none; }
    .user-center-hero { align-items: flex-start; gap: 16px; }
    .user-center-hero-avatar { width: 52px; height: 52px; font-size: 1.3rem; }
    .buy-panel, .buy-order { padding: 20px; }
}

@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes scrimIn { from { opacity: 0; } }

/* 无障碍 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rise-in { opacity: 1; transform: none; }
}

/* 导航工具钮:主题/语言切换(移动端常驻汉堡左侧) */
.nav-ctrl { display: flex; align-items: center; gap: 8px; order: 5; }
.nav-inner .nav-actions { order: 6; }
.nav-ctrl-btn {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    padding: 0; border-radius: 50%; cursor: pointer;
    color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
    transition: color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .12s ease;
}
/* 顶栏各钮(主题/语言/账户)同一套反馈:悬停与菜单展开时描边转蓝 + 轻阴影,按下微缩 */
.nav-ctrl-btn:hover, .user-pill:hover, .nav-menu.is-open > [data-nav-menu-toggle] { color: var(--sky-deep); border-color: var(--sky-brd-2); box-shadow: var(--sh-sm); }
.nav-ctrl-btn:active, .user-pill:active { transform: scale(.96); }
.nav-ctrl-btn svg { width: 19px; height: 19px; }
/* 主题钮图标跟偏好走:system 显示器、light 太阳、dark 月亮 */
.nav-ctrl-btn .icon-auto, .nav-ctrl-btn .icon-sun, .nav-ctrl-btn .icon-moon { display: none; }
:root[data-theme-preference="system"] .nav-ctrl-btn .icon-auto { display: block; }
:root[data-theme-preference="light"] .nav-ctrl-btn .icon-sun { display: block; }
:root[data-theme-preference="dark"] .nav-ctrl-btn .icon-moon { display: block; }
.nav-menu { position: relative; }
.nav-menu-panel {
    position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; min-width: 184px;
    display: none; flex-direction: column; gap: 2px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border-2);
    border-radius: var(--r-md); box-shadow: var(--sh-lg);
}
.nav-menu.is-open .nav-menu-panel { display: flex; }
.nav-menu-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border: 0; border-radius: var(--r-sm); cursor: pointer;
    background: transparent; color: var(--ink); text-align: left;
    font-family: inherit; font-size: var(--t-sm); font-weight: 600;
    transition: background .15s ease, color .15s ease;
}
.nav-menu-item:hover { background: var(--sky-tint); color: var(--sky-deep); }
.nav-menu-item.is-on { color: var(--sky-deep); }
.nav-menu-item > svg:first-child { width: 17px; height: 17px; flex: none; }
.nav-menu-item span { flex: 1; white-space: nowrap; }
/* 勾选标由 .is-on 驱动(SVG 不认 hidden) */
.nav-menu-check { display: none; width: 15px; height: 15px; flex: none; color: var(--sky); }
.nav-menu-item.is-on .nav-menu-check { display: block; }
@media (max-width: 960px) {
    .nav-ctrl { order: 0; margin-left: auto; gap: 8px; }
    .nav-burger { margin-left: 8px; }
    /* 三钮统一 40px 方角,与汉堡等高 */
    .nav-ctrl-btn { width: 40px; height: 40px; border-radius: var(--r-sm); }
    /* 面板限宽,不越出视口 */
    .nav-menu-panel { min-width: 184px; }
}
@media (max-width: 380px) {
    .nav-inner { gap: 10px; }
    .nav-ctrl { gap: 6px; }
    .nav-ctrl-btn, .nav-burger { flex: none; width: 36px; height: 36px; }
    .nav-burger { margin-left: 6px; }
}

/* 深色模式:覆写同名 token + 浅色裸色面定点补丁 */
:root[data-theme="dark"] {
    color-scheme: dark;
    /* 文字 */
    --ink: #e5edf5;
    --ink-2: #a6bccf;
    --ink-3: #7690a7;
    /* 品牌强调色:深底下提亮一档 */
    --sky: #2ba0e8;
    --sky-deep: #5db8f0;
    --sky-soft: #17456b;
    --mint: #2bc9a4;
    --mint-ink: var(--mint);
    --sun: #ffa75e;
    /* 品牌衍生 */
    --sky-tint: rgba(70, 158, 226, .14);
    --sky-tint-2: rgba(70, 158, 226, .24);
    --sky-brd: rgba(96, 178, 236, .3);
    --sky-brd-2: rgba(96, 178, 236, .48);
    --mint-tint: rgba(43, 201, 164, .14);
    --glow-sky: 0 4px 14px -4px rgba(12, 92, 152, .6);
    --glow-sky-lg: 0 8px 20px -6px rgba(12, 92, 152, .7);
    --glow-card: 0 10px 26px -14px rgba(0, 0, 0, .6);
    --glow-card-hover: 0 16px 34px -14px rgba(0, 0, 0, .68);
    --grad-brand: linear-gradient(135deg, #0c78c0, #0b6bb0);
    /* 品牌卡面:深色下压暗一档 */
    --card-face: #0e4f7e;
    /* 语义状态:文字提亮、底色压暗 */
    --ok: #4fdc9e;
    --ok-bg: rgba(34, 197, 130, .15);
    --ok-brd: rgba(52, 211, 153, .35);
    --warn: #f2c168;
    --warn-bg: rgba(240, 175, 40, .13);
    --warn-brd: rgba(240, 180, 60, .36);
    --danger: #ff9376;
    --danger-bg: rgba(230, 110, 80, .15);
    --danger-brd: rgba(235, 120, 90, .38);
    --idle: #8ea5b9;
    --idle-bg: rgba(140, 160, 180, .13);
    --idle-brd: rgba(140, 160, 180, .3);
    /* 表面 / 背景 / 描边 */
    --bg: #0b1119;
    --surface: #121a24;
    --surface-2: #17212d;
    --surface-3: #1c2836;
    --border: rgba(150, 186, 216, .14);
    --border-2: rgba(150, 186, 216, .22);
    --hairline: rgba(150, 186, 216, .09);
    --scrim: rgba(2, 8, 14, .6);
    --scrim-sky: rgba(2, 14, 28, .64);
    /* 阴影:深色域整体加深 */
    --sh-sm: 0 1px 2px rgba(0, 0, 0, .38), 0 1px 1px rgba(0, 0, 0, .3);
    --sh-md: 0 6px 16px -8px rgba(0, 0, 0, .55), 0 2px 6px -3px rgba(0, 0, 0, .42);
    --sh-lg: 0 16px 36px -14px rgba(0, 0, 0, .6), 0 5px 12px -5px rgba(0, 0, 0, .45);
}
/* 定点补丁:浅色裸色面 */
:root[data-theme="dark"] ::selection { background: rgba(70, 160, 230, .4); }
/* 背景层:顶部品牌光转深海蓝 */
:root[data-theme="dark"] .sky {
    background:
        radial-gradient(1000px 560px at 14% -10%, rgba(36, 116, 184, .22), transparent 60%),
        linear-gradient(180deg, #0d1520 0%, var(--bg) 60%);
}
/* 导航玻璃:白雾 → 石墨雾 */
:root[data-theme="dark"] .nav { background: rgba(11, 17, 25, .82); }
/* 荧光笔划线:压暗免吞浅色文字 */
:root[data-theme="dark"] .highlight::before { background: linear-gradient(90deg, rgba(46, 130, 200, .4), rgba(35, 170, 130, .36)); }
/* 装饰云:白团 → 极淡蓝灰 */
:root[data-theme="dark"] .cloud i,
:root[data-theme="dark"] .cloud::before,
:root[data-theme="dark"] .cloud::after { background: rgba(158, 192, 222, .08); }
/* 拟物票券/登机牌:纸面转深卡面,条码转浅 */
:root[data-theme="dark"] .ticket {
    background:
        radial-gradient(420px 200px at 110% -20%, rgba(43, 201, 164, .13), transparent 60%),
        radial-gradient(520px 260px at -20% 0%, rgba(64, 156, 227, .17), transparent 55%),
        linear-gradient(160deg, #1a2634 0%, #121b26 100%);
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5));
}
:root[data-theme="dark"] .ticket:hover { filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .56)); }
:root[data-theme="dark"] .pass {
    background:
        radial-gradient(420px 200px at 108% -30%, var(--mint-tint), transparent 60%),
        radial-gradient(520px 260px at -18% -12%, var(--sky-tint-2), transparent 55%),
        linear-gradient(165deg, #1a2634 0%, #121b26 100%);
}
:root[data-theme="dark"] .barcode {
    background: repeating-linear-gradient(180deg, rgba(205, 228, 246, .8) 0 2px, transparent 2px 5px, rgba(205, 228, 246, .8) 5px 6px, transparent 6px 10px);
}
:root[data-theme="dark"] .pass-stub .barcode {
    background: repeating-linear-gradient(90deg, rgba(205, 228, 246, .8) 0 2px, transparent 2px 5px, rgba(205, 228, 246, .8) 5px 6px, transparent 6px 10px);
}
/* 短信通知气泡:白玻璃 → 石墨玻璃 */
:root[data-theme="dark"] .tag-message {
    background: rgba(23, 32, 44, .92);
    border-color: rgba(122, 165, 202, .22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* 加载 shimmer:中段白光转蓝灰光 */
:root[data-theme="dark"] button.switch.is-loading,
:root[data-theme="dark"] .skel {
    background: linear-gradient(100deg, var(--sky-tint-2) 30%, rgba(148, 184, 215, .3) 50%, var(--sky-tint-2) 70%);
    background-size: 220% 100%;
}
