/* 黑白灰为主，一个暖橙色点缀；粗黑大字建立阅读顺序，装饰尽量少 */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #4b4b4b;
  --muted: #8a8a85;
  --faint: #b8b8b2;
  --line: #ececea;
  --line-2: #dcdcd8;
  --soft: #f6f6f4;
  --accent: #ea8a1a;
  --accent-ink: #9a5200;
  --accent-soft: #fdf4e7;
  --accent-line: #f6dfbf;
  --ok: #2f7a3e;
  --warn: #b25b00;
  --radius: 18px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 44px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 14px; }
small, .small { font-size: 13.5px; }
.muted { color: var(--muted); }
.dim { color: var(--faint); }
.dotted::after { content: ""; display: inline-block; width: .22em; height: .22em; margin-left: .08em;
  border-radius: 50%; background: var(--accent); vertical-align: baseline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

/* ---------- 品牌标志 ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.brand-mark svg { width: 24px; height: 24px; }
.brand b { font-size: 20px; font-weight: 800; }

/* ---------- 按钮、表单 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 16px/1 var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2a2a; color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.link { border: 0; background: none; padding: 0; height: auto; font-weight: 500; text-decoration: underline; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn.block { width: 100%; }

label { display: block; font-size: 13.5px; color: var(--ink-2); margin: 0 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; height: 46px; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--ink); font: 17px var(--sans); }
textarea { height: auto; padding: 10px 2px; line-height: 1.6; resize: vertical; }
input:disabled { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 5px; accent-color: var(--ink); }
.field { margin-bottom: 22px; }

.flashes { padding-top: 24px; }
.flash { margin: 0 0 8px; padding: 12px 18px; border-radius: 12px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: 15px; }

/* ---------- 通用 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-body { padding: 28px 32px; }
.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .muted { color: #a3a3a0; }
.warm { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.eyebrow { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.eyebrow.lamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 20px;
  background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: #e9f3ea; color: var(--ok); }
.pill.warn { background: var(--accent-soft); color: var(--warn); }
.pill.muted { background: var(--soft); color: var(--muted); }
.page { padding: 34px 0 48px; }
.page-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 28px; }
.page-head p { color: var(--ink-2); margin: 8px 0 0; font-size: 16px; }
.rule-top { border-top: 1.5px solid var(--ink); }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }

.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts th { text-align: left; font-weight: 400; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; width: 7.5em; }
.facts td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 600; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts td .small { font-weight: 400; color: var(--muted); display: block; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.dot.off { background: var(--warn); }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list b { color: var(--ink); display: block; font-size: 17px; margin-bottom: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.banner { border-radius: var(--radius); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.banner h3 { font-size: 21px; margin-bottom: 4px; }
.banner p { margin: 0; }

.qa details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.qa summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; gap: 14px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; color: var(--muted); font-weight: 400; width: 1em; }
.qa details[open] summary::before { content: "–"; }
.qa details p { margin: 10px 0 0 calc(1em + 14px); color: var(--ink-2); max-width: 46em; }

/* ---------- 控制台 ---------- */
.status-line { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.status-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.status-line.off::before { background: var(--faint); }
.big { font-size: 40px; line-height: 1.12; font-weight: 800; margin: 0 0 28px; }
.big .dim { color: #a9a9a3; }
.bar { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.bar.full i { background: var(--accent); }
.bar-legend { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin: 10px 0 30px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); padding-top: 22px; margin: 44px 0; }
.stats div { font-size: 14px; color: var(--ink-2); }
.stats b { display: block; font-size: 30px; color: var(--ink); margin-top: 4px; font-weight: 800; }
.next { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px; text-decoration: none; }
.next:hover { background: var(--soft); color: var(--ink); }
.next small { color: var(--ink-2); display: block; }
.next b { font-size: 18px; }

.cred { border-top: 1px solid var(--line); }
.cred-row { display: grid; grid-template-columns: 6.5em 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cred-row > span:first-child { color: var(--muted); font-size: 14px; }
.cred-row code { word-break: break-all; font-size: 15px; }

table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13.5px; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list form { display: inline; margin: 0; }
.table-scroll { overflow-x: auto; }

.kv { display: grid; grid-template-columns: 7.5em 1fr; font-size: 15px; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.cols { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.sticky { position: sticky; top: 92px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.total b { font-size: 34px; font-weight: 800; }
.rules { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.rules li { margin-bottom: 6px; }
.order-no { font-family: var(--mono); font-size: 34px; font-weight: 700; }

/* ---------- 教程：设备标签 + 编号步骤 ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 40px; }
.tabs button { height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff;
  font: 500 16px var(--sans); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { border-color: var(--ink); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 34px 62px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border: 1.5px solid var(--ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; background: #fff; }
.steps > li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 6px; width: 1.5px; background: var(--line-2); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 20px; margin: 4px 0 6px; }
.steps p { color: var(--ink-2); margin: 0 0 10px; }
.steps pre, .prose pre { background: var(--soft); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); margin: 8px 0 12px; }
.panel[hidden] { display: none; }

/* ---------- 登录注册：深色整页，自带顶栏 ---------- */
body:has(.auth-page) { background: #0e0e0d; }
.auth-top { background: #0e0e0d; color: #a3a39e; font-size: 15px; }
.auth-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.auth-top .brand, .auth-top .brand:hover { color: #fff; }
.auth-top .brand-mark { color: var(--accent); }
.auth-top a:not(.brand) { color: #fff; }
.auth-page { background: #0e0e0d; color: #fff; min-height: calc(100vh - 84px); display: flex; flex-direction: column; }
.auth-main { flex: 1; display: grid; grid-template-columns: 1fr 470px; gap: 64px; align-items: center; width: 100%; padding-top: 40px; padding-bottom: 56px; }
.auth-mark { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border: 2.5px solid #f2f2ee; border-radius: 26px; margin-bottom: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(234,138,26,.35), rgba(234,138,26,0) 62%); }
.auth-mark svg { width: 48px; height: 48px; color: var(--accent); filter: drop-shadow(0 0 20px rgba(234,138,26,.5)); }
.auth-tag { color: var(--accent); font-size: 15px; letter-spacing: .2em; }
.auth-page h1 { font-size: 76px; line-height: 1.08; font-weight: 900; letter-spacing: -.01em; margin: 14px 0 26px; }
.auth-page .lead { color: #b9b9b4; font-size: 19px; line-height: 1.75; }
.auth-card { background: #fff; color: var(--ink); border-radius: 26px; padding: 48px 48px 36px; }
.auth-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 28px; }
.auth-card .field { margin-bottom: 22px; }
.auth-card .forgot { text-align: right; font-size: 14px; margin: -6px 0 20px; }
.auth-card .forgot a { color: var(--ink-2); }
.btn.pill { height: 58px; border-radius: 999px; font-size: 17px; font-weight: 700; }
.auth-card .switch { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.auth-foot { width: 100%; box-sizing: border-box; display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid #262624; padding-top: 26px; padding-bottom: 30px; font-size: 14.5px; color: #8f8f8a; }
.auth-foot a { color: #fff; }

/* ---------- 文档页 ---------- */
.prose { max-width: 760px; color: var(--ink-2); }
.prose h2 { font-size: 22px; margin: 36px 0 10px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.side-nav a { display: block; padding: 7px 0; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.side-nav a.on { color: var(--ink); font-weight: 700; }
.legal { display: grid; grid-template-columns: 180px 1fr; gap: 48px; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 14px; color: var(--muted); margin-top: 48px; }
.foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot b { color: var(--ink); display: block; margin-bottom: 8px; }
.foot a { color: var(--ink-2); display: block; line-height: 2.1; text-decoration: none; }

/* ---------- 后台 ---------- */
.admin-nav { display: flex; gap: 20px; margin-bottom: 18px; font-size: 15px; }
.admin input[type=text], .admin input[type=number], .admin select { height: 34px; font-size: 14px; }
.grid-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 16px; align-items: end; }

@media (max-width: 900px) {
  h1, .auth-page h1 { font-size: 40px; }
  .big { font-size: 32px; }
  .auth-page { min-height: 0; }
  .auth-main { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; padding-bottom: 40px; flex: none; }
  .auth-mark { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 24px; }
  .auth-card { padding: 32px 24px 26px; }
  .auth-foot { gap: 10px 24px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .plan-grid, .cols, .legal, .two { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .banner { flex-direction: column; align-items: flex-start; }
  .foot .wrap { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
  .card-body { padding: 22px; }
}
@media (max-width: 520px) {
  .cred-row { grid-template-columns: 1fr auto; }
  .cred-row > span:first-child { grid-column: 1 / -1; }
}

/* ---------- 整体框架：左侧导航 + 顶栏 ---------- */
:root { --side-w: 244px; --side-mini: 76px; --top-h: 64px; --page-bg: #f7f7f5; }
body { background: var(--page-bg); }
body:has(.auth-page) { background: #0e0e0d; }
.side { position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 20; transition: width .18s, transform .2s; }
.side-brand { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 24px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.side-brand:hover { color: var(--ink); }
.side-brand b { font-size: 19px; font-weight: 800; white-space: nowrap; }
.side-brand .brand-mark { flex: none; }
.side-scroll { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.side-label { font-size: 12.5px; color: var(--muted); padding: 16px 12px 6px; white-space: nowrap; }
.side-link { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; margin-bottom: 2px; border-radius: 12px;
  border: 1px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.side-link svg { flex: none; width: 20px; height: 20px; }
.side-link:hover { background: var(--soft); color: var(--ink); }
.side-link.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 700; }
.side-foot { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; }
.side-foot a { color: var(--muted); display: flex; }
.side-foot svg { width: 18px; height: 18px; }
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .18s; }
.topbar { position: sticky; top: 0; z-index: 10; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 28px 0 20px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .btn.small { height: 36px; }
.icon-btn { position: relative; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; line-height: 17px; font-weight: 700; text-align: center; }
.menu { position: relative; margin-left: 6px; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 4px; border-radius: 12px;
  cursor: pointer; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--soft); }
.menu summary svg { width: 16px; height: 16px; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.menu-pop { position: absolute; right: 0; top: 52px; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.08); }
.menu-pop .who-mail { padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); word-break: break-all; }
.menu-pop form { margin: 0; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink-2); font: 15px var(--sans); text-decoration: none; text-align: left; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--soft); color: var(--ink); }
.menu-pop svg { width: 18px; height: 18px; }
.content { flex: 1; }
.content .wrap { max-width: 1180px; margin: 0; padding-left: 44px; padding-right: 44px; }
.content .narrow { max-width: 860px; }
.app-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 22px 44px 30px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.app-foot a { color: var(--muted); text-decoration: none; }
.app-foot a:hover { color: var(--ink); }
.side-mask { display: none; }
.top-brand { display: none; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; }
.top-brand:hover { color: var(--ink); }
@media (min-width: 901px) {
  .side-collapsed .side { width: var(--side-mini); }
  .side-collapsed .main { margin-left: var(--side-mini); }
  .side-collapsed .side .txt, .side-collapsed .side-label, .side-collapsed .side-foot span { display: none; }
  .side-collapsed .side-link { justify-content: center; padding: 0; }
  .side-collapsed .side-brand, .side-collapsed .side-foot { justify-content: center; padding-left: 0; padding-right: 0; }
  .side-collapsed .side-scroll { padding-top: 18px; }
}

/* ---------- 商店、首页、各功能页 ---------- */
.sec-title { font-size: 19px; margin: 40px 0 14px; }
.store-node { margin-bottom: 40px; }
.node-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.node-head h2 { font-size: 20px; }
.node-head p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile { padding: 24px 24px 20px; display: flex; flex-direction: column; }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile-head h3 { font-size: 18px; }
.tile-price { font-size: 34px; font-weight: 800; margin: 12px 0 14px; line-height: 1.1; }
.tile-price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.tile-specs { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14.5px; }
.tile-specs li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tile-specs span { color: var(--muted); }
.tile-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.empty { color: var(--muted); text-align: center; padding: 40px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; text-decoration: none; color: var(--ink); }
a.step-card:hover { border-color: var(--line-2); background: #fff; color: var(--ink); }
.step-card small { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.step-card b { font-size: 16.5px; }
.step-card span { font-size: 14px; color: var(--ink-2); }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ip-big { font-size: 30px; font-weight: 700; margin: 2px 0 10px; }
.ok-text { color: var(--ok); font-weight: 600; }
pre.cmd { background: var(--soft); border-radius: 12px; padding: 12px 14px; overflow-x: auto; font: 13.5px/1.6 var(--mono); margin: 0; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; max-width: 90%; }
.msg.staff { background: var(--accent-soft); border-color: var(--accent-line); align-self: flex-end; }
.msg-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; word-break: break-word; }

/* ---------- 第三轮：用户中心、我的套餐、钱包、账单、帮助 ---------- */
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.link svg { width: 15px; height: 15px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
html.net-off .with-side:has(.net-card[data-closable]) { grid-template-columns: minmax(0, 1fr) auto; }
.side-col { position: sticky; top: calc(var(--top-h) + 20px); }
.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.net-card { position: relative; padding: 30px 26px 20px; text-align: center; }
.net-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; }
.net-tools .icon-btn { width: 34px; height: 34px; }
.net-tools svg { width: 17px; height: 17px; }
.net-mark { width: 72px; height: 72px; margin: 4px auto 16px; border: 2px solid var(--ink); border-radius: 20px; position: relative;
  background: radial-gradient(circle, rgba(234,138,26,.22), rgba(234,138,26,0) 65%); }
.net-mark svg { width: 34px; height: 34px; color: var(--accent); }
.net-mark { display: flex; align-items: center; justify-content: center; }
.net-sub { font-size: 14px; color: var(--ink-2); }
.net-head { font-size: 30px; font-weight: 900; line-height: 1.2; margin: 4px 0 8px; }
.net-head.kind-our, .net-head.kind-residential { color: var(--ok); }
.net-head.kind-hosting { color: var(--warn); }
.net-head.kind-unknown, .net-head.kind-private { color: var(--ink-2); }
.net-desc { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.net-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.net-meter i { height: 6px; border-radius: 3px; background: var(--soft); }
.net-meter[data-level="1"] i:nth-child(1) { background: var(--warn); }
.net-meter[data-level="2"] i:nth-child(2) { background: var(--faint); }
.net-meter[data-level="3"] i:nth-child(3) { background: var(--ok); }
.net-meter-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.net-rows { margin: 0; text-align: left; font-size: 14px; }
.net-rows div { display: grid; grid-template-columns: 18px auto 1fr; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.net-rows svg { width: 17px; height: 17px; color: var(--muted); }
.net-rows dt { color: var(--ink-2); }
.net-rows dd { margin: 0; text-align: right; font-weight: 700; word-break: break-word; }
.net-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: left; }
.net-reopen { white-space: nowrap; }

.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.svc-card { margin-bottom: 16px; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.svc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 16px; }
.svc-stats div { display: flex; flex-direction: column; gap: 2px; }
.svc-stats small { font-size: 13px; color: var(--muted); }
.svc-stats b { font-size: 24px; font-weight: 800; line-height: 1.25; }
.svc-stats b.ip { font-size: 17px; padding: 4px 0 3px; }
.svc-stats em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--muted); }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.svc-actions { display: flex; gap: 8px; }
.svc-actions form { margin: 0; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-card { padding: 22px 26px 24px; }
.dash-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.dash-title > a, .dash-title > .btn { margin-left: auto; font-weight: 400; }
.dash-title > a:not(.btn) { color: var(--muted); text-decoration: none; }
.dash-title.pad { padding: 18px 26px; margin: 0; }
.dash-title svg { width: 18px; height: 18px; }
.dash-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dash-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-nums small { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.dash-nums b { font-size: 26px; font-weight: 800; }
.dash-nums .dot { margin: 0; }
.accent { color: var(--accent-ink); }
.ok-num { color: var(--ok); }
.warn-num { color: var(--warn); }
.svc-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 26px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.svc-row:hover { background: var(--soft); color: var(--ink); }
.svc-row-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-row-side { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.svc-row-side svg { width: 18px; height: 18px; }
.ip-chip { background: var(--soft); border-radius: 8px; padding: 3px 9px; font-size: 13px; color: var(--ink-2); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.quick { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; text-decoration: none; color: var(--ink); }
.quick:hover { border-color: var(--line-2); color: var(--ink); }
.quick .dash-ic { margin-bottom: 12px; }
.quick small { color: var(--muted); font-size: 13.5px; }

.subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: -8px 0 24px; overflow-x: auto; }
.subtabs a { padding: 10px 16px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subtabs a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.wallet-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.wallet-side { display: grid; gap: 14px; }
.wallet-side .card-body { padding: 18px 24px; }
.big-num { font-size: 44px; font-weight: 800; line-height: 1.15; margin: 4px 0 18px; }
.mid-num { font-size: 26px; font-weight: 800; margin-top: 2px; }
.recharge-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.recharge-form .field { flex: 1; min-width: 160px; }
.dot.acc { background: var(--accent); }
td.plus { color: var(--ok); font-weight: 700; }
td.minus { color: var(--warn); font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-grid .card-body { padding: 20px 24px; }
.filters { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filters select { width: auto; min-width: 150px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-size: 15px; }
.table-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.notice { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: 0; }
.notice.unread { background: var(--accent-soft); }
.notice-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice-head .small { margin-left: auto; }
.notice p { margin: 6px 0 4px; color: var(--ink-2); font-size: 15px; }
.invite-intro { text-align: center; padding: 48px 40px; }
.invite-intro h2 { font-size: 24px; margin-bottom: 14px; }
.invite-intro p { max-width: 640px; margin: 0 auto 12px; color: var(--ink-2); }
.invite-intro form { margin-top: 22px; }
.invite-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.invite-top .big-num { margin-bottom: 4px; }
.pay-balance { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 26px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; }
.pay-balance form { margin: 0; }

.doc-search { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 18px; margin-bottom: 8px; }
.doc-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.doc-search input { border: 0; height: 54px; font-size: 16px; }
.doc-search input:focus { border: 0; }
.doc-sec h2 { font-size: 21px; margin: 34px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.doc-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; text-decoration: none; color: var(--ink); }
.doc-card:hover { border-color: var(--line-2); color: var(--ink); }
.doc-card[hidden], .doc-sec[hidden] { display: none; }
.doc-card b { display: block; font-size: 16px; }
.doc-card small { color: var(--muted); font-size: 13px; }
.doc-card svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 48px; align-items: start; }
.doc-body h1 { font-size: 30px; margin: 6px 0 6px; }
.doc-body .prose { max-width: none; margin-top: 22px; }
.doc-body .prose h3 { font-size: 17px; margin: 22px 0 6px; color: var(--ink); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.doc-end { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.doc-aside { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.doc-aside b { margin-bottom: 8px; }
.doc-aside a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.doc-aside a:hover { color: var(--ink); }
.doc-aside .all { margin-top: 10px; color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; margin: -10px 0 8px; color: var(--muted); }
.doc-links a { color: var(--ink-2); }
.lead-p { font-size: 18px; color: var(--ink); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 8px; }
.vs-col { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff; }
.vs-col.ours { border-color: var(--accent-line); background: var(--accent-soft); }
.vs-col small { color: var(--muted); }
.vs-col h3 { margin: 4px 0 8px !important; }
.vs-col p { margin: 0; font-size: 15px; }
table.cmp td:first-child { color: var(--muted); white-space: nowrap; }
table.cmp td:last-child { font-weight: 600; color: var(--ink); }

@media (max-width: 1100px) {
  .with-side { grid-template-columns: 1fr; }
  .side-col { position: static; order: -1; }
  .with-side > .side-col { order: 0; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
}
@media (max-width: 900px) {
  .svc-stats, .stat-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid, .wallet-grid, .vs { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .dash-nums b { font-size: 21px; }
  .svc-row { flex-direction: column; align-items: flex-start; }
  .filters select { min-width: 0; flex: 1; }
}

@media (max-width: 900px) {
  .side { transform: translateX(-100%); }
  .main { margin-left: 0; }
  .side-open .side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .side-open .side-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.28); z-index: 15; }
  .topbar { padding: 0 12px; }
  .top-brand { display: flex; }
  .menu .mail { display: none; }
  .content .wrap { padding-left: 16px; padding-right: 16px; }
  .app-foot { padding: 20px 16px 28px; }
  .steps-row { grid-template-columns: 1fr; }
  .node-head { flex-direction: column; gap: 8px; }
}

/* ---------- 一键导入 Clash ---------- */
.clash-import { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.clash-qr { flex: none; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; line-height: 0; }
.clash-qr img { width: 150px; height: 150px; display: block; }
.clash-actions { flex: 1; min-width: 240px; }
.clash-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 560px) { .clash-import { justify-content: center; } }

/* 扫码付款 */
.pay-qr { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 16px; margin: 0 0 22px;
  border: 1px solid var(--line, #e5e5e5); border-radius: 14px; background: var(--card, #fff); }
.pay-qr figure { margin: 0; text-align: center; }
.pay-qr img { display: block; width: 180px; height: 180px; border-radius: 10px; }
.pay-qr figcaption { font-size: 13px; color: var(--muted, #777); margin-top: 6px; }
.pay-qr-text { flex: 1; min-width: 200px; }
.pay-qr-text b { font-size: 20px; }
.pay-qr-text p { margin: 8px 0 0; }
.pay-steps { margin: 10px 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.pay-steps code { font-size: 13px; }
.ok-text { color: #1f8a4c; }
.pay-usdt { padding: 16px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.pay-usdt-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.pay-usdt-body { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.pay-usdt-body > div { flex: 1; min-width: 240px; }
.pay-usdt-body .cred-row code { word-break: break-all; }
.pay-usdt-qr { width: 150px; height: 150px; border-radius: 8px; background: #fff; }
.usdt-amt { font-size: 18px; font-weight: 700; }
.pay-usdt-start { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; }
.pay-txid { margin-top: 12px; }
.pay-txid summary { cursor: pointer; color: var(--muted); }
.pay-txid-row { display: flex; gap: 8px; margin-top: 6px; }
.pay-txid-row input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font-family: ui-monospace, monospace; font-size: 13px; }

