/* ============================================================
   XVPN · 天蓝色设计系统（网站 / 会员中心 / 管理后台 共用）
   ============================================================ */
:root {
  color-scheme: light;
  --sky-50:#f0f9ff; --sky-100:#e0f2fe; --sky-200:#bae6fd; --sky-300:#7dd3fc;
  --sky-400:#38bdf8; --sky-500:#0ea5e9; --sky-600:#0284c7; --sky-700:#0369a1;
  --cyan-400:#22d3ee; --cyan-500:#06b6d4;
  --ink:#0f172a; --ink-2:#1e293b; --body:#334155; --muted:#64748b; --faint:#94a3b8;
  --line:#e2eaf2; --line-2:#dbe6f1;
  --bg:#eef6fd; --surface:#ffffff; --surface-2:#f7fbff;
  --ok:#10b981; --ok-bg:#dcfce7; --warn:#f59e0b; --warn-bg:#fef3c7;
  --bad:#ef4444; --bad-bg:#fee2e2; --slate-bg:#eef2f7;
  --grad: linear-gradient(135deg, var(--sky-400), var(--sky-600));
  --grad-soft: linear-gradient(135deg, #e7f5ff, #d7ecff);
  --shadow-sm:0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow:0 8px 24px -10px rgba(2,132,199,.28), 0 4px 10px -6px rgba(15,23,42,.10);
  --shadow-lg:0 24px 60px -24px rgba(2,132,199,.45);
  --ring:0 0 0 4px rgba(56,189,248,.28);
  --r-sm:10px; --r:14px; --r-lg:20px; --r-xl:28px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:76px; }
body {
  margin:0; font-family:var(--font); color:var(--body); line-height:1.6;
  background:
    radial-gradient(1100px 600px at 88% -8%, #e3f3ff 0%, rgba(227,243,255,0) 60%),
    radial-gradient(900px 520px at -6% 0%, #e9f6ff 0%, rgba(233,246,255,0) 55%),
    var(--bg);
  min-height:100vh; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4 { color:var(--ink); line-height:1.25; margin:0 0 .4em; font-weight:700; letter-spacing:-.01em; }
h1 { font-size:clamp(1.7rem, 1.1rem + 2.6vw, 2.85rem); }
h2 { font-size:clamp(1.3rem, 1rem + 1.4vw, 1.9rem); }
p { margin:0 0 1rem; }
a { color:var(--sky-600); text-decoration:none; }
a:hover { color:var(--sky-700); }
img { max-width:100%; display:block; }
small { font-size:.82rem; }
.mono { font-family:var(--mono); }
.muted { color:var(--muted); }
.faint { color:var(--faint); }
.center { text-align:center; }
.hidden { display:none !important; }
.nowrap { white-space:nowrap; }
.container { width:min(1180px, 92vw); margin-inline:auto; }
.row { display:flex; align-items:center; gap:.6rem; }
.row.wrap { flex-wrap:wrap; }
.between { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-width:0; }
.between > span, .between > b { min-width:0; overflow-wrap:anywhere; }
.spacer { flex:1; }
.stack { display:flex; flex-direction:column; gap:1rem; }

/* ---------- 顶栏 ---------- */
.site-header {
  position:sticky; top:0; z-index:30;
  backdrop-filter:saturate(180%) blur(14px);
  background:rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
}
.site-header .container { display:flex; align-items:center; justify-content:space-between; height:66px; gap:1rem; }
.brand { display:flex; align-items:center; gap:.6rem; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
.brand .logo {
  width:38px; height:38px; border-radius:11px; background:#f7fafc url('/assets/logo/xvpn-logo.svg?v=20260725-node-source-filter-v2') center/cover no-repeat; color:#fff;
  display:grid; place-items:center; font-weight:800; font-size:1.15rem;
  overflow:hidden; text-indent:-999px;
  box-shadow:0 6px 16px -6px rgba(13,139,140,.55);
}
.brand .logo.logo-text {
  background:var(--grad); text-indent:0;
  box-shadow:0 6px 16px -6px rgba(14,165,233,.7);
}
.brand b { font-size:1.15rem; }
.brand small { display:block; font-size:.66rem; color:var(--muted); font-weight:600; letter-spacing:.14em; text-transform:uppercase; }
.nav { display:flex; align-items:center; gap:.25rem; }
.nav a { padding:.5rem .68rem; border-radius:var(--r-sm); color:var(--body); font-weight:600; font-size:.9rem; }
.nav a:hover { background:var(--sky-50); color:var(--sky-700); }
.nav a.active { background:var(--sky-100); color:var(--sky-700); }
.nav-toggle { display:none; }

/* ---------- 按钮 ---------- */
.btn {
  --b:var(--sky-600);
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.66rem 1.15rem; border-radius:999px; border:1px solid transparent;
  font:inherit; font-weight:700; font-size:.94rem; cursor:pointer; white-space:nowrap;
  transition:transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s; user-select:none;
}
.btn:active { transform:translateY(1px); }
.btn-primary { background:var(--grad); color:#fff; box-shadow:0 10px 22px -12px rgba(2,132,199,.85); }
.btn-primary:hover { color:#fff; box-shadow:0 14px 26px -12px rgba(2,132,199,.95); transform:translateY(-1px); }
.btn-outline { background:#fff; border-color:var(--line-2); color:var(--ink-2); }
.btn-outline:hover { border-color:var(--sky-300); background:var(--sky-50); color:var(--sky-700); }
.btn-ghost { background:transparent; color:var(--body); }
.btn-ghost:hover { background:var(--sky-50); color:var(--sky-700); }
.btn-danger { background:#fff; border-color:#fbcfd2; color:var(--bad); }
.btn-danger:hover { background:var(--bad-bg); }
.btn-sm { padding:.4rem .7rem; font-size:.82rem; border-radius:999px; }
.btn-block { width:100%; }
.btn[disabled] { opacity:.55; cursor:not-allowed; transform:none; }
.btn-icon { padding:.45rem; width:34px; height:34px; border-radius:10px; }
.link-btn { border:0; background:transparent; color:var(--sky-600); font:inherit; font-weight:700; cursor:pointer; padding:0; }
.link-btn:hover { color:var(--sky-700); text-decoration:underline; }

/* ---------- 卡片 / 面板 ---------- */
.card, .panel {
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow-sm);
}
.panel { padding:clamp(1.1rem, .8rem + 1vw, 1.7rem); }
.panel + .panel { margin-top:1.1rem; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1.1rem; flex-wrap:wrap; }
.panel-head h2, .panel-head h3 { margin:0; }
.eyebrow { font-size:.74rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--sky-600); margin:0 0 .35rem; }
.hover-lift { transition:transform .15s ease, box-shadow .2s ease, border-color .2s; }
.hover-lift:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--sky-200); }

/* ---------- 网格 ---------- */
.grid { display:grid; gap:1.1rem; }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
.grid-auto { grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); }

/* ---------- 徽章 / 状态 ---------- */
.badge { display:inline-flex; align-items:center; gap:.35rem; padding:.2rem .6rem; border-radius:999px; font-size:.76rem; font-weight:700; background:var(--slate-bg); color:var(--body); }
.badge .dot { width:7px; height:7px; border-radius:50%; background:currentColor; }
.badge-online { background:var(--ok-bg); color:#047857; }
.badge-offline { background:var(--bad-bg); color:#b91c1c; }
.badge-disabled { background:var(--slate-bg); color:var(--muted); }
.badge-warn { background:var(--warn-bg); color:#b45309; }
.badge-sky { background:var(--sky-100); color:var(--sky-700); }
.pill { display:inline-flex; align-items:center; gap:.4rem; padding:.32rem .7rem; border-radius:999px; background:var(--sky-50); border:1px solid var(--sky-100); color:var(--sky-700); font-size:.8rem; font-weight:700; }

/* ---------- 表单 ---------- */
.field { display:flex; flex-direction:column; gap:.38rem; margin-bottom:.95rem; }
.field > span, .field > label { font-size:.85rem; font-weight:700; color:var(--ink-2); }
.field .hint { font-size:.76rem; color:var(--muted); font-weight:500; }
input, select, textarea {
  width:100%; font:inherit; font-size:.95rem; color:var(--ink);
  padding:.62rem .8rem; border:1px solid var(--line-2); border-radius:var(--r-sm);
  background:#fff; transition:border-color .15s, box-shadow .15s;
}
input[type="checkbox"], input[type="radio"] { width:auto; flex:none; accent-color:var(--sky-600); }
textarea { resize:vertical; min-height:84px; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--sky-400); box-shadow:var(--ring); }
input::placeholder, textarea::placeholder { color:var(--faint); }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0 1rem; }
.form-grid .full { grid-column:1 / -1; }
label.check { display:inline-flex; flex-direction:row; align-items:flex-start; gap:.55rem; max-width:100%; cursor:pointer; }
label.check input { width:auto; margin-top:.22rem; }

/* ---------- 套餐编辑器 ---------- */
.plan-form { display:grid; gap:1rem; }
.plan-form-section { padding:1rem; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); }
.plan-form-section-head { margin-bottom:.9rem; }
.plan-form-section-head h4 { margin:0; font-size:1rem; color:var(--ink); }
.plan-form-section-head p { margin:.2rem 0 0; color:var(--muted); font-size:.8rem; line-height:1.45; }
.plan-duration-control { display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:.55rem; }
.plan-field-hint { margin:0; line-height:1.45; }
.plan-option-row { display:flex; flex-wrap:wrap; gap:1rem; padding-top:.15rem; }
.plan-mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin-bottom:.95rem; }
.plan-mode-card {
  display:flex; align-items:flex-start; gap:.65rem; min-width:0; padding:.8rem .85rem;
  border:1px solid var(--line-2); border-radius:var(--r-sm); background:var(--surface-2);
  cursor:pointer; transition:border-color .15s, box-shadow .15s, background .15s;
}
.plan-mode-card:hover { border-color:var(--sky-300); }
.plan-mode-card.selected { border-color:var(--sky-400); background:var(--sky-50); box-shadow:0 0 0 3px rgba(56,189,248,.12); }
.plan-mode-card input { margin-top:.22rem; }
.plan-mode-copy { display:grid; min-width:0; }
.plan-mode-copy b { color:var(--ink-2); font-size:.9rem; }
.plan-mode-copy small { color:var(--muted); font-size:.75rem; line-height:1.4; font-weight:500; }
.plan-traffic-amount { margin-bottom:.85rem; }
.plan-amount-control { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; border:1px solid var(--line-2); border-radius:var(--r-sm); background:#fff; transition:border-color .15s, box-shadow .15s; }
.plan-amount-control:focus-within { border-color:var(--sky-400); box-shadow:var(--ring); }
.plan-amount-control.disabled { background:var(--slate-bg); opacity:.72; }
.plan-amount-control input { border:0; box-shadow:none !important; background:transparent; }
.plan-amount-unit { padding:0 .85rem; color:var(--muted); font-size:.82rem; font-weight:800; white-space:nowrap; }
.plan-unlimited { width:max-content; margin-top:.15rem; color:var(--body) !important; font-size:.82rem !important; font-weight:600 !important; }
.plan-preview { padding:.9rem; border:1px solid var(--sky-100); border-radius:var(--r-sm); background:var(--sky-50); }
.plan-preview-title { margin-bottom:.55rem; color:var(--sky-700); font-size:.82rem; font-weight:800; }
.plan-preview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem .8rem; }
.plan-preview-grid span { display:flex; align-items:baseline; justify-content:space-between; gap:.7rem; min-width:0; color:var(--muted); font-size:.78rem; }
.plan-preview-grid b { min-width:0; color:var(--ink-2); text-align:right; overflow-wrap:anywhere; }
.plan-preview-example { margin:.7rem 0 0; padding-top:.65rem; border-top:1px dashed var(--sky-200); color:var(--sky-700); font-size:.76rem; line-height:1.5; }
.plan-advanced { border:1px solid var(--line); border-radius:var(--r); background:var(--surface-2); }
.plan-advanced summary { padding:.8rem 1rem; color:var(--ink-2); font-size:.85rem; font-weight:800; cursor:pointer; }
.plan-advanced-grid { padding:0 1rem 1rem; }

/* ---------- 提示条 ---------- */
.note { padding:.7rem .9rem; border-radius:var(--r-sm); font-size:.88rem; font-weight:600; }
.note-info { background:var(--sky-50); border:1px solid var(--sky-100); color:var(--sky-700); }
.note-ok { background:var(--ok-bg); color:#047857; }
.note-bad { background:var(--bad-bg); color:#b91c1c; }
.form-msg { min-height:1.2em; font-size:.86rem; font-weight:600; margin:.2rem 0 0; }
.form-msg.ok { color:#047857; } .form-msg.bad { color:var(--bad); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x:auto; border-radius:var(--r); border:1px solid var(--line); }
table.table { width:100%; border-collapse:collapse; font-size:.9rem; background:#fff; }
.table th, .table td { padding:.7rem .85rem; text-align:left; border-bottom:1px solid var(--line); vertical-align:middle; }
.table th { background:var(--surface-2); color:var(--muted); font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; font-weight:800; position:sticky; top:0; }
.table tbody tr:hover { background:var(--sky-50); }
.table tbody tr:last-child td { border-bottom:none; }
.table .actions { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; justify-content:flex-end; }
.user-device-tags { display:inline-flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.28rem; min-width:0; }
.user-device-tags .badge { padding:.18rem .5rem; font-size:.7rem; white-space:nowrap; }
.user-device-empty { display:inline-flex; align-items:center; min-height:30px; font-size:.78rem; }

/* 列表工具栏（搜索/筛选）与分页控件 */
.list-toolbar { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:.7rem; }
.list-search, .list-select { height:36px; padding:0 .7rem; border:1px solid var(--line-2); border-radius:var(--r-sm); background:#fff; font-size:.86rem; color:var(--body); }
.list-search { flex:1 1 220px; min-width:0; }
.list-select { flex:0 0 auto; }
.list-search:focus, .list-select:focus { outline:none; border-color:var(--sky-400,#5aa9e6); }
.pager { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; margin-top:.8rem; }
.pager-info { color:var(--muted); font-size:.8rem; }
.pager-btns { display:flex; align-items:center; gap:.5rem; }
.pager-page { color:var(--muted); font-size:.82rem; min-width:3.2em; text-align:center; }

.tag-event-report { display:grid; gap:.9rem; }
.tag-event-intro { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.tag-event-intro p { margin:.2rem 0 0; font-size:.8rem; }
.tag-event-filter { display:flex; align-items:flex-end; gap:.7rem; }
.tag-event-filter .field { width:min(440px,100%); margin:0; }
.tag-event-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.7rem; }
.tag-event-stat {
  position:relative; overflow:hidden; padding:.85rem 1rem; border:1px solid var(--line);
  border-radius:12px; background:var(--surface-2);
}
.tag-event-stat::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--sky-400); }
.tag-event-stat span { display:block; color:var(--muted); font-size:.76rem; font-weight:700; }
.tag-event-stat b { display:block; margin-top:.15rem; color:var(--ink); font-size:1.65rem; line-height:1.1; }
.tag-event-stat.is-triggered::before { background:#10b981; }
.tag-event-stat.is-downgraded::before { background:#f59e0b; }
.tag-event-stat.is-tags::before { background:#8b5cf6; }
.tag-event-stat.is-users::before { background:#38bdf8; }
.tag-event-section { display:grid; gap:.45rem; }
.tag-event-section-head { display:flex; align-items:center; justify-content:space-between; min-height:28px; }
.tag-user-table { max-height:32vh; overflow:auto; }
.tag-event-table { max-height:45vh; overflow:auto; }
.tag-event-user-id { max-width:240px; margin-top:.18rem; overflow-wrap:anywhere; font-size:.7rem; }
.tag-event-change { min-width:170px; font-size:.8rem; }

/* ---------- 进度条 ---------- */
.meter { height:9px; border-radius:999px; background:var(--sky-100); overflow:hidden; }
.meter > i { display:block; height:100%; border-radius:999px; background:var(--grad); transition:width .4s ease; }
.meter.warn > i { background:linear-gradient(135deg,#fbbf24,#f59e0b); }
.meter.bad > i { background:linear-gradient(135deg,#fb7185,#ef4444); }

/* ---------- 代码框 ---------- */
.codebox {
  font-family:var(--mono); font-size:.82rem; line-height:1.55; color:#0b3a55;
  background:var(--sky-50); border:1px solid var(--sky-100); border-radius:var(--r);
  padding:1rem; max-height:380px; overflow:auto; white-space:pre; tab-size:2;
}

/* ============================================================
   首页 / 营销站
   ============================================================ */
.hero { position:relative; padding:clamp(2.5rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 3vw, 3.5rem); overflow:hidden; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:2.5rem; align-items:center; }
.hero-glow { position:absolute; inset:auto; width:520px; height:520px; right:-120px; top:-120px;
  background:radial-gradient(closest-side, rgba(56,189,248,.34), rgba(56,189,248,0)); filter:blur(8px); z-index:0; }
.hero > .container { position:relative; z-index:1; }
.hero h1 span { background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero .lead { font-size:1.1rem; color:var(--body); max-width:38ch; }
.hero-actions { display:flex; gap:.7rem; flex-wrap:wrap; margin:1.4rem 0 1.1rem; }
.trust { display:flex; gap:1.4rem; flex-wrap:wrap; color:var(--muted); font-size:.86rem; font-weight:600; }
.trust b { color:var(--ink); }

.hero-card {
  background:linear-gradient(160deg,#ffffff, #f3fbff); border:1px solid var(--sky-100);
  border-radius:var(--r-xl); padding:1.4rem; box-shadow:var(--shadow-lg); position:relative;
}
.hero-card .glass-row { display:flex; align-items:center; justify-content:space-between; padding:.85rem 1rem; border-radius:var(--r); background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-sm); margin-bottom:.7rem; }
.hero-card .glass-row:last-child { margin-bottom:0; }
.node-dot { width:10px; height:10px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px rgba(16,185,129,.18); }

.section { padding:clamp(2.2rem, 1.6rem + 3vw, 4rem) 0; }
.section-head { text-align:center; max-width:640px; margin:0 auto 2rem; }
.section-head.compact { margin-bottom:1.4rem; }
.section-head h2 { margin-bottom:.4rem; }
.section-soft { background:rgba(255,255,255,.42); border-block:1px solid rgba(226,234,242,.65); }

.help-layout { display:grid; grid-template-columns:1.25fr .75fr; gap:1.1rem; align-items:stretch; }
.help-panel { display:flex; flex-direction:column; gap:1.2rem; }
.step-list, .mini-steps { list-style:none; margin:0; padding:0; display:grid; gap:.8rem; counter-reset:steps; }
.step-list li, .mini-steps li { position:relative; padding:.2rem 0 .2rem 3rem; counter-increment:steps; min-height:42px; }
.step-list li::before, .mini-steps li::before {
  content:counter(steps);
  position:absolute; left:0; top:0; width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center; background:var(--sky-100); color:var(--sky-700);
  font-weight:800; border:1px solid var(--sky-200);
}
.step-list b, .mini-steps b { display:block; color:var(--ink); margin-bottom:.12rem; }
.step-list span, .mini-steps span { display:block; color:var(--muted); font-size:.9rem; line-height:1.5; }
.help-actions { display:flex; gap:.7rem; flex-wrap:wrap; margin-top:auto; }
.guide-stack { display:grid; gap:1.1rem; }
.guide-card { padding:1.25rem; display:flex; flex-direction:column; gap:.45rem; }
.guide-card h3 { margin:.1rem 0 0; font-size:1.05rem; }
.guide-card p { margin:0; color:var(--muted); font-size:.9rem; }
.help-faq-panel { padding:1.25rem; display:flex; flex-direction:column; min-width:0; }
.help-faq-head { margin-bottom:.55rem; }
.help-faq-head h3 { margin:.55rem 0 .15rem; font-size:1.08rem; }
.help-faq-head p { margin:0; color:var(--muted); font-size:.82rem; }
.help-faq-list { display:grid; margin-top:.35rem; border-top:1px solid var(--line); }
.help-faq-list details { border-bottom:1px solid var(--line); }
.help-faq-list summary {
  display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  padding:.82rem 0; color:var(--ink-2); font-size:.9rem; font-weight:800;
  line-height:1.45; cursor:pointer; list-style:none;
}
.help-faq-list summary::-webkit-details-marker { display:none; }
.help-faq-list summary::after {
  content:"+"; display:grid; place-items:center; flex:0 0 25px; width:25px; height:25px;
  border-radius:8px; background:var(--sky-100); color:var(--sky-700); font-size:1rem;
}
.help-faq-list details[open] summary::after { content:"−"; }
.help-faq-list details[open] summary { color:var(--sky-700); }
.help-faq-list details p { margin:-.2rem 0 .85rem; color:var(--muted); font-size:.84rem; line-height:1.6; }
.ios-guide { margin-top:2rem; padding-top:1.6rem; border-top:1px solid var(--line); }
.ios-guide .section-head p:not(.eyebrow) { color:var(--body); max-width:68ch; margin-inline:auto; font-size:1rem; font-weight:700; line-height:1.7; }
.ios-guide .section-head p.ios-guide-alert { color:#dc2626; font-size:1.08rem; font-weight:950; line-height:1.6; }
.ios-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.ios-guide-step { overflow:hidden; border:1px solid var(--line); border-radius:var(--r-lg); background:#fff; box-shadow:var(--shadow-sm); }
.ios-guide-copy { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.72rem .78rem; align-items:start; padding:1.08rem 1.12rem .98rem; border-bottom:1px solid var(--sky-100); background:linear-gradient(135deg,#fff 0%,#effaff 100%); }
.ios-guide-copy span { grid-row:1 / span 2; display:inline-grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--grad); color:#fff; font-weight:950; font-size:.92rem; box-shadow:0 10px 18px -12px rgba(14,165,233,.85); }
.ios-guide-copy h3 { grid-column:2; margin:.04rem 0 0; color:var(--ink); font-size:1.13rem; line-height:1.28; font-weight:900; }
.ios-guide-copy p { grid-column:2; margin:0; color:#124e63; font-size:.98rem; line-height:1.68; font-weight:700; }
.ios-guide-copy p strong { color:#0b7895; font-weight:950; }
.ios-guide-step img { width:100%; aspect-ratio:9 / 16; object-fit:contain; background:#f3f6fa; }

.help-page .lead { font-size:1.04rem; color:var(--body); max-width:62ch; }
.help-hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); gap:1.2rem; align-items:stretch; margin-bottom:1.4rem; }
.help-hero > div:first-child { display:flex; flex-direction:column; justify-content:center; padding:1.35rem 0; }
.help-hero h1 { max-width:13ch; margin-bottom:.45rem; }
.help-signal { min-height:320px; border:1px solid var(--sky-100); border-radius:var(--r-xl); background:linear-gradient(160deg,#fff,#eef8ff); box-shadow:var(--shadow-lg); padding:1.2rem; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:1fr auto auto; gap:.65rem; }
.help-signal span, .help-signal b, .help-signal em { display:grid; place-items:center; border-radius:var(--r); text-align:center; font-weight:850; }
.help-signal span { min-height:96px; background:#fff; border:1px solid var(--line); color:var(--sky-700); box-shadow:var(--shadow-sm); }
.help-signal b { grid-column:1 / -1; min-height:76px; background:var(--grad); color:#fff; font-size:1.15rem; }
.help-signal em { grid-column:1 / -1; min-height:58px; background:var(--warn-bg); color:#b45309; font-style:normal; border:1px solid #fde68a; }
.help-band { margin-top:.8rem; }
.help-choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.help-choice { padding:1.25rem; display:flex; flex-direction:column; gap:.85rem; }
.help-choice h3 { font-size:1.16rem; margin:0; }
.help-choice.primary { border-color:var(--sky-200); }
.help-choice.ios { border-color:#fde68a; background:linear-gradient(180deg,#fff,#fffbeb); }
.help-grid-section { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; margin-top:1.1rem; }

.help-page.alt .section-head p:not(.eyebrow) { color:var(--muted); max-width:58ch; margin-inline:auto; }
.device-guide { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.device-card { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:1.15rem; display:flex; flex-direction:column; gap:.9rem; min-height:268px; }
.device-card.own-client { border-color:var(--sky-100); }
.device-card.ios-client { border-color:#fde68a; background:linear-gradient(180deg,#fff,#fffbeb); }
.device-head { display:flex; align-items:flex-start; gap:.75rem; }
.device-icon { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; flex:none; background:var(--grad-soft); color:var(--sky-700); font-weight:900; font-size:.82rem; border:1px solid var(--sky-100); }
.ios-client .device-icon { background:var(--warn-bg); border-color:#fde68a; color:#b45309; }
.device-head h2 { font-size:1.18rem; margin:0 0 .15rem; }
.device-head p { margin:0; color:var(--muted); font-size:.88rem; }
.device-card ul { margin:0; padding-left:1.05rem; color:var(--body); font-size:.9rem; }
.device-card li + li { margin-top:.32rem; }
.download-meta { color:var(--muted); font-size:.84rem; font-weight:700; margin-top:auto; }
.device-card .btn { align-self:flex-start; margin-top:auto; }
.download-meta + .btn { margin-top:0; }
.download-actions { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; margin-top:auto; }
.device-card .download-actions .btn { margin-top:0; }
.ios-guide-link, .ios-guide-link:hover { color:var(--bad); }
.help-note-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1.2rem; }
.help-note-grid .note { display:flex; flex-direction:column; gap:.25rem; }
.help-note-grid .note span { color:var(--body); font-weight:500; }

.download-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.1rem; }
.download-card { padding:1.25rem; display:flex; flex-direction:column; justify-content:space-between; gap:1.1rem; min-height:220px; }
.download-card h3 { margin:.55rem 0 .3rem; font-size:1.08rem; }
.download-card p { margin:0; color:var(--muted); font-size:.9rem; }
.download-card .btn { align-self:flex-start; }

.renew-band {
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap;
  padding:1.5rem; border:1px solid var(--sky-100); border-radius:var(--r-lg);
  background:linear-gradient(135deg,#fff,#eef8ff); box-shadow:var(--shadow-sm);
}
.renew-band h2 { margin-bottom:.35rem; }
.renew-band p:not(.eyebrow) { margin:0; color:var(--muted); max-width:62ch; }
.renew-actions { display:flex; gap:.7rem; flex-wrap:wrap; }
.renew-public-plans {
  margin-top:2.4rem; padding:2.2rem; border:1px solid var(--line-2); border-radius:var(--r-xl);
  background:linear-gradient(180deg,#f7fbff,#fff); box-shadow:var(--shadow-sm);
}
.renew-public-plans .section-head > p:not(.eyebrow) { margin:0; color:var(--muted); }

.feature { padding:1.4rem; }
.feature .ic { width:46px; height:46px; border-radius:13px; background:var(--grad-soft); color:var(--sky-600); display:grid; place-items:center; margin-bottom:.9rem; }
.feature .ic svg { width:24px; height:24px; }
.feature h3 { font-size:1.08rem; margin-bottom:.3rem; }
.feature p { margin:0; font-size:.92rem; color:var(--muted); }

/* ---------- 首页预览 A/B ---------- */
.home-preview .site-header { background:rgba(255,255,255,.9); }
.hp-hero { padding:clamp(2rem, 1.4rem + 4vw, 4.8rem) 0 clamp(1.8rem, 1rem + 3vw, 3.4rem); }
.hp-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,.86fr); gap:clamp(1.2rem, 1rem + 3vw, 3.6rem); align-items:center; }
.hp-copy h1 { max-width:10.5ch; margin:.9rem 0 .7rem; font-size:clamp(2rem, 1.25rem + 3.4vw, 4.1rem); letter-spacing:0; line-height:1.06; }
.hp-copy .lead { max-width:46rem; font-size:1.06rem; color:var(--body); }
.hp-proof-row { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.15rem; }
.hp-proof-row span { display:inline-flex; align-items:center; gap:.32rem; padding:.34rem .68rem; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); font-size:.82rem; font-weight:750; }
.hp-proof-row b { color:var(--ink); }
.hp-phone-panel {
  min-height:520px; border:1px solid rgba(14,165,233,.22); border-radius:28px;
  background:linear-gradient(160deg,#10231f,#123a45 45%,#f7fbff 45.2%,#fff);
  box-shadow:0 30px 80px -38px rgba(15,23,42,.55);
  padding:1rem; display:flex; flex-direction:column; gap:.85rem;
}
.hp-phone-top { height:34px; display:flex; align-items:center; gap:.32rem; padding:0 .4rem; }
.hp-phone-top span { width:8px; height:8px; border-radius:50%; background:#e2e8f0; opacity:.9; }
.hp-sub-card { margin-top:1rem; background:#fff; border:1px solid var(--line); border-radius:20px; padding:1.15rem; box-shadow:var(--shadow); }
.hp-sub-card small { display:block; color:var(--sky-700); font-weight:850; margin-bottom:.25rem; }
.hp-sub-card strong { display:block; color:var(--ink); font-size:1.42rem; letter-spacing:0; }
.hp-sub-card p { color:var(--muted); margin:.2rem 0 .85rem; }
.hp-qr-mini { width:128px; height:128px; display:grid; grid-template-columns:repeat(2,1fr); gap:.42rem; padding:.55rem; background:var(--sky-50); border:1px solid var(--sky-100); border-radius:16px; }
.hp-qr-mini i { display:block; border-radius:7px; background:linear-gradient(135deg,var(--ink),#0e7490); }
.hp-signal-bars { height:126px; display:flex; align-items:end; gap:.5rem; padding:.75rem; border:1px solid var(--sky-100); border-radius:16px; background:linear-gradient(180deg,var(--sky-50),#fff); }
.hp-signal-bars i { flex:1; min-width:22px; border-radius:8px 8px 4px 4px; background:linear-gradient(180deg,#10b981,#0ea5e9); box-shadow:0 10px 22px -14px rgba(14,165,233,.8); }
.hp-signal-bars i:nth-child(1) { height:36%; }
.hp-signal-bars i:nth-child(2) { height:52%; }
.hp-signal-bars i:nth-child(3) { height:68%; }
.hp-signal-bars i:nth-child(4) { height:84%; }
.hp-signal-bars i:nth-child(5) { height:100%; }
.hp-network-map-card {
  width:100%;
  height:136px;
  object-fit:cover;
  object-position:center;
  border:1px solid var(--sky-100);
  border-radius:16px;
  background:linear-gradient(180deg,var(--sky-50),#fff);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.6),
    0 12px 30px -24px rgba(14,165,233,.85);
}
.hp-network-map-card-dense { height:148px; }
.hp-map-visual {
  background:linear-gradient(160deg,#10231f,#123a45 45%,#f7fbff 45.2%,#fff);
}
.hp-route-list { display:grid; gap:.62rem; margin-top:auto; }
.hp-route-list div { display:grid; grid-template-columns:auto 1fr auto; gap:.6rem; align-items:center; padding:.78rem .85rem; border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:var(--shadow-sm); }
.hp-route-list b { color:var(--ink); }
.hp-route-list em { color:var(--muted); font-style:normal; font-size:.78rem; font-weight:800; }
.node-dot.amber { background:#f59e0b; box-shadow:0 0 0 4px rgba(245,158,11,.18); }
.node-dot.blue { background:#3b82f6; box-shadow:0 0 0 4px rgba(59,130,246,.18); }
.hp-step-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.hp-step-grid article {
  position:relative; min-height:210px; padding:1.25rem; border:1px solid var(--line);
  border-radius:20px; background:#fff; box-shadow:var(--shadow-sm); overflow:hidden;
}
.hp-step-grid article::after { content:""; position:absolute; right:-28px; bottom:-42px; width:120px; height:120px; border-radius:50%; background:rgba(16,185,129,.1); }
.hp-step-grid span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:#0f766e; color:#fff; font-weight:900; margin-bottom:1.8rem; }
.hp-step-grid h3 { font-size:1.16rem; }
.hp-step-grid p { margin:0; color:var(--muted); }
.hp-support-grid { display:grid; grid-template-columns:minmax(0,.95fr) minmax(320px,.65fr); gap:1.4rem; align-items:center; }
.hp-support-grid p:not(.eyebrow) { color:var(--muted); margin:0; max-width:62ch; }
.hp-mini-dashboard { display:grid; gap:.65rem; }
.hp-mini-dashboard div { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1rem; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); }
.hp-mini-dashboard span { color:var(--muted); font-size:.84rem; font-weight:750; }
.hp-mini-dashboard b { color:var(--ink); text-align:right; }

.home-preview-b { background:linear-gradient(180deg,#eef6fd 0,#f7fbff 38%,#eef6fd 100%); }
.hp-hero-network .hp-copy h1 { max-width:11.5ch; }
.hp-topology-card { border-radius:28px; overflow:hidden; border:1px solid rgba(15,35,31,.16); background:#10231f; box-shadow:0 28px 80px -36px rgba(15,23,42,.65); }
.hp-topology-card img { width:100%; aspect-ratio:1.32; object-fit:contain; background:#10231f; }
.hp-network-stage { position:relative; min-height:410px; overflow:hidden; background:linear-gradient(145deg,#10231f,#183a35 52%,#101c28); }
.hp-stage-label { position:absolute; z-index:2; color:#f7fbff; display:grid; gap:.1rem; }
.hp-stage-label b { font-size:1.32rem; letter-spacing:0; }
.hp-stage-label span { color:rgba(247,251,255,.64); font-size:.78rem; font-weight:750; }
.hp-stage-left { left:9%; top:16%; }
.hp-stage-right { right:8%; top:16%; text-align:right; }
.hp-curve { position:absolute; left:8%; right:8%; border-radius:999px; transform:rotate(-9deg); }
.hp-curve-main { top:54%; height:9px; background:linear-gradient(90deg,#5ee6b1,#f6c95f); box-shadow:0 0 28px rgba(94,230,177,.3); }
.hp-curve-soft { top:37%; height:5px; background:linear-gradient(90deg,rgba(120,168,255,.25),rgba(120,168,255,.72)); transform:rotate(12deg); }
.hp-node-chip, .hp-private-chip { position:absolute; z-index:3; display:grid; place-items:center; border:2px solid rgba(247,251,255,.78); color:#f7fbff; font-weight:900; box-shadow:0 18px 36px -24px rgba(0,0,0,.8); }
.hp-node-chip { width:64px; height:64px; border-radius:18px; background:rgba(255,255,255,.1); }
.hp-node-a { right:24%; top:34%; }
.hp-node-b { right:8%; top:48%; background:rgba(120,168,255,.16); }
.hp-node-c { right:28%; bottom:17%; background:rgba(246,201,95,.18); }
.hp-private-chip { left:10%; bottom:17%; height:54px; padding:0 1.2rem; border-radius:16px; background:rgba(94,230,177,.12); }
.hp-topology-status { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; padding:.78rem; background:#fff; }
.hp-topology-status span { display:flex; align-items:center; justify-content:center; gap:.35rem; min-height:40px; border:1px solid var(--line); border-radius:12px; color:var(--ink-2); font-size:.8rem; font-weight:850; white-space:nowrap; }
.hp-topology-status i { width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px rgba(16,185,129,.16); }
.hp-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.hp-metrics article { padding:1.25rem; min-height:190px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-sm); }
.hp-metrics small { color:var(--sky-700); font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.hp-metrics b { display:block; color:var(--ink); font-size:1.35rem; margin:.55rem 0 .35rem; }
.hp-metrics p { color:var(--muted); margin:0; }
.hp-node-grid { display:grid; gap:.75rem; max-width:860px; margin:0 auto; }
.hp-node-line { display:grid; grid-template-columns:120px 1fr auto; align-items:center; gap:1rem; padding:1rem 1.1rem; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:var(--shadow-sm); }
.hp-node-line span { color:#0f766e; font-weight:900; }
.hp-node-line b { color:var(--ink); }
.hp-node-line em { font-style:normal; color:var(--sky-700); font-weight:900; padding:.22rem .6rem; border-radius:999px; background:var(--sky-50); border:1px solid var(--sky-100); }

/* 网站声明 */
.statement-page .section { padding-top:clamp(2rem, 1.5rem + 2.4vw, 3.4rem); }
.statement-container { max-width:920px; }
.statement-page .lead { max-width:680px; margin:.45rem auto 0; color:var(--muted); }
.statement-tags { display:flex; justify-content:center; flex-wrap:wrap; gap:.5rem; margin:0 0 1.2rem; }
.statement-tags span {
  display:inline-flex; align-items:center; padding:.22rem .68rem; border-radius:999px;
  background:var(--sky-50); border:1px solid var(--sky-100); color:var(--sky-700);
  font-size:.78rem; font-weight:800;
}
.statement-doc {
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:clamp(1.1rem, .8rem + 1.4vw, 1.8rem); box-shadow:var(--shadow-sm);
}
.statement-doc > p { color:var(--body); }
.statement-doc h2 { font-size:1.12rem; margin:1.55rem 0 .55rem; }
.statement-doc h3 { font-size:1rem; margin:0 0 .35rem; }
.statement-doc a { overflow-wrap:anywhere; font-weight:700; }
.statement-alert, .statement-callout, .statement-summary {
  border:1px solid var(--line); border-radius:var(--r);
  padding:1rem 1.05rem; margin:1.1rem 0; background:var(--surface-2);
}
.statement-alert {
  border-left:4px solid var(--sky-500); background:var(--sky-50);
}
.statement-alert h2, .statement-callout h3, .statement-summary h2 { margin-top:0; }
.statement-alert p, .statement-callout p, .statement-summary p { margin-bottom:0; }
.statement-alert-warn { border-left-color:var(--warn); background:#fffbeb; }
.statement-list {
  margin:1rem 0; padding:1rem 1.1rem 1rem 2.1rem; border:1px solid var(--line);
  border-radius:var(--r); background:#fff;
}
.statement-list li { margin:.45rem 0; }
.statement-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin:1.1rem 0; }
.statement-grid section {
  border:1px solid var(--line); border-radius:var(--r); padding:1rem;
  background:linear-gradient(180deg,#fff,var(--surface-2));
}
.statement-grid p:last-child { margin-bottom:0; }
.statement-summary { background:#fff1f2; border-color:#fecdd3; color:#9f1239; }
.statement-summary h2 { color:#be123c; }
.statement-note {
  margin-top:1.3rem; padding-top:1rem; border-top:1px dashed var(--line-2);
  color:var(--muted); font-size:.88rem;
}

/* 套餐卡 */
.plan { padding:1.5rem; display:flex; flex-direction:column; position:relative; }
.plan.popular { border-color:var(--sky-300); box-shadow:var(--shadow); }
.plan .tag-pop { position:absolute; top:-12px; right:18px; background:var(--grad); color:#fff; padding:.25rem .7rem; border-radius:999px; font-size:.72rem; font-weight:800; box-shadow:var(--shadow-sm); }
.plan h3 { font-size:1.15rem; margin-bottom:.2rem; }
.plan .price { font-size:2.1rem; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
.plan .price small { font-size:.85rem; color:var(--muted); font-weight:600; }
.plan ul { list-style:none; padding:0; margin:1rem 0 1.3rem; display:flex; flex-direction:column; gap:.55rem; }
.plan li { display:flex; gap:.5rem; align-items:flex-start; font-size:.9rem; color:var(--body); }
.plan li::before { content:""; flex:none; width:18px; height:18px; margin-top:1px; border-radius:50%; background:var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top:auto; }

/* 节点卡 */
.node-card { padding:1.1rem 1.2rem; display:flex; flex-direction:column; gap:.7rem; }
.node-card .top { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.node-card .name { font-weight:700; color:var(--ink); }
.node-card .geo { font-size:.82rem; color:var(--muted); }
.node-card .stats { display:flex; gap:1.1rem; font-size:.82rem; color:var(--muted); }
.node-card .stats b { color:var(--ink-2); font-weight:700; }
.node-card .protos { display:flex; gap:.35rem; flex-wrap:wrap; }

.site-footer { border-top:1px solid var(--line); padding:2rem 0; color:var(--muted); font-size:.88rem; margin-top:2rem; }
.site-footer .container { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }

/* ============================================================
   认证卡（会员/后台登录注册）
   ============================================================ */
.auth-wrap { min-height:calc(100vh - 66px); display:grid; place-items:center; padding:2rem 1rem; }
.auth-card { width:min(412px,100%); padding:1.9rem 1.7rem 1.5rem; }
.auth-card .brand { justify-content:center; gap:.55rem; margin-bottom:.1rem; }
.auth-card .brand .logo { width:44px; height:44px; border-radius:13px; font-size:1.3rem; }
.auth-card .brand b { font-size:1.25rem; }
.auth-sub { text-align:center; color:var(--muted); font-size:.86rem; margin:.55rem 0 0; }
.auth-tabs { display:flex; gap:.25rem; background:var(--sky-50); border:1px solid var(--sky-100); padding:.28rem; border-radius:999px; margin:1.15rem 0 1.25rem; }
.auth-tabs button { flex:1; padding:.55rem; border:none; background:transparent; border-radius:999px; font:inherit; font-weight:700; font-size:.95rem; color:var(--muted); cursor:pointer; transition:.15s; }
.auth-tabs button.active { background:#fff; color:var(--sky-700); box-shadow:var(--shadow-sm); }
.auth-card form { display:flex; flex-direction:column; }
.auth-card .field { margin-bottom:.78rem; gap:.32rem; }
.auth-card .field > label, .auth-card .field > span { font-size:.82rem; }
.auth-card input { padding:.64rem .85rem; }
.auth-card .btn-block { margin-top:.55rem; padding:.72rem; font-size:1rem; }
.provider-login-page { background:var(--bg); }
.provider-auth-wrap { min-height:100vh; padding:1.4rem 1rem; }
.provider-auth-card { width:min(430px,100%); }
.provider-result { margin-top:1rem; padding-top:1rem; border-top:1px solid var(--line); }
.provider-actions { display:flex; gap:.55rem; flex-wrap:wrap; }
.provider-actions .btn { flex:1 1 130px; }
/* 登录方式切换（密码 / 验证码） */
.auth-mode { display:flex; gap:.3rem; margin:0 0 .78rem; }
.auth-mode button { flex:1; padding:.4rem; border:1px solid var(--line); background:#fff; border-radius:8px; font:inherit; font-size:.84rem; font-weight:600; color:var(--muted); cursor:pointer; transition:.15s; }
.auth-mode button.active { border-color:var(--sky-300); background:var(--sky-50); color:var(--sky-700); }
/* 验证码输入 + 发送按钮一行 */
.code-row { display:flex; gap:.4rem; align-items:stretch; }
.code-row input { flex:1; min-width:0; }
.code-row .btn { white-space:nowrap; flex:none; }
.auth-foot { text-align:center; font-size:.8rem; color:var(--muted); margin:1rem 0 0; line-height:1.5; }

/* ============================================================
   会员中心
   ============================================================ */
.portal { padding:1.6rem 0 3rem; }
.portal-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.portal-head .who h1 { font-size:1.5rem; margin:0; }
.portal-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:1.1rem; align-items:start; }
.portal-menu { position:sticky; top:82px; display:flex; flex-direction:column; gap:.35rem; padding:.55rem; border:1px solid var(--line); border-radius:var(--r-lg); background:#fff; box-shadow:var(--shadow-sm); }
.portal-menu-link { position:relative; border:0; background:transparent; color:var(--body); text-align:left; padding:.72rem .82rem; border-radius:var(--r-sm); font:inherit; font-weight:760; cursor:pointer; }
.portal-menu-link:hover, .portal-menu-link.active { background:var(--sky-50); color:var(--sky-700); }
.mobile-label { display:none; }
.menu-badge { position:absolute; right:.55rem; top:.55rem; min-width:19px; height:19px; padding:0 .35rem; border-radius:999px; background:var(--bad); color:#fff; display:grid; place-items:center; font-size:.7rem; font-weight:850; }
.portal-content { min-width:0; }
.portal-panel { display:none; }
.portal-panel.active { display:block; }
.account-overview-panel { padding:1.25rem; }
.account-overview-head { margin-bottom:.75rem; }
.account-summary-grid { gap:.65rem; }
.account-summary-grid .stat-card { min-width:0; padding:.78rem .9rem; }
.account-summary-grid .stat-card .value { font-size:1.35rem; line-height:1.28; }
.account-summary-grid .stat-card .value small { display:block; margin-top:.12rem; line-height:1.3; }
.account-summary-grid .stat-card .traffic-usage-value { margin-bottom:.4rem; font-size:.88rem; line-height:1.5; letter-spacing:0; }
.account-online-box { padding:.55rem .72rem; margin-top:.65rem; }
.account-subscription { margin-top:.9rem; padding-top:.9rem; border-top:1px solid var(--line); }
.account-subscription-head { align-items:center; margin-bottom:.2rem; }
.account-subscription-head h2 { font-size:1.25rem; }
.account-subscription #deviceSummary { font-size:.82rem; margin:.1rem 0 .55rem; }
.account-subscription #deviceAlert { margin-bottom:.6rem; }
.subscription-list { gap:.5rem; }
.subscription-card { padding:.65rem .75rem; }
.subscription-import-panel { margin:.5rem 0 .15rem; padding:.65rem; }
.subscription-link-row { margin-top:.45rem; }
.subscription-actions { margin-top:.5rem; gap:.35rem; }
.account-subscription-note { margin: .7rem 0 0; }
.order-pay-meta { display:grid; gap:.18rem; margin-top:.34rem; color:var(--muted); font-size:.74rem; line-height:1.35; }
.order-pay-meta div { display:flex; align-items:flex-start; gap:.45rem; min-width:0; }
.order-pay-meta span { flex:none; color:var(--muted); font-weight:700; }
.order-pay-meta b { color:var(--ink-2); font-weight:750; min-width:0; overflow-wrap:anywhere; }
.portal-shortcuts { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:0 0 1.1rem; }
.portal-shortcut { padding:1rem 1.1rem; display:flex; flex-direction:column; gap:.1rem; color:var(--body); transition:.15s; }
.portal-shortcut:hover { transform:translateY(-2px); border-color:var(--sky-200); box-shadow:var(--shadow); color:var(--body); }
.portal-shortcut span { font-size:.78rem; color:var(--sky-700); font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.portal-shortcut b { color:var(--ink); font-size:.98rem; }
.stat-card { padding:1.1rem 1.25rem; }
.stat-card .label { font-size:.78rem; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.stat-card .value { font-size:1.7rem; font-weight:800; color:var(--ink); letter-spacing:-.02em; margin-top:.15rem; }
.stat-card .value small { font-size:.8rem; color:var(--muted); font-weight:600; }
.sub-box { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; }
.sub-box input { flex:1; min-width:0; font-family:var(--mono); font-size:.84rem; background:var(--sky-50); }
.sub-import-panel { display:flex; gap:.9rem; align-items:center; margin:.8rem 0 .2rem; padding:.8rem; border:1px solid var(--line); border-radius:var(--r); background:var(--surface-2); }
.sub-qr { width:132px; height:132px; flex:none; display:grid; place-items:center; padding:7px; background:#fff; border:1px solid var(--line); border-radius:var(--r-sm); }
.sub-qr svg { width:100%; height:100%; display:block; }
.sub-import-copy { display:flex; flex-direction:column; gap:.25rem; font-size:.88rem; color:var(--muted); }
.sub-import-copy b { color:var(--ink); font-size:.96rem; }
.import-row { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.9rem; }
.mini-steps { gap:.65rem; }
.mini-steps li { padding-left:2.65rem; }
.mini-steps li::before { width:30px; height:30px; font-size:.88rem; }
.download-list { display:flex; flex-direction:column; gap:.55rem; }
.download-list a { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .8rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--body); }
.download-list a:hover { border-color:var(--sky-300); background:var(--sky-50); color:var(--body); }
.download-list b { color:var(--ink); }
.system-message-card { padding:.85rem 1rem; border-left:4px solid transparent; }
.system-message-card.unread { border-left-color:var(--sky-500); background:linear-gradient(90deg,var(--sky-50),#fff 45%); }
.system-message-card p { margin:.45rem 0 .35rem; color:var(--body); line-height:1.65; white-space:pre-wrap; }
.client-support-messages { min-height:360px; max-height:560px; overflow:auto; padding:.85rem; border:1px solid var(--line); border-radius:var(--r); background:linear-gradient(180deg,var(--surface-2),#fff); }
.client-support-welcome { text-align:center; color:var(--muted); font-size:.84rem; margin:.2rem 0 .7rem; }
.client-support-faqs { margin:0 0 .75rem; padding:.75rem; border:1px solid var(--line); border-radius:12px; background:#fff; }
.client-support-faq-title { color:var(--sky-700); font-weight:800; font-size:.86rem; margin-bottom:.25rem; }
.client-support-faq { border-top:1px solid var(--line); padding:.45rem 0; }
.client-support-faq:first-of-type { border-top:0; }
.client-support-faq summary { cursor:pointer; font-weight:700; font-size:.88rem; }
.client-support-faq p { margin:.35rem 0 0; color:var(--muted); font-size:.82rem; line-height:1.55; white-space:pre-wrap; }
.client-support-row { display:flex; flex-direction:column; align-items:flex-start; margin-bottom:.7rem; }
.client-support-row.user { align-items:flex-end; }
.client-support-row.system { align-items:center; }
.client-support-meta { color:var(--muted); font-size:.72rem; margin-bottom:.2rem; }
.client-support-bubble { max-width:78%; padding:.62rem .78rem; border:1px solid var(--line); border-radius:14px; border-bottom-left-radius:5px; background:#fff; line-height:1.55; white-space:pre-wrap; word-break:break-word; }
.client-support-row.user .client-support-bubble { color:#fff; border:0; border-bottom-left-radius:14px; border-bottom-right-radius:5px; background:linear-gradient(135deg,var(--sky-500),var(--sky-700)); }
.client-support-row.system .client-support-bubble { max-width:84%; color:var(--muted); background:rgba(100,116,139,.08); border:0; text-align:center; }
.client-support-img { display:block; max-width:min(240px, 64vw); max-height:300px; border-radius:10px; cursor:zoom-in; object-fit:contain; background:rgba(255,255,255,.25); }
.client-support-cap { margin-top:.35rem; white-space:pre-wrap; }
.client-support-suggestions { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; margin:.65rem 0 0; }
.client-support-suggestion-label { color:var(--muted); font-size:.78rem; font-weight:700; }
.client-support-suggestion { border:1px solid rgba(14,165,233,.22); border-radius:999px; background:rgba(14,165,233,.08); color:var(--sky-700); padding:.28rem .6rem; font-size:.8rem; font-weight:700; cursor:pointer; }
.client-support-form { display:flex; align-items:flex-end; gap:.55rem; margin-top:.7rem; }
.client-support-form textarea { flex:1; min-height:44px; resize:vertical; }
.download-list span { color:var(--muted); font-size:.82rem; text-align:right; }
.download-list.compact a { align-items:flex-start; }
#qr { width:172px; height:172px; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:8px; }
#qr svg, #qr canvas { width:100%; height:100%; }

/* ============================================================
   管理后台
   ============================================================ */
.admin-shell { display:grid; grid-template-columns:248px 1fr; min-height:100vh; }
.sidebar { background:linear-gradient(180deg,#0b4a73,#0a3a5c); color:#cfe8f8; padding:1.2rem 1rem; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:.3rem; overflow-y:auto; scrollbar-width:thin; }
.sidebar .brand { color:#fff; margin-bottom:1.3rem; padding:0 .4rem; }
.sidebar .brand small { color:#9fd3ef; }
.sidebar .brand .logo { box-shadow:none; }
.sidebar .brand .logo.logo-text { background:rgba(255,255,255,.16); }
.side-link { display:flex; align-items:center; gap:.7rem; padding:.62rem .8rem; border-radius:var(--r-sm); color:#bfe2f6; font-weight:600; font-size:.94rem; cursor:pointer; border:none; background:transparent; width:100%; text-align:left; transition:.15s; }
.side-link svg { width:19px; height:19px; opacity:.9; }
.side-link:hover { background:rgba(255,255,255,.09); color:#fff; }
.side-link.active { background:var(--grad); color:#fff; box-shadow:0 8px 18px -10px rgba(0,0,0,.6); }
.side-foot { margin-top:auto; font-size:.78rem; color:#8fc4e3; padding:.5rem .4rem 0; border-top:1px solid rgba(255,255,255,.12); }
.admin-main { padding:1.6rem clamp(1rem, .5rem + 1.5vw, 2.2rem); overflow:auto; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.4rem; flex-wrap:wrap; }
.admin-topbar h1 { font-size:1.5rem; margin:0; }
.view { display:none; }
.view.active { display:block; animation:fade .25s ease; }
#view-settings .settings-panel { width:100%; max-width:none; }
@keyframes fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* 客户端远程配置 */
#view-client-config .client-config-panel { width:100%; max-width:none; padding-bottom:.8rem; }
.client-config-head { align-items:center; }
.client-config-tabs { display:flex; gap:.25rem; overflow-x:auto; border-bottom:1px solid var(--line); margin:0 -.35rem 1rem; padding:0 .35rem; scrollbar-width:thin; }
.client-config-tab { flex:none; min-height:40px; padding:.55rem .78rem; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); font:inherit; font-size:.86rem; font-weight:700; cursor:pointer; }
.client-config-tab:hover { color:var(--sky-700); background:var(--sky-50); }
.client-config-tab.active { color:var(--sky-700); border-bottom-color:var(--sky-600); }
.client-config-tab-panel { display:none; }
.client-config-tab-panel.active { display:block; }
.client-config-group { padding:.25rem 0 1.25rem; }
.client-config-group + .client-config-group { border-top:1px solid var(--line); padding-top:1.2rem; }
.client-config-group-head { margin-bottom:.85rem; }
.client-config-group-head h4 { margin:0; font-size:1rem; }
.client-config-group-head p { margin:.25rem 0 0; color:var(--muted); font-size:.8rem; }
.client-config-section-toggle { display:flex; justify-content:flex-end; margin:-2.35rem 0 .8rem; }
.client-config-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem 1rem; }
.client-config-field { display:grid; grid-template-columns:minmax(125px,.72fr) minmax(220px,1.55fr); align-items:start; gap:.75rem; min-width:0; padding:.62rem 0; border-bottom:1px solid var(--line); }
.client-config-field-label { display:flex; flex-direction:column; gap:.18rem; min-width:0; padding-top:.12rem; }
.client-config-field-label b { color:var(--ink-2); font-size:.84rem; }
.client-config-field-label code { color:var(--muted); font-size:.69rem; overflow-wrap:anywhere; }
.client-config-control { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:.6rem; min-width:0; }
.client-config-control input, .client-config-control textarea, .client-config-control select { min-width:0; padding:.52rem .65rem; font-size:.86rem; }
.client-config-control textarea { min-height:64px; }
.client-config-control input:disabled, .client-config-control textarea:disabled,
.client-config-control select:disabled, .client-config-list input:disabled,
.client-config-order-item select:disabled { color:var(--muted); background:var(--surface-2); cursor:not-allowed; }
.client-config-override { display:inline-flex; align-items:center; gap:.35rem; min-height:36px; color:var(--muted); font-size:.76rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.client-config-override input { margin:0; }
.client-config-value-with-unit { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.45rem; }
.client-config-value-with-unit span { color:var(--muted); font-size:.78rem; }
.client-config-layout-block { padding:.2rem 0 1rem; }
.client-config-layout-block + .client-config-layout-block { border-top:1px solid var(--line); padding-top:1rem; }
.client-config-layout-block h5 { margin:0 0 .55rem; color:var(--ink-2); font-size:.9rem; }
.client-config-subtitle { margin:.9rem 0 .45rem; color:var(--muted); font-size:.78rem; font-weight:700; }
.client-config-boolean { display:inline-flex; align-items:center; gap:.45rem; min-height:36px; color:var(--ink-2); font-size:.82rem; font-weight:700; cursor:pointer; }
.client-config-boolean input { margin:0; }
.client-config-order-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; }
.client-config-order-item { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:.4rem; color:var(--muted); font-size:.76rem; font-weight:800; }
.client-config-order-item span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--surface-2); }
.client-config-order-item select { min-width:0; width:100%; padding:.5rem .6rem; font-size:.84rem; }
.client-config-hidden-list { display:flex; flex-wrap:wrap; gap:.5rem 1rem; margin-top:.65rem; }
.client-config-form-grid { max-width:900px; }
.client-config-list-head, .client-config-list-row { display:grid; align-items:center; gap:.6rem; }
.client-config-list-head { padding:0 .1rem .35rem; color:var(--muted); font-size:.72rem; font-weight:700; }
.client-config-country-head, .client-config-country-row,
.client-config-payment-head, .client-config-payment-row { grid-template-columns:minmax(260px,1.5fr) minmax(150px,.8fr) 34px; }
.client-config-mode-head, .client-config-mode-row { grid-template-columns:80px minmax(170px,.8fr) minmax(260px,1.2fr); }
.client-config-list { display:grid; gap:.5rem; }
.client-config-list-row input { padding:.52rem .65rem; font-size:.86rem; }
.client-config-list-row code { color:var(--sky-700); font-size:.78rem; font-weight:700; }
.client-config-list-actions { margin-top:.7rem; }
.client-config-remove { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line-2); border-radius:var(--r-sm); background:#fff; color:var(--bad); font-size:1.2rem; line-height:1; cursor:pointer; }
.client-config-remove:hover { background:var(--bad-bg); border-color:#fbcfd2; }
.client-config-remove:disabled { color:var(--faint); background:var(--surface-2); cursor:not-allowed; }
.client-config-advanced details > summary { color:var(--ink-2); font-weight:800; cursor:pointer; }
.client-config-advanced textarea { min-height:320px; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:.82rem; line-height:1.55; }

.kpi { padding:1.2rem 1.3rem; display:flex; flex-direction:column; gap:.2rem; position:relative; overflow:hidden; }
.kpi .label { font-size:.8rem; color:var(--muted); font-weight:700; }
.kpi .num { font-size:2rem; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
.kpi .ic { position:absolute; right:14px; top:14px; width:40px; height:40px; border-radius:12px; background:var(--grad-soft); color:var(--sky-600); display:grid; place-items:center; }
.kpi .ic svg { width:22px; height:22px; }
/* 节点监控 · 单节点整框（左身份 + CPU/内存图 + 带宽K线图 + 连接） */
#view-pulse .panel { padding:clamp(.7rem, .55rem + .7vw, 1rem); }
#view-pulse .panel-head { gap:.5rem; margin-bottom:.55rem; }
.pulse-head { display:grid; grid-template-columns:auto minmax(320px, 1fr) auto; align-items:center; }
.pulse-traffic-head { min-width:0; display:grid; grid-template-columns:minmax(180px, 1fr) auto auto; align-items:center; gap:.55rem; padding:.25rem .4rem; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff; }
.pulse-traffic-head canvas { width:100%; height:48px; display:block; }
.pulse-traffic-meta { display:flex; flex-direction:column; min-width:96px; line-height:1.15; }
.pulse-traffic-meta b { color:var(--ink); font-size:.96rem; }
.pulse-traffic-meta span { color:var(--muted); font-size:.72rem; font-weight:700; white-space:nowrap; }
#pulseSummary { gap:.55rem; }
.pulse-nodes { display:grid; gap:.5rem; margin-top:.5rem; }
.pulse-node {
  display:grid; grid-template-columns:minmax(204px,228px) minmax(0,1fr) minmax(0,1fr) auto;
  gap:.5rem; align-items:stretch;
  padding:.55rem .65rem; border:1px solid var(--line);
  border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow-sm);
  transition:border-color .15s ease, box-shadow .2s ease;
}
.pulse-node:hover { border-color:var(--sky-200); box-shadow:var(--shadow); }
.pulse-node-central { border-color:var(--sky-200); background:linear-gradient(90deg,#f0f9ff, var(--surface) 42%); box-shadow:inset 3px 0 0 var(--sky-400, #38bdf8), var(--shadow-sm); }
.pulse-node-central .pn-name::before { content:'★ '; color:var(--sky-400, #38bdf8); }
.pulse-node.load-70 { background:#fffbeb; border-color:#fde68a; }
.pulse-node.load-80 { background:#fff7ed; border-color:#fed7aa; }
.pulse-node.load-90 { background:#fef2f2; border-color:#fecaca; }
.pulse-node.load-70:hover { border-color:#facc15; }
.pulse-node.load-80:hover { border-color:#fb923c; }
.pulse-node.load-90:hover { border-color:#f87171; }
.pn-id { display:flex; flex-direction:column; gap:.3rem; min-width:0; }
.pn-name { font-weight:800; color:var(--ink); font-size:1.02rem; line-height:1.25; }
.pn-host { font-size:.8rem; color:var(--muted); word-break:break-all; margin-top:.1rem; }
.pn-tags { display:flex; flex-wrap:wrap; gap:.18rem; align-items:center; }
.pn-protos { display:flex; flex-direction:column; gap:.08rem; }
/* 图表面板：单层框，canvas 直接贴在框内（去掉内层边框） */
.pn-panel { display:flex; flex-direction:column; min-width:0; padding:.45rem .55rem .38rem; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff; }
.pn-panel-head { display:flex; align-items:center; justify-content:space-between; gap:.25rem; flex-wrap:wrap; margin-bottom:.25rem; }
.pn-panel-title { font-size:.82rem; font-weight:800; color:var(--ink-2); }
.pn-resource-facts { display:flex; align-items:center; gap:.45rem; flex:1 1 160px; min-width:0; color:var(--muted); font-size:.72rem; line-height:1.2; white-space:nowrap; }
.pn-central-resource-facts { justify-content:center; color:var(--ink-2); font-weight:800; }
.pn-metrics { display:flex; flex-wrap:wrap; gap:.25rem; justify-content:flex-end; }
.pn-panel canvas { width:100%; height:112px; display:block; background:transparent; border:none; }
.pn-legend { color:var(--faint); font-size:.72rem; text-align:right; margin-top:.18rem; }
.pn-action { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:.3rem; min-width:82px; }
.pn-connection-btn { min-width:72px; padding-inline:.72rem; }
.pn-connection-btn.has-connections { border-color:var(--sky-200); background:var(--sky-50); color:var(--sky-700); }
.pn-action-status { display:flex; flex-direction:column; align-items:center; gap:.15rem; }
.pn-action-meta { width:100%; padding:.35rem .4rem; border:1px dashed var(--line); border-radius:var(--r-sm); color:var(--muted); font-size:.76rem; line-height:1.3; text-align:center; background:var(--surface-2); }
.pn-action-meta b { color:var(--ink-2); font-weight:800; }
.pn-traffic-total { white-space:nowrap; font-weight:800; color:var(--ink-2); }
.pn-traffic-total .faint { font-weight:700; }
.pn-total-out { color:var(--sky-700); }
.pn-total-in { color:#b45309; }
.pn-total-sep, .pn-total-unit { color:var(--ink-2); }
.pn-subtotal-reset { margin-left:.35rem; padding:.16rem .42rem; min-height:0; font-size:.68rem; line-height:1.2; vertical-align:1px; }
.pn-subtotal-reset-at { margin:.08rem 0 .2rem; color:var(--faint); font-size:.68rem; white-space:nowrap; }
.pn-node-users { width:100%; padding:.34rem .4rem; border:1px solid var(--sky-100); border-radius:var(--r-sm); background:var(--sky-50); color:var(--sky-700); font-size:.74rem; line-height:1.2; text-align:center; }
.pn-node-users span { display:block; color:var(--muted); font-weight:700; }
.pn-node-users b { display:block; color:var(--sky-700); font-size:1rem; line-height:1.1; }
@media (max-width:1280px) {
  .pulse-head { grid-template-columns:1fr; }
  .pulse-traffic-head { width:100%; }
}
@media (max-width:1080px) {
  .pulse-node { grid-template-columns:1fr 1fr; }
  .pn-id, .pn-action { grid-column:1 / -1; }
  .pn-action { flex-direction:row; justify-content:flex-start; align-items:center; }
  .pn-action-status { flex-direction:row; }
  .pn-action-meta { width:auto; min-width:180px; text-align:left; }
  .pn-node-users { width:auto; min-width:86px; }
}
@media (max-width:680px) {
  .pulse-node { grid-template-columns:1fr; }
  .pulse-traffic-head { grid-template-columns:1fr auto; }
  .pulse-traffic-head canvas { grid-column:1 / -1; height:58px; }
  .pn-resource-facts { flex-wrap:wrap; white-space:normal; }
  .pn-metrics { justify-content:flex-start; }
  .pn-action { flex-direction:column; align-items:stretch; }
  .pn-action-status { flex-direction:row; justify-content:flex-start; }
  .pn-action-meta, .pn-node-users { width:100%; min-width:0; }
  .pn-action-meta { text-align:left; }
}

.traffic-detail { display:grid; gap:.85rem; }
.traffic-query { display:grid; grid-template-columns:repeat(2, minmax(160px, 1fr)) minmax(160px, auto); gap:.75rem; align-items:end; }
.traffic-total-box { border:1px solid var(--line); border-radius:var(--r-sm); padding:.62rem .8rem; background:var(--surface-2); display:flex; flex-direction:column; gap:.1rem; }
.traffic-total-box span { color:var(--muted); font-size:.76rem; font-weight:700; }
.traffic-total-box b { color:var(--ink); font-size:1.08rem; }
.traffic-chart-block { border:1px solid var(--line); border-radius:var(--r-sm); background:#fff; padding:.72rem; }
.traffic-chart-head { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-bottom:.45rem; color:var(--ink-2); }
.traffic-chart-head span { color:var(--muted); font-size:.8rem; }
.traffic-detail-chart { width:100%; height:220px; display:block; }
.traffic-node-list { display:grid; gap:.42rem; }
.traffic-node-row { display:grid; grid-template-columns:minmax(0, 1fr) auto auto; align-items:center; gap:.7rem; padding:.5rem .6rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); }
.traffic-node-row span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink-2); font-weight:800; }
.traffic-node-row b { color:var(--sky-700); white-space:nowrap; }
.traffic-node-row em { color:var(--muted); font-size:.78rem; font-style:normal; white-space:nowrap; }
@media (max-width:680px) {
  .traffic-query, .traffic-node-row { grid-template-columns:1fr; }
  .traffic-chart-head { align-items:flex-start; flex-direction:column; }
  .traffic-detail-chart { height:190px; }
}

/* ---------- 客服 ---------- */
.support-admin { display:grid; grid-template-columns:300px minmax(0,1fr); gap:1rem; height:clamp(560px, calc(100vh - 250px), 760px); min-height:0; }
.support-list { border:1px solid var(--line); border-radius:var(--r); background:var(--surface-2); overflow-y:auto; min-height:0; height:100%; }
.support-group-title { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.34rem .65rem .24rem; color:var(--muted); font-size:.72rem; font-weight:850; background:rgba(247,251,255,.86); border-bottom:1px solid var(--line); }
.support-group-title b { min-width:18px; height:18px; padding:0 .35rem; border-radius:999px; display:grid; place-items:center; background:#fff; color:var(--ink-2); font-size:.7rem; }
.support-conv { width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; padding:.42rem .65rem; cursor:pointer; display:grid; gap:.12rem; }
.support-conv:hover, .support-conv.active { background:#fff; }
.support-conv-top { display:flex; align-items:center; gap:.38rem; min-width:0; }
.support-conv-name { font-weight:850; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-conv-unread { min-width:18px; height:18px; padding:0 .32rem; border-radius:999px; background:var(--bad); color:#fff; display:grid; place-items:center; font-size:.68rem; font-weight:850; flex:none; }
.support-conv-time { margin-left:auto; color:var(--muted); font-size:.76rem; white-space:nowrap; flex:none; }
.support-conv-preview { color:var(--muted); font-size:.8rem; line-height:1.28; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-conv-meta { display:flex; align-items:center; justify-content:space-between; gap:.5rem; color:var(--muted); font-size:.76rem; }
.support-status { border:0; border-radius:999px; padding:.14rem .46rem; font:inherit; font-size:.72rem; line-height:1.25; font-weight:850; background:var(--ok-bg); color:var(--ok); cursor:pointer; white-space:nowrap; flex:none; }
.support-status-open { background:var(--ok-bg); color:#047857; }
.support-status-watch { background:var(--sky-100); color:var(--sky-700); }
.support-status-hard { background:var(--warn-bg); color:#b45309; }
.support-status-closed, .support-status.closed { background:var(--slate-bg); color:var(--muted); }
.support-status-menu { display:grid; gap:.55rem; }
.support-status-choice { width:100%; display:grid; gap:.12rem; padding:.72rem .85rem; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff; text-align:left; font:inherit; cursor:pointer; }
.support-status-choice:hover, .support-status-choice.active { border-color:var(--sky-300); background:var(--sky-50); }
.support-status-choice span { color:var(--ink); font-weight:850; }
.support-status-choice small { color:var(--muted); font-size:.76rem; line-height:1.35; }
.support-chat { border:1px solid var(--line); border-radius:var(--r); background:#fff; min-width:0; min-height:0; display:flex; flex-direction:column; height:100%; }
.support-chat-head { min-height:54px; border-bottom:1px solid var(--line); padding:.75rem .9rem; display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.support-chat-title b { display:block; }
.support-chat-title span { color:var(--muted); font-size:.8rem; }
.support-messages { flex:1; min-height:0; overflow:auto; padding:1rem; background:linear-gradient(180deg, var(--surface-2), #fff); }
.support-empty { color:var(--muted); text-align:center; padding:2rem 1rem; }
.support-bubble { display:flex; flex-direction:column; margin-bottom:.72rem; }
.support-bubble.user { align-items:flex-end; }
.support-bubble.system { align-items:center; }
.support-bubble-meta { color:var(--muted); font-size:.72rem; margin:0 0 .2rem; }
.support-bubble-body { max-width:76%; padding:.62rem .78rem; border-radius:15px; border-bottom-left-radius:5px; background:#fff; border:1px solid var(--line); color:var(--ink); line-height:1.55; word-break:break-word; }
.support-bubble.user .support-bubble-body { color:#fff; border:0; border-bottom-left-radius:15px; border-bottom-right-radius:5px; background:linear-gradient(135deg,var(--sky-500),var(--sky-700)); }
.support-bubble.system .support-bubble-body { max-width:82%; color:var(--muted); background:rgba(100,116,139,.08); border:0; font-size:.82rem; text-align:center; }
.support-bubble-img { max-width:230px; max-height:280px; display:block; border-radius:10px; cursor:zoom-in; }
.support-bubble-size { margin-top:.32rem; color:var(--muted); font-size:.72rem; white-space:nowrap; }
.support-bubble.user .support-bubble-size { color:rgba(255,255,255,.78); }
.support-bubble-cap { margin-top:.35rem; }
.support-reply { display:flex; align-items:flex-end; gap:.55rem; padding:.75rem; border-top:1px solid var(--line); background:#fff; }
.support-reply textarea { flex:1; resize:none; min-height:38px; max-height:110px; border:1px solid var(--line-2); border-radius:var(--r-sm); padding:.55rem .7rem; font:inherit; }
@media (max-width:900px) {
  .support-admin { grid-template-columns:1fr; height:auto; }
  .support-list { height:260px; }
  .support-chat { height:560px; }
}

/* ---------- 模态框 ---------- */
.modal-backdrop { position:fixed; inset:0; background:rgba(8,30,52,.5); backdrop-filter:blur(3px); display:grid; place-items:center; z-index:60; padding:1rem; animation:fade .2s ease; }
.modal { width:min(640px,100%); max-width:calc(100vw - 2rem); max-height:90vh; overflow:auto; background:#fff; border-radius:var(--r-lg); box-shadow:var(--shadow-lg); }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding:1.1rem 1.4rem; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:1; }
.modal-head h3 { margin:0; }
.modal-body { padding:1.3rem 1.4rem; }
.modal-foot { display:flex; justify-content:flex-end; gap:.6rem; padding:1rem 1.4rem; border-top:1px solid var(--line); position:sticky; bottom:0; background:#fff; }
.modal .close { border:none; background:var(--slate-bg); width:34px; height:34px; border-radius:10px; cursor:pointer; color:var(--muted); font-size:1.1rem; }
.modal .close:hover { background:var(--bad-bg); color:var(--bad); }
.modal fieldset { border:1px solid var(--line); border-radius:var(--r); padding:1rem; margin:0 0 1rem; }
.modal legend { font-weight:800; font-size:.85rem; color:var(--sky-700); padding:0 .4rem; }

.support-settings-form textarea { min-height:104px; }
.support-faq-list { display:grid; gap:.65rem; }
.support-faq-row {
  display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:.85rem;
  padding:.78rem .9rem; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff;
}
.support-faq-main { min-width:0; display:grid; gap:.16rem; }
.support-faq-question { color:var(--ink); font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-faq-answer { color:var(--muted); font-size:.86rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-faq-flags { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; justify-content:flex-end; }
.support-faq-add { width:100%; margin-top:.7rem; }
.support-faq-editor textarea { min-height:320px; line-height:1.65; }
.support-faq-editor-checks { flex-direction:row; align-items:center; gap:1rem; margin-bottom:0; }
@media (max-width:720px) {
  .modal-backdrop { padding:.65rem; }
  .modal { max-width:calc(100vw - 1.3rem); max-height:calc(100dvh - 1.3rem); border-radius:16px; }
  .modal-head { padding:.85rem 1rem; }
  .modal-head h3 { font-size:1.08rem; }
  .modal-body { padding:1rem; }
  .modal-foot { padding:.8rem 1rem; flex-wrap:wrap; }
  .modal-foot .btn { flex:1 1 auto; }
  .tag-event-intro { align-items:flex-start; flex-direction:column; }
  .tag-event-summary { grid-template-columns:1fr; }
  .tag-event-stat { padding:.72rem .85rem; }
  .tag-event-stat b { font-size:1.35rem; }
  .support-faq-row { grid-template-columns:1fr; align-items:stretch; }
  .support-faq-flags { justify-content:flex-start; }
  .support-faq-row .btn { width:100%; }
  .support-faq-editor textarea { min-height:260px; }
}

/* ---------- Toast ---------- */
.toast-wrap { position:fixed; right:18px; bottom:18px; z-index:80; display:flex; flex-direction:column; gap:.5rem; }
.toast { padding:.75rem 1rem; border-radius:var(--r); background:#fff; box-shadow:var(--shadow-lg); border-left:4px solid var(--sky-500); font-weight:600; font-size:.9rem; min-width:220px; animation:slidein .25s ease; }
.toast.ok { border-color:var(--ok); } .toast.bad { border-color:var(--bad); } .toast.warn { border-color:var(--warn); }
@keyframes slidein { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }

.empty { text-align:center; padding:2.5rem 1rem; color:var(--muted); }
.empty .ic { font-size:2rem; margin-bottom:.4rem; }

/* ---------- 支付 / 结算 ---------- */
.pay-methods { display:flex; flex-direction:column; gap:.6rem; }
.pay-method { display:flex; align-items:center; gap:.8rem; padding:.85rem 1rem; border:1px solid var(--line-2); border-radius:var(--r); cursor:pointer; transition:.15s; background:#fff; text-align:left; font:inherit; width:100%; }
.pay-method:hover { border-color:var(--sky-300); background:var(--sky-50); }
.pay-method:disabled { opacity:.55; cursor:not-allowed; background:#fff; border-color:var(--line-2); }
.pay-method .pm-ic { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; font-weight:800; color:#fff; flex:none; font-size:.8rem; }
.pay-method .pm-ic.alipay { background:#1677ff; }
.pay-method .pm-ic.wxpay { background:#10b981; }
.pay-method .pm-ic.usdt { background:#26a17b; }
.pay-method .pm-main { flex:1; }
.pay-method .pm-main b { display:block; }
.pay-qr { display:grid; place-items:center; padding:.8rem; background:#fff; border:1px solid var(--line); border-radius:var(--r); margin:0 auto .9rem; width:max-content; }
.pay-qr svg { width:210px; height:210px; display:block; }
.pay-amount { font-size:1.7rem; font-weight:800; color:var(--sky-700); letter-spacing:-.01em; }
.pay-amount .cur { font-size:.9rem; color:var(--muted); font-weight:700; }
.pay-amount-wrap { margin-bottom:.8rem; }
.pay-open-wrap { margin-bottom:.6rem; }
.pay-row { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.6rem .8rem; background:var(--sky-50); border:1px solid var(--sky-100); border-radius:var(--r-sm); margin-bottom:.55rem; }
.pay-row .k { color:var(--muted); font-size:.82rem; flex:none; }
.pay-row .v { font-family:var(--mono); font-weight:700; word-break:break-all; text-align:right; }
.countdown { font-variant-numeric:tabular-nums; font-weight:800; color:var(--warn); }
.pay-tip { font-size:.82rem; color:var(--muted); margin:.4rem 0 0; }
.pay-tip-danger { color:var(--bad); font-weight:800; }
.pay-status { margin-top:.6rem; }
.pay-state-row { align-items:center; }
.pay-state-text { color:var(--sky-700); font-weight:800; }
.pay-state-time { display:flex; align-items:center; gap:.55rem; margin-left:auto; }

.payment-modal { max-height:calc(100vh - 2rem); }
.payment-modal .modal-head { padding:.7rem 1rem; }
.payment-modal .modal-head h3 { font-size:1.05rem; }
.payment-modal .close { width:30px; height:30px; border-radius:9px; }
.payment-modal .modal-body { padding:1rem 1rem .75rem; }
.payment-modal .modal-foot { padding:.7rem 1rem; }
.payment-modal .pay-qr { padding:.35rem; margin-bottom:.55rem; border-radius:12px; }
.payment-modal .pay-qr svg { width:176px; height:176px; }
.payment-modal .pay-amount-wrap { margin-bottom:.45rem; }
.payment-modal .pay-amount { font-size:1.45rem; line-height:1.1; }
.payment-modal .pay-amount .cur { font-size:.76rem; }
.payment-modal .pay-open-wrap { margin-bottom:.45rem; }
.payment-modal .pay-open-wrap .btn { min-height:0; padding:.42rem .72rem; }
.payment-modal .pay-tip { margin:.25rem 0 .45rem; font-size:.78rem; line-height:1.45; text-align:center; }
.payment-modal .pay-tip-danger { color:var(--bad); }
.payment-modal .pay-row { padding:.48rem .65rem; margin-bottom:.42rem; gap:.5rem; }
.payment-modal .pay-row .k { font-size:.78rem; }
.payment-modal .pay-row .v { font-size:.85rem; }
.payment-modal .pay-status { margin-top:.45rem; padding:.55rem .7rem; font-size:.8rem; }
.payment-modal .pay-state-row { min-height:42px; margin-bottom:0; }
.payment-modal .pay-state-time .k { white-space:nowrap; }

/* ---------- 后台用户模糊检索 ---------- */
.user-lookup { position:relative; width:100%; }
.user-lookup-list {
  position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:12;
  max-height:260px; overflow:auto; padding:.35rem;
  border:1px solid var(--line); border-radius:var(--r-sm);
  background:#fff; box-shadow:var(--shadow-lg);
}
.user-lookup-item {
  width:100%; display:grid; gap:.08rem; padding:.62rem .7rem; border:0;
  border-radius:9px; background:transparent; text-align:left; cursor:pointer;
  font:inherit; color:var(--body);
}
.user-lookup-item:hover { background:var(--sky-50); }
.user-lookup-item b { color:var(--ink); font-size:.92rem; word-break:break-all; }
.user-lookup-item span { color:var(--muted); font-size:.78rem; line-height:1.35; }
.user-lookup-empty { padding:.72rem .75rem; color:var(--muted); font-size:.84rem; }
.user-lookup-empty.bad { color:var(--bad); }

/* ---------- 响应式 ---------- */
@media (max-width:980px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-card { order:-1; }
  .hp-hero-grid, .hp-support-grid { grid-template-columns:1fr; }
  .hp-step-grid, .hp-metrics { grid-template-columns:1fr; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
  .help-layout { grid-template-columns:1fr; }
  .help-hero, .help-choice-grid, .device-guide { grid-template-columns:1fr; }
  .ios-guide-grid { grid-template-columns:1fr; }
  .help-grid-section, .help-note-grid { grid-template-columns:1fr; }
  .help-hero h1 { max-width:18ch; }
  .download-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px) {
  /* 移动端：顶部统一常显 首页 / 充值 / 软件下载 / 会员中心 */
  .site-header .container { height:auto; min-height:62px; align-items:center; gap:.45rem; padding-block:.45rem; }
  .brand { gap:.45rem; flex:0 0 auto; }
  .brand .logo { width:34px; height:34px; border-radius:10px; }
  .brand b { font-size:1rem; }
  .nav { display:flex; position:static; flex-direction:row; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.12rem; flex:1 1 190px; min-width:0; overflow:visible; transform:none; background:none; border:0; box-shadow:none; padding:0; }
  .nav::-webkit-scrollbar { display:none; }
  .nav a { padding:.42rem .46rem; font-size:.82rem; line-height:1.15; white-space:nowrap; flex:none; }
  .nav-toggle { display:none !important; }
  /* 移动端顶栏更协调：隐藏 logo 旁的 PROXY NETWORK 副标题，给导航让出空间 */
  .site-header .brand small { display:none; }
}
@media (max-width:380px) {
  .site-header .container { width:min(100% - 20px, 1180px); gap:.32rem; }
  .brand .logo { width:31px; height:31px; }
  .brand b { font-size:.95rem; }
  .nav { flex-basis:170px; }
  .nav a { padding:.36rem .38rem; font-size:.78rem; }
}
@media (max-width:720px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns:1fr; }
  /* 会员中心统计卡：手机上保持 2 列紧凑网格，而不是塌成一列的 4 张大卡（推广中心 / 代理商后台）。
     账户概览的 account-summary-grid 已有自己的移动端调优，这里排除掉不动它。 */
  .portal .grid-3:not(.account-summary-grid), .portal .grid-4:not(.account-summary-grid) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
  .portal .grid-3:not(.account-summary-grid) .stat-card, .portal .grid-4:not(.account-summary-grid) .stat-card { padding:.7rem .8rem; }
  .portal .grid-3:not(.account-summary-grid) .stat-card .label, .portal .grid-4:not(.account-summary-grid) .stat-card .label { font-size:.7rem; letter-spacing:.02em; }
  .portal .grid-3:not(.account-summary-grid) .stat-card .value, .portal .grid-4:not(.account-summary-grid) .stat-card .value { font-size:1.2rem; }
  /* 会员中心表格：单元格不换行，配合 .table-wrap 横向滚动，避免「体验版(1月)」这类内容被挤成竖排三行 */
  .portal .table th, .portal .table td { white-space:nowrap; }
  .plan-mode-grid, .plan-preview-grid { grid-template-columns:1fr; }
  .plan-form-section { padding:.85rem; }
  .plan-preview-grid span { justify-content:flex-start; }
  .plan-preview-grid b { text-align:left; }
  .account-overview-panel { padding:.85rem; }
  .account-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
  .account-summary-grid .stat-card { padding:.65rem .7rem; }
  .account-summary-grid .stat-card .label { font-size:.7rem; letter-spacing:.02em; }
  .account-summary-grid .stat-card .value { font-size:1.12rem; }
  .account-online-box { margin-top:.5rem; }
  .account-subscription { margin-top:.7rem; padding-top:.72rem; }
  .account-subscription-head { flex-wrap:nowrap; }
  .account-subscription-head h2 { font-size:1.15rem; }
  .subscription-import-panel { display:grid; grid-template-columns:104px minmax(0,1fr); align-items:center; gap:.65rem; }
  .subscription-import-panel .sub-qr { width:104px; height:104px; }
  .subscription-import-panel .sub-import-copy { font-size:.78rem; line-height:1.45; }
  .subscription-actions .btn { flex:1 1 calc(50% - .35rem); }
  .account-subscription-note { font-size:.8rem; line-height:1.5; }
  .hp-copy h1 { max-width:12ch; }
  .hp-phone-panel { min-height:0; border-radius:22px; }
  .hp-topology-status { grid-template-columns:1fr; }
  .hp-mini-dashboard div, .hp-node-line { grid-template-columns:1fr; align-items:start; }
  .hp-mini-dashboard b { text-align:left; }
  .hp-node-line { gap:.35rem; }
  .download-grid, .portal-shortcuts, .statement-grid { grid-template-columns:1fr; }
  .help-signal { min-height:0; grid-template-columns:1fr; }
  .help-signal span, .help-signal b, .help-signal em { grid-column:auto; min-height:52px; }
  .portal-head { gap:.75rem; margin-bottom:.65rem; }
  .portal-head .row { gap:.45rem; }
  .mobile-account-actions { width:100%; justify-content:flex-end; margin:-.15rem 0 .9rem; }
  .mobile-system-btn { position:relative; }
  .mobile-system-btn .menu-badge { right:-.38rem; top:-.38rem; }
  .portal-layout { grid-template-columns:1fr; }
  .portal-menu { position:static; flex-direction:row; gap:.18rem; overflow-x:auto; -webkit-overflow-scrolling:touch; padding:.42rem; }
  .portal-menu { scrollbar-width:none; }
  .portal-menu::-webkit-scrollbar { display:none; }
  .portal-menu-link { flex:none; white-space:nowrap; padding:.58rem .78rem; font-size:.95rem; text-align:center; }
  .portal-menu-link[data-portal-tab="orders"] { display:none; }
  .portal-menu-link[data-portal-tab="password"],
  .portal-menu-link[data-portal-tab="messages"] { display:none; }
  .portal-menu-link .desktop-label { display:none; }
  .portal-menu-link .mobile-label { display:inline; }
  .renew-panel-head { align-items:flex-start; flex-wrap:nowrap; }
  .renew-orders-btn { margin-top:.2rem; }
  .client-support-form { align-items:stretch; flex-direction:column; }
  .renew-band { align-items:flex-start; }
  .renew-public-plans { margin-top:1.4rem; padding:1rem; border-radius:var(--r-lg); }
  .download-card { min-height:0; }
  .sub-import-panel:not(.subscription-import-panel) { align-items:flex-start; flex-direction:column; }
  .client-config-head .row { width:100%; }
  .client-config-head .row .btn { flex:1 1 auto; }
  .client-config-grid { grid-template-columns:1fr; }
  .client-config-field { grid-template-columns:1fr; gap:.4rem; }
  .client-config-field-label { flex-direction:row; justify-content:space-between; align-items:center; gap:.5rem; }
  .client-config-control { grid-template-columns:minmax(0,1fr) auto; }
  .client-config-section-toggle { justify-content:flex-start; margin:0 0 .75rem; }
  .client-config-order-list { grid-template-columns:1fr; }
  .client-config-list-head { display:none; }
  .client-config-country-row, .client-config-payment-row { grid-template-columns:minmax(0,1fr) 34px; padding:.6rem 0; border-bottom:1px solid var(--line); }
  .client-config-country-row input:first-child, .client-config-payment-row input:first-child { grid-column:1; }
  .client-config-country-row input:nth-child(2), .client-config-payment-row input:nth-child(2) { grid-column:1; }
  .client-config-country-row .client-config-remove, .client-config-payment-row .client-config-remove { grid-column:2; grid-row:1 / span 2; }
  .client-config-mode-row { grid-template-columns:64px minmax(0,1fr); padding:.6rem 0; border-bottom:1px solid var(--line); }
  .client-config-mode-row input:nth-child(3) { grid-column:2; }
  .admin-shell { grid-template-columns:1fr; }
  .sidebar { position:fixed; z-index:50; width:260px; left:0; top:0; transform:translateX(-105%); transition:transform .25s ease; }
  .sidebar.open { transform:none; }
  .admin-main { padding-top:1rem; }
  .mobile-only { display:inline-flex !important; }
}
.mobile-only { display:none; }
@media (min-width:721px) { .desktop-hide { display:none; } }

/* ============================================================
   首页 V2 · 高速连接世界（桌面 / 手机）
   ============================================================ */
body.home-v2 { background:#f8fcff; }
body.home-v2 .container { width:min(1180px, calc(100% - 40px)); }
body.home-v2 .site-header { background:rgba(255,255,255,.94); border-bottom:1px solid var(--line-2); }
body.home-v2 .site-header .container { height:76px; }
body.home-v2 .nav { gap:.35rem; }
body.home-v2 .nav a { padding:.62rem .82rem; font-size:.88rem; font-weight:700; }
body.home-v2 .nav .home-v2-nav-cta {
  margin-left:.35rem; padding:.68rem 1rem; color:#fff;
  background:linear-gradient(135deg,var(--sky-500),var(--cyan-500));
  box-shadow:0 9px 22px rgba(14,165,233,.24);
}
body.home-v2 .nav .home-v2-nav-cta:hover { color:#fff; background:linear-gradient(135deg,var(--sky-600),#0891b2); }

.home-v2-announcement { color:#ecfeff; background:linear-gradient(95deg,#0369a1 0%,#078cae 45%,#0f9f83 100%); }
.home-v2-announcement-inner { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:1.5rem; }
.home-v2-announcement-main { min-width:0; display:flex; align-items:center; gap:.85rem; font-size:.88rem; font-weight:680; }
.home-v2-announcement-label { flex:none; padding:.32rem .62rem; color:#075985; background:#ecfeff; border-radius:999px; font-size:.72rem; font-weight:900; letter-spacing:.03em; }
.home-v2-announcement-link { flex:none; display:flex; align-items:center; gap:.45rem; color:#ecfeff; font-size:.82rem; font-weight:900; }
.home-v2-announcement-link:hover { color:#fff; }
.home-v2-announcement-link span { width:24px; height:24px; display:grid; place-items:center; color:#0369a1; background:#ecfeff; border-radius:50%; }

.home-v2-hero {
  position:relative; overflow:hidden;
  background:
    radial-gradient(circle at 14% 24%,rgba(56,189,248,.13),transparent 34%),
    radial-gradient(circle at 92% 84%,rgba(16,185,129,.12),transparent 30%),
    linear-gradient(180deg,#f8fcff 0%,#eef8ff 100%);
}
.home-v2-hero-grid { min-height:700px; padding:4.6rem 0 5.2rem; display:grid; grid-template-columns:1.02fr .98fr; align-items:center; gap:4.5rem; }
.home-v2-eyebrow { display:flex; align-items:center; gap:.58rem; margin:0 0 1.25rem; color:var(--sky-700); font-size:.8rem; font-weight:900; letter-spacing:.05em; }
.home-v2-eyebrow::before { width:22px; height:3px; content:""; background:linear-gradient(90deg,var(--sky-500),var(--ok)); border-radius:999px; }
.home-v2-copy h1 { margin:0 0 1.55rem; font-size:clamp(3.2rem,5vw,4rem); line-height:1.08; letter-spacing:-.055em; }
.home-v2-lead { max-width:620px; margin:0; color:var(--muted); font-size:1.08rem; line-height:1.9; }
.home-v2-actions { display:flex; align-items:center; gap:.85rem; margin:0 0 2rem; }
.home-v2-actions .btn { min-height:50px; padding-inline:1.4rem; border-radius:14px; }
.home-v2-proof { margin-top:2.65rem; display:flex; gap:1.75rem; }
.home-v2-proof div { min-width:118px; }
.home-v2-proof b { display:block; margin-bottom:.25rem; color:var(--ink); font-size:1.35rem; line-height:1.2; }
.home-v2-proof span { color:var(--muted); font-size:.74rem; font-weight:760; }

.home-v2-network { position:relative; padding:1.35rem; background:linear-gradient(150deg,#06343e,#0a4f59); border:1px solid rgba(255,255,255,.18); border-radius:34px; box-shadow:0 28px 70px rgba(2,47,57,.26); }
.home-v2-network::after { position:absolute; right:-45px; bottom:-45px; width:160px; height:160px; content:""; background:rgba(34,211,238,.13); border-radius:50%; }
.home-v2-status { position:absolute; top:-19px; right:25px; z-index:3; display:flex; align-items:center; gap:.45rem; padding:.58rem .78rem; color:#065f46; background:#ecfdf5; border:1px solid #a7f3d0; border-radius:999px; box-shadow:0 10px 25px rgba(6,95,70,.15); font-size:.7rem; font-weight:900; }
.home-v2-status::before { width:7px; height:7px; content:""; background:var(--ok); border-radius:50%; }
.home-v2-browser-dots { height:28px; display:flex; align-items:center; gap:.42rem; padding-left:.25rem; }
.home-v2-browser-dots i { width:7px; height:7px; display:block; background:rgba(255,255,255,.68); border-radius:50%; }
.home-v2-map-card { position:relative; overflow:hidden; padding:1.45rem 1.45rem 1.2rem; background:#fff; border-radius:22px; box-shadow:0 13px 30px rgba(1,28,35,.22); }
.home-v2-map-card small { display:block; margin-bottom:.4rem; color:var(--sky-700); font-size:.68rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.home-v2-map-card h2 { margin:0 0 .35rem; font-size:1.45rem; }
.home-v2-map-card p { margin:0 0 .8rem; color:var(--muted); font-size:.8rem; line-height:1.55; }
.home-v2-map-card img { width:100%; height:178px; object-fit:cover; object-position:center; background:var(--sky-50); border:1px solid var(--sky-100); border-radius:14px; }
.home-v2-routes { position:relative; z-index:1; display:grid; gap:.65rem; margin-top:.8rem; }
.home-v2-routes > div { min-height:55px; padding:0 1rem; display:flex; align-items:center; gap:.7rem; color:#e6faff; background:rgba(255,255,255,.085); border:1px solid rgba(255,255,255,.15); border-radius:15px; }
.home-v2-routes b { flex:1; font-size:.8rem; }
.home-v2-routes em { color:#b7e9f1; font-size:.68rem; font-style:normal; font-weight:900; }
.home-v2-route-dot { width:9px; height:9px; background:var(--ok); border-radius:50%; box-shadow:0 0 0 5px rgba(16,185,129,.12); }
.home-v2-route-dot.amber { background:#f59e0b; box-shadow:0 0 0 5px rgba(245,158,11,.12); }
.home-v2-route-dot.blue { background:#38bdf8; box-shadow:0 0 0 5px rgba(56,189,248,.12); }

.home-v2-section { padding:6.3rem 0; background:#fff; }
.home-v2-section-head { margin-bottom:2.7rem; display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; }
.home-v2-section-kicker { margin:0 0 .55rem; color:var(--sky-700); font-size:.73rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.home-v2-section h2 { margin:0; max-width:730px; font-size:clamp(2rem,3vw,2.62rem); line-height:1.18; letter-spacing:-.035em; }
.home-v2-section-head > p { max-width:470px; margin:0 0 .2rem; color:var(--muted); font-size:.9rem; line-height:1.8; }
.home-v2-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.home-v2-feature-card { position:relative; overflow:hidden; min-height:250px; padding:1.75rem; background:linear-gradient(160deg,#fff,#f8fcff); border:1px solid var(--line-2); border-radius:22px; box-shadow:0 14px 35px rgba(15,23,42,.06); }
.home-v2-feature-card::after { position:absolute; right:-42px; bottom:-55px; width:150px; height:150px; content:""; background:#dff8f3; border-radius:50%; }
.home-v2-feature-card:nth-child(2)::after { background:#e0f2fe; }
.home-v2-feature-card:nth-child(3)::after { background:#e9e7ff; }
.home-v2-icon { position:relative; z-index:1; width:48px; height:48px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,var(--sky-500),var(--cyan-500)); border-radius:15px; box-shadow:0 10px 22px rgba(14,165,233,.2); }
.home-v2-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.home-v2-feature-card h3 { position:relative; z-index:1; margin:1.45rem 0 .65rem; font-size:1.22rem; }
.home-v2-feature-card p { position:relative; z-index:1; margin:0; color:var(--muted); font-size:.86rem; line-height:1.75; }
.home-v2-feature-meta { position:relative; z-index:1; display:inline-flex; margin-top:1.25rem; padding:.4rem .62rem; color:var(--sky-700); background:#eef9ff; border-radius:999px; font-size:.68rem; font-weight:900; }

.home-v2-pricing { background:linear-gradient(180deg,#f7fbff,#fff); }
.home-v2-plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:1.15rem; align-items:stretch; }
.home-v2-plan-loading { grid-column:1/-1; padding:2rem; color:var(--muted); text-align:center; background:#fff; border:1px solid var(--line-2); border-radius:20px; }
.home-v2-plan-card { position:relative; display:flex; flex-direction:column; min-height:360px; padding:1.65rem; background:#fff; border:1px solid var(--line-2); border-radius:22px; box-shadow:0 14px 35px rgba(15,23,42,.055); }
.home-v2-plan-card.recommended { border-color:#7dd3fc; box-shadow:0 18px 42px rgba(14,165,233,.13); }
.home-v2-plan-recommended { position:absolute; top:1rem; right:1rem; padding:.32rem .58rem; color:#fff; background:linear-gradient(135deg,var(--sky-600),var(--cyan-500)); border-radius:999px; font-size:.66rem; font-weight:900; }
.home-v2-plan-card h3 { margin:0 0 1.05rem; padding-right:3.5rem; font-size:1.2rem; }
.home-v2-plan-price { display:flex; align-items:baseline; gap:.35rem; margin-bottom:1.2rem; }
.home-v2-plan-price b { color:var(--ink); font-size:2rem; letter-spacing:-.04em; }
.home-v2-plan-price span { color:var(--muted); font-size:.78rem; }
.home-v2-plan-facts { display:grid; gap:.58rem; padding:1rem 0; border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); }
.home-v2-plan-facts span { color:var(--body); font-size:.82rem; font-weight:700; }
.home-v2-plan-facts span::before, .home-v2-plan-card li::before { margin-right:.5rem; color:var(--ok); content:"✓"; font-weight:900; }
.home-v2-plan-card ul { margin:.9rem 0 1.1rem; padding:0; display:grid; gap:.42rem; list-style:none; }
.home-v2-plan-card li { color:var(--muted); font-size:.76rem; line-height:1.5; }
.home-v2-plan-card .btn { margin-top:auto; border-radius:13px; }
.home-v2-payment-summary { margin:1.35rem 0 0; color:var(--muted); text-align:center; font-size:.8rem; }

.home-v2-steps-section { background:#f3f9fd; }
.home-v2-steps-layout { display:grid; grid-template-columns:.83fr 1.17fr; align-items:center; gap:5.6rem; }
.home-v2-steps-copy h2 { margin:0 0 1.1rem; font-size:clamp(2rem,3vw,2.65rem); line-height:1.2; letter-spacing:-.035em; }
.home-v2-steps-copy > p:not(.home-v2-section-kicker) { max-width:500px; margin-bottom:1.45rem; color:var(--muted); line-height:1.85; }
.home-v2-steps-copy .btn { border-radius:13px; }
.home-v2-step-list { display:grid; gap:.9rem; }
.home-v2-step-list article { min-height:84px; padding:1rem 1.2rem; display:grid; grid-template-columns:46px 1fr auto; align-items:center; gap:1rem; background:#fff; border:1px solid var(--line-2); border-radius:18px; box-shadow:0 10px 24px rgba(15,23,42,.045); }
.home-v2-step-list article > span { width:42px; height:42px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,var(--sky-600),var(--cyan-500)); border-radius:13px; font-size:.76rem; font-weight:900; }
.home-v2-step-list b { display:block; margin-bottom:.22rem; color:var(--ink); font-size:.98rem; }
.home-v2-step-list small { display:block; color:var(--muted); font-size:.75rem; }
.home-v2-step-list em { color:var(--sky-700); font-size:.68rem; font-style:normal; font-weight:900; }

.home-v2-premium { position:relative; overflow:hidden; padding:5.8rem 0; color:#eefcff; background:linear-gradient(125deg,#062f3a,#064e5c 62%,#076e70); }
.home-v2-premium::before { position:absolute; left:48%; top:-160px; width:540px; height:540px; content:""; background:rgba(34,211,238,.08); border:1px solid rgba(125,211,252,.12); border-radius:50%; }
.home-v2-premium-grid { position:relative; z-index:1; display:grid; grid-template-columns:1fr .92fr; align-items:center; gap:5.8rem; }
.home-v2-premium .home-v2-section-kicker { color:#67e8f9; }
.home-v2-premium h2 { margin:0 0 1.2rem; color:#fff; font-size:clamp(2rem,3.2vw,2.75rem); line-height:1.2; letter-spacing:-.035em; }
.home-v2-premium p:not(.home-v2-section-kicker) { max-width:620px; color:#b7dfe7; font-size:.9rem; line-height:1.85; }
.home-v2-premium-btn { margin-top:.8rem; color:#075985; background:#ecfeff; border-radius:13px; }
.home-v2-premium-btn:hover { color:#0369a1; background:#fff; }
.home-v2-dashboard { display:grid; gap:.75rem; padding:1.1rem; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:24px; backdrop-filter:blur(10px); }
.home-v2-dashboard div { min-height:65px; padding:0 1.1rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.11); border-radius:16px; }
.home-v2-dashboard span { color:#9ed4dd; font-size:.72rem; }
.home-v2-dashboard b { color:#fff; text-align:right; font-size:.83rem; }

.home-v2-footer { margin-top:0; padding:2.6rem 0; background:#f6fbff; }
.home-v2-footer .container { align-items:center; }
.home-v2-footer p { margin:.7rem 0 0; color:var(--faint); font-size:.7rem; }
.home-v2-footer nav { display:flex; flex-wrap:wrap; gap:1.25rem; }
.home-v2-footer nav a { color:var(--muted); font-size:.74rem; font-weight:700; }
.home-v2-footer nav a:hover { color:var(--sky-700); }

@media (max-width:980px) {
  .home-v2-hero-grid { min-height:0; grid-template-columns:1fr; gap:4rem; }
  .home-v2-network { width:min(660px,100%); margin-inline:auto; }
  .home-v2-section-head { align-items:flex-start; flex-direction:column; }
  .home-v2-feature-grid { grid-template-columns:1fr; }
  .home-v2-plan-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-v2-feature-card { min-height:0; }
  .home-v2-steps-layout, .home-v2-premium-grid { grid-template-columns:1fr; gap:3rem; }
}

@media (max-width:900px) {
  body.home-v2 .site-header .container { min-height:66px; height:auto; padding-block:.45rem; }
  body.home-v2 .nav {
    position:static; display:flex; flex:1 1 190px; min-width:0;
    flex-direction:row; align-items:center; justify-content:flex-end; flex-wrap:wrap;
    gap:.12rem; padding:0; background:none; border:0; box-shadow:none;
  }
  body.home-v2 .nav a { padding:.42rem .46rem; font-size:.82rem; line-height:1.15; white-space:nowrap; }
  body.home-v2 .nav .home-v2-nav-cta {
    margin-left:0; padding:.42rem .46rem; color:var(--body);
    background:transparent; box-shadow:none;
  }
  body.home-v2 .nav .home-v2-nav-cta:hover { color:var(--sky-700); background:var(--sky-50); }
}

@media (max-width:680px) {
  body.home-v2 .container { width:min(100% - 36px,1180px); }
  body.home-v2 .site-header .container { width:calc(100% - 36px); }
  .home-v2-announcement-inner { padding:.78rem 0 .82rem; align-items:flex-start; flex-direction:column; gap:.45rem; }
  .home-v2-announcement-main { align-items:flex-start; gap:.6rem; font-size:.74rem; line-height:1.55; }
  .home-v2-announcement-label { margin-top:.05rem; font-size:.65rem; }
  .home-v2-announcement-link { margin-left:4.85rem; font-size:.7rem; }
  .home-v2-hero-grid { padding:2.1rem 0 3.4rem; gap:3.2rem; }
  .home-v2-actions {
    width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.45rem; margin:0 0 1.55rem;
  }
  .home-v2-actions .btn { min-width:0; padding-inline:.35rem; font-size:.74rem; }
  .home-v2-eyebrow { margin-bottom:.9rem; font-size:.68rem; }
  .home-v2-copy h1 { margin-bottom:1rem; font-size:clamp(2.35rem,11vw,3rem); letter-spacing:-.05em; }
  .home-v2-lead { font-size:.9rem; line-height:1.75; }
  .home-v2-actions .btn { min-height:46px; }
  .home-v2-proof { margin-top:1.8rem; display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; }
  .home-v2-proof div { min-width:0; padding:.62rem .45rem; text-align:center; background:rgba(255,255,255,.72); border:1px solid var(--line-2); border-radius:13px; }
  .home-v2-proof b { margin-bottom:.12rem; font-size:1rem; }
  .home-v2-proof span { font-size:.56rem; }
  .home-v2-network { padding:.9rem; border-radius:25px; }
  .home-v2-status { top:-17px; right:14px; padding:.48rem .65rem; font-size:.62rem; }
  .home-v2-map-card { padding:1rem; border-radius:17px; }
  .home-v2-map-card h2 { font-size:1.15rem; }
  .home-v2-map-card p { font-size:.7rem; }
  .home-v2-map-card img { height:112px; }
  .home-v2-routes { gap:.48rem; }
  .home-v2-routes > div { min-height:46px; padding:0 .72rem; border-radius:12px; }
  .home-v2-routes b { font-size:.68rem; }
  .home-v2-routes em { font-size:.58rem; }
  .home-v2-section { padding:4.1rem 0; }
  .home-v2-section-head { gap:.65rem; margin-bottom:1.75rem; }
  .home-v2-section h2, .home-v2-steps-copy h2 { font-size:1.85rem; }
  .home-v2-section-head > p, .home-v2-steps-copy > p:not(.home-v2-section-kicker) { font-size:.8rem; line-height:1.72; }
  .home-v2-feature-grid { gap:.8rem; }
  .home-v2-feature-card { padding:1.3rem; border-radius:18px; }
  .home-v2-icon { width:43px; height:43px; border-radius:13px; }
  .home-v2-feature-card h3 { margin:1rem 0 .45rem; font-size:1.08rem; }
  .home-v2-feature-card p { font-size:.78rem; }
  .home-v2-feature-meta { margin-top:.9rem; }
  .home-v2-plan-grid { grid-template-columns:1fr; gap:.75rem; }
  .home-v2-plan-card { min-height:0; padding:1.25rem; border-radius:18px; }
  .home-v2-plan-card .btn { margin-top:1rem; }
  .home-v2-steps-layout { gap:1.8rem; }
  .home-v2-step-list { gap:.65rem; }
  .home-v2-step-list article { min-height:80px; grid-template-columns:40px 1fr; gap:.75rem; padding:.85rem; }
  .home-v2-step-list article > span { width:38px; height:38px; }
  .home-v2-step-list em { display:none; }
  .home-v2-step-list b { font-size:.85rem; }
  .home-v2-step-list small { font-size:.68rem; line-height:1.45; }
  .home-v2-premium { padding:4.2rem 0; }
  .home-v2-premium-grid { gap:2.1rem; }
  .home-v2-premium h2 { font-size:1.9rem; }
  .home-v2-premium p:not(.home-v2-section-kicker) { font-size:.8rem; }
  .home-v2-dashboard { padding:.75rem; border-radius:20px; }
  /* 手机上标签在上、内容在下左对齐：避免「Android / Windows / macOS / Clash Lite」这类长内容挤到右侧折成两行 */
  .home-v2-dashboard div { min-height:0; flex-direction:column; align-items:flex-start; justify-content:center; gap:.3rem; padding:.72rem .85rem; }
  .home-v2-dashboard b { max-width:100%; text-align:left; font-size:.8rem; line-height:1.35; }
  .home-v2-footer { padding:2.2rem 0; }
  .home-v2-footer .container { align-items:flex-start; flex-direction:column; gap:1.4rem; }
  .home-v2-footer nav { display:grid; grid-template-columns:repeat(2,auto); gap:.65rem 1.5rem; }
}

@media (max-width:380px) {
  body.home-v2 .nav a { padding:.36rem .38rem; font-size:.78rem; }
  body.home-v2 .nav .home-v2-nav-cta { padding:.36rem .38rem; }
  .home-v2-actions { gap:.35rem; }
  .home-v2-actions .btn { padding-inline:.2rem; font-size:.7rem; }
}
