/* ============================================================
   至善盾 全站设计系统（移动端自适应）
   ============================================================ */
:root {
  --primary: #4f6ef2;
  --primary-2: #8b5cf6;
  --grad: linear-gradient(135deg, #4f6ef2 0%, #8b5cf6 100%);
  --bg: #f3f5fb;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #7a8290;
  --border: #e5e9f2;
  --ok: #16a34a;
  --ok-bg: #e8f9ef;
  --warn: #d97706;
  --warn-bg: #fff6e6;
  --err: #dc4a4a;
  --err-bg: #fdf0f0;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(35, 46, 90, .07);
  --shadow-lg: 0 12px 40px rgba(35, 46, 90, .16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: .92rem; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.topbar {
  /*position: sticky; top: 0; z-index: 40;*/
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px clamp(14px, 4vw, 28px);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; font-weight: 800; letter-spacing: .5px; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 17px;
}
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 顶部导航三项（计算/用户中心/联络方式）统一细外框按钮风格，随主题变色 */
.nav-links a, .nav-links .nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--text);
  font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.nav-links a:hover, .nav-links .nav-btn:hover {
  border-color: var(--primary); background: var(--chip); color: var(--primary);
}
.nav-links a.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.user-area { display: flex; align-items: center; gap: 10px; font-size: .92rem; }

/* ---------- 布局 ---------- */
.container { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 22px 16px 40px; }
.container.wide { max-width: 1120px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(18px, 3.5vw, 28px); box-shadow: var(--shadow); margin-bottom: 18px;
}
.card h2 { margin: 2px 0 8px; font-size: 1.25rem; }
.card h3 { margin: 2px 0 8px; font-size: 1.05rem; }
.footer { text-align: center; padding: 20px 14px 30px; color: var(--muted); font-size: .85rem; }

.hero { text-align: center; margin: 6px 0 22px; }
.hero h1 {
  margin: 0 0 8px; font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 11px; padding: 11px 18px; font-size: .98rem; font-weight: 600;
  cursor: pointer; text-decoration: none; color: #fff; transition: transform .12s, filter .15s, box-shadow .15s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); box-shadow: 0 4px 14px rgba(79, 110, 242, .35); }
.btn-ghost { background: #eef1f8; color: var(--text); }
.btn-soft { background: #eef2ff; color: var(--primary); }
.btn-danger { background: var(--err); }
.btn-wechat { background: #07c160; }
.btn-qq { background: #12b7f5; }
.btn-douyin { background: #161823; }
.btn-sm { padding: 6px 12px; font-size: .84rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
input, textarea, select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 11px;
  padding: 11px 13px; font-size: .97rem; font-family: inherit; outline: none;
  background: #fff; color: var(--text); transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
textarea { resize: vertical; font-family: Consolas, Menlo, monospace; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #3c4250; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: #d6dae4; transition: background .18s; cursor: pointer;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* ---------- 统计卡片 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat {
  background: #f8f9fe; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 15px; font-size: .82rem; color: var(--muted);
}
.stat b { display: block; font-size: 1.05rem; color: var(--text); margin-top: 4px; }
.stat b.ok { color: var(--ok); }
.stat b.warn { color: var(--warn); }
.stat b.price { color: var(--primary); }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.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.gray { background: #f1f2f6; color: var(--muted); }
.badge.blue { background: #eef2ff; color: var(--primary); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: #fafbfe; }
td.break { white-space: normal; word-break: break-all; min-width: 140px; max-width: 260px; }
tr:last-child td { border-bottom: none; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(18, 22, 40, .5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 14px;
}
.modal-box {
  background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.modal-head .close { border: none; background: #f1f2f6; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--muted); }
dialog { border: none; border-radius: 16px; padding: 22px; width: min(92vw, 380px); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(18, 22, 40, .5); }

/* ---------- 套餐 / 支付方式选择 ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.plan {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 12px; cursor: pointer;
  text-align: center; transition: border-color .15s, background .15s, transform .12s;
}
.plan:hover { border-color: var(--primary); background: #f7f9ff; transform: translateY(-2px); }
.plan .p-name { font-size: .9rem; color: var(--muted); }
.plan .p-price { font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0; }
.plan .p-quota { font-size: .76rem; color: var(--muted); line-height: 1.7; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
  cursor: pointer; font-size: .9rem; font-weight: 600; transition: all .15s; font-family: inherit; color: var(--text);
}
.chip:hover { border-color: var(--primary); }
.chip.active { border-color: var(--primary); background: #eef2ff; color: var(--primary); }

/* ---------- 支付面板 ---------- */
.order-line { margin: 12px 0 4px; font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-amount { font-size: 1.7rem; font-weight: 800; text-align: center; margin: 10px 0 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-qr-wrap { text-align: center; margin: 10px 0; }
.pay-qr-wrap img { width: 200px; height: 200px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: #fafafa; }
.pay-hint { line-height: 1.7; background: #f8f9fe; border-radius: 10px; padding: 10px 12px; font-size: .85rem; }
.pay-actions { display: flex; gap: 10px; margin-top: 14px; }
.pay-actions .btn { flex: 1; }
.pay-status { margin-top: 12px; font-weight: 700; text-align: center; min-height: 1.4em; }
.pay-status.ok { color: var(--ok); }
.pay-status.warn { color: var(--warn); }

/* ---------- 计算页 ---------- */
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.action-row .btn { flex: 1; min-width: 130px; }
.result { margin-top: 16px; border-radius: 12px; padding: 14px 16px; font-size: .98rem; white-space: pre-wrap; word-break: break-all; line-height: 1.7; }
.result.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe8d2; }
.result.err { background: var(--err-bg); color: var(--err); border: 1px solid #f3caca; }
.code-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8rem; color: var(--muted); }

/* ---------- 登录页 ---------- */
body.login-page {
  background: radial-gradient(1000px 500px at 15% -10%, #dfe7ff 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 110%, #efe4ff 0%, transparent 55%), var(--bg);
}
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow-lg); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; text-align: center; }
.login-brand .logo-lg {
  width: 58px; height: 58px; border-radius: 16px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff;
  box-shadow: 0 8px 22px rgba(79, 110, 242, .4);
}
.login-brand h1 { margin: 0; font-size: 1.35rem; }
.login-sub { color: var(--muted); font-size: .9rem; }
.login-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.login-btns .btn { width: 100%; padding: 13px; font-size: 1rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- 用户中心 ---------- */
.profile-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar {
  width: 62px; height: 62px; border-radius: 18px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; flex: none;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-info .name { font-size: 1.15rem; font-weight: 800; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- 后台 ---------- */
.admin-shell { display: flex; flex: 1; min-height: 0; }
.admin-side {
  width: 218px; flex: none; background: #fff; border-right: 1px solid var(--border);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 4px;
}
.admin-side .side-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; padding: 4px 10px 16px; font-size: 1.05rem; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px;
  color: var(--muted); font-weight: 600; font-size: .93rem; cursor: pointer; border: none; background: none;
  font-family: inherit; text-align: left; transition: all .13s; width: 100%;
}
.side-link:hover { background: #f2f4fb; color: var(--text); }
.side-link.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(79, 110, 242, .3); }
.admin-main { flex: 1; min-width: 0; padding: 20px clamp(14px, 3vw, 26px) 40px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-top h2 { margin: 0; font-size: 1.25rem; }

.m-tabs { display: none; }

/* 设置页方法卡片 */
.method-card { border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin-bottom: 14px; background: #fff; }
.method-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.method-head .m-icon {
  width: 42px; height: 42px; border-radius: 12px; background: #eef2ff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.method-head .m-title { flex: 1; min-width: 160px; }
.method-head .m-title b { font-size: 1rem; }
.method-head .m-title .desc { font-size: .8rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.method-body { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.notify-row {
  display: flex; align-items: center; gap: 8px; background: #f8f9fe; border: 1px dashed var(--border);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: .8rem; color: var(--muted); flex-wrap: wrap;
}
.notify-row code { word-break: break-all; }

/* 工具条 / 分页 */
.toolbar { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }

/* toast */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(30, 34, 50, .92); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: rgba(180, 40, 40, .95); }
#toast.ok { background: rgba(22, 120, 70, .95); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .admin-shell { flex-direction: column; }
  .admin-side {
    width: 100%; flex-direction: row; overflow-x: auto; padding: 8px 10px;
    border-right: none; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  }
  .admin-side .side-brand { display: none; }
  .side-link { width: auto; white-space: nowrap; padding: 9px 14px; }
  .admin-main { padding: 16px 12px 40px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 14px; }
  .nav-links a, .nav-links .nav-btn { padding: 7px 10px; font-size: .88rem; }
  .container { padding: 14px 12px 34px; }
  .plan-grid { gap: 9px; }
  .plan { padding: 13px 8px; }
  .plan .p-price { font-size: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-actions { width: 100%; }
  .profile-actions .btn { flex: 1; }
  .action-row { flex-direction: column; }
  th, td { padding: 8px 9px; }
  .modal-box { padding: 18px 16px; border-radius: 16px; }
  .form-row { flex-direction: column; gap: 0; }
  .toolbar { width: 100%; }
  .toolbar input, .toolbar select { flex: 1; min-width: 0; }
  .login-card { padding: 24px 18px; }
}

/* 补充：绿色按钮与警示文字 */
.btn-success{background:var(--ok)}
.btn-success:hover{filter:brightness(1.08)}
.err-text{color:var(--err)}
.btn[disabled].gray-btn{opacity:.45}

/* ===== 全站自适应补充：图形/嵌入内容不撑破容器，页面随屏宽伸缩 ===== */
img, canvas, svg, video, iframe { max-width: 100%; }

/* ===== 全站主题系统（10 套页面风格，data-theme 由页面头部脚本从 localStorage 应用） ===== */
html[data-theme="classic"] { --bg: linear-gradient(180deg,#e7eefc 0%,#f5f7fb 380px,#f5f7fb 100%); --card:#ffffff; --card-head:#a8d8ee; --card-head-line:#c9d9f7; --line:#e4e8f0; --text:#1f2937; --text-sub:#6b7280; --primary:#2f6bff; --accent:#ff8a3d; --input-bg:#ffffff; --param-bg:#f5f8fd; --chip:#eef3fe; --ring: rgba(47,107,255,.16); --shadow:0 4px 14px rgba(31,41,55,.07); --btn-grad: linear-gradient(135deg,#ff9a3d,#ff6a00); }
html[data-theme="dark"] { --bg: linear-gradient(180deg,#0b0e14 0%,#131722 380px,#131722 100%); --card:#1a1e29; --card-head:#2b3348; --card-head-line:#3a445e; --line:#2b3140; --text:#e6e9f0; --text-sub:#8b93a7; --primary:#4c8dff; --accent:#ffb057; --input-bg:#141821; --param-bg:#20242f; --chip:#232836; --ring: rgba(76,141,255,.22); --shadow:0 6px 18px rgba(0,0,0,.45); --btn-grad: linear-gradient(135deg,#4c8dff,#2f6bff); }
html[data-theme="tech"] { --bg: radial-gradient(circle at 18% 0%, #0d3b66 0%, #061a2e 55%, #04101d 100%); --card:#0c2036; --card-head:#0e3f66; --card-head-line:#155a8c; --line:#1c3d5e; --text:#d8ecff; --text-sub:#7aa7cc; --primary:#22d3ee; --accent:#38bdf8; --input-bg:#081a2c; --param-bg:#102a45; --chip:#12324f; --ring: rgba(34,211,238,.22); --shadow:0 6px 22px rgba(0,0,0,.5); --btn-grad: linear-gradient(135deg,#22d3ee,#0ea5e9); }
html[data-theme="minimal"] { --bg:#f2f3f5; --card:#ffffff; --card-head:#e4e6e9; --card-head-line:#d2d5d9; --line:#e6e7e9; --text:#26282b; --text-sub:#8b8f96; --primary:#4b5563; --accent:#6b7280; --input-bg:#ffffff; --param-bg:#f7f8f9; --chip:#eff0f2; --ring: rgba(75,85,99,.14); --shadow:0 2px 8px rgba(0,0,0,.05); --btn-grad: linear-gradient(135deg,#6b7280,#404040); }
html[data-theme="business"] { --bg: linear-gradient(180deg,#e8f5ef 0%,#f5fbf8 380px,#f5fbf8 100%); --card:#ffffff; --card-head:#d8f0e5; --card-head-line:#b6ddc9; --line:#d9ece3; --text:#133a2c; --text-sub:#5f8377; --primary:#0f9d58; --accent:#e8a33d; --input-bg:#ffffff; --param-bg:#f2faf6; --chip:#e6f6ee; --ring: rgba(15,157,88,.16); --shadow:0 4px 14px rgba(15,157,88,.08); --btn-grad: linear-gradient(135deg,#12b76a,#0a7a44); }
html[data-theme="orange"] { --bg: linear-gradient(180deg,#fff1e0 0%,#fff9f2 380px,#fff9f2 100%); --card:#ffffff; --card-head:#ffe3c4; --card-head-line:#f7c893; --line:#ffe3c7; --text:#422a17; --text-sub:#a07a58; --primary:#f97316; --accent:#ef4444; --input-bg:#ffffff; --param-bg:#fff6ec; --chip:#ffeada; --ring: rgba(249,115,22,.18); --shadow:0 4px 14px rgba(249,115,22,.12); --btn-grad: linear-gradient(135deg,#fb923c,#ea580c); }
html[data-theme="violet"] { --bg: linear-gradient(180deg,#efe7ff 0%,#faf7ff 380px,#faf7ff 100%); --card:#ffffff; --card-head:#e5d7ff; --card-head-line:#c9b0f7; --line:#e7ddff; --text:#2e1f4d; --text-sub:#7f6fa6; --primary:#7c3aed; --accent:#d946ef; --input-bg:#ffffff; --param-bg:#f7f3ff; --chip:#f0e9ff; --ring: rgba(124,58,237,.18); --shadow:0 4px 14px rgba(124,58,237,.12); --btn-grad: linear-gradient(135deg,#8b5cf6,#6d28d9); }
html[data-theme="ocean"] { --bg: linear-gradient(180deg,#04302c 0%,#0a3f3a 380px,#0a3f3a 100%); --card:#0c3b36; --card-head:#0e5a52; --card-head-line:#157a6e; --line:#1a5750; --text:#d3f5ec; --text-sub:#79bdb0; --primary:#14b8a6; --accent:#fbbf24; --input-bg:#072e2a; --param-bg:#10473f; --chip:#15514a; --ring: rgba(20,184,166,.24); --shadow:0 6px 20px rgba(0,0,0,.45); --btn-grad: linear-gradient(135deg,#2dd4bf,#0d9488); }
html[data-theme="rose"] { --bg: linear-gradient(180deg,#ffedf3 0%,#fff8fa 380px,#fff8fa 100%); --card:#ffffff; --card-head:#ffd9e6; --card-head-line:#f7b3ca; --line:#ffdfe9; --text:#43212e; --text-sub:#a2798a; --primary:#e11d74; --accent:#c9a227; --input-bg:#ffffff; --param-bg:#fff3f7; --chip:#ffe6ee; --ring: rgba(225,29,116,.16); --shadow:0 4px 14px rgba(225,29,116,.1); --btn-grad: linear-gradient(135deg,#f472b6,#be185d); }
html[data-theme="cyber"] { --bg: radial-gradient(circle at 15% 0%, #2a0047 0%, #12001f 50%, #07000d 100%); --card:#150026; --card-head:#32005c; --card-head-line:#5c0099; --line:#3d0066; --text:#f2e6ff; --text-sub:#a97ad6; --primary:#ff2fb9; --accent:#00f0ff; --input-bg:#0d0018; --param-bg:#1e0034; --chip:#240040; --ring: rgba(255,47,185,.28); --shadow:0 6px 24px rgba(255,47,185,.18); --btn-grad: linear-gradient(135deg,#ff2fb9,#a21caf); }
/* 全局字面色 → 主题变量（灰字/渐变/边框全站跟风格） */
html[data-theme] { --muted: var(--text-sub); --grad: var(--btn-grad); --border: var(--line); }
body { background: var(--bg); background-attachment: fixed; color: var(--text); }
.topbar { background: var(--card); border-bottom-color: var(--line); }
.brand { color: var(--text); }
.nav-links a { color: var(--text); }
.nav-links a:hover, .nav-links a.active { background: var(--chip); color: var(--primary); }
.nav-links .nav-btn { border: 1px solid var(--line); background: var(--input-bg); color: var(--text); border-radius: 9px; padding: 7px 12px; font-size: .88rem; cursor: pointer; font-family: inherit; }
.nav-links .nav-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--chip); }
/* 退出按钮：固定中性配色（不随主题变化，任何风格下都清晰可辨） */
.nav-links .nav-btn.nav-exit { background: #5b6b7e; border-color: #5b6b7e; color: #fff; }
.nav-links .nav-btn.nav-exit:hover { background: #46556a; border-color: #46556a; color: #fff; }
.user-area { color: var(--text); }
.modal-box { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.modal-head .close { background: var(--chip); color: var(--text-sub); }
.plan { background: var(--input-bg); }
.plan .p-name, .plan .p-quota { color: var(--text-sub); }
.chip { background: var(--input-bg); color: var(--text); }
.chip.active { background: var(--chip); }
input, textarea, select { background: var(--input-bg); color: var(--text); border-color: var(--border); }
/* 工作台行内控件紧凑宽（覆盖上方 input/select 的 width:100%；仅计算页存在这些 id） */
.bt-row .bt-input, .bt-row .bt-select { width: auto; }
#stock { width: 170px; }
#btDate { width: 150px; }
#btLevel { width: 118px; }
#btLength { width: 78px; }
#cfgSlot { width: 170px; }
/* 页面主容器：两页共用 #app，流式铺满（上限可调） */
#app.container { max-width: 1920px; padding: 18px 22px 40px; }
/* 浅色按钮（读取配置/修改配置名/保存配置等，比实心主题色浅） */
.bt-btn.soft { background: var(--chip); color: var(--primary); border: 1px solid var(--card-head-line, var(--line)); }
.bt-btn.soft:hover { border-color: var(--primary); }
@media (max-width: 640px) {
  .profile-card { flex-direction: column; align-items: flex-start; }
  .user-area { width: 100%; display: flex; justify-content: flex-end; }
}
