/* AirGo 控制台（Telegram Mini App）：颜色跟着 Telegram 主题走，浏览器里直接打开时用下面的默认值 */
:root {
  --bg: var(--tg-theme-secondary-bg-color, #f3f4f8);
  --card: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #ffffff));
  --text: var(--tg-theme-text-color, #0f1115);
  --sub: var(--tg-theme-hint-color, #868a96);
  --accent: var(--tg-theme-button-color, #3b6cf6);
  --on-accent: var(--tg-theme-button-text-color, #ffffff);
  --link: var(--tg-theme-link-color, var(--accent));
  --line: color-mix(in srgb, var(--sub) 18%, transparent);
  --soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --field: color-mix(in srgb, var(--sub) 9%, var(--card));
  --ok: #16a34a;
  --warn: #e08a00;
  --bad: #e5484d;
  --gold: #f5b545;
  --radius: 18px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.05);
  --hero: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #000) 0%, color-mix(in srgb, var(--accent) 70%, #7c3aed) 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not(.tg) {
    --bg: #0c0d10;
    --card: #17181d;
    --text: #f2f3f5;
    --sub: #8b8e99;
    --accent: #5b86ff;
  }
}
:root.tg, :root { color-scheme: light dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
#view { padding: 14px var(--gutter) 28px; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
a { color: var(--link); text-decoration: none; }
h1 { font-size: 22px; line-height: 1.2; margin: 4px 0 12px; letter-spacing: -0.4px; font-weight: 700; }
h1 .sub { display: block; font-size: 14px; color: var(--sub); font-weight: 500; letter-spacing: 0; margin-top: 4px; }
h2 { font-size: 13px; font-weight: 600; color: var(--sub); margin: 24px 6px 8px; letter-spacing: .2px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 8px; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.1px; word-break: break-all; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 26px; height: 26px; }

/* 卡片和分组列表 */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.group { background: var(--card); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.group > * { display: flex; align-items: center; gap: 12px; padding: 13px 16px; position: relative; color: var(--text); }
.group > * + *::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--line); }
.group > .has-ico + *::before, .group > * + .has-ico::before { left: 60px; }
.group .t { font-weight: 500; }
.group .d { font-size: 13px; color: var(--sub); margin-top: 1px; }
.chev { color: var(--sub); display: inline-flex; }
.ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--soft); color: var(--accent); }
.ico.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.ico.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.ico.bad { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.ico.gold { background: color-mix(in srgb, var(--gold) 20%, transparent); color: #c2850c; }

/* 顶部大卡（余额、推广） */
.hero-card { background: var(--hero); color: #fff; border-radius: 22px; padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 28%, transparent); }
.hero-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.09); }
.hero-card .label { font-size: 13px; opacity: .82; }
.hero-card .big { font-size: 34px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hero-card .big small { font-size: 14px; font-weight: 600; opacity: .8; margin-left: 4px; letter-spacing: 0; }
.hero-card .acts { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.hero-card .acts > * { flex: 1; background: rgba(255,255,255,.18); color: #fff; border-radius: 12px; padding: 9px 6px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; backdrop-filter: blur(6px); }
.hero-card .acts > *:active { background: rgba(255,255,255,.28); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stats.four { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.stat span { font-size: 12px; color: var(--sub); }
.stat.warn b { color: var(--warn); }

/* 站点卡片 */
.site { display: block; color: inherit; }
.site-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 19px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 60px; height: 60px; border-radius: 17px; font-size: 26px; }
.site .name { font-size: 16.5px; font-weight: 650; }
.site .meta { font-size: 12.5px; color: var(--sub); }
.lic { margin-top: 12px; display: grid; gap: 8px; }
.lic-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 0; }
.lic > div { min-width: 0; }
.lic-row .plats { display: inline-flex; gap: 3px; color: var(--sub); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.bar.warn > i { background: var(--warn); }
.bar.bad > i { background: var(--bad); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--accent); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.badge.mute { background: var(--field); color: var(--sub); }
.badge.gold { background: linear-gradient(135deg, #ffcf6b, #f59e0b); color: #4a2a00; }
.notice { display: flex; gap: 8px; align-items: flex-start; border-radius: 12px; padding: 9px 11px; font-size: 12.5px; margin: 0 0 12px; background: var(--soft); color: var(--text); }
.notice svg { color: var(--accent); margin-top: 1px; }
.notice.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.notice.warn svg { color: var(--warn); }
.notice.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.notice.bad svg { color: var(--bad); }
.notice.ok { background: color-mix(in srgb, var(--ok) 11%, transparent); }
.notice.ok svg { color: var(--ok); }

/* 按钮 */
button, .btn {
  font: inherit; border: 0; border-radius: 14px; padding: 13px 16px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .08s, opacity .15s;
}
button:active:not(:disabled), .btn:active { transform: scale(.98); }
button:disabled { opacity: 0.4; cursor: default; }
.btn-ghost { background: var(--soft); color: var(--accent); }
.btn-plain { background: transparent; color: var(--accent); padding: 6px 4px; font-weight: 500; }
.btn-danger { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions > * { flex: 1 1 auto; }
.bottom-bar {
  position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); margin: 16px calc(-1 * var(--gutter)) 0; z-index: 5;
  padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-bar .sum { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.bottom-bar .sum b { font-size: 24px; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.bottom-bar .sum .del { text-decoration: line-through; color: var(--sub); font-size: 13px; margin-right: 6px; }

/* 表单 */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--sub); margin: 0 2px 6px; font-weight: 500; }
input[type=text], input[type=url], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1.5px solid transparent;
  border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--card); }
textarea { min-height: 76px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--sub); margin: 5px 2px 0; line-height: 1.45; }
.err { color: var(--bad); font-size: 13px; margin-top: 6px; }
.amount-input { display: flex; align-items: center; gap: 8px; background: var(--field); border-radius: 14px; padding: 6px 14px; border: 1.5px solid transparent; }
.amount-input:focus-within { border-color: var(--accent); background: var(--card); }
.amount-input input { background: transparent !important; border: 0 !important; font-size: 26px; font-weight: 650; padding: 6px 0; font-variant-numeric: tabular-nums; }
.amount-input .unit { color: var(--sub); font-weight: 600; }

/* 分段切换（授权方式） */
.toggle { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--field); border-radius: 12px; padding: 3px; gap: 4px; margin-bottom: 6px; }
.toggle button { background: transparent; color: var(--text); padding: 6px 4px; border-radius: 10px; font-weight: 600; font-size: 13px; flex-direction: column; gap: 1px; }
.toggle button small { font-size: 10.5px; font-weight: 600; color: var(--ok); }
.toggle button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); color: var(--text); }

/* 套餐卡 */
.plans { display: grid; gap: 8px; }
.plan { text-align: left; background: var(--card); color: var(--text); border: 2px solid transparent; border-radius: 14px; padding: 11px 13px; display: block; width: 100%; box-shadow: var(--shadow); position: relative; font-weight: 400; }
.plan.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.plan .top { display: flex; align-items: flex-start; gap: 10px; }
.plan .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; }
.plan.on .radio { border-color: var(--accent); background: var(--accent); }
.plan.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.plan .pname { font-weight: 650; font-size: 14.5px; }
.plan .pdesc { font-size: 12px; color: var(--sub); margin-top: 2px; }
.plan .price { text-align: right; white-space: nowrap; }
.plan .price b { font-size: 18px; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.plan .price small { display: block; font-size: 11.5px; color: var(--sub); }
.plan .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0 28px; }
.plan .ribbon { position: absolute; top: -9px; right: 14px; }
.plat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 28px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; background: var(--field); color: var(--text); font-size: 12.5px; font-weight: 500; border: 1.5px solid transparent; }
.pchip.on { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.pchip.fixed { background: var(--soft); color: var(--accent); }
.pchip.off { opacity: .45; }
.pchip .own { font-size: 10.5px; color: var(--sub); }

/* 开关 */
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--sub) 32%, transparent); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.check.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 报价明细 */
.qline { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.qline .del { text-decoration: line-through; color: var(--sub); margin-right: 6px; font-size: 12.5px; }

/* 付款页 */
.pay-amount { font-size: 38px; font-weight: 750; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.qr { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 16px; width: fit-content; margin: 14px auto; box-shadow: 0 0 0 1px var(--line); }
.copyable { display: flex; align-items: center; gap: 8px; background: var(--field); border-radius: 12px; padding: 10px 12px; text-align: left; }
.copyable .mono { flex: 1; font-size: 13px; }
.copyable button { flex: none; }
.ring { --p: 1; width: 100%; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 10px; }
.ring > i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--accent); transition: width 1s linear; }
.steps { counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 12px 32px; font-size: 14px; }
.steps li:last-child { padding-bottom: 2px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 700; text-align: center; line-height: 22px; }

/* 体检 */
.check-row .ico { width: 26px; height: 26px; border-radius: 50%; }

/* 打包 */
.icon-drop { width: 96px; height: 96px; border-radius: 24px; background: var(--field); display: flex; align-items: center; justify-content: center; color: var(--sub); overflow: hidden; flex: none; border: 2px dashed var(--line); cursor: pointer; }
.icon-drop.has { border: 0; box-shadow: var(--shadow); }
.icon-drop img { width: 100%; height: 100%; object-fit: cover; }
.preview-phone { display: flex; gap: 16px; align-items: center; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.file-row:first-child { border-top: 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 底部标签栏：悬浮圆角条，选中项是浅色胶囊 */
#tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 616px; margin: 0 auto;
  display: flex; gap: 4px; padding: 6px; border-radius: 24px;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12); z-index: 10;
}
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: 11.5px; color: var(--sub); font-weight: 600; border-radius: 18px; transition: background .15s, color .15s; }
#tabs a svg { width: 23px; height: 23px; }
#tabs a.on { color: var(--accent); background: var(--soft); }
body.no-tabs #tabs { display: none; }
body.no-tabs #app { padding-bottom: env(safe-area-inset-bottom); }
body.no-tabs .bottom-bar { bottom: 0; }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,24,.94); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; padding: 36px 20px; }
.empty .big-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty .big-ico svg { width: 30px; height: 30px; }
.empty .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.empty .acts > * { flex: 1 1 140px; max-width: 220px; margin: 0; }
.skeleton { height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--line)), var(--card)); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton, #view { animation: none; } * { transition: none !important; } }
details > summary { cursor: pointer; color: var(--accent); font-weight: 500; padding: 4px 0; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; }
details[open] > summary::before { content: "▾ "; }
.coupon { background: var(--field); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.coupon input { background: var(--card); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sub); }
.search input { padding-left: 38px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.chip.on { background: var(--text); color: var(--card); }
.chip em { font-style: normal; opacity: .55; margin-left: 3px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.price-table th { color: var(--sub); font-weight: 600; text-align: right; padding: 0 0 8px; font-size: 12px; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table td { padding: 8px 0; text-align: right; border-top: 1px solid var(--line); }
.amt-pos { color: var(--ok); font-weight: 600; }
.amt-neg { color: var(--text); font-weight: 600; }
.seg-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.seg-tabs a { padding: 8px 0; color: var(--sub); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.seg-tabs a.on { color: var(--text); border-color: var(--accent); }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }

/* 顶部标题栏 */
#top { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
#top .brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
#top .brand b { display: block; font-size: 17px; line-height: 1.1; letter-spacing: -0.2px; }
#top .brand small { display: block; font-size: 11.5px; color: var(--sub); }
.logo { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--hero); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.logo.big { width: 72px; height: 72px; border-radius: 20px; font-size: 32px; }
.me-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
body.no-tabs #top .me-btn { visibility: hidden; }
/* 二级页面：左上角「‹ 返回」代替品牌 */
.back-btn { display: none; align-items: center; gap: 2px; height: 38px; padding: 0 14px 0 8px; border-radius: 19px; background: var(--soft); color: var(--accent); font-weight: 600; font-size: 15px; border: 0; width: auto; box-shadow: none; }
body.sub .back-btn { display: inline-flex; }
body.sub #top .brand { display: none; }

/* 启动验证页 */
.splash { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.splash h3 { font-size: 20px; margin: 10px 0 0; }
.dots { position: relative; width: 44px; height: 44px; margin-top: 14px; animation: spin 1.4s linear infinite; }
.dots i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.dots i:nth-child(1) { left: 16px; top: 0; opacity: .45; }
.dots i:nth-child(2) { right: 0; top: 16px; opacity: .65; }
.dots i:nth-child(3) { left: 16px; bottom: 0; opacity: .85; }
.dots i:nth-child(4) { left: 0; top: 16px; }

/* 页面抬头：小标签 + 大标题 + 说明 */
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .3px; margin: 4px 0 2px; }
.lead { color: var(--sub); font-size: 13px; margin: -6px 0 12px; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cta > * { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: 16px; font-weight: 700; font-size: 15px; }
.cta .ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--line); }
.cta .solid { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }

/* 购买套餐页：大价格卡 */
.offer { background: var(--card); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--shadow); border: 1.5px solid transparent; position: relative; }
.offer.hot { border-color: var(--accent); }
.offer .oname { color: var(--accent); font-weight: 700; font-size: 14px; }
.offer .odesc { font-size: 12.5px; color: var(--sub); margin-top: 1px; }
.offer .oprice { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 2px; }
.offer .oprice b { font-size: 26px; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; line-height: 1; }
.offer .oprice span { color: var(--sub); font-size: 12px; }
.offer .opm { font-size: 12px; color: var(--ok); font-weight: 600; }
.offer .feat { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 3px; }
.offer .feat li { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text); line-height: 1.4; }
.offer .feat li svg { color: var(--ok); width: 14px; height: 14px; flex: none; }
.offer .pick { width: 100%; background: transparent; color: var(--text); border: 1.5px solid var(--line); border-radius: 11px; padding: 8px; font-weight: 650; font-size: 13.5px; }
.offer.hot .pick { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.offer .ribbon { position: absolute; top: 12px; right: 12px; }

/* 统计格子（个人中心、订单） */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tile { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); color: var(--text); }
.tile .ico { margin-bottom: 10px; }
.tile > span:not(.ico) { display: block; font-size: 12.5px; color: var(--sub); }
.tile b { display: block; font-size: 20px; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* 选站点弹层 */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; border-radius: 22px 22px 0 0; padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
.sheet h3 { margin: 4px 4px 12px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.amounts button { background: var(--card); color: var(--text); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 4px; font-weight: 700; font-size: 16px; }
.amounts button.on { border-color: var(--accent); background: var(--soft); color: var(--accent); }

.free { color: var(--ok, #2fb36b); font-weight: 700; font-size: 14px; }
.t .del { text-decoration: line-through; margin-left: 4px; }
img.logo { background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 3px 8px rgba(40, 70, 160, .2)); }

/* 插件购买页：每项的详细介绍 */
.group .addon-item { align-items: flex-start; }
.group .addon-item .switch { margin-top: 2px; }
.addon-feat { list-style: none; padding: 0; margin: 8px 0 2px; display: grid; gap: 5px; }
.addon-feat li { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--sub); line-height: 1.45; }
.addon-feat li svg { color: var(--ok); width: 14px; height: 14px; flex: none; margin-top: 2px; }
.addon-feat li b { color: var(--text); font-weight: 600; margin-right: 4px; }
