/* 委员会会议签到平台 —— 全局样式
   设计系统：Linear（浅色管理端 + 暗色大屏）
   tokens: accent #5e6ad2 · canvas #010102/#ffffff · success #27a644 · danger #e5484d */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}

:root {
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --accent-weak: #eef0fc;
  --success: #27a644;
  --success-weak: #e6f6ea;
  --danger: #e5484d;
  --danger-weak: #fdebec;
  --warn: #b45309;
  --warn-weak: #fdf3e3;
  --bg: #ffffff;
  --bg-2: #f7f8f8;
  --surface: #ffffff;
  --ink: #17181a;
  --ink-2: #62666d;
  --ink-3: #8a8f98;
  --hairline: #e6e7e9;
  --hairline-2: #d5d7db;
  --shadow: 0 8px 24px rgba(23, 24, 26, .08), 0 1px 3px rgba(23, 24, 26, .06);
  --radius: 10px;
  --radius-lg: 14px;
  --font: 'PingFang SC', 'MiSans', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}
.theme-dark {
  --accent-weak: rgba(94, 106, 210, .16);
  --success-weak: rgba(39, 166, 68, .14);
  --danger-weak: rgba(229, 72, 77, .14);
  --warn: #f5a524;
  --warn-weak: rgba(245, 165, 36, .14);
  --bg: #010102;
  --bg-2: #0f1011;
  --surface: #141516;
  --ink: #f7f8f8;
  --ink-2: #d0d6e0;
  --ink-3: #8a8f98;
  --hairline: #23252a;
  --hairline-2: #34343a;
  --shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-2);
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
.icon { display: inline-flex; width: 18px; height: 18px; vertical-align: -4px; flex: none; }
.icon svg { width: 100%; height: 100%; }
.digits { font-family: 'Barlow Condensed', var(--font); font-variant-numeric: tabular-nums; }
.fatal { max-width: 560px; margin: 18vh auto; padding: 28px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); color: var(--ink-2); font-size: 15px; }

/* ---------- 按钮 / 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 8px 16px; font-size: 14px; font-family: inherit; font-weight: 500;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #f2555a; }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 22px; font-size: 17px; border-radius: 12px; width: 100%; }
.btn.success { background: var(--success); }
.btn.success:hover { background: #2ebc50; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--hairline-2); border-radius: var(--radius); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.textarea { resize: vertical; min-height: 96px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.err-text { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* ---------- 管理端布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 216px; flex: none; background: var(--surface);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { font-size: 15px; letter-spacing: .2px; }
.brand small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.side-nav { flex: 1; padding: 8px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 2px;
  border-radius: 8px; color: var(--ink-2); cursor: pointer; font-weight: 500; font-size: 14px;
}
.side-item:hover { color: var(--ink); background: var(--bg-2); }
.side-item.active { color: var(--accent); background: var(--accent-weak); }
.side-foot { padding: 12px 16px; border-top: 1px solid var(--hairline); }
.side-foot .btn { width: 100%; }
.main { flex: 1; min-width: 0; padding: 24px 28px 48px; }
.page-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.page-head .sub { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.page-head .spacer { flex: 1; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 卡片 / 表格 ---------- */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.card .card-body { padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-title { font-size: 15px; font-weight: 600; padding: 14px 20px 0; display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--accent); }
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tb th {
  text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px;
  padding: 10px 12px; border-bottom: 1px solid var(--hairline); white-space: nowrap;
}
.tb td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tb tr:last-child td { border-bottom: none; }
.tb tr:hover td { background: var(--bg-2); }
.tb .ops { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tb td.num, .tb th.num { text-align: right; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.empty .icon { width: 34px; height: 34px; margin-bottom: 8px; color: var(--hairline-2); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag.ok { background: var(--success-weak); color: var(--success); }
.tag.bad { background: var(--danger-weak); color: var(--danger); }
.tag.warn { background: var(--warn-weak); color: var(--warn); }
.tag.info { background: var(--accent-weak); color: var(--accent); }
.tag.mute { background: var(--bg-2); color: var(--ink-3); }

/* ---------- 统计卡 & 判定 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 14px 18px 12px; }
.stat .lb { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .lb .icon { width: 15px; height: 15px; }
.stat .v { font-size: 38px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; margin-top: 4px; }
.stat.present .v { color: var(--success); }
.stat.leave .v { color: var(--warn); }
.stat.absent .v { color: var(--ink-3); }
.stat .extra { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.verdict {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 600; margin-top: 12px;
}
.verdict .icon { width: 22px; height: 22px; }
.verdict.ok { background: var(--success-weak); color: var(--success); }
.verdict.bad { background: var(--danger-weak); color: var(--danger); }
.verdict small { font-weight: 400; opacity: .85; }

/* ---------- 弹层 / 提示 ---------- */
.mask { position: fixed; inset: 0; background: rgba(1, 1, 2, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; max-width: 480px; }
.modal.wide { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-head .close { background: none; border: none; cursor: pointer; color: var(--ink-3); padding: 4px; border-radius: 6px; }
.modal-head .close:hover { color: var(--ink); background: var(--bg-2); }
.modal-body { padding: 16px 20px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.ck-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
  max-width: 80vw;
}
.ck-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ck-toast.success { background: var(--success); color: #fff; }
.ck-toast.error { background: var(--danger); color: #fff; }

/* ---------- 标签选择（事件参会人） ---------- */
.picker-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.picker-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--hairline); cursor: pointer; font-size: 13.5px; }
.picker-item:last-child { border-bottom: none; }
.picker-item:hover { background: var(--bg-2); }
.picker-item input { accent-color: var(--accent); }
.picker-item .dept { color: var(--ink-3); font-size: 12.5px; margin-left: auto; }
.picker-item.off { opacity: .45; }

/* ---------- 大屏 ---------- */
.screen { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.screen-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 22px 36px 18px; border-bottom: 1px solid var(--hairline);
}
.screen-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -.5px; }
.screen-head .meta { color: var(--ink-3); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.screen-head .clock { margin-left: auto; font-size: 26px; color: var(--ink-2); letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.screen-main { flex: 1; display: flex; gap: 0; padding: 28px 36px; align-items: stretch; }
.qr-col { width: 34%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-right: 28px; }
.qr-panel { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 0 0 1px var(--hairline), 0 12px 40px rgba(94, 106, 210, .18); }
.qr-panel .qr-inner { width: 320px; height: 320px; display: flex; align-items: center; justify-content: center; }
.qr-panel img, .qr-panel canvas { display: block; }
.scan-tip { color: var(--ink-2); font-size: 19px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.scan-tip .icon { width: 22px; height: 22px; color: var(--accent); }
.stat-col { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bstat { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 26px 14px; }
.bstat .lb { font-size: 19px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.bstat .lb .icon { width: 21px; height: 21px; }
.bstat .v { font-size: clamp(90px, 13vw, 170px); font-weight: 600; line-height: 1.02; letter-spacing: -2px; color: var(--ink); }
.bstat.present .v { color: #4ade67; }
.bstat.leave .v { color: var(--warn); }
.bstat .sub { font-size: 15px; color: var(--ink-3); }
.verdict-banner {
  display: flex; align-items: center; gap: 16px; border-radius: 18px; padding: 18px 26px;
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 600;
}
.verdict-banner .icon { width: 34px; height: 34px; flex: none; }
.verdict-banner.ok { background: var(--success-weak); color: #4ade67; border: 1px solid rgba(39, 166, 68, .35); }
.verdict-banner.bad { background: var(--danger-weak); color: #ff7b7f; border: 1px solid rgba(229, 72, 77, .35); }
.verdict-banner small { font-size: .62em; font-weight: 400; opacity: .8; }
.ticker { display: flex; align-items: center; gap: 10px; overflow: hidden; margin-top: 4px; }
.ticker-label { color: var(--ink-3); font-size: 15px; flex: none; display: flex; gap: 6px; align-items: center; }
.chips { display: flex; gap: 8px; overflow: hidden; flex: 1; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 15px;
  background: var(--bg-2); border: 1px solid var(--hairline); color: var(--ink-2);
  border-radius: 999px; padding: 5px 14px; animation: chipIn .4s ease;
}
.chip b { color: var(--ink); font-weight: 500; }
.chip.late { border-color: rgba(245, 165, 36, .5); }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen-foot { display: flex; align-items: center; padding: 0 36px 20px; color: var(--ink-3); font-size: 13px; gap: 10px; }
.screen-foot .spacer { flex: 1; }
.fs-btn { background: var(--bg-2); border: 1px solid var(--hairline-2); color: var(--ink-2); border-radius: 10px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13.5px; }
.fs-btn:hover { color: var(--ink); border-color: var(--accent); }
.screen-error { margin: 20vh auto; max-width: 480px; text-align: center; color: var(--ink-2); font-size: 17px; }

/* ---------- 手机签到页 ---------- */
.m-wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 48px; }
.m-hero { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.m-hero .logo { width: 30px; height: 30px; }
.m-hero span { color: var(--ink-3); font-size: 13px; }
.m-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 20px; box-shadow: var(--shadow); }
.m-event-title { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.m-meta { margin: 12px 0 20px; display: grid; gap: 7px; color: var(--ink-2); font-size: 14px; }
.m-meta .icon { width: 16px; height: 16px; color: var(--accent); margin-right: 7px; vertical-align: -3px; }
.m-card h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--ink-2); }
.name-drop { position: relative; }
.name-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--surface); border: 1px solid var(--hairline-2); border-radius: 10px;
  max-height: 220px; overflow-y: auto; box-shadow: var(--shadow);
}
.name-list div { padding: 10px 14px; border-bottom: 1px solid var(--hairline); cursor: pointer; font-size: 15px; }
.name-list div:last-child { border-bottom: none; }
.name-list div:hover { background: var(--accent-weak); color: var(--accent); }
.name-list .dept { color: var(--ink-3); font-size: 12.5px; margin-left: 8px; }
.m-result { text-align: center; padding: 28px 10px; }
.m-result .badge {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.m-result .badge .icon { width: 38px; height: 38px; }
.m-result.ok .badge { background: var(--success-weak); color: var(--success); }
.m-result.warn .badge { background: var(--warn-weak); color: var(--warn); }
.m-result.bad .badge { background: var(--danger-weak); color: var(--danger); }
.m-result h2 { font-size: 20px; color: var(--ink); }
.m-result .desc { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; }
.m-result .again { margin-top: 22px; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow); }
.login-card .brand { padding: 0 0 20px; }
.login-card h1 { font-size: 19px; margin-bottom: 4px; }
.login-card .sub { color: var(--ink-2); font-size: 13.5px; margin-bottom: 22px; }

/* ---------- 入口页 ---------- */
.home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; text-align: center; }
.home .logo { width: 60px; height: 60px; margin-bottom: 18px; }
.home h1 { font-size: 30px; letter-spacing: -.6px; font-weight: 600; }
.home .sub { color: var(--ink-2); margin: 10px 0 30px; font-size: 15px; max-width: 560px; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; width: 100%; max-width: 640px; }
.home-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 22px; text-align: left; transition: border-color .15s, transform .15s; }
.home-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.home-card .icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 10px; }
.home-card b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.home-card span { color: var(--ink-3); font-size: 13px; }
.home-foot { margin-top: 34px; color: var(--ink-3); font-size: 12.5px; }

/* ---------- 照片墙 ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--hairline); aspect-ratio: 4/3; background: var(--bg-2); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item .del {
  position: absolute; top: 6px; right: 6px; background: rgba(1, 1, 2, .55); color: #fff;
  border: none; border-radius: 8px; width: 26px; height: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.photo-item .del .icon { width: 14px; height: 14px; }
.upload-box { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- 页签 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin: 18px 0; flex-wrap: wrap; }
.tab {
  padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  border: none; background: none; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid var(--hairline); }
  .side .brand { padding: 10px 14px; }
  .side .brand small { display: none; }
  .side-nav { display: flex; padding: 6px; flex: 1; }
  .side-foot { border-top: none; padding: 6px 10px; }
  .side-foot .btn { width: auto; }
  .main { padding: 18px 14px 40px; }
  .screen-main { flex-direction: column; padding: 20px; gap: 20px; }
  .qr-col { width: 100%; padding: 0; }
  .qr-panel .qr-inner { width: 240px; height: 240px; }
  .big-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bstat { padding: 12px 14px 8px; border-radius: 12px; }
  .bstat .lb { font-size: 14px; }
  .bstat .v { font-size: clamp(48px, 14vw, 90px); }
  .screen-head { padding: 16px 20px 12px; }
  .screen-head h1 { font-size: 20px; }
  .screen-head .clock { font-size: 18px; }
  .row2 { grid-template-columns: 1fr; }
}

/* ============================================================
   v15 视觉升级层 —— Linear tokens 落地（氛围、层次、动效）
   只做增强，不改变任何布局结构
   ============================================================ */

/* ---------- 全局细节 ---------- */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hairline-2); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--ink-3); }
::selection { background: rgba(94, 106, 210, .22); }

/* ---------- 主按钮：品牌渐变 + 悬浮层次 ---------- */
.btn {
  box-shadow: 0 1px 2px rgba(23, 24, 26, .06);
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .18s;
}
.btn:not(:disabled):hover { box-shadow: 0 4px 12px rgba(94, 106, 210, .28); transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(0); box-shadow: none; }
.btn { background: linear-gradient(180deg, #6a76dd 0%, var(--accent) 100%); }
.btn.ghost, .btn.danger, .btn.success { background: none; }
.btn.ghost { background: var(--surface); }
.btn.danger { background: linear-gradient(180deg, #ef5a5f 0%, var(--danger) 100%); }
.btn.success { background: linear-gradient(180deg, #2ebc50 0%, var(--success) 100%); }
.btn.success:not(:disabled):hover { box-shadow: 0 4px 12px rgba(39, 166, 68, .3); }
.btn.danger:not(:disabled):hover { box-shadow: 0 4px 12px rgba(229, 72, 77, .3); }
.btn.ghost:not(:disabled):hover { box-shadow: none; transform: none; }

/* ---------- 卡片：柔和多层阴影 + 悬停微升 ---------- */
.card, .stat, .modal, .login-card, .m-card, .home-card {
  box-shadow: 0 1px 2px rgba(23, 24, 26, .04), 0 4px 16px rgba(23, 24, 26, .05);
}
.card, .stat { transition: box-shadow .2s, border-color .2s; }
.stat:hover { box-shadow: 0 2px 4px rgba(23, 24, 26, .05), 0 8px 24px rgba(94, 106, 210, .1); border-color: var(--hairline-2); }

/* ---------- 管理端：品牌氛围 + 侧栏精修 ---------- */
body:has(.shell) {
  background:
    radial-gradient(900px 300px at 18% -60px, rgba(94, 106, 210, .08), transparent 70%),
    var(--bg-2);
  background-attachment: fixed;
}
.brand .logo { border-radius: 9px; box-shadow: 0 2px 8px rgba(94, 106, 210, .35); }
.side-item { position: relative; transition: color .15s, background .15s; }
.side-item.active::before {
  content: ''; position: absolute; left: -8px; top: 20%; bottom: 20%; width: 3px;
  border-radius: 999px; background: var(--accent);
}
.page-head h1 { letter-spacing: -.5px; }
.tb th { text-transform: none; letter-spacing: .1px; }
.tb td { transition: background .12s; }
.tb tbody tr { transition: background .12s; }

/* ---------- 统计卡：数字渐变 ---------- */
.stat .v { background: linear-gradient(180deg, var(--ink) 30%, #4b4e57 130%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat.present .v { background: linear-gradient(180deg, #2ebc50 0%, #1d8a38 120%); -webkit-background-clip: text; background-clip: text; }
.stat.leave .v { background: none; -webkit-text-fill-color: currentColor; color: var(--warn); }

/* ---------- 弹层与提示 ---------- */
.mask { backdrop-filter: blur(3px); background: rgba(1, 1, 2, .42); }
.modal { animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ck-toast { box-shadow: 0 8px 30px rgba(1, 1, 2, .25); }

/* ---------- 大屏：氛围光 + 面板光晕 ---------- */
body:has(.screen) {
  background:
    radial-gradient(1100px 500px at 12% -10%, rgba(94, 106, 210, .16), transparent 60%),
    radial-gradient(900px 460px at 100% 110%, rgba(130, 143, 255, .1), transparent 60%),
    var(--bg);
}
.screen-head { border-bottom: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(24, 25, 26, .6), transparent); }
.screen-head h1 { letter-spacing: -1px; }
.qr-panel {
  box-shadow: 0 0 0 1px rgba(94, 106, 210, .25), 0 0 60px rgba(94, 106, 210, .28), 0 20px 60px rgba(0, 0, 0, .55);
  animation: qrGlow 4s ease-in-out infinite;
}
@keyframes qrGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(94, 106, 210, .25), 0 0 50px rgba(94, 106, 210, .22), 0 20px 60px rgba(0, 0, 0, .55); }
  50% { box-shadow: 0 0 0 1px rgba(130, 143, 255, .4), 0 0 80px rgba(94, 106, 210, .4), 0 20px 60px rgba(0, 0, 0, .55); }
}
.bstat { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface-3, #18191a) 0%, var(--bg-2) 130%); }
.bstat::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(94, 106, 210, .12), transparent 70%);
}
.bstat.present .v { text-shadow: 0 0 40px rgba(74, 222, 103, .35); }
.bstat .v { transition: transform .25s; }
.verdict-banner { backdrop-filter: blur(4px); }
.chip { backdrop-filter: blur(4px); }

/* ---------- 手机签到页：品牌头区 + 动效 ---------- */
body:has(.m-wrap) {
  background:
    radial-gradient(560px 300px at 50% -80px, rgba(94, 106, 210, .14), transparent 70%),
    var(--bg-2);
}
.m-wrap { animation: pageIn .3s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.m-card { border-radius: 18px; padding: 24px 22px; box-shadow: 0 1px 2px rgba(23, 24, 26, .05), 0 12px 32px rgba(94, 106, 210, .1); }
.m-event-title { font-size: 22px; letter-spacing: -.4px; }
.m-card .btn.lg { font-size: 17px; letter-spacing: 6px; text-indent: 6px; }
.m-result .badge { animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes popIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.m-result.ok .badge { box-shadow: 0 0 0 10px rgba(39, 166, 68, .07), 0 0 0 20px rgba(39, 166, 68, .04); }
.name-list { animation: nameIn .15s ease; }
@keyframes nameIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 4px rgba(94, 106, 210, .14); }

/* ---------- 登录页 / 入口页：品牌渐变 ---------- */
body:has(.login-card), body:has(.home) {
  background:
    radial-gradient(800px 380px at 20% 0%, rgba(94, 106, 210, .14), transparent 65%),
    radial-gradient(700px 340px at 85% 100%, rgba(130, 143, 255, .1), transparent 60%),
    var(--bg-2);
}
.login-card { animation: pageIn .3s ease; border-radius: 18px; }
.home-card { border-radius: 18px; }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(94, 106, 210, .14); }

/* ---------- 照片墙 ---------- */
.photo-item { transition: transform .18s, box-shadow .18s; }
.photo-item:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(1, 1, 2, .18); z-index: 2; }

/* ---------- 页签 ---------- */
.tab { transition: color .15s, border-color .15s; position: relative; }
.tab.active { font-weight: 600; }

/* ---------- 暗色主题（大屏）阴影修正 ---------- */
.theme-dark .bstat { box-shadow: none; }
.theme-dark .btn { box-shadow: none; }

/* ============================================================
   v16 —— 「静谧机构感」设计方向（frontend-design skill）
   深色侧栏 · 编辑部式排版 · 大屏极光舞台 · 移动端暗色画布
   ============================================================ */

/* ---------- 管理端：墨色侧栏 ---------- */
.side {
  background: linear-gradient(180deg, #101116 0%, #0b0c10 100%);
  border-right: 1px solid #1d1f26;
}
.side .brand b { color: #f7f8f8; letter-spacing: .3px; }
.side .brand small { color: #62666d; }
.side-item { color: #9a9fa8; }
.side-item:hover { color: #f7f8f8; background: rgba(255, 255, 255, .05); }
.side-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(94, 106, 210, .28), rgba(94, 106, 210, .08));
  box-shadow: inset 0 0 0 1px rgba(130, 143, 255, .22);
}
.side-item.active::before { left: 0; top: 18%; bottom: 18%; box-shadow: 0 0 10px rgba(130, 143, 255, .8); }
.side-foot { border-top: 1px solid #1d1f26; }
.side-foot .btn.ghost { background: rgba(255, 255, 255, .04); border-color: #2a2c34; color: #9a9fa8; }
.side-foot .btn.ghost:hover { color: #fff; border-color: var(--accent); }
/* 侧栏 logo 底色压暗更融合 */
.side .brand .logo { box-shadow: 0 2px 14px rgba(94, 106, 210, .55); }

/* ---------- 管理端：内容区编辑部式排版 ---------- */
.main { position: relative; }
body:has(.shell) {
  background:
    radial-gradient(1000px 340px at 24% -80px, rgba(94, 106, 210, .1), transparent 68%),
    linear-gradient(180deg, #f4f5f8 0%, #eef0f4 100%);
  background-attachment: fixed;
}
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.6px; }
.card { border-radius: 16px; }
.tb th { font-size: 12px; letter-spacing: .4px; color: var(--ink-3); }
.tb tbody td { border-bottom: 1px solid #eef0f3; }
.tb tbody tr:hover td { background: #f7f8fc; }
.tb td b { letter-spacing: -.1px; }

/* ---------- 大屏：极光舞台 + 胶片颗粒 ---------- */
body:has(.screen) {
  background:
    radial-gradient(1200px 620px at 8% -12%, rgba(94, 106, 210, .22), transparent 58%),
    radial-gradient(1000px 560px at 96% 6%, rgba(56, 189, 248, .1), transparent 55%),
    radial-gradient(900px 620px at 78% 108%, rgba(130, 143, 255, .14), transparent 60%),
    #050507;
}
.screen::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.screen > * { position: relative; z-index: 1; }
.screen-head { border-bottom: 1px solid rgba(130, 143, 255, .14); }
.screen-head h1 { font-weight: 700; }
.screen-head .clock { color: #f7f8f8; font-family: 'Barlow Condensed', var(--font); font-weight: 600; font-size: 30px; letter-spacing: 1px; }
.bstat { background: linear-gradient(180deg, rgba(24, 25, 32, .85) 0%, rgba(15, 16, 17, .95) 100%); border: 1px solid rgba(130, 143, 255, .12); }
.bstat .v { font-weight: 700; letter-spacing: -3px; }
.bstat.present .v { text-shadow: 0 0 60px rgba(74, 222, 103, .45); }
.bstat.leave .v { text-shadow: 0 0 50px rgba(245, 165, 36, .35); }
.verdict-banner { border-radius: 20px; }
.verdict-banner.ok { background: linear-gradient(90deg, rgba(39, 166, 68, .16), rgba(39, 166, 68, .06)); }
.verdict-banner.bad { background: linear-gradient(90deg, rgba(229, 72, 77, .16), rgba(229, 72, 77, .06)); }
.chip { background: rgba(24, 25, 32, .7); border-color: rgba(130, 143, 255, .16); }
.scan-tip { color: #d0d6e0; }

/* ---------- 移动端：暗色画布 + 浮起白卡 ---------- */
body:has(.m-wrap) {
  background:
    radial-gradient(620px 360px at 50% -60px, rgba(94, 106, 210, .32), transparent 66%),
    radial-gradient(500px 300px at 90% 8%, rgba(56, 189, 248, .08), transparent 60%),
    #0a0b0f;
}
body:has(.m-wrap) { min-height: 100vh; }
.m-wrap { padding-top: 26px; }
.m-hero { margin: 4px 0 20px; }
.m-hero span { color: #8a8f98; }
.m-hero .logo { box-shadow: 0 2px 16px rgba(94, 106, 210, .5); border-radius: 8px; }
.m-card {
  border: none; border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 24px 60px rgba(0, 0, 0, .45);
}
.m-card h2 { color: var(--ink-2); }
body:has(.m-wrap) .m-card .field label { color: var(--ink-2); }
.m-event-title { font-size: 22px; }
.m-result .badge { box-shadow: 0 10px 30px rgba(39, 166, 68, .18); }
.m-result.warn .badge { box-shadow: 0 10px 30px rgba(245, 165, 36, .16); }
.m-result.bad .badge { box-shadow: 0 10px 30px rgba(229, 72, 77, .16); }

/* ---------- 登录 / 入口：墨色画布 ---------- */
body:has(.login-card), body:has(.home) {
  background:
    radial-gradient(760px 420px at 18% -6%, rgba(94, 106, 210, .2), transparent 62%),
    radial-gradient(680px 380px at 88% 106%, rgba(130, 143, 255, .12), transparent 58%),
    #0b0c10;
}
body:has(.login-card) .login-card, body:has(.home) .home-card {
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
body:has(.home) .home h1, body:has(.home) .home .sub { color: #f7f8f8; }
body:has(.home) .home-card { background: #141519; border-color: #26282f; }
body:has(.home) .home-card b { color: #f7f8f8; }
body:has(.home) .home-card span { color: #8a8f98; }
body:has(.home) .home-foot { color: #62666d; }
.login-card { border-radius: 20px; }

/* ---------- 弹层精修 ---------- */
.modal { border-radius: 18px; }
.modal-head h3 { letter-spacing: -.2px; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 860px) {
  .side { background: linear-gradient(180deg, #101116 0%, #0b0c10 100%); }
  .side .brand b { color: #f7f8f8; }
  .side-item { color: #9a9fa8; }
  .side-item.active { color: #fff; }
  .side-foot .btn.ghost { background: rgba(255,255,255,.04); border-color: #2a2c34; color: #9a9fa8; }
}

/* ============================================================
   v17 —— 「暖纸 · 黛青」最终视觉（全面取代 v15/v16 的紫黑方向）
   单一主色 #0f6f60 深松绿 · 暖纸底 · 无荧光 · 克制耐看
   ============================================================ */

/* ---------- 核心 token 重定义 ---------- */
:root {
  --accent: #0f6f60;
  --accent-hover: #128374;
  --accent-weak: #e6f1ed;
  --success: #0f6f60;
  --success-weak: #e6f1ed;
  --danger: #c0483d;
  --danger-weak: #f9ece9;
  --warn: #9a6a20;
  --warn-weak: #f6efdd;
  --bg: #fffefb;
  --bg-2: #f4f3ef;
  --surface: #fffefb;
  --ink: #212429;
  --ink-2: #5d6167;
  --ink-3: #8f938f;
  --hairline: #e9e7e1;
  --hairline-2: #d9d7d0;
  --shadow: 0 1px 2px rgba(33, 36, 41, .04), 0 6px 24px rgba(33, 36, 41, .06);
}
.theme-dark {
  --accent-weak: rgba(15, 111, 96, .2);
  --success-weak: rgba(15, 111, 96, .18);
  --danger-weak: rgba(192, 72, 61, .16);
  --warn: #e2b04a;
  --warn-weak: rgba(226, 176, 74, .14);
  --bg: #0b100f;
  --bg-2: #101614;
  --surface: #141a18;
  --ink: #edf3f0;
  --ink-2: #c1ccc7;
  --ink-3: #7f8b85;
  --hairline: #202826;
  --hairline-2: #2c3532;
}

/* ---------- 按钮回归纯色（去渐变，更耐看） ---------- */
.btn, .btn:not(:disabled):hover { box-shadow: none; transform: none; }
.btn { background: var(--accent); }
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: var(--surface); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #cd564b; }
.btn.success { background: var(--success); }
.btn.success:hover { background: var(--accent-hover); }
.btn.lg { letter-spacing: 10px; text-indent: 10px; font-weight: 600; }

/* ---------- 管理端：暖纸侧栏（取代墨色侧栏） ---------- */
.side, .side:hover { background: #faf9f5; border-right: 1px solid var(--hairline); }
.side .brand b { color: var(--ink); }
.side .brand small { color: var(--ink-3); }
.side-item { color: var(--ink-2); }
.side-item:hover { color: var(--ink); background: rgba(15, 111, 96, .06); }
.side-item.active {
  color: var(--accent);
  background: var(--accent-weak);
  box-shadow: none;
}
.side-item.active::before { background: var(--accent); box-shadow: none; }
.side-foot { border-top: 1px solid var(--hairline); }
.side-foot .btn.ghost { background: var(--surface); border-color: var(--hairline-2); color: var(--ink-2); }
.side-foot .btn.ghost:hover { color: var(--accent); border-color: var(--accent); }
.side .brand .logo { box-shadow: 0 2px 8px rgba(15, 111, 96, .3); }
body:has(.shell) {
  background:
    radial-gradient(900px 300px at 20% -60px, rgba(15, 111, 96, .05), transparent 70%),
    var(--bg-2);
  background-attachment: fixed;
}

/* ---------- 卡片与阴影：暖色柔和 ---------- */
.card, .stat, .modal, .login-card, .m-card, .home-card {
  box-shadow: 0 1px 2px rgba(33, 36, 41, .04), 0 8px 28px rgba(60, 58, 48, .06);
}
.stat:hover { border-color: var(--hairline-2); box-shadow: 0 2px 4px rgba(33, 36, 41, .04), 0 10px 30px rgba(15, 111, 96, .08); }
.stat .v { background: none; -webkit-text-fill-color: currentText; -webkit-text-fill-color: initial; color: var(--ink); }
.stat.present .v { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }

/* ---------- 大屏：暖墨绿夜色（去极光紫、去荧光） ---------- */
body:has(.screen) {
  background:
    radial-gradient(1100px 560px at 10% -10%, rgba(15, 111, 96, .18), transparent 58%),
    radial-gradient(900px 520px at 92% 106%, rgba(15, 111, 96, .12), transparent 60%),
    #0b100f;
}
.screen-head { background: none; border-bottom: 1px solid rgba(193, 204, 199, .12); }
.screen-head .clock { color: #edf3f0; }
.qr-panel { animation: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 70px rgba(0, 0, 0, .5); }
.bstat { background: linear-gradient(180deg, rgba(20, 26, 24, .9), rgba(16, 22, 20, .96)); border: 1px solid rgba(193, 204, 199, .1); }
.bstat::after { background: radial-gradient(circle, rgba(15, 111, 96, .16), transparent 70%); }
.bstat .v { letter-spacing: -2px; }
.bstat.present .v { color: #7fd3bd; text-shadow: 0 0 50px rgba(127, 211, 189, .3); }
.bstat.leave .v { color: var(--warn); text-shadow: none; }
.verdict-banner.ok { background: linear-gradient(90deg, rgba(15, 111, 96, .2), rgba(15, 111, 96, .05)); color: #7fd3bd; border: 1px solid rgba(127, 211, 189, .25); }
.verdict-banner.bad { background: linear-gradient(90deg, rgba(192, 72, 61, .18), rgba(192, 72, 61, .05)); color: #e89c92; border: 1px solid rgba(232, 156, 146, .25); }
.chip { background: rgba(20, 26, 24, .72); border-color: rgba(193, 204, 199, .14); }
.chip.late { border-color: rgba(226, 176, 74, .45); }

/* ---------- 移动端：暖纸画布（取代墨黑） ---------- */
body:has(.m-wrap) {
  background:
    radial-gradient(640px 320px at 50% -70px, rgba(15, 111, 96, .12), transparent 68%),
    var(--bg-2);
}
.m-hero .logo { box-shadow: 0 2px 12px rgba(15, 111, 96, .35); border-radius: 8px; }
.m-card {
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(33, 36, 41, .04), 0 14px 40px rgba(60, 58, 48, .08);
}
.m-result.ok .badge { box-shadow: 0 0 0 10px rgba(15, 111, 96, .06), 0 0 0 20px rgba(15, 111, 96, .03); }
.m-result.warn .badge { box-shadow: 0 0 0 10px rgba(154, 106, 32, .07); }
.m-result.bad .badge { box-shadow: 0 0 0 10px rgba(192, 72, 61, .07); }

/* ---------- 登录 / 入口：回归暖纸 ---------- */
body:has(.login-card), body:has(.home) {
  background:
    radial-gradient(760px 400px at 20% 0%, rgba(15, 111, 96, .08), transparent 64%),
    var(--bg-2);
}
body:has(.login-card) .login-card, body:has(.home) .home-card { box-shadow: 0 1px 2px rgba(33,36,41,.04), 0 16px 44px rgba(60, 58, 48, .09); }
body:has(.home) .home h1, body:has(.home) .home .sub { color: var(--ink); }
body:has(.home) .home h1 .sub, body:has(.home) .home .sub { color: var(--ink-2); }
body:has(.home) .home-card { background: var(--surface); border-color: var(--hairline); }
body:has(.home) .home-card b { color: var(--ink); }
body:has(.home) .home-card span { color: var(--ink-3); }
body:has(.home) .home-foot { color: var(--ink-3); }
body:has(.home) .home-card:hover { box-shadow: 0 12px 36px rgba(15, 111, 96, .12); }

/* ---------- 细节统一 ---------- */
.tag.info { background: var(--accent-weak); color: var(--accent); }
.tag.ok { background: var(--accent-weak); color: var(--accent); }
.name-list div:hover { background: var(--accent-weak); color: var(--accent); }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 4px rgba(15, 111, 96, .12); }
.home-card .icon { color: var(--accent); }
.card-title .icon { color: var(--accent); }
.m-meta .icon { color: var(--accent); }
a { color: var(--accent); }
@media (max-width: 860px) {
  .side, .side:hover { background: #faf9f5; }
  .side .brand b { color: var(--ink); }
  .side-item { color: var(--ink-2); }
  .side-item.active { color: var(--accent); background: var(--accent-weak); box-shadow: none; }
  .side-foot .btn.ghost { background: var(--surface); border-color: var(--hairline-2); color: var(--ink-2); }
}

/* ============================================================
   v18 —— 主题系统：5 套预置风格 + 右下角切换器
   变量参数化：--accent 主色 / --glow 光晕RGB / --pos 大屏正色 / --dark-bg 夜底
   ============================================================ */
:root { --glow: 15, 111, 96; --pos: #7fd3bd; --dark-bg: #0b100f; }
html[data-theme="canglan"] { --accent: #24598c; --accent-hover: #2d6ba6; --accent-weak: #e5edf6; --glow: 36, 89, 140; --pos: #8fc1ee; --dark-bg: #0a0e14; }
html[data-theme="canglan"] .theme-dark { --accent: #5b8fc4; --accent-hover: #74a3d1; --accent-weak: rgba(91, 143, 196, .2); }
html[data-theme="mocha"] { --accent: #96662f; --accent-hover: #a97739; --accent-weak: #f2e9dc; --glow: 150, 102, 47; --pos: #e0b577; --dark-bg: #110e0a; }
html[data-theme="mocha"] .theme-dark { --accent: #c99a5b; --accent-hover: #d6ab70; --accent-weak: rgba(201, 154, 91, .2); }
html[data-theme="jianghong"] { --accent: #8f3f3f; --accent-hover: #a34b4b; --accent-weak: #f5e8e8; --glow: 143, 63, 63; --pos: #e89a92; --dark-bg: #120b0b; }
html[data-theme="jianghong"] .theme-dark { --accent: #c97a70; --accent-hover: #d68d84; --accent-weak: rgba(201, 122, 112, .2); }
html[data-theme="mohei"] { --accent: #2c2f35; --accent-hover: #3c4048; --accent-weak: #e9e9e7; --glow: 44, 47, 53; --pos: #d5d8dd; --dark-bg: #0c0c0d; }
html[data-theme="mohei"] .theme-dark { --accent: #c8ccd2; --accent-hover: #dcdfe4; --accent-weak: rgba(200, 204, 210, .16); }

/* ---------- 背景/光晕参数化（覆盖此前写死的色值） ---------- */
body:has(.shell) { background: radial-gradient(900px 300px at 20% -60px, rgba(var(--glow), .07), transparent 70%), var(--bg-2); }
body:has(.m-wrap) { background: radial-gradient(640px 320px at 50% -70px, rgba(var(--glow), .14), transparent 68%), var(--bg-2); }
body:has(.login-card), body:has(.home) { background: radial-gradient(760px 400px at 20% 0%, rgba(var(--glow), .1), transparent 64%), var(--bg-2); }
body:has(.screen) {
  background:
    radial-gradient(1100px 560px at 10% -10%, rgba(var(--glow), .22), transparent 58%),
    radial-gradient(900px 520px at 92% 106%, rgba(var(--glow), .12), transparent 60%),
    var(--dark-bg);
}
.bstat::after { background: radial-gradient(circle, rgba(var(--glow), .18), transparent 70%); }
.bstat.present .v { color: var(--pos); text-shadow: 0 0 50px rgba(var(--glow), .35); }
.verdict-banner.ok { color: var(--pos); border: 1px solid rgba(var(--glow), .4); }
.logo rect { fill: var(--accent); }
.stat.present .v { color: var(--accent); }

/* ---------- 主题切换器（管理端右下角） ---------- */
#theme-dock { position: fixed; right: 18px; bottom: 18px; z-index: 90; font-family: inherit; }
#theme-dock .dock-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hairline-2);
  background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(33, 36, 41, .16); transition: transform .15s, box-shadow .15s;
}
#theme-dock .dock-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(33, 36, 41, .22); }
#theme-dock .dock-btn svg { width: 22px; height: 22px; }
#theme-dock .dock-panel {
  position: absolute; right: 0; bottom: 56px; width: 208px; padding: 10px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(33, 36, 41, .18); display: none;
}
#theme-dock.open .dock-panel { display: block; animation: dockIn .16s ease; }
@keyframes dockIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#theme-dock .dock-title { font-size: 12px; color: var(--ink-3); padding: 4px 6px 8px; }
#theme-dock .dock-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; border: none; background: none; border-radius: 9px; cursor: pointer; font-family: inherit;
  font-size: 13.5px; color: var(--ink);
}
#theme-dock .dock-item:hover { background: var(--bg-2); }
#theme-dock .dock-item.on { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
#theme-dock .sw { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

/* v18 补丁：success 系（签到按钮/成功标签）统一跟随主题主色 */
.btn.success, .btn.success:hover { background: var(--accent); }
.btn.success:hover { background: var(--accent-hover); }
.tag.ok { background: var(--accent-weak); color: var(--accent); }
.m-result.ok .badge { background: var(--accent-weak); color: var(--accent); }
.ck-toast.success { background: var(--accent); color: #fff; }
