/* ==========================================================================
   admin.css — 后台统一视觉（浅色专业风，最小宽度 1280px，不做移动端适配）
   硬指标：数字千分位由 JS 处理；正文对比度 ≥ 4.5:1
   ========================================================================== */

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --text: #1f2329;
  --text-2: #4e5969;
  --text-3: #86909c;
  --line: #e5e6eb;
  --line-strong: #d0d3d9;
  --primary: #b42318;
  --primary-hover: #8f1b13;
  --primary-soft: #fdf1f0;
  --blue: #1d4ed8;
  --blue-soft: #eef3ff;
  --green: #157347;
  --green-soft: #e9f7ef;
  --orange: #b45309;
  --orange-soft: #fff5e6;
  --red: #c62828;
  --red-soft: #fdecec;
  --gray-soft: #f2f3f5;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-width: 1280px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 8px 0; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
::selection { background: #ffd8d4; }

/* ---------- 布局 ---------- */
.app {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 14px; }
.brand-text span { font-size: 11px; color: var(--text-3); letter-spacing: .5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative;
  display: flex; flex-direction: column;
  padding: 9px 12px 9px 14px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none !important;
}
.nav-item::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px; background: transparent;
}
.nav-item:hover { background: var(--gray-soft); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }
.nav-item.active::before { background: var(--primary); }
.nav-item.disabled { opacity: .45; }
.nav-label { font-size: 14px; font-weight: 500; }
.nav-desc { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.nav-item.active .nav-desc { color: #b56a63; }
.nav-item.small { font-size: 12px; padding: 7px 12px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }

.workspace { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 15;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.crumbs-root { font-weight: 600; }
.crumbs-sep { color: var(--text-3); }
.crumbs-event { color: var(--text-2); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.main { padding: 24px; min-height: calc(100vh - 56px); }

/* ---------- 通用块 ---------- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.page-head .sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.page-head-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 15px; }
.card-head .sub { color: var(--text-3); font-size: 12px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff; color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--panel-2); border-color: #b9bec7; text-decoration: none; }
.btn:focus-visible { outline: 2px solid rgba(180, 35, 24, .35); outline-offset: 1px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: #fff; border-color: #e3b4b0; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--gray-soft); color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; font-family: inherit; font-size: inherit; }
.btn-link:hover { text-decoration: underline; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 6px; border: none;
  background: transparent; color: var(--text-3); font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--gray-soft); color: var(--text); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .field-error { font-size: 12px; color: var(--red); }
.input {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-family: inherit; font-size: 14px; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }
.input[disabled], .input[readonly] { background: var(--gray-soft); color: var(--text-3); cursor: not-allowed; }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(198, 40, 40, .08); }
.textarea { height: auto; padding: 8px 10px; resize: vertical; min-height: 76px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #86909c 50%), linear-gradient(135deg, #86909c 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.radio-line { display: flex; gap: 10px; align-items: flex-start; }
.radio-card {
  flex: 1; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 12px 14px; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: #b9bec7; }
.radio-card.checked { border-color: var(--primary); background: var(--primary-soft); }
.radio-card .rc-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.radio-card .rc-desc { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.radio-card .rc-desc b { color: var(--text-2); font-weight: 500; }

/* ---------- 表格 ---------- */
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-weight: 500; color: var(--text-3);
  background: var(--panel-2);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.data-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: #fbfbfc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .col-check { width: 40px; }
.data-table .actions { display: flex; gap: 4px; justify-content: flex-end; }
.data-table tr.row-error { background: #fff8f7; }
.data-table tr.row-error td { border-bottom-color: #f3d6d3; }
.cell-strong { font-weight: 500; }
.cell-sub { color: var(--text-3); font-size: 12px; }
.cell-error {
  display: inline-block;
  color: #b42318;
  background: #fdecec;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
}
.empty { padding: 56px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty-state {
  max-width: 560px; margin: 80px auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 32px; box-shadow: var(--shadow);
}
.empty-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-3); margin-bottom: 20px; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 4px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge-gray { background: var(--gray-soft); color: var(--text-2); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-outline { background: #fff; border: 1px solid var(--line-strong); color: var(--text-2); }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px; font-size: 13px; border-bottom: 1px solid var(--line);
}
.notice .spacer { flex: 1; }
.notice-warn { background: #fff8e6; color: #8a5a00; }
.notice-danger { background: var(--red-soft); color: var(--red); }
.notice-info { background: var(--blue-soft); color: var(--blue); }
.alert {
  border-radius: 8px; padding: 12px 14px; font-size: 13px;
  border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start;
}
.alert-warn { background: #fff8e6; border-color: #f3d9a4; color: #8a5a00; }
.alert-danger { background: var(--red-soft); border-color: #f3c7c3; color: var(--red); }
.alert-info { background: var(--blue-soft); border-color: #cfdcff; color: var(--blue); }
.alert-success { background: var(--green-soft); border-color: #bfe3cd; color: var(--green); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab {
  padding: 9px 14px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.tab .count { color: var(--text-3); font-size: 12px; margin-left: 4px; }

/* ---------- 统计数字 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .k { font-size: 12px; color: var(--text-3); }
.stat .v { font-size: 30px; font-weight: 650; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.stat.primary .v { color: var(--primary); }
.stat.warn .v { color: var(--orange); }
.stat.danger .v { color: var(--red); }
.stat.clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stat.clickable:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(180,35,24,.06); }
.stat .sub { font-size: 12px; color: var(--text-3); }

/* ---------- 漏斗 ---------- */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row {
  display: grid; grid-template-columns: 150px 1fr 120px;
  align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
}
.funnel-row:hover { border-color: #b9bec7; }
.funnel-row.deduct { background: #fffafa; }
.funnel-row.total { background: var(--panel-2); }
.funnel-label { font-size: 13px; color: var(--text-2); }
.funnel-bar { height: 8px; border-radius: 4px; background: var(--gray-soft); overflow: hidden; }
.funnel-bar > i { display: block; height: 100%; background: var(--primary); opacity: .7; border-radius: 4px; }
.funnel-row.total .funnel-bar > i { background: var(--text-2); opacity: .5; }
.funnel-count { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.funnel-count small { font-weight: 400; color: var(--text-3); margin-left: 4px; font-size: 11px; }
.funnel-result {
  margin-top: 12px; padding: 16px;
  background: var(--primary-soft); border: 1px solid #f0cfcb; border-radius: 8px;
  display: flex; align-items: baseline; gap: 10px;
}
.funnel-result .n { font-size: 34px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.funnel-result .t { font-size: 13px; color: var(--text-2); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; gap: 0; margin-bottom: 24px; }
.step {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 2px solid var(--line);
  color: var(--text-3); font-size: 13px;
}
.step .idx {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-size: 12px; background: #fff; flex-shrink: 0;
}
.step.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 500; }
.step.active .idx { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.done { color: var(--text-2); }
.step.done .idx { background: var(--green-soft); border-color: #bfe3cd; color: var(--green); }
.step.clickable { cursor: pointer; }

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(16, 24, 40, .45);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .16s;
  padding: 24px;
}
.overlay.in { opacity: 1; }
.modal {
  width: 560px; max-width: 100%; max-height: calc(100vh - 48px);
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateY(8px) scale(.99); transition: transform .16s;
}
.overlay.in .modal { transform: none; }
.modal-sm { width: 460px; }
.modal-lg { width: 820px; }
/* V13 发布成功弹窗（双二维码并排） */
.modal-760 { width: 760px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 16px; }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.modal-body .alert + .field { margin-top: 14px; }

/* ---------- 抽屉 ---------- */
.drawer-host { position: relative; z-index: 110; }
.drawer-wrap { position: fixed; inset: 0; }
.drawer-mask {
  position: absolute; inset: 0; background: rgba(16, 24, 40, .35);
  opacity: 0; transition: opacity .2s;
}
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  max-width: 92vw; background: #fff; box-shadow: -16px 0 40px rgba(16,24,40,.14);
  display: flex; flex-direction: column;
  transform: translateX(24px); opacity: 0;
  transition: transform .2s, opacity .2s;
}
.drawer-wrap.in .drawer-mask { opacity: 1; }
.drawer-wrap.in .drawer { transform: none; opacity: 1; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 16px; }
.drawer-body { padding: 20px; overflow: auto; flex: 1; }

/* ---------- Toast ---------- */
.toast-host {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: flex-start; gap: 9px;
  max-width: 720px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow);
  font-size: 13px; color: var(--text);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--text-3); }
.toast-success .toast-dot { background: var(--green); }
.toast-warn .toast-dot { background: var(--orange); }
.toast-error { border-color: #f0c9c6; }
.toast-error .toast-dot { background: var(--red); }
.toast-info .toast-dot { background: var(--blue); }
.toast-msg { line-height: 1.55; }

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.pager-info { color: var(--text-3); font-size: 12px; }
.pager-btns { display: flex; gap: 4px; }
.pg {
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  font-family: inherit; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.pg:hover:not(:disabled) { border-color: var(--line-strong); color: var(--text); }
.pg.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 详情键值 ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv-k { color: var(--text-3); }
.kv-v { word-break: break-all; }
.hash {
  font-family: var(--mono); font-size: 12px; background: var(--gray-soft);
  padding: 2px 6px; border-radius: 4px; word-break: break-all;
}

/* ---------- 活动卡片 ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.event-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.event-card:hover { border-color: #c9ccd2; box-shadow: 0 10px 28px rgba(16,24,40,.09); }
.event-card .ec-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.event-card .ec-name { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card .ec-code { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.event-card .ec-stats { display: flex; gap: 20px; }
.event-card .ec-stat .n { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.event-card .ec-stat .l { font-size: 11px; color: var(--text-3); }
/* 卡片底栏按钮在窄卡片下必须换行，否则"导出中奖"会被挤出卡片右侧 */
.event-card .ec-foot { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- 轮次卡片 ---------- */
.round-list { display: flex; flex-direction: column; gap: 8px; }
.round-item {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; background: #fff;
}
.round-item.pending { border-left: 3px solid var(--line-strong); }
.round-item.drawn { border-left: 3px solid var(--orange); background: #fffdf8; }
.round-item.published { border-left: 3px solid var(--green); }
.round-item .no { font-size: 20px; font-weight: 700; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.round-item .meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.round-item .ops { display: flex; gap: 6px; }

/* ---------- 键盘位 ---------- */
.kbd {
  display: inline-block; min-width: 22px; text-align: center;
  padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 4px; background: #fff; font-family: var(--mono); font-size: 11px; color: var(--text-2);
}

/* ---------- 导入 ---------- */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: 32px; text-align: center; background: var(--panel-2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-title { font-size: 15px; font-weight: 500; }
.dropzone .dz-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-soft); border-radius: 6px; padding: 6px 10px; font-size: 12.5px;
}

/* ---------- 登录页 ---------- */
.login-body {
  min-width: 0; min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: #fff;
}
.login-aside {
  background:
    radial-gradient(1200px 600px at 10% 0%, #7f1d1d 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 100%, #450a0a 0%, transparent 60%),
    #2a0c0c;
  color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-aside .la-brand { display: flex; align-items: center; gap: 12px; }
.login-aside .la-brand .mark {
  width: 44px; height: 44px; border-radius: 10px; background: #fff; color: #7f1d1d;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
}
.login-aside h1 { color: #fff; font-size: 34px; line-height: 1.35; margin: 0 0 16px; font-weight: 650; }
.login-aside p { color: rgba(255, 255, 255, .72); font-size: 14px; max-width: 460px; }
.login-aside ul { color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 2; padding-left: 18px; margin: 0; }
.login-main { display: grid; place-items: center; padding: 40px; }
.login-box { width: 380px; }
.login-box h2 { font-size: 24px; margin-bottom: 6px; }
.login-box .sub { color: var(--text-3); font-size: 13px; margin-bottom: 28px; }
.login-box .input { height: 44px; font-size: 15px; }
.login-err {
  background: var(--red-soft); border: 1px solid #f3c7c3; color: var(--red);
  border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.login-foot { margin-top: 24px; font-size: 12px; color: var(--text-3); line-height: 1.8; }

/* ---------- 其它 ---------- */
.split { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.split-wide { grid-template-columns: 1fr 420px; }
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item.active { background: var(--primary-soft); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 500; }
.list-item .li-sub { font-size: 12px; color: var(--text-3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-soft); border-radius: 999px; padding: 3px 10px; font-size: 12px;
}
.chip button { border: none; background: none; color: var(--text-3); cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.chip button:hover { color: var(--red); }
.hash-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hash-row:last-child { border-bottom: none; }
.hash-row .hk { font-size: 12px; color: var(--text-3); }
.verify-step {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.verify-step:last-child { border-bottom: none; }
.verify-idx {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: var(--gray-soft); color: var(--text-2);
}
.verify-step.pass .verify-idx { background: var(--green-soft); color: var(--green); }
.verify-step.fail .verify-idx { background: var(--red-soft); color: var(--red); }
.verify-step.skip .verify-idx { background: var(--orange-soft); color: var(--orange); }
.verify-step .vs-name { font-size: 13.5px; font-weight: 500; }
.verify-step .vs-detail { font-size: 12px; color: var(--text-3); margin-top: 3px; word-break: break-all; }
.verify-tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--gray-soft); color: var(--text-3); margin-left: 6px; }
.mono-block {
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  background: #0f172a; color: #d6e2f5; border-radius: 8px;
  padding: 12px 14px; white-space: pre-wrap; word-break: break-all;
}
.summary-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.summary-list .sl { display: flex; justify-content: space-between; gap: 12px; }
.summary-list .sl span:first-child { color: var(--text-3); }
