/* ============================================================
   XINOR · 天蓝色设计系统（网站 / 会员中心 / 管理后台 共用）
   ============================================================ */
: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; }
.steering-dirty td { background:var(--warn-bg); } /* 负载调度：有未保存改动的节点行 */
.steering-focus td { background:var(--sky-50); box-shadow:inset 0 2px 0 var(--sky-500), inset 0 -2px 0 var(--sky-500); } /* 负载调度：从 AWS 流量调剂页跳转定位的节点行 */
.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/xinor-logo.svg?v=68ae80fa9594') 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; }
/* 品牌站（服务器在 <html> 上标 data-brand-site）：隐藏主站专属内容——官方频道入口、主站自己的原生客户端下载。 */
html[data-brand-site] [data-official-only], html[data-brand-site] [data-main-site-only] { display:none !important; }
/* 只在品牌站显示的内容（主站隐藏） */
html:not([data-brand-site]) [data-brand-only] { display:none !important; }
/* 品牌站下载页（2026-11-16）：站点有自己的客户端安装包（site.js 拿到后在 <html> 上标 data-release-<平台>）才显示原生客户端卡片，
   否则显示第三方客户端的替代卡片。主站不受影响。 */
html[data-brand-site]:not([data-release-android]) [data-site-release="android"] { display:none !important; }
html[data-brand-site][data-release-android] [data-site-fallback="android"] { display:none !important; }
.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; }
/* 后台广告编辑：落地页预览（390×700 手机页面按 0.5 缩小显示） */
.ad-landing-preview-body { display:flex; align-items:flex-start; gap:1rem; }
.ad-landing-frame-box { width:195px; height:350px; flex:none; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.ad-landing-frame { width:390px; height:700px; border:0; transform:scale(.5); transform-origin:0 0; pointer-events:none; }
.ad-landing-preview-side { display:flex; flex-direction:column; gap:.5rem; font-size:.85rem; }
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-name-line { display:flex; align-items:center; gap:.45rem; }
.plan-tint-swatch { width:.8rem; height:.8rem; border-radius:50%; flex:none; box-shadow:inset 0 0 0 1px rgba(15,23,42,.12); }
.plan-tint-swatch.is-none { background:repeating-linear-gradient(45deg, #fff 0 2px, var(--line) 2px 4px); }
.online-plan-hint { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem 1rem; }
.online-plan-chips { display:flex; flex-wrap:wrap; gap:.35rem; margin-left:auto; }
.online-plan-chip { display:inline-flex; align-items:center; gap:.35rem; padding:.15rem .55rem; border:1px solid var(--line); border-radius:999px; background:#fff; color:inherit; font:inherit; font-size:.78rem; cursor:pointer; white-space:nowrap; }
.online-plan-chip:hover { border-color:#93c5fd; }
.online-plan-chip.active { border-color:#2563eb; background:#dbeafe; font-weight:600; }
.plan-tint-picker { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-bottom:.75rem; }
.plan-tint-dot, .plan-tint-custom { width:1.75rem; height:1.75rem; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px var(--line); cursor:pointer; padding:0; }
.plan-tint-dot.is-none { background:repeating-linear-gradient(45deg, #fff 0 3px, var(--line) 3px 6px); }
.plan-tint-dot.selected, .plan-tint-custom.selected { box-shadow:0 0 0 2px var(--sky-500); }
.plan-tint-custom { position:relative; overflow:hidden; background:conic-gradient(#ef4444, #f59e0b, #10b981, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); }
.plan-tint-custom input { position:absolute; inset:-6px; width:calc(100% + 12px); height:calc(100% + 12px); opacity:0; cursor:pointer; }
.plan-tint-alpha { display:flex; align-items:center; gap:.65rem; margin-bottom:.75rem; font-size:.85rem; color:var(--muted); }
.plan-tint-alpha input { flex:1; max-width:240px; }
.plan-tint-alpha-text { min-width:2.5rem; font-variant-numeric:tabular-nums; }
.plan-tint-preview-row { display:grid; grid-template-columns:2fr 1fr 1fr; gap:.5rem; padding:.7rem .85rem; border:1px solid var(--line); border-radius:var(--r); font-size:.88rem; background:transparent; }
.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); }

/* ---------- 真实 IP 识别 ---------- */
.realip-head { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-bottom:.8rem; }
.realip-items { display:grid; gap:.6rem; }
.realip-item { border:1px solid var(--line); border-radius:var(--r-sm); padding:.7rem .85rem; }
.realip-item-ok { border-left:4px solid var(--ok); }
.realip-item-warn { border-left:4px solid var(--warn); }
.realip-item-bad { border-left:4px solid var(--bad); background:var(--bad-bg); }
.realip-item h4 { margin:0 0 .25rem; font-size:.9rem; display:flex; align-items:center; gap:.45rem; }
.realip-item p { margin:0; font-size:.84rem; color:var(--ink-2); overflow-wrap:anywhere; }
.realip-list { margin:.5rem 0 0; display:flex; flex-wrap:wrap; gap:.35rem; }
.realip-list code, .realip-fix { font-size:.76rem; }
.realip-fix { display:block; margin-top:.5rem; padding:.5rem .6rem; background:var(--surface-2); border-radius:var(--r-sm); white-space:pre-wrap; word-break:break-all; }

/* ---------- 推广提现 ---------- */
.withdrawal-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.withdrawal-summary > div { display:grid; gap:.15rem; padding:.7rem .8rem; border:1px solid var(--sky-100); border-radius:var(--r-sm); background:var(--sky-50); }
.withdrawal-summary span { color:var(--sky-700); font-size:.74rem; font-weight:700; }
.withdrawal-summary b { color:var(--ink); font-size:1rem; overflow-wrap:anywhere; }
.withdrawal-minimum { margin:0 0 .1rem; color:var(--muted); font-size:.78rem; font-weight:600; }
.withdrawal-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; }
.withdrawal-amount-control:focus-within { border-color:var(--sky-400); box-shadow:var(--ring); }
.withdrawal-amount-control input { border:0; box-shadow:none !important; background:transparent; }
.withdrawal-amount-control span { padding:0 .85rem; color:var(--muted); font-size:.8rem; font-weight:800; white-space:nowrap; }

/* ---------- 表格 ---------- */
.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.plan-tint { background:var(--plan-tint); }
.table tbody tr.plan-tint:hover { background:linear-gradient(var(--plan-tint), var(--plan-tint)), 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; }
/* 订单表：所有单元格不换行，收窄内边距；会员过长时省略号（悬停看全名）；操作列只占按钮宽度。 */
.orders-table th, .orders-table td { white-space:nowrap; padding:.55rem .6rem; }
.orders-table td.order-member { max-width:16rem; overflow:hidden; text-overflow:ellipsis; }
.orders-table td:last-child { width:1%; }
.orders-table td:last-child .actions { flex-wrap:nowrap; }
.orders-table .order-kind-tag { display:inline-block; min-width:1.45em; margin-right:.4rem; padding:.05rem .3rem; font-size:.7rem; text-align:center; vertical-align:middle; }
.backup-head { margin-bottom:.8rem; }
.backup-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.65rem; margin-bottom:.85rem; }
.backup-filters { display:flex; flex-wrap:wrap; gap:.5rem; min-width:0; }
.backup-filters select { width:auto; min-width:148px; max-width:220px; padding:.45rem .65rem; font-size:.84rem; }
.backup-actions { display:flex; flex-wrap:wrap; gap:.45rem; }
.backup-health { display:flex; flex-direction:column; gap:.25rem; padding:.75rem 1rem; border-radius:var(--r-sm); margin-bottom:1rem; font-size:.88rem; }
.backup-health b { font-size:.95rem; }
.backup-health-ok { background:var(--ok-bg); color:#047857; }
.backup-health-warn { background:var(--warn-bg); color:#92400e; }
.backup-health-bad { background:var(--bad-bg); color:#b91c1c; }
.backup-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-bottom:1.1rem; }
.backup-card { min-width:0; padding:.8rem .95rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); }
.backup-card.is-warn { border-color:var(--warn); background:var(--warn-bg); }
.backup-card.is-bad { border-color:var(--bad); background:var(--bad-bg); }
.backup-card-label { color:var(--muted); font-size:.78rem; }
.backup-card-value { margin:.25rem 0; color:var(--ink); font-weight:700; font-size:.98rem; overflow-wrap:anywhere; }
.backup-card-sub { color:var(--muted); font-size:.78rem; line-height:1.45; overflow-wrap:anywhere; }
/* 紧凑卡片（AWS 流量调剂）：名称 + 数字一行，说明一行 */
.backup-cards.compact { gap:.5rem; margin-bottom:.6rem; }
.backup-cards.compact .backup-card { padding:.45rem .7rem; }
.backup-card-head { display:flex; align-items:baseline; gap:.5rem; min-width:0; }
.backup-cards.compact .backup-card-label { flex:none; white-space:nowrap; }
.backup-cards.compact .backup-card-value { min-width:0; margin:0; font-size:1.02rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.backup-cards.compact .backup-card-sub { margin-top:.1rem; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* AWS 流量调剂额度池表格（实例 + 节点调度合并）：压缩行高，次要信息放第二行小字 */
.aws-pool-table th, .aws-pool-table td { white-space:nowrap; }
/* AWS 流量调剂整页收紧（2026-10-26）：面板内外边距、标题行、表格单元格、表内按钮 */
#awsTrafficTool > * + *, #awsTrafficTool .panel + .panel { margin-top:.6rem; }
#awsTrafficTool .panel { padding:.8rem 1rem; }
#awsTrafficTool .panel-head { margin-bottom:.5rem; gap:.5rem; align-items:center; }
#awsTrafficTool .table th { padding:.4rem .5rem; }
#awsTrafficTool .table td { padding:.3rem .5rem; line-height:1.35; }
#awsTrafficTool .table .btn-sm { padding:.18rem .55rem; font-size:.78rem; }
#awsTrafficTool .panel-head .btn-sm { padding:.18rem .45rem; font-size:.74rem; }
#awsTrafficTool .panel-head > .row > a { font-size:.8rem; }
#awsTrafficTool input:not([type="checkbox"]):not([type="radio"]), #awsTrafficTool select { padding:.28rem .5rem; font-size:.85rem; }
#awsTrafficTool .empty { padding:.9rem 1rem; }
.aws-pool-title { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .55rem; min-width:0; }
.aws-pool-title h3 { margin-right:.15rem; font-size:1rem; }
.aws-pool-title .mono { font-size:.72rem !important; }
#awsTrafficTool .panel-head > .row { gap:.3rem; }
/* AWS 流量调剂：全局参数 / 每日核对记录 / 自动动作日志默认收起，点标题展开后才加载（2026-10-26） */
.aws-fold-title { cursor:pointer; user-select:none; display:inline-flex; align-items:center; gap:.35rem; margin:0; }
.aws-fold-title:hover { color:var(--sky-600); }
.aws-fold-title:focus-visible { outline:2px solid var(--sky-600); outline-offset:2px; border-radius:4px; }
.aws-fold-caret { display:inline-block; width:1em; color:var(--muted); font-size:.85em; }
#awsTrafficTool .aws-collapsed > :not(.panel-head) { display:none; }
#awsTrafficTool .aws-collapsed > .panel-head { margin-bottom:0; }
#awsTrafficTool .aws-collapsed > .panel-head > .row, #awsTrafficTool .aws-collapsed > .panel-head p { display:none; }
/* AWS 流量调剂：每月实例开销（2026-10-27）。实例费 sky-600、超额费 amber-600（已过配色校验，对白底 ≥ 3:1）。 */
.aws-cost-sub { margin:1rem 0 .4rem; font-size:.92rem; }
.aws-cost-cards { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media (max-width: 1100px) { .aws-cost-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.aws-cost-trend-wrap { margin:.4rem 0 .2rem; }
.aws-cost-legend { display:flex; flex-wrap:wrap; gap:.9rem; font-size:.76rem; color:var(--muted); margin-bottom:.3rem; }
.aws-cost-legend span { display:inline-flex; align-items:center; gap:.3rem; }
.aws-cost-legend i { display:inline-block; width:10px; height:10px; border-radius:2px; }
.aws-cost-legend i.inst, .aws-cost-seg.inst { background:#0284c7; }
.aws-cost-legend i.over, .aws-cost-seg.over { background:#d97706; }
.aws-cost-legend i.proj { border:1.5px dashed #0284c7; }
.aws-cost-trend { display:flex; align-items:flex-end; gap:.35rem; overflow-x:auto; padding-bottom:.2rem; }
.aws-cost-col { display:flex; flex-direction:column; align-items:center; gap:.2rem; min-width:46px; padding:.25rem .15rem; border:1px solid transparent; border-radius:var(--r-sm); background:none; cursor:pointer; font:inherit; }
.aws-cost-col:hover { background:var(--surface-2); border-color:var(--line); }
.aws-cost-col.on { border-color:var(--sky-300); background:var(--sky-50); }
.aws-cost-col:focus-visible { outline:2px solid var(--sky-600); outline-offset:2px; }
.aws-cost-bar { display:flex; flex-direction:column; justify-content:flex-end; gap:2px; width:22px; }
.aws-cost-bar > :first-child { border-radius:4px 4px 0 0; }
.aws-cost-seg.proj { border:1.5px dashed #0284c7; border-bottom:0; background:transparent; }
.aws-cost-val { font-size:.72rem; color:var(--body); white-space:nowrap; }
.aws-cost-mon { font-size:.72rem; color:var(--muted); }
.aws-pool-table .actions { flex-wrap:nowrap; }
.aws-pool-table .aws-sub { margin-top:.1rem; color:var(--muted); font-size:.74rem; line-height:1.3; }
.aws-pool-table.is-editing .aws-sub { white-space:normal; } /* 行内编辑时输入框变宽：小字允许折行，避免表格横向溢出 */
.aws-pool-table .aws-sub-warn { color:#b45309; white-space:normal; min-width:8rem; max-width:13rem; }
.aws-pool-table .badge { padding-top:.12rem; padding-bottom:.12rem; }
/* 实例表折叠（2026-10-27）：表头第一行是折叠条，折叠时只留这一行 */
.aws-pool-bar { cursor:pointer; user-select:none; }
.aws-pool-bar th { font-weight:600; }
.aws-pool-bar:hover th { background:var(--sky-50); }
.aws-pool-bar-in { display:flex; align-items:center; gap:.5rem; min-width:0; }
.aws-pool-bar-in .faint { font-weight:500; overflow:hidden; text-overflow:ellipsis; }
.aws-pool-bar-gap { flex:1 1 auto; }
.aws-pool-arrow { width:.9rem; color:var(--muted); }
.aws-pool-table.is-collapsed .aws-pool-cols, .aws-pool-table.is-collapsed tbody { display:none; }
.backup-main-toolbar { margin-bottom:.4rem; }
.backup-tabs { display:inline-flex; gap:.25rem; padding:.2rem; border-radius:999px; background:var(--slate-bg); }
.backup-tab { width:auto; padding:.4rem .95rem; border:0; border-radius:999px; background:none; color:var(--body); font:inherit; font-size:.86rem; font-weight:700; cursor:pointer; }
.backup-tab.active { background:var(--surface); color:var(--sky-700); box-shadow:var(--shadow-sm); }
.backup-note { margin:0 0 .85rem; font-size:.8rem; }
.backup-point-time { font-weight:700; white-space:nowrap; }
.backup-row-actions { gap:.35rem; }
.backup-uuid { font-size:.72rem; margin-top:.2rem; }
@media (max-width:980px) { .backup-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
  .backup-cards { grid-template-columns:1fr; }
  .backup-tabs { width:100%; }
  .backup-tab { flex:1; }
  .backup-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .backup-filters select { width:100%; min-width:0; max-width:none; }
  .backup-filters select:last-child { grid-column:1 / -1; }
  .backup-actions { width:100%; }
}
.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; }
.user-management-table { min-width:1000px; table-layout:fixed; }
.user-management-table th, .user-management-table td { padding-inline:10px; }
.user-management-table .user-col-account { width:auto; }
.user-management-table .user-col-agent { width:80px; }
.user-management-table .user-col-plan { width:100px; }
.user-management-table .user-col-traffic { width:120px; }
.user-management-table .user-col-tags { width:72px; }
.user-management-table .user-col-expiry { width:112px; }
.user-management-table .user-col-status { width:78px; }
.user-management-table .user-col-actions { width:220px; }
.user-management-table th:last-child { text-align:right; }
.user-management-table td:not(.user-account-cell) { overflow-wrap:anywhere; }
.user-management-table td:nth-child(6), .user-management-table td:nth-child(7) { white-space:nowrap; }
.user-management-table .user-actions-cell .actions { flex-wrap:nowrap; }
.user-management-table .user-actions-cell .btn { flex-shrink:0; }
.user-account-cell, .user-account-cell b, .user-account-cell .user-display-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-account-cell b, .user-account-cell .user-display-name { display:block; }
.member-account-link { color:var(--sky-700); font-weight:700; text-decoration:none; border-bottom:1px solid transparent; cursor:pointer; }
.member-account-link:hover { color:var(--sky-600); border-bottom-color:currentColor; }
.member-account-link:focus-visible { outline:2px solid var(--sky-400); outline-offset:2px; border-radius:3px; }
/* 全后台统一的节点链接（2026-10-27）：表格里与会员链接同款；节点监控卡片的大标题保持原色，悬停才变色 */
.node-edit-link { color:var(--sky-700); font-weight:inherit; text-decoration:none; border-bottom:1px solid transparent; cursor:pointer; }
.node-edit-link:hover { color:var(--sky-600); border-bottom-color:currentColor; }
.node-edit-link:focus-visible { outline:2px solid var(--sky-400); outline-offset:2px; border-radius:3px; }
.pn-name .node-edit-link { color:inherit; }
.pn-name .node-edit-link:hover { color:var(--sky-600); }
.online-member-badge { display:inline-flex; padding:0; border:0; background:transparent; cursor:pointer; border-radius:999px; }
.online-member-badge:hover .badge { filter:brightness(.96); box-shadow:0 0 0 2px rgba(14,165,233,.15); }
.online-member-badge:focus-visible { outline:2px solid var(--sky-400); outline-offset:2px; }
.member-detail { display:grid; gap:0; }
.member-detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 1rem; }
/* 紧凑的「名称 + 值」：去掉每项卡片边框，只用细分隔线 */
.member-detail-item { min-width:0; padding:.42rem 0; border-bottom:1px solid var(--line); }
.member-detail-item.wide { grid-column:span 2; }
.member-detail-item.full { grid-column:1 / -1; }
/* 会员详情顶部概要 */
.member-summary { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.5rem; margin-bottom:.9rem; }
.member-summary-item { min-width:0; padding:.5rem .65rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); }
.member-summary-item > span { display:block; color:var(--muted); font-size:.7rem; font-weight:700; }
.member-summary-item > b { display:block; margin-top:.1rem; color:var(--ink-2); font-size:.9rem; overflow-wrap:anywhere; }
.member-summary-item.ok > b { color:#047857; }
.member-summary-item.warn > b { color:#b45309; }
.member-summary-item.bad > b { color:#b91c1c; }
.member-record-empty { margin:0; color:var(--muted); font-size:.84rem; }
.member-referrer-view { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-width:0; }
.member-referrer-edit { display:flex; flex-direction:column; gap:.4rem; }
.member-referrer-edit input { width:100%; min-width:0; }
.member-detail-item > span { display:block; margin-bottom:.12rem; color:var(--muted); font-size:.7rem; font-weight:700; }
.member-detail-item > div { min-width:0; overflow-wrap:anywhere; color:var(--ink-2); font-size:.86rem; font-weight:650; }
.member-detail-copy { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.member-detail-copy > span { min-width:0; overflow-wrap:anywhere; }
.member-device-table .table { min-width:760px; }
.member-device-table .faint { font-size:.72rem; }
.member-edit-tools { padding:.9rem; margin-bottom:1rem; border:1px solid var(--line); border-radius:var(--r); background:var(--surface-2); }
.member-edit-tools > fieldset:first-child { margin-top:0; }
.member-edit-switches { margin:.4rem 0 1rem; }
/* 会员详情与编辑（桌面）：可编辑信息 3 列 2 行，整体压缩行距，一屏多看内容 */
.member-edit-form-3 { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 .8rem; }
.member-tags-row { gap:.4rem 1rem; align-items:center; }
.member-tags-row > .row { gap:.4rem .8rem !important; }
.member-sub-link-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.5rem; }
.member-sub-link-row > div:first-child { min-width:0; max-width:100%; }
.member-modal .modal-body { padding:.85rem 1.1rem; }
.member-modal .modal-body fieldset { padding:.55rem .8rem .6rem; margin-bottom:.6rem; }
.member-modal legend { padding:0 .3rem; }
.member-modal .member-summary { margin-bottom:.6rem; gap:.4rem; }
.member-modal .member-summary-item { padding:.35rem .6rem; }
.member-modal .member-edit-tools { padding:.6rem .7rem; margin-bottom:.6rem; }
.member-modal .member-edit-tools fieldset { margin-bottom:.5rem; }
.member-modal .member-edit-tools > fieldset:last-child { margin-bottom:0; }
.member-modal .member-edit-form .field { gap:.2rem; margin-bottom:.5rem; }
.member-modal .member-edit-form .field > span, .member-modal .member-edit-form .field > label { font-size:.8rem; }
.member-modal .member-edit-tools input:not([type="checkbox"]):not([type="radio"]), .member-modal .member-edit-tools select { padding:.4rem .65rem; font-size:.9rem; }
.member-modal .member-edit-switches { margin:.1rem 0 .55rem; }
.member-modal .member-edit-tools p.muted { margin-top:.2rem !important; }
.member-modal .member-detail-item { padding:.28rem 0; }
.member-record-block { min-width:0; }
.member-record-actions { display:flex; justify-content:center; padding-top:.65rem; }
.member-order-table .table { min-width:1180px; }
.member-referral-table .table { min-width:760px; }
.member-traffic-history-table .table { min-width:900px; } /* 窄屏横向滚动，不把列挤成竖排 */
.member-order-table .mono, .member-referral-table .mono { font-size:.75rem; }
.support-conv-account { margin:-.18rem 0 .25rem; font-size:.76rem; }

/* 列表工具栏（搜索/筛选）与分页控件 */
.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; }
.order-filter-toolbar .list-select { max-width:220px; }
.audit-filter-toolbar .list-select { flex:0 1 200px; min-width:130px; }
.audit-filter-toolbar .list-search { max-width:420px; }
.audit-filter-link { cursor:pointer; border:0; font:inherit; }
.order-amount-filter { display:flex; align-items:center; gap:.2rem; min-width:0; max-width:100%; height:36px; border:1px solid var(--line-2); border-radius:var(--r-sm); background:#fff; color:var(--muted); }
.order-amount-filter input { width:88px; min-width:0; }
.order-amount-filter input, .order-amount-filter select { height:34px; padding:0 .45rem; border:0; border-radius:var(--r-sm); background:transparent; color:var(--body); font-size:.82rem; }
.order-amount-filter:focus-within { border-color:var(--sky-400,#5aa9e6); }
.order-head-title { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem 1rem; }
.order-pay-summary { display:flex; flex-wrap:wrap; gap:.5rem; }
.order-pay-stat { display:flex; align-items:baseline; gap:.45rem; padding:.3rem .7rem; border:1px solid var(--line-2); border-radius:var(--r-sm); background:#fff; color:var(--body); font:inherit; font-size:.82rem; line-height:1.3; cursor:pointer; text-align:left; }
.order-pay-stat:hover, .order-pay-stat.active { border-color:var(--sky-400,#5aa9e6); background:#f3f9ff; }
.order-pay-stat .label { color:var(--muted); }
.order-pay-stat b { font-size:.95rem; }
.order-pay-stat .amount { font-weight:600; font-variant-numeric:tabular-nums; }
.order-paid-chip { display:inline-flex; align-items:center; gap:.35rem; height:32px; padding:0 .4rem 0 .7rem; border-radius:999px; background:#e8f3ff; color:var(--body); font-size:.8rem; }
.order-paid-chip[hidden] { display:none; }
.order-paid-chip button { border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:1rem; line-height:1; padding:0 .2rem; }
.user-filter-toolbar .list-select { flex:0 1 150px; min-width:118px; }
.referral-filter-toolbar .list-search { flex:1 1 200px; max-width:280px; }
.referral-filter-toolbar .btn { align-self:center; }
.finance-filter-toolbar { align-items:center; margin-bottom:0; }
.finance-filter-toolbar .list-select { width:auto; flex:0 1 160px; min-width:118px; }
.finance-filter-toolbar input[type=date].list-select { flex:0 0 auto; min-width:0; }
.finance-range-sep { color:var(--muted); font-size:.85rem; }
.finance-daily { margin-top:1rem; padding-top:.9rem; border-top:1px solid var(--line); }
.finance-daily-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.4rem 1rem; margin-bottom:.4rem; font-size:.88rem; }
.finance-daily-head .muted { margin-left:.6rem; font-size:.78rem; }
.finance-daily-legend { display:flex; flex-wrap:wrap; gap:.35rem .9rem; font-size:.76rem; color:var(--muted); }
.finance-daily-legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:.3rem; vertical-align:-1px; }
.finance-daily-legend i.line { height:2px; width:14px; vertical-align:3px; border-radius:1px; }
.finance-daily-wrap { position:relative; }
.finance-daily-chart { width:100%; height:240px; display:block; cursor:pointer; touch-action:pan-y; }
.finance-daily-tip { position:absolute; top:6px; z-index:5; min-width:170px; max-width:260px; padding:.5rem .65rem; border:1px solid var(--line-2); border-radius:var(--r-sm); background:rgba(255,255,255,.97); box-shadow:0 6px 18px rgba(15,23,42,.12); font-size:.78rem; line-height:1.55; color:var(--body); pointer-events:none; white-space:nowrap; }
.finance-daily-tip b { color:var(--ink); }
.ad-head-actions select { width:auto; flex:0 0 auto; }
.ad-daily { margin:0 0 1rem; padding-bottom:.9rem; border-bottom:1px solid var(--line); }
.ad-daily-controls { display:flex; flex-wrap:wrap; gap:.4rem; }
.ad-source-filter { height:auto; min-height:36px; max-width:220px; }
.ad-source-filter.active { border-color:#0ea5e9; color:#0369a1; font-weight:600; background:#f0f9ff; }
.ad-daily-legend span { cursor:pointer; user-select:none; padding:.1rem .35rem; border-radius:var(--r-sm); }
.ad-daily-legend span.dim { opacity:.4; }
.ad-daily-legend span.active { background:#eef2ff; color:var(--ink); }
.ad-daily-legend i.dash { background:none !important; height:0; width:14px; border-top:2px dashed; vertical-align:3px; border-radius:0; }
.ad-daily-chart { height:260px; }
.ad-daily-note { font-size:.76rem; margin-top:.3rem; }
.ad-check-col { width:28px; padding-right:0 !important; }
.ad-focus-chip { display:inline-flex; align-items:center; gap:.3rem; margin-left:.5rem; padding:.05rem .5rem; border-radius:999px; background:#eef2ff; color:#4338ca; font-size:.76rem; cursor:pointer; }
.finance-daily-tip .faint { font-size:.72rem; }
.finance-focus-clear { margin-left:.4rem; padding:0 .45rem; border:1px solid var(--line-2); border-radius:999px; background:#fff; color:var(--muted); font:inherit; font-size:.75rem; cursor:pointer; }
@media (max-width: 720px) { .finance-daily-chart { height:200px; } }
.user-head-title { display:flex; align-items:center; gap:.9rem; flex-wrap:wrap; }
.user-reg-stats { display:inline-flex; align-items:center; gap:.4rem; font-size:.85rem; color:var(--muted); }
.user-reg-stats button { border:1px solid var(--line-2); background:#fff; border-radius:999px; padding:.15rem .65rem; font:inherit; color:var(--muted); cursor:pointer; white-space:nowrap; }
.user-reg-stats button:hover, .user-reg-stats button.active { border-color:var(--sky-400,#5aa9e6); color:var(--ink,#0f172a); }
.user-reg-stats b { color:var(--ink,#0f172a); font-weight:700; margin-left:.2rem; }
.user-billing-stats { margin-left:.35rem; padding-left:.75rem; border-left:1px solid var(--line-2); }
.user-billing-sep { color:var(--muted); font-weight:600; }
.list-date-filter { height:36px; display:flex; align-items:center; gap:.35rem; padding-left:.6rem; border:1px solid var(--line-2); border-radius:var(--r-sm); background:#fff; color:var(--muted); font-size:.78rem; white-space:nowrap; }
.list-date { width:126px; height:34px; padding:0 .45rem; border:0; background:transparent; color:var(--body); font:inherit; }
.list-date:focus { outline:none; }
.list-date-filter:focus-within { border-color:var(--sky-400,#5aa9e6); }
.list-search:focus, .list-select:focus { outline:none; border-color:var(--sky-400,#5aa9e6); }
.diagnostic-filter-toolbar { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); align-items:center; }
.diagnostic-filter-toolbar > * { width:100%; min-width:0; }
.diagnostic-filter-toolbar #diagnosticSearch { grid-column:span 5; }
.diagnostic-filter-toolbar #diagnosticPlatformFilter { grid-column:span 2; }
.diagnostic-filter-toolbar #diagnosticVersionFilter { grid-column:span 2; }
.diagnostic-filter-toolbar #diagnosticKindFilter { grid-column:span 2; }
.diagnostic-filter-toolbar #diagnosticStatusFilter { grid-column:span 1; }
.diagnostic-filter-toolbar #diagnosticFrom,
.diagnostic-filter-toolbar #diagnosticTo,
.diagnostic-filter-toolbar #diagnosticPageSize,
.diagnostic-filter-toolbar #clearDiagnosticFilters { grid-column:span 3; }
.diagnostic-table { min-width:1280px; table-layout:fixed; }
.diagnostic-select-cell { width:42px; text-align:center; }
.diagnostic-table th:nth-child(2) { width:158px; }
.diagnostic-table th:nth-child(3) { width:145px; }
.diagnostic-table th:nth-child(4) { width:170px; }
.diagnostic-table th:nth-child(5) { width:92px; }
.diagnostic-table th:nth-child(6) { width:82px; }
.diagnostic-table th:nth-child(7) { width:150px; }
.diagnostic-table th:nth-child(8) { width:132px; }
.diagnostic-table th:nth-child(10) { width:66px; }
.diagnostic-secondary { display:block; margin-top:.2rem; color:var(--muted); font-size:.72rem; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.diagnostic-message { max-width:340px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.diagnostic-status-select.compact { width:116px; height:32px; padding:0 .45rem; font-size:.8rem; }
.table-sort { display:inline-flex; align-items:center; gap:.25rem; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:inherit; text-transform:inherit; letter-spacing:inherit; cursor:pointer; }
.table-sort:hover, .table-sort.active { color:var(--sky-700); }
.sort-indicator { width:.8rem; color:var(--sky-700); }
.diagnostic-detail { display:grid; gap:1rem; }
.diagnostic-detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.diagnostic-detail-section { min-width:0; margin:0 !important; }
.diagnostic-status-control { display:flex; align-items:center; gap:.45rem; margin-right:auto; color:var(--muted); font-size:.8rem; white-space:nowrap; }
.diagnostic-code { max-width:100%; max-height:280px; overflow:auto; margin:0; padding:.8rem; border:1px solid var(--line); border-radius:var(--r-sm); background:#f8fafc; color:var(--ink-2); font:500 .76rem/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.diagnostic-log { max-height:420px; }
.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; justify-content:flex-end; gap:.5rem; flex-wrap:wrap; }
.pager-page { display:inline-flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.82rem; white-space:nowrap; }
.pager-input { width:3.8rem; height:34px; padding:0 .35rem; border:1px solid var(--line-2); border-radius:var(--r-sm); background:#fff; color:var(--body); font:inherit; font-size:.82rem; text-align:center; }
.pager-input:focus { outline:none; border-color:var(--sky-400,#5aa9e6); }
@media (max-width:680px) {
  .pager { align-items:flex-start; }
  .pager-btns { width:100%; justify-content:flex-start; }
  .diagnostic-filter-toolbar { grid-template-columns:1fr; }
  .diagnostic-filter-toolbar > * { grid-column:1 / -1 !important; width:100%; }
  .diagnostic-detail-grid { grid-template-columns:1fr; }
}

.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 .section-head p.ios-guide-alert a { color:inherit; white-space:nowrap; }
.ios-guide .apple-id-entry { display:inline-block; margin:.35rem .7rem .35rem 0; vertical-align:middle; }
.ios-guide .apple-id-entry:empty { display:none; }
.ios-guide .apple-id-btn { font-size:.95rem; }
.ios-guide .apple-id-panel { max-width:560px; margin:.9rem auto 1.1rem; padding:1rem 1.1rem; text-align:left; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface-2); box-shadow:var(--shadow-sm); }
.ios-guide .apple-id-panel h3 { margin:0 0 .7rem; font-size:1rem; color:var(--ink); }
.ios-guide .apple-id-field { margin-bottom:.6rem; }
.ios-guide .apple-id-label { display:block; margin-bottom:.25rem; font-size:.8rem; color:var(--muted); font-weight:700; }
.ios-guide .apple-id-input { display:flex; gap:.5rem; align-items:center; }
.ios-guide .apple-id-input .apple-id-value { flex:1 1 auto; min-width:0; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.95rem; background:#fff; }
.ios-guide .section-head .apple-id-panel p { max-width:none; margin:.35rem 0; text-align:left; font-size:.85rem; line-height:1.55; }
.ios-guide .section-head .apple-id-panel p.apple-id-meta { color:var(--muted); font-weight:600; }
.ios-guide .section-head .apple-id-panel p.apple-id-note { color:var(--ink-2); font-weight:700; }
.ios-guide .section-head .apple-id-panel p.apple-id-warn { color:#dc2626; font-weight:900; font-size:.9rem; }
.ios-guide .apple-id-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin:.6rem 0 .2rem; }
.ios-guide .apple-id-actions .apple-id-meta { font-size:.82rem; color:var(--muted); }
.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; }
.ios-guide-page { margin-top:0; padding-top:0; border-top:0; }
.ios-guide-actions { grid-column:2; display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.15rem; }
.help-ios-entry { margin-top:2rem; display:flex; align-items:center; justify-content:space-between; gap:1rem 1.4rem; flex-wrap:wrap; }
.help-ios-entry h3 { margin:0 0 .3rem; color:var(--ink); font-size:1.13rem; font-weight:900; }
.help-ios-entry p { margin:0; color:var(--body); font-weight:700; line-height:1.6; }

.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; }
.download-arch-hint { color:var(--sky-700); font-size:.82rem; font-weight:700; margin-top:-.45rem; }
.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; }
.turnstile-box { margin-top:.5rem; max-width:100%; overflow:hidden; }
.turnstile-box:empty { display:none; }
.code-row .btn { white-space:nowrap; flex:none; }
.settings-panel .code-row { flex-wrap:wrap; }
.settings-panel .code-row input { flex:1 1 220px; }
.settings-panel .code-row select { flex:1 1 150px; min-width:0; }
.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 .value small.unit { display:inline; margin:0 0 0 .2rem; }
.account-summary-grid .stat-card-traffic .stat-traffic-top { display:flex; align-items:baseline; justify-content:space-between; gap:.1rem .3rem; flex-wrap:wrap; }
.account-summary-grid .stat-card-traffic #statTraffic { margin-top:0; font-size:1.1rem; white-space:nowrap; }
.account-summary-grid .stat-card-traffic .stat-traffic-note { display:block; margin:.1rem 0 .4rem; font-size:.8rem; color:var(--muted); font-weight:600; line-height:1.3; }
.portal-head .who .member-status { margin-top:.35rem; }
/* 会员中心电脑端（2026-11-14）：去掉顶部条，会员名 + 状态放菜单顶部，退出登录放在账户概览标题右侧；手机端保持原顶部条 */
.portal-menu-who { padding:.55rem .82rem .8rem; margin-bottom:.25rem; border-bottom:1px solid var(--line); }
.portal-menu-who .eyebrow { margin:0 0 .15rem; }
.portal-menu-who b { display:block; font-size:1.3rem; line-height:1.3; color:var(--ink); overflow-wrap:anywhere; }
.portal-menu-who .member-status { margin-top:.4rem; }
.account-overview-head { align-items:center; }
@media (min-width:721px) { .portal-head { display:none; } }
@media (max-width:720px) { .portal-menu-who, #logoutBtnSide { display:none; } }
.account-online-box { padding:.55rem .72rem; margin-top:.65rem; }
.online-ip-head { gap:.6rem; font-size:.85rem; }
.online-ip-title { font-weight:600; }
.online-ip-count { font-weight:700; white-space:nowrap; }
.account-online-box .stack { margin-top:.45rem; }
.online-ip-hint { margin-top:.35rem; font-size:.72rem; line-height:1.45; }
.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-title-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:.1rem .6rem; min-width:0; }
.account-subscription .account-online-box { margin:.6rem 0 0; }
.native-device-list { margin-top:.5rem; }
.native-device-list:empty { display:none; }
.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 { position:relative; 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-todo-badge { margin-left:auto; min-width:20px; height:20px; padding:0 .38rem; border-radius:999px; display:grid; place-items:center; background:#ef4444; color:#fff; font-size:.7rem; line-height:1; font-weight:850; box-shadow:0 0 0 2px rgba(255,255,255,.12); }
.side-todo-badge.hidden { display:none; }
.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-link[draggable="true"] { cursor:grab; }
.side-link[draggable="true"]:active, .side-link-dragging { cursor:grabbing; opacity:.65; }
.side-link-dragging { outline:1px dashed rgba(255,255,255,.75); }
.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.js placeViewChrome() 放入当前页面 */
.view-top-row { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.8rem; }
.view-top-row.hidden { display:none; }
.view-top-row > #refreshBtn { margin-left:auto; }
/* 概览页：刷新按钮浮到第一排 KPI 最右侧卡片（当前连接）的右上角，不单独占一行 */
#view-dashboard { position:relative; }
/* 广告监测合计行 */
.ad-total-row td { font-weight:800; background:var(--slate-bg, #f4f7fb); border-bottom:2px solid var(--line); }
.ad-total-row td.ad-total-filter { font-weight:400; }
.ad-total-row .ad-total-filter select { width:auto; min-width:120px; max-width:200px; height:auto; min-height:34px; padding:.3rem .5rem; font-size:.84rem; }
#view-dashboard > .view-top-row { position:absolute; top:.4rem; right:.55rem; margin:0; gap:.45rem; z-index:2; }
#view-dashboard > .view-top-row > #refreshBtn { padding:.18rem .65rem; font-size:.78rem; }
#dashUpdatedAt { font-size:.72rem; white-space:nowrap; }
@media (max-width: 720px) { #dashUpdatedAt { display:none; } }
.view-head-actions { flex-wrap:wrap; gap:.4rem; }
/* 只有一个卡片的页面去掉外层卡片框（背景 / 边框 / 阴影 / 内边距），表格自带边框 */
.admin-main .view.flat > .panel { background:transparent; border:0; box-shadow:none; border-radius:0; padding:0 !important; }
.admin-side-toggle { display:none; }
.view { display:none; }
.view.active { display:block; animation:fade .25s ease; }
#view-settings .settings-panel { width:100%; max-width:none; }
/* 站点设置分组折叠（admin-settings-groups.js） */
#view-settings .settings-toolbar { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin:0 0 .9rem; }
#view-settings .settings-toolbar input[type=search] { flex:1 1 260px; max-width:420px; }
#view-settings .settings-filter-empty { font-size:.82rem; }
#view-settings .settings-group { border:1px solid var(--line); border-radius:14px; background:#fff; margin:0 0 .7rem; }
#view-settings .settings-group[hidden] { display:none; }
#view-settings .settings-group > summary { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; padding:.8rem 1rem; cursor:pointer; list-style:none; user-select:none; border-radius:14px; }
#view-settings .settings-group > summary::-webkit-details-marker { display:none; }
#view-settings .settings-group > summary::before { content:"▸"; color:var(--muted); font-size:.85rem; transition:transform .15s; }
#view-settings .settings-group[open] > summary::before { transform:rotate(90deg); }
#view-settings .settings-group > summary:hover { background:var(--sky-50); }
#view-settings .settings-group[open] > summary { border-bottom:1px solid var(--line); border-radius:14px 14px 0 0; }
#view-settings .settings-group-title { font-weight:700; font-size:.95rem; }
#view-settings .settings-group-warn { font-size:.74rem; color:#b45309; background:#fef3c7; border-radius:999px; padding:.05rem .5rem; }
#view-settings .settings-group-status { margin-left:auto; font-size:.78rem; color:var(--muted); text-align:right; }
#view-settings .settings-group-dirty { display:none; font-size:.72rem; color:#fff; background:#f97316; border-radius:999px; padding:.05rem .45rem; }
#view-settings .settings-group.is-dirty .settings-group-dirty { display:inline-block; }
#view-settings .settings-group > .form-grid { padding:.9rem 1rem .4rem; }
#view-settings .settings-group > .form-grid > .field[hidden] { display:none; }
#view-settings .settings-group > .form-grid > .field:first-child { border-top:0 !important; padding-top:0 !important; margin-top:0 !important; }
#view-settings .settings-subhead label { font-weight:700; font-size:.95rem; }
#view-settings .settings-inline-actions { display:flex; gap:.5rem; align-items:center; }
#view-settings .settings-inline-actions .btn svg { width:15px; height:15px; flex:none; }
#view-settings .settings-rate-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0 1rem; }
#view-settings .settings-savebar { position:sticky; bottom:0; z-index:5; display:flex; align-items:center; gap:.6rem; padding:.75rem 0 .2rem; background:linear-gradient(to bottom, rgba(255,255,255,0), #fff 35%); }
@media (max-width: 720px) {
  #view-settings .settings-rate-grid { grid-template-columns:1fr; }
  #view-settings .settings-group-status { margin-left:0; width:100%; text-align:left; }
}
@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-locale-row { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; margin:0 0 .75rem; padding:.7rem .8rem; border:1px solid var(--line); border-radius:8px; background:var(--sky-50); }
.client-config-locale-row label { font-weight:800; color:var(--ink); }
.client-config-locale-row select { min-width:190px; min-height:38px; padding:.4rem .65rem; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--ink); font:inherit; }
.client-config-locale-row span { color:var(--muted); font-size:.82rem; }
.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:minmax(0,1fr) minmax(420px,620px); align-items:start; }
.pulse-controls { grid-column:1; grid-row:1 / span 2; min-width:0; }
.pulse-traffic-head { grid-column:2; grid-row:1; min-width:0; display:grid; grid-template-columns:minmax(0,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; white-space:nowrap; }
.pulse-traffic-meta span { color:var(--muted); font-size:.72rem; font-weight:700; white-space:nowrap; }
#pulseWindow { grid-column:2; grid-row:2; justify-self:end; max-width:100%; min-width:0; line-height:1.3; text-align:right; white-space:normal; }
#pulseSummary { gap:.5rem; }
/* 紧凑 KPI 卡（概览、节点监控共用）：图标 + 标题同行，数值，副信息；手机 2 列 */
.kpi-compact-grid { gap:.5rem; }
.kpi.kpi-compact { padding:.55rem .75rem .6rem; gap:.12rem; min-width:0; border-radius:var(--r-sm, 12px); }
.kpi-compact .pk-head { display:flex; align-items:center; gap:.4rem; min-width:0; }
.kpi-compact .pk-ic { flex:none; width:22px; height:22px; border-radius:7px; background:var(--grad-soft); color:var(--sky-600); display:grid; place-items:center; }
.kpi-compact .pk-ic svg { width:13px; height:13px; }
.kpi-compact .label { font-size:.76rem; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi-compact .num { font-size:1.45rem; line-height:1.15; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
.kpi-compact .pk-sub { color:var(--muted); font-size:.74rem; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
.kpi-compact .pk-sub b { color:var(--ink); }
.kpi-compact .pk-nw { white-space:nowrap; }
@media (max-width:1280px) {
  .kpi-compact .num { font-size:1.25rem; }
  .kpi-compact .pk-sub { white-space:normal; }
}
@media (max-width:720px) {
  .grid-4.kpi-compact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; }
  #pulseSummary.kpi-compact-grid { margin-bottom:.4rem !important; }
  .kpi.kpi-compact { padding:.45rem .55rem .5rem; gap:.08rem; }
  .kpi-compact .pk-ic { width:18px; height:18px; border-radius:6px; }
  .kpi-compact .pk-ic svg { width:11px; height:11px; }
  .kpi-compact .label { font-size:.7rem; }
  .kpi-compact .num { font-size:1.08rem; }
  .kpi-compact .pk-sub { font-size:.66rem; line-height:1.25; white-space:normal; }
}

/* 概览页：主栏（漏斗 + 协议覆盖）+ 侧栏（数据库 / 真实 IP / 最近操作），两栏各自堆叠 */
#view-dashboard .kpi-compact-grid { margin-bottom:.6rem; }
.dash-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr); gap:.6rem; align-items:start; }
.dash-col { display:flex; flex-direction:column; gap:.6rem; min-width:0; }
#view-dashboard .dash-col > .panel { margin:0; padding:.7rem .85rem .75rem; min-width:0; }
#view-dashboard .panel-head { gap:.6rem; margin-bottom:.5rem; align-items:flex-start; flex-wrap:nowrap; }
#view-dashboard .panel-head > div { min-width:0; }
#view-dashboard .panel-head > .btn { flex:none; }
#view-dashboard .panel-head h3 { font-size:.98rem; }
#view-dashboard .panel-head p { font-size:.72rem !important; margin-top:.1rem !important; line-height:1.35; }
/* 漏斗：比率一行 6 个，下面是带占比条的阶段表 */
.funnel-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.4rem; margin-bottom:.55rem; }
.funnel-metric { padding:.4rem .55rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2, #f8fafc); min-width:0; }
.funnel-metric .fm-label { color:var(--muted); font-size:.7rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.funnel-metric .fm-num { color:var(--ink); font-size:1.1rem; font-weight:800; line-height:1.2; font-variant-numeric:tabular-nums; }
.funnel-metric .fm-note { color:var(--faint); font-size:.64rem; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.funnel-metric.fm-bad .fm-num { color:var(--bad, #dc2626); }
.funnel-stages { display:grid; }
.funnel-stage { display:grid; grid-template-columns:6.5rem minmax(0,1fr) 4.2rem 5.6rem; align-items:center; gap:.6rem; padding:.24rem 0; font-size:.82rem; border-bottom:1px solid var(--line); }
.funnel-stage:last-child { border-bottom:0; }
.funnel-stage > span:first-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fs-bar { height:8px; border-radius:99px; background:var(--surface-2, #f1f5f9); overflow:hidden; }
.fs-bar i { display:block; height:100%; min-width:2px; border-radius:99px; background:linear-gradient(90deg, var(--sky-400, #38bdf8), var(--sky-600, #0284c7)); }
.funnel-stage b { text-align:right; font-variant-numeric:tabular-nums; }
.funnel-stage .fs-rate { color:var(--faint); font-size:.72rem; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
/* 数据库：紧凑事实网格 */
#dbInfo.db-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem .8rem; }
#dbInfo.db-facts > div { min-width:0; }
#dbInfo.db-facts b { display:block; font-size:.86rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
#dbInfo.db-facts .badge { font-size:.68rem; padding:.05rem .45rem; }
/* 真实 IP */
#view-dashboard .realip-head { margin-bottom:.45rem; gap:.4rem; }
#view-dashboard .realip-items { gap:.35rem; }
#view-dashboard .realip-item { padding:.4rem .6rem; }
#view-dashboard .realip-item h4 { font-size:.82rem; margin-bottom:.1rem; }
#view-dashboard .realip-item p { font-size:.76rem; }
#view-dashboard .realip-result > p { font-size:.78rem !important; }
/* 协议 / 卡槽 键值 */
.dash-kv { display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:.22rem 0; border-bottom:1px solid var(--line); font-size:.82rem; min-width:0; }
.dash-kv > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-kv b { font-variant-numeric:tabular-nums; }
#protoSummary.dash-kv-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:1rem; }
#protoSummary .dash-kv-title { grid-column:1 / -1; margin-top:.3rem; padding-top:.35rem; border-top:1px dashed var(--line); }
/* 最近操作 */
.dash-audit { display:grid; }
.dash-audit-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.6rem; align-items:center; padding:.24rem 0; border-bottom:1px solid var(--line); font-size:.82rem; }
.dash-audit-row:last-child { border-bottom:0; }
.dash-audit-row > span:first-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-audit-row > span:last-child { color:var(--faint); font-size:.72rem; white-space:nowrap; }
@media (max-width:1400px) {
  .funnel-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1080px) {
  .dash-layout { grid-template-columns:1fr; }
  .dash-col-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .dash-col-side > .panel:last-child { grid-column:1 / -1; }
}
@media (max-width:720px) {
  #view-dashboard .kpi-compact-grid { margin-bottom:.45rem; }
  .dash-layout, .dash-col { gap:.45rem; }
  .dash-col-side { display:flex; align-items:stretch; }
  #view-dashboard .dash-col > .panel { padding:.6rem .65rem .65rem; }
  #view-dashboard .panel-head { margin-bottom:.4rem; }
  #view-dashboard .panel-head h3 { font-size:.94rem; }
  #view-dashboard .panel-head p { font-size:.68rem !important; }
  .funnel-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem; }
  .funnel-metric .fm-num { font-size:1rem; }
  .funnel-stage { grid-template-columns:5rem minmax(0,1fr) 3.4rem 4.6rem; gap:.4rem; font-size:.76rem; }
  .funnel-stage .fs-rate { font-size:.68rem; }
  #protoSummary.dash-kv-grid { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:.8rem; }
  .dash-kv, .dash-audit-row { font-size:.76rem; }
}
.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-action-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.3rem; width:100%; }
.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:1680px) {
  .pulse-head { grid-template-columns:minmax(0,1fr) auto; }
  .pulse-controls { grid-column:1 / -1; grid-row:1; }
  .pulse-traffic-head { grid-column:1; grid-row:2; width:100%; }
  #pulseWindow { grid-column:2; grid-row:2; align-self:center; }
}
@media (max-width:1180px) {
  .pulse-head { grid-template-columns:1fr; }
  .pulse-controls, .pulse-traffic-head, #pulseWindow { grid-column:1; grid-row:auto; }
  #pulseWindow { justify-self:start; text-align:left; }
}
@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; }
}

/* ---------- 广告趋势 ---------- */
.ad-row-actions { display:flex; align-items:center; gap:.42rem; }
.ad-row-actions .btn-icon svg { width:17px; height:17px; }
.ad-trend-detail { display:grid; gap:.85rem; }
.ad-trend-toolbar { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; }
.ad-trend-primary-controls { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; }
.ad-trend-segment { display:inline-flex; padding:3px; border:1px solid var(--line-2); border-radius:7px; background:var(--surface-2); }
.ad-trend-segment-btn { min-width:68px; padding:.38rem .65rem; border:0; border-radius:5px; background:transparent; color:var(--muted); font:inherit; font-size:.82rem; font-weight:800; cursor:pointer; }
.ad-trend-segment-btn:hover { color:var(--ink-2); }
.ad-trend-segment-btn.active { background:#fff; color:var(--ink); box-shadow:0 1px 4px rgba(15,23,42,.12); }
.ad-trend-range { width:auto; min-width:116px; padding:.48rem .7rem; font-size:.84rem; }
.ad-trend-period { margin:0; font-size:.8rem; }
.ad-trend-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; padding:.72rem 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.ad-trend-kpi { min-width:0; padding:.15rem .55rem; border-left:3px solid var(--sky-500); }
.ad-trend-kpi:nth-child(2) { border-left-color:#059669; }
.ad-trend-kpi:nth-child(3) { border-left-color:#d97706; }
.ad-trend-kpi:nth-child(4) { border-left-color:#dc2626; }
.ad-trend-kpi span { display:block; color:var(--muted); font-size:.76rem; font-weight:750; }
.ad-trend-kpi b { display:block; margin-top:.14rem; color:var(--ink); font-size:1.08rem; overflow-wrap:anywhere; }
.ad-trend-chart-block { position:relative; border:1px solid var(--line); border-radius:var(--r-sm); padding:.72rem; background:#fff; }
.ad-trend-tip { position:absolute; z-index:5; pointer-events:none; min-width:180px; padding:.5rem .65rem; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.14); font-size:.78rem; line-height:1.55; color:#334155; white-space:nowrap; }
.ad-trend-tip[hidden] { display:none; }
.ad-trend-tip b { display:block; color:#0f172a; margin-bottom:.15rem; }
.ad-trend-chart-head { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-bottom:.4rem; }
.ad-trend-chart-head span { color:var(--muted); font-size:.78rem; }
.ad-trend-chart { display:block; width:100%; height:250px; cursor:crosshair; touch-action:pan-y; }
.ad-trend-table { max-height:280px; overflow:auto; border:1px solid var(--line); border-radius:var(--r-sm); }
.ad-trend-table .table { min-width:620px; }
.ad-trend-table th { white-space:nowrap; }
.ad-trend-table thead { position:sticky; top:0; z-index:1; background:#fff; }
@media (max-width:680px) {
  .ad-trend-toolbar { align-items:stretch; }
  .ad-trend-toolbar, .ad-trend-primary-controls { flex-direction:column; }
  .ad-trend-primary-controls, .ad-trend-segment, .ad-trend-range { width:100%; }
  .ad-trend-segment-btn { flex:1; min-width:0; }
  .ad-trend-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ad-trend-chart { height:210px; }
}

/* ---------- 客服 ---------- */
.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; }
/* 客服聊天：待发送图片缩略图（后台 / 手机客服页 / 会员中心共用，见 support-image.js）与拖入高亮 */
.support-pending { display:flex; align-items:center; gap:.6rem; padding:.5rem .75rem; border-top:1px solid var(--line); background:var(--sky-50); }
.support-pending[hidden] { display:none; }
.support-pending-thumb { width:56px; height:56px; object-fit:cover; border-radius:8px; border:1px solid var(--line-2); background:#fff; flex:none; }
.support-pending-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:.1rem; font-size:.78rem; color:var(--muted); }
.support-pending-info b { color:var(--sky-700); font-size:.82rem; }
.support-pending-cancel { flex:none; width:30px; height:30px; border-radius:50%; border:1px solid var(--line-2); background:#fff; color:var(--muted); font-size:1.1rem; line-height:1; cursor:pointer; }
.support-pending-cancel:hover { color:var(--ink); border-color:var(--sky-500); }
.support-bubble-img, .m-bubble img { cursor:zoom-in; }
/* 客服图片查看器（support-image.js openSupportImageViewer） */
.siv { position:fixed; inset:0; z-index:9000; background:rgba(8,10,14,.94); touch-action:none; overscroll-behavior:contain; -webkit-user-select:none; user-select:none; }
.siv-stage { position:absolute; inset:0; z-index:0; overflow:hidden; touch-action:none; }
.siv-img { position:absolute; left:50%; top:50%; max-width:none; max-height:none; transform-origin:center center; will-change:transform; opacity:0; cursor:zoom-in; -webkit-user-drag:none; -webkit-touch-callout:none; }
.siv.siv-ready .siv-img { opacity:1; }
.siv.siv-zoomed .siv-img { cursor:grab; }
.siv.siv-zoomed.siv-dragging .siv-img { cursor:grabbing; }
.siv.siv-animating .siv-img { transition:transform .18s ease; }
.siv-bar { position:absolute; z-index:1; left:50%; bottom:max(16px, env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; align-items:center; gap:2px; padding:5px; border-radius:999px; background:rgba(30,32,38,.82); box-shadow:0 6px 24px rgba(0,0,0,.35); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.siv-btn { display:inline-grid; place-items:center; min-width:42px; height:42px; padding:0 8px; border:0; border-radius:999px; background:transparent; color:#fff; font:inherit; font-size:1.25rem; line-height:1; text-decoration:none; cursor:pointer; }
.siv-btn:hover, .siv-btn:focus-visible { background:rgba(255,255,255,.16); outline:none; }
.siv-btn-text { font-size:.85rem; font-weight:600; }
.siv-zoom { min-width:54px; text-align:center; color:#e5e7eb; font-size:.82rem; font-variant-numeric:tabular-nums; }
.siv-close { position:absolute; z-index:1; top:max(12px, env(safe-area-inset-top)); right:max(12px, env(safe-area-inset-right)); width:44px; height:44px; background:rgba(30,32,38,.82); font-size:1.6rem; }
.siv-close:hover, .siv-close:focus-visible { background:rgba(64,68,78,.95); box-shadow:0 0 0 2px rgba(255,255,255,.55); }
.support-drop-active { outline:2px dashed var(--sky-500); outline-offset:-4px; }
@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; }
/* 节点负载调度：弹窗更高，标题栏和表头不固定，整个弹窗一起滚动 */
.steering-modal { max-height:96vh; }
.steering-modal .modal-head, .steering-modal .table th { position:static; }
.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; min-width:0; } /* fieldset 默认按内容最小宽度撑开，宽表格会把整组挤出弹窗 */
.modal legend { font-weight:800; font-size:.85rem; color:var(--sky-700); padding:0 .4rem; }

.email-template-actions .btn svg { width:15px; height:15px; }
.email-outbox-table { min-width:900px; }
.email-template-editor { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr); gap:1.2rem; align-items:start; }
.email-template-editor-fields { min-width:0; }
.email-template-editor-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1rem; }
.email-template-editor-form .email-template-field-textarea { grid-column:1 / -1; }
.email-template-editor-form textarea { min-height:88px; }
.email-template-variables { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.email-template-variables > span { margin-right:.2rem; font-size:.78rem; font-weight:700; }
.email-template-variables code { padding:.2rem .42rem; border:1px solid var(--sky-100); border-radius:6px; background:var(--sky-50); color:var(--sky-700); font-size:.74rem; }
.email-template-preview-pane { min-width:0; position:sticky; top:72px; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#eef6fd; }
.email-template-preview-title { padding:.55rem .75rem; border-bottom:1px solid var(--line); background:#fff; color:var(--ink-2); font-size:.8rem; font-weight:800; }
.email-template-editor-preview { display:block; width:100%; height:min(650px,62vh); border:0; background:#eef6fd; }

.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:900px) {
  .email-template-editor { grid-template-columns:1fr; }
  .email-template-preview-pane { position:static; }
  .email-template-editor-preview { height:560px; }
}
@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; }
  .email-template-editor-form { grid-template-columns:1fr; }
  .email-template-editor-form .field { grid-column:1; }
  /* 会员详情（手机）：信息两列、概要三列、编辑表单短字段两两并排，收紧边距 */
  .member-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 .75rem; }
  .member-detail-item.wide, .member-detail-item.full { grid-column:1 / -1; }
  .member-detail-copy { align-items:flex-start; flex-direction:column; }
  .member-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; }
  .member-summary-item { padding:.4rem .5rem; }
  .member-modal .modal-body { padding:.75rem; }
  .member-modal fieldset { padding:.65rem .7rem; margin-bottom:.75rem; }
  .member-modal .member-edit-tools { padding:0; border:0; background:none; }
  .member-modal .member-edit-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 .6rem; }
  .member-modal .member-edit-form .field { margin-bottom:.65rem; }
  .member-modal .member-edit-form .field > label { font-size:.78rem; }
  .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; }
}
.language-picker { position:relative; flex:none; margin-inline-start:.45rem; }
.language-picker summary { cursor:pointer; list-style:none; padding:.48rem .7rem; border:1px solid var(--line-2); border-radius:11px; color:var(--body); background:#fff; font-size:.76rem; font-weight:700; white-space:nowrap; }
.language-picker summary::-webkit-details-marker { display:none; }
.language-menu { position:absolute; z-index:80; inset-inline-end:0; top:calc(100% + .45rem); display:grid; grid-template-columns:repeat(2,minmax(112px,1fr)); width:270px; padding:.5rem; border:1px solid var(--line-2); border-radius:15px; background:#fff; box-shadow:0 18px 50px rgba(15,45,60,.18); }
.language-menu a { padding:.55rem .65rem; border-radius:9px; color:var(--body); font-size:.76rem; direction:ltr; text-align:left; }
.language-menu a:hover,.language-menu a.active { color:var(--sky-700); background:var(--sky-50); }
html[dir="rtl"] body { text-align:start; }
html[dir="rtl"] .site-header .container,html[dir="rtl"] .between,html[dir="rtl"] .row { direction:rtl; }
html[dir="rtl"] input,html[dir="rtl"] textarea,html[dir="rtl"] code,html[dir="rtl"] .mono,html[dir="rtl"] [type="email"],html[dir="rtl"] [type="url"] { direction:ltr; text-align:left; }
html[dir="rtl"] .breadcrumbs,html[dir="rtl"] .tutorial-steps { direction:rtl; }
html[dir="rtl"] .tutorial-checks li { padding-inline:2.55rem 1rem; }
html[dir="rtl"] .tutorial-checks li:before { left:auto; inset-inline-start:1rem; }
@media (max-width:720px) {
  .language-picker { margin-inline-start:auto; }
  .language-picker summary { max-width:110px; overflow:hidden; text-overflow:ellipsis; }
  .language-menu { position:fixed; top:74px; right:18px; left:18px; width:auto; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ---------- 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); }
/* 会员详情与编辑：窗口撑满可视高度（上下各留 .5rem），内容少时底部按钮也贴底 */
.modal-backdrop:has(> .member-modal-full) { padding:.5rem; }
.modal.member-modal-full { display:flex; flex-direction:column; height:calc(100vh - 1rem); max-height:calc(100vh - 1rem); }
@supports (height:100dvh) { .modal.member-modal-full { height:calc(100dvh - 1rem); max-height:calc(100dvh - 1rem); } }
.modal.member-modal-full > .modal-body { flex:1 0 auto; }
.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; }
}

/* Public tutorial hub and server-rendered SEO articles. */
.tutorial-page { background:linear-gradient(180deg,#f6fbff 0,#fff 28rem); }
.tutorial-shell { max-width:1040px; }
.breadcrumbs { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin:0 0 1.5rem; color:var(--muted); font-size:.8rem; }
.breadcrumbs a { color:var(--sky-700); }
.tutorial-hero,.tutorial-article-head { margin-bottom:2.5rem; padding:clamp(1.5rem,5vw,3.4rem); border:1px solid var(--line-2); border-radius:28px; background:rgba(255,255,255,.92); box-shadow:0 24px 70px -52px rgba(15,70,90,.5); }
.tutorial-hero h1,.tutorial-article-head h1 { max-width:820px; margin:.55rem 0 1rem; font-size:clamp(2rem,5vw,3.45rem); line-height:1.08; letter-spacing:-.045em; color:var(--ink); }
.tutorial-hero > p:not(.eyebrow),.tutorial-article-head > p { max-width:760px; margin:0; color:var(--body); font-size:1rem; line-height:1.8; }
.tutorial-hero-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }
.tutorial-group { margin-top:3.5rem; }
.tutorial-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.tutorial-card { display:flex; flex-direction:column; min-height:245px; padding:1.45rem; border:1px solid var(--line-2); border-radius:20px; background:#fff; box-shadow:0 18px 55px -46px rgba(15,70,90,.65); }
.tutorial-card > span,.tutorial-meta { color:var(--muted); font-size:.75rem; }
.tutorial-card h3 { margin:.7rem 0 .65rem; font-size:1.15rem; line-height:1.4; }
.tutorial-card h3 a { color:var(--ink); }
.tutorial-card p { margin:0; color:var(--body); font-size:.85rem; line-height:1.7; }
.tutorial-more { margin-top:auto; padding-top:1rem; color:var(--sky-700); font-size:.82rem; font-weight:750; }
.tutorial-meta { margin-top:1.2rem; }
.tutorial-content { max-width:820px; margin:0 auto; }
.tutorial-content > section { margin:0 0 3.2rem; }
.tutorial-content > section > h2 { margin:0 0 1.15rem; font-size:1.55rem; letter-spacing:-.025em; }
.tutorial-steps { display:grid; gap:.8rem; margin:0; padding:0; list-style:none; }
.tutorial-steps li { display:grid; grid-template-columns:46px 1fr; gap:1rem; padding:1.25rem; border:1px solid var(--line-2); border-radius:18px; background:#fff; }
.tutorial-steps li > span { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; color:#fff; background:linear-gradient(135deg,var(--sky-600),var(--cyan-500)); font-size:.76rem; font-weight:800; }
.tutorial-steps h3 { margin:.05rem 0 .4rem; font-size:1.05rem; }
.tutorial-steps p { margin:0; color:var(--body); font-size:.88rem; line-height:1.75; }
.tutorial-toc { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem .8rem; margin:0 0 2rem; padding:1rem 1.1rem; border:1px solid var(--line-2); border-radius:14px; background:#fff; font-size:.82rem; }
.tutorial-toc b { color:var(--ink); }
.tutorial-toc a { color:var(--sky-700); }
.tutorial-answer { margin:0; padding:1.1rem 1.2rem; border-inline-start:4px solid var(--sky-500); border-radius:0 14px 14px 0; color:var(--body); background:var(--sky-50); line-height:1.8; }
.tutorial-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin:0; padding:0; list-style:none; }
.tutorial-checks li { position:relative; padding:.9rem 1rem .9rem 2.55rem; border:1px solid #bfe9dc; border-radius:14px; color:#155e52; background:#effcf7; font-size:.84rem; }
.tutorial-checks li:before { position:absolute; left:1rem; content:'✓'; font-weight:900; }
.tutorial-faq { display:grid; gap:.65rem; }
.tutorial-faq details { padding:1rem 1.1rem; border:1px solid var(--line-2); border-radius:14px; background:#fff; }
.tutorial-faq summary { cursor:pointer; color:var(--ink); font-weight:750; }
.tutorial-faq p { margin:.7rem 0 0; color:var(--body); line-height:1.7; }
.tutorial-cta { display:flex; align-items:center; justify-content:space-between; gap:1.2rem; margin:0 0 3.2rem; padding:1.35rem; border-radius:20px; color:#e9fbff; background:linear-gradient(135deg,#0d4453,#0b7777); }
.tutorial-cta div { display:flex; flex-direction:column; gap:.3rem; }
.tutorial-cta span { color:#cce9eb; font-size:.82rem; }
.tutorial-related { display:grid; gap:.7rem; }
.tutorial-related a { display:flex; flex-direction:column; gap:.25rem; padding:1rem 1.1rem; border:1px solid var(--line-2); border-radius:14px; background:#fff; }
.tutorial-related b { color:var(--ink); font-size:.9rem; }
.tutorial-related span { color:var(--muted); font-size:.76rem; line-height:1.55; }
@media (max-width:720px) {
  .tutorial-grid,.tutorial-checks { grid-template-columns:1fr; }
  .tutorial-hero,.tutorial-article-head { padding:1.35rem; border-radius:20px; }
  .tutorial-hero h1,.tutorial-article-head h1 { font-size:2rem; }
  .tutorial-steps li { grid-template-columns:38px 1fr; gap:.75rem; padding:1rem; }
  .tutorial-steps li > span { width:36px; height:36px; }
  .tutorial-cta { align-items:flex-start; flex-direction:column; }
}
@media (max-width:720px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns:1fr; }
  .withdrawal-summary { 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; }
  /* 手机：顶部只留会员名 + 状态，右侧三个按钮一排；「会员中心」「账户 / 账户概览」与导航、标签栏重复，隐藏 */
  /* 会员名较短时与按钮同一行；名字较长（如邮箱）放不下时，按钮整体换到下一行，不把名字挤成竖条 */
  .portal-head { align-items:flex-start; flex-wrap:wrap; }
  .portal-head .who .eyebrow { display:none; }
  .portal-head .row { flex-wrap:nowrap; margin-left:auto; }
  .account-overview-head { display:none; }
  .portal-head .who { min-width:0; max-width:100%; }
  .portal-head .who h1 { font-size:1.35rem; overflow-wrap:anywhere; }
  .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:3.4rem; }
  .mobile-only { display:inline-flex !important; }
  .admin-side-toggle { position:fixed; top:.6rem; left:.6rem; z-index:45; width:40px; height:40px; align-items:center; justify-content:center; border-radius:12px; border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow-sm); font-size:1.15rem; cursor:pointer; }
}
/* 手机横屏（2026-11-15）：宽度超过 720px 但高度很矮的触摸屏，侧边栏同竖屏一样默认收起成 ☰ 抽屉；
   平板横屏（高度 ≥ 744px）和电脑不受影响。只搬侧边栏规则，内容区排版仍按宽度走。 */
@media (min-width:721px) and (orientation:landscape) and (max-height:500px) and (pointer:coarse) {
  .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:3.4rem; }
  .admin-side-toggle.mobile-only { display:inline-flex; position:fixed; top:.6rem; left:.6rem; z-index:45; width:40px; height:40px; align-items:center; justify-content:center; border-radius:12px; border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow-sm); font-size:1.15rem; cursor:pointer; }
}
.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-plan-card.has-ribbon { overflow:hidden; }
.home-v2-plan-card.has-ribbon h3 { padding-right:4.6rem; }
.home-v2-plan-card.has-ribbon .home-v2-plan-price { flex-wrap:wrap; row-gap:.4rem; }
.home-v2-plan-card.has-ribbon .home-v2-plan-price span { white-space:nowrap; }
.home-v2-plan-price .home-v2-plan-recommended { position:static; align-self:center; margin-left:auto; color:#fff; font-size:.66rem; }
.home-v2-plan-ribbon { position:absolute; top:20px; right:-48px; z-index:1; width:180px; padding:.36rem 0; transform:rotate(45deg); color:#fff; background:#d42a2a; box-shadow:0 4px 10px rgba(0,0,0,.14); font-size:.8rem; font-weight:900; text-align:center; letter-spacing:.02em; pointer-events:none; }
.home-v2-plan-daily { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.2rem .5rem; margin:-.45rem 0 1.1rem; padding:.6rem .8rem; color:var(--muted); background:#f1f5f9; border-radius:12px; font-size:.76rem; font-weight:700; }
.home-v2-plan-daily > span { white-space:nowrap; }
.home-v2-plan-daily b { color:var(--ink); font-size:1.05rem; font-weight:900; }
.home-v2-plan-daily s { margin-right:.4rem; color:#6b7686; font-size:.76rem; font-weight:600; }
.home-v2-plan-daily.saving { color:#8a2020; background:#fdeeee; }
.home-v2-plan-daily.saving b { color:#d42a2a; }
.home-v2-plan-save-note { margin:.9rem 0 0; color:var(--muted); font-size:.74rem; text-align:center; }
.plan-save-pill { display:inline-block; white-space:nowrap; margin-left:.45rem; padding:.08rem .5rem; color:#fff; background:#d42a2a; border-radius:999px; font-size:.72rem; font-weight:900; vertical-align:1px; }
.plan-daily-price { display:inline-block; white-space:nowrap; margin-left:.45rem; color:var(--muted); font-size:.76rem; font-weight:700; }
.plan-daily-price.saving { color:#d42a2a; }
.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-step-list b a, .home-v2-step-list em a { color:inherit; text-decoration:none; }
.home-v2-step-list b a:hover, .home-v2-step-list em a:hover, .home-v2-step-list b a:focus-visible, .home-v2-step-list em a:focus-visible { color:var(--sky-700); text-decoration:underline; text-underline-offset:3px; }

.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; }
}

/* Email notification preferences opened from a signed link in service emails. */
.email-preferences-page { min-height:100vh; background:#eef2f5; }
.email-preferences-shell { min-height:100vh; display:grid; place-items:center; padding:28px 16px; }
.email-preferences-card { width:min(560px,100%); padding:28px; border-radius:8px; box-shadow:0 12px 34px rgba(15,23,42,.1); }
.email-preferences-card > .brand { width:max-content; margin-bottom:28px; }
.email-preferences-heading h1 { margin:.18rem 0 .55rem; font-size:1.65rem; line-height:1.3; letter-spacing:0; }
.email-preferences-heading .muted { min-height:1.4em; margin:0; font-size:.86rem; }
.email-preferences-loading { padding:36px 0 18px; color:var(--muted); text-align:center; }
.email-preferences-card form { display:grid; gap:12px; margin-top:24px; }
.email-preference-option { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 16px; border:1px solid var(--line); border-radius:8px; background:#f8fafc; cursor:pointer; }
.email-preference-option span { min-width:0; }
.email-preference-option b, .email-preference-option small { display:block; }
.email-preference-option b { color:var(--ink); font-size:.94rem; }
.email-preference-option small { margin-top:4px; color:var(--muted); font-size:.76rem; line-height:1.55; }
.email-preference-option input[role="switch"] { appearance:none; width:44px; height:24px; flex:0 0 44px; position:relative; margin:0; border:0; border-radius:12px; background:#cbd5e1; cursor:pointer; transition:background .16s ease; }
.email-preference-option input[role="switch"]::after { width:18px; height:18px; position:absolute; top:3px; left:3px; content:""; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.25); transition:transform .16s ease; }
.email-preference-option input[role="switch"]:checked { background:#059669; }
.email-preference-option input[role="switch"]:checked::after { transform:translateX(20px); }
.email-preference-option input[role="switch"]:focus-visible { outline:3px solid rgba(37,99,235,.25); outline-offset:2px; }
.email-preferences-required { padding:14px 16px; border-left:4px solid #2563eb; background:#eff6ff; color:#334155; }
.email-preferences-required b { color:#1e3a8a; font-size:.86rem; }
.email-preferences-required p { margin:5px 0 0; font-size:.76rem; line-height:1.65; }
.email-preferences-card .btn-block { min-height:44px; margin-top:4px; }
.email-preferences-card .form-msg { min-height:1.4em; margin:0; }

@media (max-width:560px) {
  .email-preferences-shell { align-items:start; padding:14px 10px; }
  .email-preferences-card { padding:22px 18px; }
  .email-preferences-card > .brand { margin-bottom:22px; }
  .email-preferences-heading h1 { font-size:1.4rem; }
  .email-preference-option { align-items:flex-start; padding:14px; }
  .email-preference-option input[role="switch"] { margin-top:2px; }
}

/* ── 后台：手机与提醒弹窗 ───────────────────────────────────── */
.mobile-access-modal { display:grid; gap:.9rem; }
.mobile-qr-box { display:grid; place-items:center; min-height:180px; margin:.4rem 0; }
.mobile-qr-img { width:220px; max-width:70vw; }
.mobile-qr-img.small { width:160px; margin:.6rem 0 .3rem; }
.mobile-qr-img svg { display:block; width:100%; height:auto; border-radius:10px; }
.mobile-qr-done { font-size:3rem; }
.mobile-qr-status { font-size:.82rem; margin-bottom:.6rem; text-align:center; }
.mobile-device-list { display:grid; gap:.5rem; }
.mobile-device-row { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.55rem .7rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); }
.mobile-device-row .faint { font-size:.76rem; }

/* ── 手机客服页 ─────────────────────────────────────────────── */
.m-support { --m-head:54px; min-height:100dvh; display:flex; flex-direction:column; background:var(--bg); }
.m-support[hidden] { display:none; }
.m-head { position:sticky; top:0; z-index:5; height:var(--m-head); display:flex; align-items:center; gap:.5rem; padding:0 .75rem; padding-top:env(safe-area-inset-top); box-sizing:content-box; background:var(--surface); border-bottom:1px solid var(--line); }
.m-head h1 { font-size:1.02rem; margin:0; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-head .m-icon-btn { border:0; background:transparent; font-size:1.05rem; padding:.4rem .55rem; color:var(--sky-700); cursor:pointer; border-radius:8px; }
.m-head .m-icon-btn:active { background:var(--sky-50); }
.m-filter { display:flex; gap:.4rem; padding:.55rem .75rem; overflow-x:auto; background:var(--surface); border-bottom:1px solid var(--line); }
.m-filter button { flex:none; border:1px solid var(--line); background:var(--surface-2); border-radius:999px; padding:.28rem .8rem; font-size:.84rem; color:var(--body); }
.m-filter button.active { background:var(--sky-600); border-color:var(--sky-600); color:#fff; }
.m-list { flex:1; }
.m-conv { display:grid; gap:.15rem; padding:.7rem .85rem; border-bottom:1px solid var(--line); background:var(--surface); }
.m-conv:active { background:var(--sky-50); }
.m-conv-top { display:flex; align-items:center; gap:.45rem; }
.m-conv-name { font-weight:700; color:var(--ink); flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-conv-time { font-size:.75rem; color:var(--faint); flex:none; }
.m-conv-preview { font-size:.86rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-unread { background:var(--bad); color:#fff; border-radius:999px; font-size:.72rem; min-width:1.3rem; padding:0 .38rem; text-align:center; line-height:1.3rem; }
.m-online { width:.5rem; height:.5rem; border-radius:50%; background:var(--ok); flex:none; }
.m-empty { padding:2.5rem 1rem; text-align:center; color:var(--muted); }
.m-thread { flex:1; overflow-y:auto; padding:.8rem .75rem 1rem; display:flex; flex-direction:column; gap:.55rem; }
.m-bubble { max-width:82%; padding:.5rem .7rem; border-radius:14px; background:var(--surface); box-shadow:var(--shadow-sm); word-break:break-word; white-space:pre-wrap; font-size:.94rem; }
.m-bubble.agent { align-self:flex-end; background:var(--sky-600); color:#fff; }
.m-bubble.system { align-self:center; background:var(--slate-bg); color:var(--muted); font-size:.8rem; }
.m-bubble-meta { font-size:.7rem; opacity:.75; margin-bottom:.15rem; }
.m-bubble img { display:block; max-width:100%; max-height:260px; border-radius:10px; margin-top:.2rem; }
.m-reply { position:sticky; bottom:0; display:flex; align-items:flex-end; gap:.45rem; padding:.55rem .65rem calc(.55rem + env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--line); }
.m-reply textarea { flex:1; min-height:40px; max-height:140px; resize:none; font-size:16px; padding:.5rem .65rem; }
.m-reply .btn { flex:none; height:40px; }
.m-img-btn { width:40px; padding:0; font-size:1.1rem; }
.m-pending-img { font-size:.78rem; color:var(--sky-700); padding:.3rem .75rem; background:var(--sky-50); }
.m-login { max-width:420px; margin:0 auto; padding:2rem 1.2rem; }
.m-login .card { padding:1.3rem; }
.m-sheet { padding:1rem .9rem; display:grid; gap:1rem; }
.m-sheet .card { padding:1rem; }
.m-status-row { display:flex; gap:.4rem; flex-wrap:wrap; }
.m-status-row button { border:1px solid var(--line); background:var(--surface-2); border-radius:8px; padding:.3rem .65rem; font-size:.82rem; }
.m-status-row button.active { border-color:var(--sky-600); color:var(--sky-700); font-weight:700; }
.m-toast { position:fixed; left:50%; bottom:calc(84px + env(safe-area-inset-bottom)); transform:translateX(-50%); background:rgba(15,23,42,.88); color:#fff; padding:.5rem .9rem; border-radius:10px; font-size:.86rem; z-index:50; max-width:86vw; }

/* 小屏手机（iPhone SE 等 ≤380px）：统计数字再收一号，避免「18.4 / 200 GB」折行 */
@media (max-width:380px) {
  .account-summary-grid .stat-card .value { font-size:1rem; }
}

/* 客服新消息提醒条（admin 与手机客服页共用） */
.support-alarm { position:fixed; top:calc(12px + env(safe-area-inset-top)); left:50%; transform:translateX(-50%); z-index:9999; display:flex; align-items:center; gap:.5rem; max-width:calc(100vw - 32px); padding:.55rem .6rem .55rem 1rem; border-radius:999px; background:#d93636; color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.25); font-size:.92rem; animation:support-alarm-pulse 1.5s ease-in-out infinite; }
.support-alarm-text { cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.support-alarm button { border:0; border-radius:999px; padding:.3rem .8rem; font-size:.85rem; cursor:pointer; flex-shrink:0; }
.support-alarm-view { background:#fff; color:#d93636; font-weight:600; }
.support-alarm-mute { background:rgba(255,255,255,.2); color:#fff; }
@keyframes support-alarm-pulse { 0%,100% { box-shadow:0 8px 24px rgba(0,0,0,.25); } 50% { box-shadow:0 8px 24px rgba(217,54,54,.6); } }
@media (prefers-reduced-motion: reduce) { .support-alarm { animation:none; } }
.side-alarm-toggle { margin-top:.5rem; }

.diagnostic-rejections { margin: 0 0 .6rem; font-size: .82rem; }
.diagnostic-rejections.has-rejections { color: #b45309; }
.diagnostic-filter-toolbar .diagnostic-sort-extra.active { border-color:var(--sky-300); background:var(--sky-50); color:var(--sky-700); }
.diagnostic-summary { margin:0 0 .9rem; border:1px solid var(--line); border-radius:var(--r-lg); padding:.35rem .8rem; }
.diagnostic-summary > summary { cursor:pointer; font-weight:800; font-size:.9rem; padding:.3rem 0; }
.diagnostic-summary > summary .muted { font-weight:500; font-size:.78rem; margin-left:.4rem; }
.diagnostic-summary .table-wrap { margin:.4rem 0 .3rem; }
.diagnostic-summary-table th { white-space:nowrap; }
.diagnostic-summary-table td { font-size:.82rem; vertical-align:top; }
.diagnostic-summary-table td.num { text-align:right; font-variant-numeric:tabular-nums; }
.diagnostic-summary-table .diagnostic-message { max-width:26rem; }
/* 原生客户端版本号：跟在 Android / Windows 后面的小字。 */
.device-version { margin-left: .3em; font-size: .85em; font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
/* 后台：客户端版本统计 */
.client-version-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .8rem; margin-top: .8rem; }
.client-version-card { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); padding: .8rem .95rem; min-width: 0; }
.client-version-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; font-size: 1rem; }
.client-version-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem .8rem; }
.client-version-metric { display: flex; flex-direction: column; min-width: 0; }
.client-version-metric span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.client-version-metric b { font-size: 1.2rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.client-version-metric small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.client-version-note { margin: .7rem 0 0; font-size: .78rem; line-height: 1.55; }
.client-version-table th.num, .client-version-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.client-version-table th.num .table-sort { justify-content: flex-end; }
.client-version-table th, .client-version-table td { white-space: nowrap; }
.client-version-table td .row { flex-wrap: nowrap; }
.client-version-table td.client-compat-kinds { white-space: normal; min-width: 14rem; font-size: .82rem; color: var(--muted); }
.client-version-table td.client-compat-hot { color: #c2410c; font-weight: 700; }
@media (max-width: 640px) { .client-version-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .client-version-cards { grid-template-columns: 1fr; } }

/* B 组网关公告工具（admin-xvp1.js） */
.xvp1-notes p { margin:0 0 .6rem; }
.xvp1-notes ul { margin:0 0 .8rem; padding-left:1.2rem; line-height:1.7; font-size:.9rem; }
.xvp1-address { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; font-size:.88rem; }
.xvp1-address .mono { word-break:break-all; }
.xvp1-counter { font-weight:700; color:var(--ink-2); }
.xvp1-counter.xvp1-over { color:var(--bad); }
.xvp1-messages { margin:-.4rem 0 .8rem; }
.xvp1-error { color:#b91c1c; background:var(--bad-bg); border-radius:8px; padding:.35rem .6rem; margin-top:.35rem; font-size:.85rem; }
.xvp1-warn { color:#b45309; background:var(--warn-bg); border-radius:8px; padding:.35rem .6rem; margin-top:.35rem; font-size:.85rem; }
.xvp1-actions { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; margin:-.3rem 0 1rem; }
.xvp1-meta { font-size:.82rem; }
.xvp1-list { margin:.2rem 0 0; padding-left:1.6rem; line-height:1.8; font-size:.88rem; }
#xvp1Tool textarea[readonly] { background:var(--slate-bg); word-break:break-all; }
.xvp1-excluded { margin-top:.8rem; }
.xvp1-excluded summary { cursor:pointer; font-size:.88rem; font-weight:700; color:var(--ink-2); }
/* AWS 流量调剂：额度池标题行阈值标签（2026-10-26，替代原单独一行阈值文字）与「日志 ▾」下拉 */
.aws-th-group { display:inline-flex; flex-wrap:wrap; gap:.3rem; }
.aws-th { display:inline-flex; align-items:center; padding:.1rem .5rem; border-radius:999px; font-size:.74rem; font-weight:600; line-height:1.5; white-space:nowrap; cursor:help; }
.aws-th-limit { background:#fef9c3; color:#a16207; }
.aws-th-exclude { background:#ffedd5; color:#c2410c; }
.aws-th-disable { background:var(--bad-bg); color:#b91c1c; }
.aws-th-limit.hit { background:#eab308; color:#fff; }
.aws-th-exclude.hit { background:#ea580c; color:#fff; }
.aws-th-disable.hit { background:#dc2626; color:#fff; }
.aws-th.off { background:var(--slate-bg); color:var(--faint); font-weight:500; }
/* 预计月底用量（2026-10-27）：三个推算数字各自按等级上色，整卡取最差等级；颜色与阈值标签一致，超标为实心红 */
/* AWS 直接返回的实际数据：紫色 + 「AWS」角标（红黄橙留给报警）；系统估算：灰色「估算」小标签 */
.aws-src { color:#7c3aed; font-weight:inherit; }
.aws-src-tag { display:inline-block; margin-left:.25rem; padding:0 .28rem; border-radius:4px; background:#ede9fe; color:#6d28d9; font-size:.62rem; font-weight:800; line-height:1.45; letter-spacing:.02em; vertical-align:.12em; }
.aws-yday { display:inline-flex; align-items:center; }
.aws-yday-in { display:inline-flex; flex-wrap:wrap; align-items:center; gap:.25rem .7rem; padding:.22rem .7rem; border:1px solid var(--line); border-radius:999px; background:var(--surface-2); color:var(--body); font-size:.8rem; line-height:1.5; cursor:help; }
.aws-yday-in b { color:var(--ink); font-weight:700; }
.aws-yday-day { color:var(--muted); font-weight:600; }
.aws-yday-pct { color:var(--muted); font-size:.74rem; }
.aws-yday-err { color:var(--bad); font-size:.8rem; }
.aws-est-tag { display:inline-block; margin-left:.25rem; padding:0 .28rem; border-radius:4px; background:var(--slate-bg); color:var(--faint); font-size:.62rem; font-weight:700; line-height:1.45; vertical-align:.12em; }
.aws-proj-v { cursor:help; }
.aws-left { margin-left:.5rem; color:var(--muted); font-size:.76rem; font-weight:600; cursor:help; }
.aws-left-num { color:var(--ink); font-size:1.02rem; font-weight:700; }
.aws-left-pct { color:var(--muted); }
.aws-left.lvl-limit .aws-left-num { color:#a16207; }
.aws-left.lvl-exclude .aws-left-num { color:#c2410c; }
.aws-left.lvl-disable .aws-left-num { color:#b91c1c; }
.aws-left.lvl-over, .aws-left.lvl-over .aws-left-num { color:#dc2626; font-weight:800; }
/* 额度池四张卡（2026-10-27）：剩余窄 40%，省下的给本月额度（放得下「预计剩」）；平板 / 手机仍按原来的两列 / 单列 */
@media (min-width:1200px) { .backup-cards.aws-pool-stats { grid-template-columns:.6fr 1fr 1.4fr 1fr; } }
@media (min-width:981px) and (max-width:1199px) { .backup-cards.aws-pool-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* 较窄的笔记本屏 / 平板放不下时不截断：数值整体换到名称下一行，「预计剩」再换一行 */
.aws-pool-stats .backup-card-head { flex-wrap:wrap; row-gap:.05rem; }
.aws-pool-stats .backup-card-value:has(.aws-left) { white-space:normal; }
.aws-pool-stats .aws-left { white-space:nowrap; }
.aws-proj-sep, .aws-proj-unit { color:var(--muted); font-weight:600; }
.aws-proj-v.lvl-limit { color:#a16207; }
.aws-proj-v.lvl-exclude { color:#c2410c; }
.aws-proj-v.lvl-disable { color:#b91c1c; }
.aws-proj-v.lvl-over { color:#dc2626; }
/* 智能推算数据不足（暂用本月日均）时灰显；达到阈值颜色时仍按阈值上色 */
.aws-proj-v.is-fallback:not([class*="lvl-"]) { color:var(--faint); }
.aws-proj-sub { display:flex; align-items:center; gap:.4rem; }
.aws-proj-sub > span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.aws-proj-flag { flex:none; margin-left:auto; padding:0 .45rem; border-radius:999px; font-size:.72rem; font-weight:700; line-height:1.55; background:rgba(255,255,255,.65); }
.backup-card.aws-proj.lvl-limit { background:#fef9c3; border-color:#eab308; }
.backup-card.aws-proj.lvl-limit .aws-proj-flag { color:#a16207; }
.backup-card.aws-proj.lvl-exclude { background:#ffedd5; border-color:#ea580c; }
.backup-card.aws-proj.lvl-exclude .aws-proj-flag { color:#c2410c; }
.backup-card.aws-proj.lvl-disable { background:var(--bad-bg); border-color:#dc2626; }
.backup-card.aws-proj.lvl-disable .aws-proj-flag { color:#b91c1c; }
.backup-card.aws-proj.lvl-over { background:#dc2626; border-color:#b91c1c; box-shadow:0 0 0 2px rgba(220,38,38,.25); }
.backup-card.aws-proj.lvl-over .backup-card-label,
.backup-card.aws-proj.lvl-over .backup-card-sub,
.backup-card.aws-proj.lvl-over .aws-proj-sep,
.backup-card.aws-proj.lvl-over .aws-proj-unit,
.backup-card.aws-proj.lvl-over .aws-proj-v { color:#fff; }
.backup-card.aws-proj.lvl-over .aws-proj-v.lvl-over { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px; }
.backup-card.aws-proj.lvl-over .aws-proj-flag { background:#fff; color:#dc2626; }
.aws-menu { position:relative; }
.aws-menu > summary { list-style:none; cursor:pointer; user-select:none; }
.aws-menu > summary::-webkit-details-marker { display:none; }
.aws-menu-list { position:absolute; right:0; top:calc(100% + .25rem); z-index:30; display:flex; flex-direction:column; min-width:7rem; padding:.25rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface); box-shadow:var(--shadow); }
.aws-menu-list a { padding:.35rem .65rem; border-radius:8px; color:var(--body); font-size:.82rem; text-decoration:none; white-space:nowrap; }
.aws-menu-list a:hover { background:var(--surface-2); color:var(--sky-700); }

/* 客服会话列表：已完成分组的分页条（在列表滚动区内） */
.support-pager { margin:0; padding:.6rem .65rem .8rem; border-top:1px solid var(--line); }
.support-pager .pager-btns { justify-content:flex-start; gap:.35rem; }
.support-pager .btn-sm { padding-left:.55rem; padding-right:.55rem; }
.support-pager .pager-input { width:3.2rem; }

/* 活动权益：领取入口（2026-11） */
.campaign-grant-note:not(.hidden) { display:flex; align-items:center; justify-content:space-between; gap:.8rem; flex-wrap:wrap; }
.campaign-grant-text { display:flex; flex-direction:column; gap:.15rem; }
.campaign-grant-action { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin:.1rem 0 .35rem; }

/* 客户端版本：自动更新推送设置 */
.client-push-table td { vertical-align: top; }
.client-push-table select, .client-push-table input { height: 34px; }
.client-push-table input { width: 7.5rem; padding: 0 .55rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: .86rem; }
.client-push-table .client-push-hint { display: block; margin-top: .3rem; font-size: .76rem; line-height: 1.45; }
.client-push-warn { color: #b42318; font-size: .8rem; margin-top: .3rem; }

/* 品牌站知识库（品牌站上的 /tutorials 目录页，2026-11-16） */
.kb-grid { columns:2; column-gap:1.5rem; }
.kb-group { break-inside:avoid; margin:0 0 1.5rem; padding:1.1rem 1.3rem .5rem; border:1px solid var(--line-2); border-radius:20px; background:#fff; box-shadow:0 18px 55px -46px rgba(15,70,90,.65); }
.kb-group-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding-bottom:.75rem; border-bottom:1px solid var(--line); }
.kb-group-head h2 { display:flex; align-items:center; gap:.6rem; margin:0; font-size:1.12rem; }
.kb-icon { display:inline-grid; place-items:center; flex:none; width:32px; height:32px; border-radius:10px; background:var(--sky-100); color:var(--sky-600); }
.kb-icon svg { width:18px; height:18px; }
.kb-count { min-width:1.7rem; padding:.1rem .5rem; border-radius:999px; background:var(--sky-50); color:var(--muted); font-size:.75rem; text-align:center; }
.kb-list { list-style:none; margin:0; padding:0; }
.kb-list li + li { border-top:1px dashed var(--line); }
.kb-list a { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.78rem .1rem; color:var(--ink); font-size:.95rem; line-height:1.45; }
.kb-list a::after { content:"\203A"; flex:none; color:var(--faint); font-size:1.25rem; line-height:1; }
.kb-list a:hover, .kb-list a:hover::after { color:var(--sky-600); }
[dir="rtl"] .kb-list a::after { content:"\2039"; }
@media (max-width:760px) { .kb-grid { columns:1; } .kb-group { padding:1rem 1.05rem .4rem; } }
