/* 会员门户（登录、管理后台、会员详情、我的账户）共用样式：和工作台同一套紫色 */
:root {
  --bg: #f6f4ff;
  --surface: #ffffff;
  --surface-2: #faf9ff;
  --line: #ece8fb;
  --line-2: #ddd5fb;
  --text: #1f1b4d;
  --text-2: #4a4680;
  --muted: #7a76a6;
  --faint: #aaa6cc;
  --primary: #6d4aff;
  --primary-2: #8b5cf6;
  --primary-soft: #f1edff;
  --primary-ring: rgba(109, 74, 255, .16);
  --grad: linear-gradient(135deg, #6d4aff 0%, #8b5cf6 55%, #c04bf2 100%);
  --ok: #059669; --ok-bg: #e8f8f1;
  --warn: #b45309; --warn-bg: #fff4dc;
  --err: #dc2626; --err-bg: #fdeeee;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(60, 40, 160, .05);
  --shadow: 0 1px 2px rgba(60, 40, 160, .04), 0 8px 24px rgba(60, 40, 160, .06);
  --shadow-lg: 0 24px 60px rgba(50, 30, 140, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .err-t { color: var(--err); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text-2);
  font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .15s var(--ease); text-decoration: none !important;
}
.btn:hover { border-color: #c9bdfb; color: var(--primary); background: #fcfbff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(109, 74, 255, .28); }
.btn.primary:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 8px 22px rgba(109, 74, 255, .36); }
.btn.soft { border-color: transparent; background: var(--primary-soft); color: var(--primary); }
.btn.soft:hover { background: #e7e0ff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.danger { color: var(--err); border-color: #f5c9c9; }
.btn.danger:hover { background: var(--err-bg); border-color: #efb1b1; color: var(--err); }
.btn.danger.solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger.solid:hover { filter: brightness(1.05); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.icon-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: #cdc3fa; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg.i { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.input-wrap > .input { padding-left: 38px; }
.input-wrap > .suffix { position: absolute; right: 12px; color: var(--muted); font-size: 13px; pointer-events: none; }
.input-wrap > .input.has-suffix { padding-right: 52px; }
.input-wrap > .eye { position: absolute; right: 6px; border: 0; background: none; color: var(--faint); cursor: pointer; padding: 6px; display: flex; border-radius: 6px; }
.input-wrap > .eye:hover { color: var(--primary); background: var(--primary-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* 分段选择（会员时长等） */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 500; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(60, 40, 160, .12); }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #dcd8ee; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--primary-ring); }

/* ---------- 卡片、标签 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15px; }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.card-desc { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: #f0eef7; color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-2); font-size: 12px; white-space: nowrap; }
.chip svg.i { width: 14px; height: 14px; color: var(--muted); }
.note { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.note.warn { background: var(--warn-bg); border-color: #f6dfa8; color: var(--warn); }
.note.err { background: var(--err-bg); border-color: #f5caca; color: var(--err); }
.note.ok { background: var(--ok-bg); border-color: #b9ead5; color: var(--ok); }
.bar { height: 6px; border-radius: 99px; background: #eeebf8; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.bar.warn > i { background: #f59e0b; } .bar.err > i { background: #ef4444; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #5b4bc4; font-weight: 700; font-size: 14px;
  background: #ece9fb; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.icon-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.icon-tile.ok { background: var(--ok-bg); color: var(--ok); }
.icon-tile.warn { background: var(--warn-bg); color: var(--warn); }
.icon-tile.err { background: var(--err-bg); color: var(--err); }
.icon-tile.sky { background: #e7f4fe; color: #0284c7; }
.icon-tile.pink { background: #fdecf6; color: #db2777; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 24px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 6px 14px rgba(109, 74, 255, .3); }
.brand-mark svg.i { width: 18px; height: 18px; }
.brand .tag { padding: 2px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: none !important; }
.nav a:hover, .nav button:hover { color: var(--text); }
.nav .on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(60, 40, 160, .12); }
.topbar .spacer { flex: 1; }
.disk { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.disk .bar { width: 90px; }
.menu-wrap { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); cursor: pointer; font-weight: 600; color: var(--text-2); }
.user-btn .avatar { width: 30px; height: 30px; font-size: 13px; }
.menu { position: fixed; z-index: 60; min-width: 180px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); animation: pop .14s var(--ease); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text-2); font-size: 13px; cursor: pointer; text-align: left; text-decoration: none !important; }
.menu button:hover, .menu a:hover { background: var(--primary-soft); color: var(--primary); }
.menu .danger { color: var(--err); }
.menu .danger:hover { background: var(--err-bg); color: var(--err); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu svg.i { width: 16px; height: 16px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (max-width: 860px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .brand .name, .disk { display: none; }
  .nav a, .nav button { padding: 0 10px; }
  .nav .lbl { display: none; }
}

/* ---------- 页面 ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: .2px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.kpi .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
.kpi .k { color: var(--muted); font-size: 13px; }
.kpi .s { color: var(--faint); font-size: 12px; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { width: 260px; max-width: 100%; }
.search .input { height: 36px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--muted); font-size: 13px; cursor: pointer; }
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button.on { background: var(--primary-soft); border-color: #d9cffd; color: var(--primary); font-weight: 600; }
.filters .n { min-width: 18px; padding: 0 5px; border-radius: 99px; background: rgba(109, 74, 255, .08); font-size: 11px; text-align: center; }

/* ---------- 表格 ---------- */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fbfaff; }
tbody tr:last-child td { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 12px; min-width: 170px; }
.who .name { font-weight: 700; color: var(--text); }
.who .sub { color: var(--muted); font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.stack .sub { color: var(--muted); font-size: 12px; }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); }
.empty .icon-tile { margin: 0 auto 12px; width: 52px; height: 52px; border-radius: 16px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #cfcbe3; margin-right: 6px; }
.dot.on { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; height: 46px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--primary); }
.tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- 弹窗、提示 ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(30, 20, 80, .32);
  backdrop-filter: blur(3px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface);
  border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease); }
.modal.wide { max-width: 600px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 0; }
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; }
.modal-body p { margin: 0 0 12px; color: var(--text-2); }
.cred { position: relative; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.9; white-space: pre-wrap; word-break: break-all; }
.success-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 12px; background: var(--ok-bg); color: var(--ok); }
.success-mark svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
.toasts { position: fixed; z-index: 80; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #1f1b4d; color: #fff; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); max-width: min(560px, calc(100vw - 32px)); }
.toast.err { background: #b91c1c; }
.toast svg.i { width: 16px; height: 16px; }
.opt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.opt-cards button { padding: 12px 6px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; transition: all .15s; }
.opt-cards button b { display: block; font-size: 16px; color: var(--text); }
.opt-cards button span { font-size: 12px; color: var(--muted); }
.opt-cards button:hover { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 520px) { .opt-cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 设置页 ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }

/* ---------- 每日用量小柱状图 ---------- */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 4px 0; }
.spark i { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; background: var(--grad); opacity: .85; }
.spark i.zero { background: #ece8fb; opacity: 1; }

/* ---------- 登录页 ---------- */
.auth { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% 0%, #ebe5ff 0%, transparent 60%), radial-gradient(900px 600px at 100% 100%, #e3f1ff 0%, transparent 55%), #f8f7ff; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob.a { width: 520px; height: 520px; left: -170px; top: -200px; background: radial-gradient(circle at 60% 60%, rgba(139, 92, 246, .22), rgba(139, 92, 246, .04) 70%);
  border: 1px solid rgba(255, 255, 255, .7); }
.blob.b { width: 440px; height: 440px; right: -140px; bottom: -180px; background: radial-gradient(circle at 40% 40%, rgba(56, 189, 248, .2), rgba(192, 75, 242, .05) 70%);
  border: 1px solid rgba(255, 255, 255, .7); }
.blob.c { width: 140px; height: 140px; right: 30%; top: 12%; background: radial-gradient(circle, rgba(236, 72, 153, .12), transparent 70%); }
.auth-wrap { position: relative; width: 100%; max-width: 1060px; display: grid; grid-template-columns: 1.1fr 420px; gap: 72px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line-2); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
.hero .title { display: flex; align-items: center; gap: 18px; margin: 22px 0 18px; }
.hero .logo { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 14px 30px rgba(109, 74, 255, .35); transform: rotate(-6deg); }
.hero .logo svg.i { width: 34px; height: 34px; stroke-width: 2.1; }
.hero h1 { margin: 0; font-size: 44px; line-height: 1.15; letter-spacing: 1px; background: linear-gradient(120deg, #1f1b4d 30%, #6d4aff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.hero .lead { margin: 0 0 26px; max-width: 470px; color: var(--text-2); font-size: 16px; line-height: 1.9; }
.features { display: grid; gap: 12px; max-width: 470px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }
.feature b { display: block; font-size: 14px; }
.feature span { color: var(--muted); font-size: 12px; }
.auth-card { position: relative; padding: 38px 36px 30px; background: var(--surface); border-radius: 22px; box-shadow: 0 30px 70px rgba(60, 40, 160, .14), 0 2px 6px rgba(60, 40, 160, .05); }
.auth-card::before { content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); }
.auth-card h2 { margin: 0; font-size: 24px; }
.auth-card .welcome { margin: 6px 0 26px; color: var(--muted); font-size: 13px; }
.auth-card .input { height: 46px; border-radius: 12px; background: var(--surface-2); }
.auth-card .input:focus { background: var(--surface); }
.auth-card .field > label::before { content: "*"; color: var(--err); margin-right: 4px; }
.auth-card .btn.primary { letter-spacing: 6px; margin-top: 6px; }
.auth-foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; }
@media (max-width: 920px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; max-width: 440px; }
  .hero .lead, .features, .hero .eyebrow { display: none; }
  .hero .title { margin: 0; justify-content: center; }
  .hero h1 { font-size: 30px; }
  .hero .logo { width: 52px; height: 52px; border-radius: 16px; }
  .auth-card { padding: 30px 22px 24px; }
}

/* 账户页：采集助手 */
.ext-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 16px; }
.ext-lock { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fdf3e7; color: #a45a12;
  border: 1px solid #f3dcbf; font-size: 13px; font-weight: 600; }
.ext-lock svg { width: 14px; height: 14px; }
.steps.compact li { margin-bottom: 6px; }
.hl { color: #c2410c; background: #fff1e6; padding: 0 4px; border-radius: 4px; }

.mods-cell { display: grid; grid-template-columns: repeat(3, max-content); gap: 6px; }
/* 功能权限：小标签开关（开 = 实心紫色带勾，关 = 灰色虚线） */
.mod-chip { position: relative; cursor: pointer; user-select: none; }
.mod-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.mod-chip span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 8px; font-size: 12px; white-space: nowrap;
  color: var(--muted); background: #fafafe; border: 1px dashed #d6d1ea; transition: background .18s, color .18s, border-color .18s; width: 100%; box-sizing: border-box; }
.mod-chip span i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid #cfc9e6; flex: none; position: relative; transition: background .18s, border-color .18s; }
.mod-chip input:checked + span { color: var(--primary); background: var(--primary-soft); border: 1px solid transparent; font-weight: 600; }
.mod-chip input:checked + span i { background: var(--primary); border-color: var(--primary); }
.mod-chip input:checked + span i::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.mod-chip:hover span { border-color: var(--primary); }
.mod-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-ring); }
/* 找同款通道：普通 / 优先 两段切换 */
.pseg { display: inline-flex; flex-wrap: nowrap; padding: 3px; border-radius: 10px; background: #f1eff9; gap: 2px; }
.pseg button { border: 0; background: transparent; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; font-family: inherit; }
.pseg button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(40, 30, 100, .14); }
.pseg button.vip.on { background: linear-gradient(135deg, #ffb547, #ff8a3d); color: #fff; box-shadow: 0 2px 8px rgba(255, 138, 61, .35); }
/* 令牌输入框：显示成圆点，但不是密码框（否则浏览器会把页面当登录表单，往搜索框里自动填账号） */
.input.masked { -webkit-text-security: disc; }
.input.masked:focus { -webkit-text-security: none; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- 提示词 ---------- */
.pv-bar { margin-bottom: 16px; }
.pv-bar-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pv-vers { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-ver { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; padding: 9px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: all .15s; }
.pv-ver:hover { border-color: #cfc6f5; transform: translateY(-1px); }
.pv-ver.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 4px 14px rgba(109, 74, 255, .14); }
.pv-ver-t { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.pv-ver-t i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #16a34a; color: #fff; }
.pv-ver-s { font-size: 12px; color: var(--muted); }
.pv-main { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .pv-main { grid-template-columns: 1fr; } }
.pv-nav { position: sticky; top: 76px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
.pv-search { padding: 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pv-only { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.pv-tree { overflow-y: auto; padding: 8px; }
.pv-board { border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--line); overflow: hidden; }
.pv-board-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text); text-align: left; }
.pv-b-direct .pv-board-h { background: linear-gradient(90deg, #efeaff, #f8f6ff); }
.pv-b-logo .pv-board-h { background: linear-gradient(90deg, #fde8f3, #fff6fb); }
.pv-b-fill .pv-board-h { background: linear-gradient(90deg, #e3f2fd, #f5fbff); }
.pv-b-direct { border-left: 4px solid #6d4aff; } .pv-b-logo { border-left: 4px solid #db2777; } .pv-b-fill { border-left: 4px solid #0284c7; }
.pv-emo { font-size: 16px; }
.pv-cnt { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: var(--primary); color: #fff; }
.pv-car svg { width: 14px; height: 14px; transition: transform .2s; transform: rotate(-90deg); }
.pv-board.open .pv-car svg { transform: none; }
.pv-group { padding: 4px 6px 8px; }
.pv-group-h { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .3px; padding: 8px 8px 4px; text-transform: uppercase; }
.pv-item { width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 13px; color: var(--text-2); text-align: left; }
.pv-item:hover { background: var(--surface-2); }
.pv-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.pv-item .ell { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.pv-dot.unsaved { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.pv-ed { padding: 20px 22px; min-height: 480px; }
.pv-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; margin-bottom: 10px; }
.pv-crumb.pv-b-direct { background: #efeaff; color: #5b3fd6; border: 0; } .pv-crumb.pv-b-logo { background: #fde8f3; color: #be185d; border: 0; }
.pv-crumb.pv-b-fill { background: #e3f2fd; color: #0369a1; border: 0; }
.pv-sep { opacity: .5; }
.pv-ed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pv-ed-head h2 { margin: 0; font-size: 18px; }
.pv-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.pv-fields code { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: #fff7e6; color: #b45309; border: 1px solid #f6dfb0; }
.pv-ftip { font-size: 12px; color: var(--muted); margin-right: 8px; }
.pv-text { width: 100%; min-height: 360px; resize: vertical; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.65; padding: 12px 14px; }
.pv-ed-foot { margin-top: 10px; }
.pv-save { position: sticky; bottom: 16px; z-index: 20; margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 14px; background: #fff; border: 1px solid #f6dfb0; box-shadow: 0 10px 30px rgba(60, 40, 160, .16); flex-wrap: wrap; }
.pv-save-dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }

/* 手机上按电脑版排版：不让浏览器自动放大字号把排版挤乱 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 会员列表：日期、数字不折行，单元格稍紧凑，一行看完 */
#rows td { padding: 12px 10px; }
#rows .num, #rows .stack > span { white-space: nowrap; }
.page.page-wide { max-width: 1400px; }  /* 管理后台会员列表列多：放宽一点，操作按钮不被挤出去 */
