/* 挂机宝 · Apple Liquid Glass 设计系统（基于 apple-liquid-glass skill 的 tokens） */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --hover: #fbfbfd;
  --text: #1d1d1f;
  --text-body: #424245;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --text-4: #aeaeb2;
  --faint: #d2d2d7;
  --hairline: rgba(0, 0, 0, 0.07);
  --accent: #0071e3;
  --accent-link: #0066cc;
  --indigo: #5e5ce6;
  --x-blue: #1d9bf0;
  --heat: #ff6b00;
  --heat-bg: rgba(255, 107, 0, 0.1);
  --live: #30d158;
  --danger: #ff3b30;
  --grad-cta: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-pill: 999px;
  --r-chip: 6px;
  --r-thumb: 12px;
  --r-card: 18px;
  --r-panel: 22px;
  --r-hero: 26px;
  --sh-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  --sh-panel: 0 1px 3px rgba(0,0,0,0.05), 0 14px 40px rgba(0,0,0,0.05);
  --sh-lift: 0 12px 32px rgba(0,0,0,0.1);
  --sh-cta: 0 20px 54px rgba(0,113,227,0.24);
  --sh-overlay: 0 2px 8px rgba(0,0,0,0.10), 0 30px 80px rgba(0,0,0,0.24);
  --track: #e8e8ed;
  --max-read: 720px;
  --max-grid: 1080px;
  --pad-x: 22px;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-optical-sizing: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent-link); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; color: var(--text); }
::placeholder { color: var(--text-4); }
.hide { display: none !important; }

/* 导航（唯一必须玻璃的地方） */
.glass-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,247,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.glass-nav.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.nav-inner {
  max-width: var(--max-grid); margin: 0 auto; padding: 0 var(--pad-x);
  height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--grad-cta); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,113,227,0.28);
}
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px;
  border-radius: var(--r-pill); background: rgba(0,0,0,0.05); color: var(--text);
  font-size: 13px; font-weight: 550; transition: background .15s;
}
.nav-link:hover { background: rgba(0,0,0,0.09); }
.nav-link .ic { width: 16px; height: 16px; color: var(--text-3); }

/* Hero */
.hero { max-width: var(--max-read); margin: 0 auto; padding: clamp(44px,8vw,76px) var(--pad-x) clamp(28px,5vw,44px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--text-3); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(48,209,88,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(48,209,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
}
.hero h1 { margin-top: 16px; font-size: clamp(32px,6vw,52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.hero p { margin-top: 16px; font-size: clamp(15px,2.5vw,18px); color: var(--text-2); line-height: 1.7; max-width: 560px; }
.hero .meta { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* 区块 */
.section { max-width: var(--max-read); margin: 0 auto; padding: 0 var(--pad-x) clamp(34px,6vw,56px); }
.section-title { font-size: 12px; font-weight: 650; letter-spacing: 0.14em; color: var(--text-4); margin-bottom: 14px; }

/* 统一面板 + 发丝分隔线 */
.panel { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--sh-panel); overflow: hidden; }
.row { padding: 20px clamp(18px,3vw,26px); }
.row + .row { border-top: 1px solid var(--hairline); }
.row-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 550; color: var(--text-3); margin-bottom: 9px; }
.row-hint { font-size: 12px; color: var(--text-4); font-weight: 400; }

/* 分段控件 */
.seg { display: inline-flex; background: rgba(0,0,0,0.05); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button {
  border: none; font-size: 13px; font-weight: 500; padding: 8px 18px; min-height: 38px;
  border-radius: var(--r-pill); background: transparent; color: var(--text-2);
  transition: all .25s var(--ease-out-quart);
}
.seg button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* 表单 */
.input {
  width: 100%; background: var(--surface); border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--r-thumb); padding: 12px 14px; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.14); }
.select {
  width: 100%; background: var(--surface); border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--r-thumb); padding: 12px; font-size: 14px;
}
.select:focus { outline: none; border-color: var(--accent); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 550; color: var(--text-3); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; border: none;
  transition: transform .1s ease-out, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0,113,227,0.22); }
.btn-primary:hover { background: #0077ed; }
.btn-secondary { background: rgba(255,255,255,0.8); border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 1px 2px rgba(0,0,0,0.05); color: var(--text); font-weight: 550; }
.btn-secondary:hover { background: #fff; }
.btn-danger { background: rgba(255,59,48,0.1); color: var(--danger); font-weight: 600; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 添加挂机账号卡片：左侧按钮 + 右侧三列流程，桌面填满空间 */
.add-card { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); padding: 22px clamp(18px,3vw,26px); }
.add-card-main { flex: none; }
.add-steps { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.add-step { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.add-step-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.05); color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.add-step-body { min-width: 0; }
.add-step-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.add-step-desc { margin-top: 2px; font-size: 11.5px; color: var(--text-4); line-height: 1.5; }

/* 标签 */
.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 550; padding: 3px 10px; border-radius: var(--r-pill); color: var(--text-2); background: rgba(0,0,0,0.05); }
.tag-accent { color: var(--accent-link); background: rgba(0,113,227,0.08); font-weight: 600; }
.tag-live { color: #1f9d50; background: rgba(48,209,88,0.1); font-weight: 650; }
.tag-heat { color: var(--heat); background: var(--heat-bg); font-weight: 650; }
.tag-mono { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #fff; background: var(--x-blue); padding: 2px 7px; border-radius: var(--r-chip); }

/* 状态反馈 */
.status { display: none; margin-top: 14px; padding: 12px 15px; border-radius: var(--r-thumb); font-size: 13px; line-height: 1.7; word-break: break-all; }
.status.show { display: block; }
.status.ok { background: rgba(48,209,88,0.1); color: #1f9d50; }
.status.err { background: rgba(255,59,48,0.08); color: var(--danger); }
.status.info { background: rgba(0,113,227,0.07); color: var(--accent-link); }
.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--text); word-break: break-all; }

/* 列表行 */
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px clamp(18px,3vw,26px); flex-wrap: wrap; }
.list-row + .list-row { border-top: 1px solid var(--hairline); }
.list-main { min-width: 0; }
.list-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.plat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; letter-spacing: 0; color: var(--text-2); background: rgba(0,0,0,0.05); padding: 3px 9px; border-radius: var(--r-pill); }
.plat-chip .pc-ic { width: 12px; height: 12px; flex: none; }
.plat-chip.bili { color: #fb7299; background: rgba(251,114,153,0.12); }
.plat-chip.netease { color: #c20c0c; background: rgba(194,12,12,0.10); }
.acc-name { font-weight: 600; }
.login-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; letter-spacing: -0.005em; color: var(--text-2); }
.login-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); }
.login-state.online { color: #1f9d50; }
.login-state.online .dot { background: var(--live); animation: pulse-dot 2.2s infinite; }
.login-state.offline { color: var(--heat); }
.login-state.offline .dot { background: var(--heat); }
.run-state { font-size: 12px; font-weight: 550; color: var(--text-3); }
.run-state.live { color: #1f9d50; }
.remain-days { font-size: 12px; font-weight: 600; color: #1f9d50; font-variant-numeric: tabular-nums; }
.list-sub { margin-top: 3px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.list-sub.dim { color: var(--text-4); }
.list-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; min-height: 0; }
.acc-check:empty { display: none; }
.acc-check-text { font-size: 12.5px; color: var(--text-3); }
.acc-check-text.err-text { color: var(--danger); }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 彩色 CTA（玻璃只在这里和导航/弹层出现） */
.cta { position: relative; overflow: hidden; border-radius: var(--r-hero); padding: clamp(28px,4vw,42px); background: var(--grad-cta); box-shadow: var(--sh-cta); color: #fff; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(46px); }
.cta h2 { position: relative; font-size: clamp(20px,3.4vw,26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.cta p { position: relative; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 480px; }
.cta .actions { position: relative; display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.glass-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 18px;
  border-radius: var(--r-pill); background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13.5px; font-weight: 550;
}
.glass-chip:hover { background: rgba(255,255,255,0.26); }

/* 页脚 */
.footer { max-width: var(--max-read); margin: 0 auto; padding: 26px var(--pad-x) 52px; font-size: 12px; color: var(--text-4); border-top: 1px solid var(--hairline); }

/* 弹层（玻璃材质化：模糊 + 缩放 + 透明度一起动） */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.28); opacity: 0; pointer-events: none; backdrop-filter: blur(0) saturate(160%); -webkit-backdrop-filter: blur(0) saturate(160%); transition: opacity .25s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease; z-index: 90; }
.scrim.open { opacity: 1; pointer-events: auto; backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%); }
.dialog {
  position: fixed; left: 50%; top: 50%; z-index: 91; width: min(92vw, 360px);
  background: rgba(255,255,255,0.86); border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--r-panel); box-shadow: var(--sh-overlay); padding: 24px;
  opacity: 0; pointer-events: none; transform: translate(-50%,-46%) scale(0.96);
  transition: opacity .4s var(--ease-spring), transform .4s var(--ease-spring), backdrop-filter .4s var(--ease-spring);
}
.dialog.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
#qr-scrim { z-index: 120; }
#qr-dialog { z-index: 121; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dialog-head h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.dialog-close {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: var(--r-pill); border: none; background: rgba(0,0,0,0.06); color: var(--text-2);
}
.dialog-close:active { transform: scale(0.94); }
.dialog img { width: 200px; height: 200px; display: block; margin: 0 auto; border-radius: var(--r-thumb); background: #fff; }
.qr-loading { width: 56px; height: 56px; margin: 40px auto; border: 3px solid rgba(0,0,0,0.08); border-top-color: var(--accent); border-radius: 50%; animation: qr-spin .8s linear infinite; display: none; }
@keyframes qr-spin { to { transform: rotate(360deg); } }
.dialog .tip { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 12px; }
.dialog .tip.qr-mobile-tip { font-size: 12px; color: var(--text-4); margin-top: 8px; line-height: 1.6; }
.dialog .actions { display: flex; gap: 10px; margin-top: 16px; }
.dialog .actions .btn { flex: 1; }
.dialog-lg { width: min(92vw, 440px); }
.alt-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--text-3); line-height: 1.55; }
.alt-login a { color: var(--accent-link); font-weight: 550; text-decoration: none; white-space: nowrap; }
.alt-login a:hover { text-decoration: underline; text-underline-offset: 3px; }
.alt-login-main { display: inline; }
.alt-login-how { border: none; background: none; padding: 2px 4px; font-family: inherit; font-size: 12px; font-weight: 550; color: var(--accent-link); cursor: pointer; border-radius: 6px; }
.alt-login-how:hover { text-decoration: underline; text-underline-offset: 3px; }
.alt-login-help { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-thumb); background: rgba(0,0,0,0.04); font-size: 12px; color: var(--text-2); line-height: 1.7; }
.alt-help-step { font-size: 12px; }
.detail-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.detail-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,0,0,0.035); border-radius: var(--r-thumb); padding: 8px 12px; font-size: 12.5px; color: var(--text-2); }
.detail-task .ok, .detail-log .ok { color: #1f9d50; font-weight: 600; }
.detail-task .bad, .detail-log .bad { color: var(--danger); font-weight: 600; }
.detail-log { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); padding: 6px 0; }
.detail-log + .detail-log { border-top: 1px solid var(--hairline); }

/* 公告横幅 + 客服/公告弹层内容 */
.notice { display: flex; align-items: stretch; gap: 8px; max-width: var(--max-grid); margin: 18px auto 0; }
.notice-inner {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left;
  background: rgba(0,113,227,0.07); border: 1px solid rgba(0,113,227,0.14); border-radius: var(--r-thumb);
  padding: 10px 14px; color: var(--text-body); font-size: 13px; cursor: pointer;
  transition: background .15s;
}
.notice-inner:hover { background: rgba(0,113,227,0.11); }
.notice-badge { flex: none; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: 2px 9px; }
.notice-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-body); }
.notice-hint { flex: none; font-size: 12px; color: var(--accent-link); font-weight: 550; }
.notice-close {
  flex: none; width: 32px; border-radius: 10px; border: none; background: rgba(0,0,0,0.05);
  color: var(--text-3); font-size: 16px; line-height: 1; transition: background .15s, color .15s;
}
.notice-close:hover { background: rgba(0,0,0,0.09); color: var(--text); }
.cs-body { font-size: 14px; line-height: 1.8; color: var(--text); white-space: pre-line; word-break: break-word; }
.ann-list { max-height: 52vh; overflow-y: auto; }
.ann-item { padding: 13px 2px; }
.ann-item + .ann-item { border-top: 1px solid var(--hairline); }
.ann-title { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.ann-meta { margin-top: 2px; font-size: 11.5px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.ann-content { margin-top: 6px; font-size: 13px; color: var(--text-body); white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
.ann-empty { padding: 18px 0; text-align: center; font-size: 13px; color: var(--text-3); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.6; }

/* 商城 + 收银台 + 订单 */
.price-label { font-size: 12px; font-weight: 550; color: var(--text-3); }
.price-value { margin-top: 4px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.price-sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.pay-info { text-align: center; }
.pay-amount { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pay-meta { margin-top: 8px; font-size: 13px; color: var(--text-2); word-break: break-all; }
.pickup { font-family: var(--mono); font-weight: 700; color: var(--accent-link); letter-spacing: 0.08em; }
.pay-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.pay-qr { width: 210px; height: 210px; margin: 16px auto; display: block; border-radius: var(--r-thumb); background: #fff; }
.pay-ok { font-size: 18px; font-weight: 700; color: #1f9d50; text-align: center; }
.key-box { background: rgba(0,0,0,0.035); border: 1px solid var(--hairline); border-radius: var(--r-thumb); padding: 12px 14px; margin-top: 10px; white-space: pre-wrap; word-break: break-all; }
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); margin-top: 12px; cursor: pointer; }
.switch-row input { accent-color: var(--accent); }
.product-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.product-row + .product-row { border-top: 1px solid var(--hairline); }
.product-name { width: 120px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.product-price-input { width: 120px; }

/* 图标 */
.ic { flex: none; }

@media (max-width: 680px) {
  .field-grid { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; align-items: stretch; }
  .list-row { flex-direction: column; align-items: flex-start; }
  .add-card { flex-direction: column; align-items: stretch; }
  .add-card-main .btn { width: 100%; }
  .add-steps { grid-template-columns: 1fr; gap: 12px; }
  .notice-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .dialog { transition: opacity 200ms ease; transform: none !important; }
  .scrim { transition: opacity 200ms ease; }
  .live-dot { animation: none; }
  .qr-loading { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-nav, .dialog { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass-nav, .dialog { background: #fff; border-bottom: 1px solid rgba(0,0,0,0.35); }
}

/* ============ 左右结构布局（桌面侧边栏 + 主内容） ============ */
.shell { min-height: 100vh; display: flex; }
.sidebar {
  position: sticky; top: 0; height: 100vh; width: 250px; flex: none;
  background: var(--surface); border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto;
}
.sidebar .brand { padding: 4px 10px; }
.side-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; flex: 1; }
.menu-label { font-size: 11px; font-weight: 650; letter-spacing: 0.12em; color: var(--text-4); padding: 0 12px; margin: 18px 0 6px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px;
  border-radius: 10px; border: none; background: transparent; color: var(--text-2);
  font-size: 14px; font-weight: 500; text-align: left; text-decoration: none;
  transition: background .15s, color .15s;
}
.menu-item .ic { width: 18px; height: 18px; color: var(--text-3); transition: color .15s; }
.menu-item:hover { background: var(--hover); color: var(--text); }
.menu-item.active { background: rgba(0,113,227,0.08); color: var(--accent-link); font-weight: 600; }
.menu-item.active .ic { color: var(--accent); }
.sidebar-foot { border-top: 1px solid var(--hairline); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.main { flex: 1; min-width: 0; }
.main-inner { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad-x); }
.section.grid { max-width: 1080px; }

/* 统计卡（管理后台概览） */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-card);
  padding: 18px 20px; transition: transform .2s var(--ease-out-quart), box-shadow .2s var(--ease-out-quart);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.stat-label { font-size: 12.5px; font-weight: 550; color: var(--text-3); }
.stat-value { margin-top: 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-sub { margin-top: 3px; font-size: 12px; color: var(--text-4); }

/* 视图切换 */
.view { display: none; }
.view > .section:first-child { padding-top: clamp(28px, 5vw, 44px); }
.view.active { display: block; }

/* 手机顶栏 + 抽屉 */
.topbar {
  display: none; position: sticky; top: 0; z-index: 60; height: 54px; align-items: center;
  justify-content: space-between; padding: 0 16px;
  background: rgba(245,245,247,0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.hamburger {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; border: none; background: rgba(0,0,0,0.05); color: var(--text);
}
.hamburger:active { transform: scale(0.94); }
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.28); z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(82vw, 300px); z-index: 101;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--sh-overlay); padding: 18px 14px; display: none; flex-direction: column;
  transform: translateX(-100%); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-spring), opacity .4s var(--ease-spring);
}
.drawer.open { transform: none; opacity: 1; pointer-events: auto; }

.side-user {
  padding: 12px 14px 8px;
  border-top: 1px solid var(--hairline);
  margin-bottom: 4px;
}
.side-user-mail {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 920px) {
  .sidebar { display: none; }
  .topbar { display: flex; }
  .drawer { display: flex; }
  .main-inner { padding: 0 16px; }
  .hero { padding-top: clamp(30px,6vw,48px); }
}
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: opacity 200ms ease; transform: none !important; }
  .drawer-scrim { transition: opacity 200ms ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .drawer { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .topbar, .drawer { background: #fff; }
  .drawer { border-right: 1px solid rgba(0,0,0,0.35); }
}

/* 独立登录页 */
.login-page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(24px, 6vh, 56px) 20px;
  background: var(--bg);
}
.login-inner {
  width: 100%;
  max-width: 440px;
  display: flex; flex-direction: column; align-items: center;
}
.login-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
  margin-bottom: clamp(22px, 4vh, 34px);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-panel);
  padding: clamp(24px, 4vw, 34px);
}
.login-head { text-align: center; }
.login-title {
  font-size: clamp(26px, 4.5vw, 32px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.12;
  color: var(--text);
}
.login-sub {
  margin-top: 8px;
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.login-card .seg {
  display: flex; width: 100%;
  margin-top: 22px;
  background: rgba(0,0,0,0.05);
  border-radius: var(--r-pill);
  padding: 3px; gap: 2px;
}
.login-card .seg button {
  flex: 1; min-height: 44px;
  border: none; cursor: pointer; font-size: 13px; font-weight: 550;
  border-radius: var(--r-pill); background: transparent; color: var(--text-2);
  transition: all .25s var(--ease-out-quart);
}
.login-card .seg button.active {
  background: var(--surface); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.login-fields {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 22px;
}
.login-fields .field { gap: 7px; }
.login-fields .field label { font-size: 13px; font-weight: 550; color: var(--text-3); }
.code-row { display: flex; gap: 10px; align-items: center; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn {
  flex-shrink: 0;
  width: auto;
  min-height: 44px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--accent);
}
.code-row .btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.code-row .btn:disabled { color: var(--text-4); }
.login-tip {
  font-size: 12px; color: var(--text-3); line-height: 1.6;
}
.login-fields .btn { width: 100%; min-height: 46px; margin-top: 2px; }
.login-fields .code-row .btn { width: auto; }
.login-foot {
  margin-top: clamp(18px, 3vh, 26px);
  font-size: 12px; color: var(--text-4);
}
@media (max-width: 480px) {
  .login-inner { max-width: 100%; }
  .login-card { border-radius: var(--r-card); }
}
