/* ==========================================================================
   福彩 3D 深度计算系统 · 样式表
   浅色主题 / 简约大方 / 主流后台风格
   ========================================================================== */

:root {
  --bg: #eef1f7;
  --bg-grad-1: #eef2fb;
  --bg-grad-2: #f6f8fc;
  --panel: #ffffff;
  --panel-2: #f8fafd;
  --panel-3: #f1f4f9;
  --line: #e4e9f2;
  --line-strong: #d2dae6;
  --text: #16202e;
  --text-2: #526075;
  --text-3: #8b96a6;
  --brand: #2f6bff;
  --brand-soft: #eef3ff;
  --brand-dark: #1b52d8;
  --brand-grad: linear-gradient(135deg, #3d78ff 0%, #2f5bff 100%);
  --red: #e03b41;
  --red-soft: #fdeff0;
  --green: #0f9d58;
  --green-soft: #eaf8f0;
  --amber: #cc8200;
  --amber-soft: #fff6e5;
  --violet: #7c3aed;
  --violet-soft: #f3eefe;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(18, 28, 45, .04);
  --shadow: 0 1px 2px rgba(18, 28, 45, .04), 0 6px 18px -6px rgba(18, 28, 45, .10);
  --shadow-md: 0 2px 4px rgba(18, 28, 45, .04), 0 12px 28px -10px rgba(18, 28, 45, .14);
  --shadow-lg: 0 18px 52px -12px rgba(18, 28, 45, .22);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 12% -8%, #e7eefc 0%, rgba(231, 238, 252, 0) 60%),
                    radial-gradient(900px 500px at 100% 0%, #eaf0ff 0%, rgba(234, 240, 255, 0) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }
a { color: var(--brand); text-decoration: none; }
code { font-family: var(--mono); background: #f0f3f8; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }

/* =============================== 登录层 =============================== */
.login-layer {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #eef2fb 0%, #f7f9fc 45%, #eaf1ff 100%);
  padding: 24px;
}
.login-card {
  width: 400px; max-width: 100%;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 32px 30px 24px;
}
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.login-logo {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; letter-spacing: .5px;
}
.login-brand h1 { font-size: 17px; line-height: 1.3; }
.login-brand p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.login-msg { min-height: 20px; font-size: 12.5px; color: var(--red); margin-bottom: 6px; }
/* 「记住密码」：在登录按钮上方，与输入框左对齐 */
.lg-remember {
  display: flex; align-items: center; gap: 7px; margin: 0 0 13px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none;
}
.lg-remember input {
  width: 15px; height: 15px; margin: 0; padding: 0; flex: none;
  accent-color: var(--brand); cursor: pointer;
}

/* =============================== 骨架 =============================== */
.shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 226px; flex: none;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.side-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 18px 17px; border-bottom: 1px solid var(--line);
}
.side-logo {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: .3px;
  box-shadow: 0 6px 14px -6px rgba(47, 107, 255, .75);
}
.side-title strong { display: block; font-size: 14px; letter-spacing: .2px; }
.side-title span { font-size: 11.5px; color: var(--text-3); }

.menu { flex: 1; overflow-y: auto; padding: 12px 12px 22px; }
.menu-group {
  font-size: 10.5px; color: var(--text-3); font-weight: 700;
  padding: 14px 10px 6px; letter-spacing: .8px; text-transform: uppercase;
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; margin-bottom: 3px;
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text-2); font-size: 13.5px; user-select: none;
  transition: background .14s, color .14s, transform .14s;
  position: relative;
}
.menu-item:hover { background: #f2f5fb; color: var(--text); }
.menu-item.active {
  background: var(--brand-grad); color: #fff; font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(47, 107, 255, .95);
}
.menu-item.active .mi { opacity: 1; }
.menu-item .mi { width: 18px; text-align: center; font-size: 14px; opacity: .85; }
.menu-item .tag {
  margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 8px;
  background: #eef1f6; color: var(--text-3); font-weight: 500;
}
.menu-item.active .tag { background: rgba(255, 255, 255, .22); color: #fff; }

.side-foot {
  border-top: 1px solid var(--line); padding: 13px 16px; font-size: 12px;
  background: #fbfcfe;
}
.side-status { display: flex; align-items: center; gap: 7px; color: var(--text-3); margin-bottom: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--green); }
.dot.bad { background: var(--red); }
.side-user { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); }
.link-btn {
  background: none; border: none; color: var(--brand); cursor: pointer;
  font-size: 12px; font-family: inherit; padding: 0;
}
.link-btn:hover { text-decoration: underline; }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 26px; background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); flex: none; gap: 16px;
  position: relative; z-index: 5;
}
.crumb h2 { font-size: 18px; letter-spacing: -.2px; }
.page-desc { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.view { flex: 1; overflow-y: auto; padding: 22px 26px 48px; scroll-behavior: smooth; }

/* =============================== 按钮 =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font-size: 13px; font-family: inherit; cursor: pointer; font-weight: 500;
  transition: background .14s, border-color .14s, box-shadow .14s, transform .1s;
  white-space: nowrap; line-height: 1.5;
}
.btn:hover { border-color: #bfc9da; background: #fdfefe; box-shadow: var(--shadow-xs); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--brand-grad); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(47, 107, 255, .95);
}
.btn-primary:hover {
  filter: brightness(1.06); background: var(--brand-grad); border-color: transparent;
}
.btn-danger { background: #fff; border-color: #f0b8bc; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: #eef2f9; border-color: transparent; color: var(--text); box-shadow: none; }
.btn-sm { padding: 4.5px 11px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-block { width: 100%; padding: 11px; font-size: 14px; border-radius: var(--radius-sm); }
.icon-btn {
  background: none; border: none; cursor: pointer; color: var(--text-3);
  font-size: 15px; padding: 2px 6px; border-radius: 4px; font-family: inherit;
}
.icon-btn:hover { background: #f1f4f9; color: var(--text); }
.badge {
  display: inline-block; min-width: 17px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 600;
}

/* =============================== 卡片与栅格 =============================== */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px;
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px;
  background: linear-gradient(180deg, #fdfefe 0%, #fafbfe 100%);
}
.card-head h3 { font-size: 14.5px; letter-spacing: -.1px; }
.card-head .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

/* 栅格区块自己带下间距。
   过去只有 .card 有 margin-bottom，而指标卡（statCard / mini / kpi）为了在
   行内与 grid 的 gap 相加会写 inline margin-bottom:0 —— 结果「一指标行」
   与其下方内容之间的间距变成 0，而下一块（含普通卡片）却是 18px，
   同一页里出现两种不同的行距（总览、复盘实测都是 0px vs 18px）。
   现在统一：区块级间距由 .grid 提供，grid 内部的卡片不再自带下间距。 */
.grid { display: grid; gap: 16px; margin-bottom: 18px; }
.grid > .card { margin-bottom: 0; }
.grid:last-child { margin-bottom: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1180px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: 64px; }
  .side-title, .menu-item span:not(.mi), .menu-group, .side-foot { display: none; }
}

/* =============================== 统计块 =============================== */
.stat { padding: 16px 17px 15px; position: relative; }
.stat .k { font-size: 12px; color: var(--text-3); margin-bottom: 6px; letter-spacing: .1px; }
.stat .v {
  font-size: 24px; font-weight: 680; letter-spacing: -.6px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stat .d { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.stat .v.sm { font-size: 17px; letter-spacing: -.2px; }
.stat .v.mono { font-family: var(--mono); font-size: 18px; }
.c-brand { color: var(--brand); } .c-red { color: var(--red); }
.c-green { color: var(--green); } .c-amber { color: var(--amber); }
.c-muted { color: var(--text-3); }

/* KPI 卡：带顶部色条与轻渐变，用于「一眼看结论」的位置 */
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 15px 16px 14px; position: relative;
  overflow: hidden; transition: box-shadow .18s, transform .18s;
}
.kpi::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand-grad); opacity: .85;
}
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi.good::before { background: linear-gradient(135deg, #19b46a, #0f9d58); }
.kpi.warn::before { background: linear-gradient(135deg, #f0b429, #d98800); }
.kpi.bad::before { background: linear-gradient(135deg, #ef5b60, #d92b32); }
.kpi.muted::before { background: linear-gradient(135deg, #b9c3d3, #96a1b3); }
.kpi .k { font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.kpi .v {
  font-size: 23px; font-weight: 680; letter-spacing: -.6px;
  font-variant-numeric: tabular-nums; line-height: 1.22;
}
.kpi .v.sm { font-size: 16.5px; letter-spacing: -.2px; }
.kpi .d { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.55; }

/* =============================== 结论横幅 =============================== */
.hero {
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .10), transparent 70%);
}
.hero .h-k { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .5px; }
.hero .h-v {
  font-size: 25px; font-weight: 700; letter-spacing: -.6px; margin: 6px 0 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hero .h-t { font-size: 13px; color: var(--text-2); line-height: 1.75; max-width: 96ch; }
/* 收紧版：顶部结论只值两三行高度，不值得占半屏 */
.hero.compact { padding: 13px 18px 12px; margin-bottom: 14px; }
.hero.compact .h-v { font-size: 16.5px; margin: 4px 0 5px; letter-spacing: -.2px; }
.hero.compact .h-v .hv-sub { font-size: 12.5px; color: var(--text-2); font-weight: 400; }
.hero.compact .h-t { font-size: 12.3px; line-height: 1.6; }
.hero.compact .best-line {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 12.3px; color: var(--text-2); line-height: 1.6;
}
.hero.compact .best-line b { color: var(--text); }
.hero.good { border-left: 4px solid var(--green); }
.hero.info { border-left: 4px solid var(--brand); }
.hero.warn { border-left: 4px solid var(--amber); }
.hero.bad { border-left: 4px solid var(--red); }

/* =============================== 表格 =============================== */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; font-weight: 600; color: var(--text-2); font-size: 11.5px;
  padding: 10px 13px; background: var(--panel-2); letter-spacing: .2px;
  border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0;
  z-index: 1;
}
table.tb td {
  padding: 9px 13px; border-bottom: 1px solid #f0f3f8;
  vertical-align: middle; white-space: nowrap;
}
table.tb tbody tr:hover { background: #f8fbff; }
table.tb tbody tr:last-child td { border-bottom: none; }
table.tb td.num, table.tb th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tb td.mono { font-family: var(--mono); font-size: 12.5px; }
table.tb.compact td, table.tb.compact th { padding: 6px 10px; }
.empty { padding: 42px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty .big { font-size: 26px; display: block; margin-bottom: 8px; opacity: .5; }

/* =============================== 号码球 =============================== */
.balls { display: inline-flex; gap: 4px; align-items: center; }
.ball {
  width: 25px; height: 25px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 650; color: #fff; font-family: var(--mono);
}
.ball.draw { background: var(--red); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.ball.test { background: var(--brand); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.ball.sm { width: 21px; height: 21px; font-size: 11.5px; }
.chip {
  display: inline-block; padding: 1.5px 8px; border-radius: 10px;
  font-size: 11.5px; background: #f0f3f8; color: var(--text-2); white-space: nowrap;
}
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.gray { background: #f0f2f6; color: var(--text-3); }

/* =============================== 提示条 =============================== */
.note {
  border-radius: var(--radius); padding: 12px 14px; font-size: 12.8px;
  border: 1px solid; line-height: 1.7; display: flex; gap: 10px; margin-bottom: 16px;
}
.note .ni { flex: none; font-size: 15px; line-height: 1.35; }
.note.info { background: var(--brand-soft); border-color: #cddffd; color: #1b4bb8; }
.note.warn { background: var(--amber-soft); border-color: #f6dfae; color: #8a5a00; }
.note.bad { background: var(--red-soft); border-color: #f7ccce; color: #a51f25; }
.note.good { background: var(--green-soft); border-color: #bfe6d0; color: #0b6b36; }
.note strong { font-weight: 650; }

/* =============================== 表单行 =============================== */
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row .field { margin-bottom: 0; min-width: 130px; }
.form-row .field.grow { flex: 1; min-width: 200px; }
.inline { display: flex; align-items: center; gap: 8px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 开关 */
.switch { position: relative; width: 38px; height: 21px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .sl {
  position: absolute; inset: 0; background: #ccd3de; border-radius: 11px;
  transition: background .18s;
}
.switch .sl::before {
  content: ""; position: absolute; width: 17px; height: 17px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch input:checked + .sl { background: var(--brand); }
.switch input:checked + .sl::before { transform: translateX(17px); }

/* =============================== 进度条 =============================== */
.bar { height: 6px; background: #eaeef5; border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .3s; }
.bar.ok > i { background: var(--green); }
.bar.bad > i { background: var(--red); }

/* =============================== 弹层 =============================== */
.modal-layer {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 28, 42, .38);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(1px);
}
.modal {
  background: var(--panel); border-radius: 12px; width: 620px; max-width: 100%;
  max-height: 86vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal.wide { width: 900px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot {
  padding: 12px 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 8px;
}
.modal-foot:empty { display: none; }

/* 抽屉 */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 92vw;
  background: var(--panel); z-index: 88; box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--line); display: flex; flex-direction: column;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }

/* =============================== Toast =============================== */
.toast-box {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 9px 16px; border-radius: 8px; font-size: 13px;
  background: #232b38; color: #fff; box-shadow: var(--shadow-lg);
  animation: toastIn .2s ease-out; max-width: 70vw;
}
.toast.ok { background: #106b3c; }
.toast.err { background: #a51f25; }
.toast.warn { background: #8a5a00; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* =============================== 图表（纯 SVG） =============================== */
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* 分组条（横条对比） */
.hbar { display: grid; grid-template-columns: 76px 1fr 68px; gap: 9px; align-items: center; margin-bottom: 5px; font-size: 12.5px; }
.hbar .lb { color: var(--text-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { position: relative; height: 18px; background: #f2f5f9; border-radius: 4px; overflow: hidden; }
.hbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 4px; }
.hbar .fill.theory { background: #c3cddd; }
.hbar .vv { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12px; }

/* 号码热度格 */
.heat { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.heat .cell {
  border-radius: 5px; padding: 7px 2px; text-align: center;
  font-size: 11.5px; line-height: 1.35; border: 1px solid transparent;
}
.heat .cell b { display: block; font-size: 14px; font-family: var(--mono); }

/* 分栏小标题 */
.sec-title {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  margin: 0 0 9px; display: flex; align-items: center; gap: 7px;
}
.sec-title::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: var(--brand); display: block;
}

/* 键值列表 */
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; font-size: 12.8px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }

/* 模块卡 */
.mod-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; background: var(--panel); }
.mod-card.off { opacity: .56; background: var(--panel-2); }
.mod-card .mc-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 7px; }
.mod-card .mc-name { font-size: 13.5px; font-weight: 600; }
.mod-card .mc-code { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.mod-card .mc-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 9px; }
.mod-card .mc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* 标签页 —— 胶囊风格，避免整页看起来像老式后台 */
.tabs {
  display: inline-flex; gap: 3px; padding: 4px; margin-bottom: 18px; flex-wrap: wrap;
  background: #eaeef6; border-radius: 11px; border: none;
}
.tab {
  padding: 7px 15px; font-size: 13px; color: var(--text-2); cursor: pointer;
  border-radius: 8px; border: none; user-select: none;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .6); }
.tab.active {
  color: var(--brand); background: #fff; font-weight: 600;
  box-shadow: 0 1px 3px rgba(18, 28, 45, .10);
}

/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 16px; font-size: 12.5px; color: var(--text-2); }
.pager .pg-info { margin-right: auto; color: var(--text-3); }

/* 代码块 */
pre.code {
  background: #f7f9fc; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.65;
  overflow: auto; max-height: 340px; margin: 0; color: #253044; white-space: pre-wrap; word-break: break-word;
}

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d3dae5; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #bcc6d5; }

/* 加载动画 */
.spinner {
  display: inline-block; width: 14px; height: 14px; flex: none;
  border: 2px solid rgba(37, 99, 235, .25); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 44px; text-align: center; color: var(--text-3); font-size: 13px; }
.loading .spinner { width: 22px; height: 22px; border-width: 2.5px; margin-bottom: 10px; }

/* ==========================================================================
   设计升级：新增组件
   ========================================================================== */

/* ---------- 折叠「高级参数」：默认收起，避免一屏全是输入框 ---------- */
.adv { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); margin-top: 14px; }
.adv > summary {
  list-style: none; cursor: pointer; padding: 11px 15px;
  font-size: 12.8px; color: var(--text-2); font-weight: 600;
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.adv > summary::-webkit-details-marker { display: none; }
.adv > summary::before {
  content: "›"; font-size: 16px; line-height: 1; color: var(--text-3);
  transition: transform .18s; display: inline-block;
}
.adv[open] > summary::before { transform: rotate(90deg); }
.adv > summary:hover { color: var(--text); }
.adv > summary .hint { font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.adv .adv-body { padding: 4px 15px 15px; border-top: 1px dashed var(--line); }

/* ---------- 预设按钮组：一句话选好参数 ---------- */
.presets { display: flex; gap: 9px; flex-wrap: wrap; align-items: stretch; }
.preset {
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-sm);
  padding: 11px 15px; cursor: pointer; min-width: 168px; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s; font-family: inherit;
}
.preset:hover { border-color: var(--brand); box-shadow: 0 8px 20px -12px rgba(47, 107, 255, .8); }
.preset:active { transform: translateY(1px); }
.preset.on { border-color: var(--brand); background: var(--brand-soft); }
.preset b { display: block; font-size: 13.2px; font-weight: 650; margin-bottom: 3px; }
.preset span { font-size: 11.5px; color: var(--text-3); line-height: 1.5; display: block; }

/* ---------- 判定条：把「结论 + 依据数字」并排给出 ---------- */
.verdict-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2);
  margin-bottom: 10px;
}
.verdict-row .vr-tag { flex: none; }
.verdict-row .vr-main { flex: 1; min-width: 0; }
.verdict-row .vr-t { font-size: 13.2px; font-weight: 600; margin-bottom: 3px; }
.verdict-row .vr-d { font-size: 12px; color: var(--text-2); line-height: 1.7; }

/* ---------- 号码卡（推荐位） ---------- */
/* 参考组合固定「一行 5 个」：auto-fill 会按容器宽度算出 6/7 列，10 注被切成
   6+4 两行，末行留一截空白且两组对不齐，看着像没排好版。 */
.picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
.picks.p5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.picks.p6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pick {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px;
  background: var(--panel); position: relative; overflow: hidden;
}
.pick.top { border-color: #cbdcff; background: linear-gradient(180deg, #f7faff 0%, #ffffff 70%); }
.pick .pk-r { position: absolute; right: 10px; top: 9px; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.pick .pk-b { margin: 5px 0 7px; }
.pick .pk-m { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

/* ---------- 提示条升级 ---------- */
.note {
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 12.9px;
  border: 1px solid; line-height: 1.75; display: flex; gap: 11px; margin-bottom: 16px;
  align-items: flex-start;
}
.note .ni { flex: none; font-size: 14.5px; line-height: 1.4; font-weight: 700; }
.note.info { background: linear-gradient(180deg, #f2f7ff 0%, #eef3ff 100%); border-color: #d2e0fd; color: #1b47a8; }
.note.warn { background: linear-gradient(180deg, #fffaf0 0%, #fff6e5 100%); border-color: #f3dcac; color: #85560a; }
.note.bad { background: linear-gradient(180deg, #fef5f5 0%, #fdeff0 100%); border-color: #f6cdd0; color: #a01d23; }
.note.good { background: linear-gradient(180deg, #f3fbf7 0%, #eaf8f0 100%); border-color: #c3e7d3; color: #0a6a37; }
.note strong { font-weight: 650; }
.note code, .hero code { font-size: 11.8px; }

/* ---------- 模块卡升级 ---------- */
.mod-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 15px;
  background: var(--panel); transition: box-shadow .16s, border-color .16s;
}
.mod-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.mod-card.off { opacity: .58; background: var(--panel-2); }
.mod-card .mc-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.mod-card .mc-name { font-size: 13.5px; font-weight: 650; }
.mod-card .mc-code { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.mod-card .mc-desc { font-size: 12px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.mod-card .mc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- 号码球微调 ---------- */
.ball {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 650; color: #fff; font-family: var(--mono);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 5px -2px rgba(18, 28, 45, .3);
}
.ball.draw { background: linear-gradient(180deg, #f0575d 0%, #d92b32 100%); }
.ball.test { background: linear-gradient(180deg, #4b86ff 0%, #2455d8 100%); }
.ball.sm { width: 22px; height: 22px; font-size: 11.5px; }

/* ---------- 分节标题 ---------- */
.sec-title {
  font-size: 12.5px; font-weight: 650; color: var(--text-2);
  margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
.sec-title::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: var(--brand-grad); display: block;
}

/* ---------- 键值列表 ---------- */
.kv { display: grid; grid-template-columns: 118px 1fr; gap: 7px 14px; font-size: 12.9px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }

/* ---------- 横向条 ---------- */
.hbar { display: grid; grid-template-columns: 78px 1fr 72px; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 12.5px; }
.hbar .track { position: relative; height: 19px; background: #eff3f9; border-radius: 5px; overflow: hidden; }
.hbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.hbar .fill.theory { background: #c9d2e1; }
.hbar .vv { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12px; }

/* ---------- 登录页 ---------- */
.login-layer {
  background: radial-gradient(1100px 600px at 15% 0%, #e2ebfd 0%, rgba(226, 235, 253, 0) 60%),
              radial-gradient(900px 520px at 100% 100%, #e7eefe 0%, rgba(231, 238, 254, 0) 55%),
              linear-gradient(140deg, #eff3fb 0%, #f8fafd 45%, #edf3ff 100%);
}
.login-card { border-radius: 18px; padding: 34px 32px 26px; border-color: #e0e7f3; }
.login-logo {
  width: 48px; height: 48px; border-radius: 14px; background: var(--brand-grad);
  box-shadow: 0 10px 22px -10px rgba(47, 107, 255, .9);
}
.login-brand h1 { font-size: 18px; letter-spacing: -.2px; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d5dce8; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #bcc7d8; background-clip: content-box; }

/* ---------- 工具类 ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; }
.fs-12 { font-size: 12px; } .fs-115 { font-size: 11.5px; } .fs-14 { font-size: 14px; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   视觉体系 v3 ——  结构重排 + 细节打磨
   目标：从「默认后台模板」变成「像产品」。三条线：
     1. 统一的尺寸/圆角/阴影刻度（不是一个组件一套值）；
     2. 用内联 SVG 图标取代 unicode 符号（字形依赖字体，是廉价感的主因）；
     3. 克制的动效：只在状态变化处用（入场、hover、进度），不做无意义装饰。
   本节放在文件末尾，靠层叠覆盖上面的旧定义，`/* 契约 *\/` 内的 class 名保持不变，
   各视图 JS 无需改动。
   ========================================================================== */

:root {
  --bg: #f4f6fb;
  --bg-grad-1: #eef2fb;
  --bg-grad-2: #f8fafd;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #f1f4f9;
  --line: #e8ecf4;
  --line-strong: #d3dbe8;
  --text: #101828;
  --text-2: #475467;
  --text-3: #98a2b3;

  --brand: #3b5bdb;
  --brand-2: #5b7cfa;
  --brand-soft: #eef2ff;
  --brand-dark: #2947b8;
  --brand-grad: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);

  --red: #e03131;
  --red-soft: #fff0f0;
  --green: #0f9d58;
  --green-soft: #e9f8f0;
  --amber: #c07800;
  --amber-soft: #fff8e8;
  --violet: #7048e8;
  --violet-soft: #f3f0ff;

  --r-lg: 16px;
  --r: 12px;
  --r-sm: 9px;
  --r-xs: 7px;
  --radius: var(--r-lg);
  --radius-sm: var(--r-sm);
  --radius-xs: var(--r-xs);

  --sh-1: 0 1px 2px rgba(16, 24, 40, .04);
  --sh-2: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px -4px rgba(16, 24, 40, .08);
  --sh-3: 0 2px 4px rgba(16, 24, 40, .05), 0 12px 28px -10px rgba(16, 24, 40, .16);
  --sh-4: 0 24px 60px -16px rgba(16, 24, 40, .26);
  --shadow-xs: var(--sh-1);
  --shadow: var(--sh-2);
  --shadow-md: var(--sh-3);
  --shadow-lg: var(--sh-4);

  --ring: 0 0 0 3px rgba(59, 91, 219, .16);
  --side-w: 208px;
  --side-w-mini: 64px;
}

/* ---------- 基础排版 ---------- */
body { background-image:
  radial-gradient(1100px 520px at 10% -10%, #e9effc 0%, rgba(233, 239, 252, 0) 62%),
  radial-gradient(900px 480px at 100% 0%, #eef1ff 0%, rgba(238, 241, 255, 0) 58%); }
::selection { background: rgba(59, 91, 219, .16); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
code { background: #f3f5fa; border: 1px solid var(--line); padding: 0 5px; }

/* 图标：所有内联 SVG 统一尺寸与描边，避免各处大小不一 */
.ico { width: 16px; height: 16px; flex: none; display: block; }
.bi { display: inline-flex; align-items: center; justify-content: center; }

/* =============================== 骨架 =============================== */
.shell { --side-w: 208px; }
.sidebar {
  width: var(--side-w); background: #fff; border-right: 1px solid var(--line);
  transition: width .18s ease; z-index: 6;
}
.side-brand { position: relative; padding: 16px 14px; gap: 10px; border-bottom: 1px solid var(--line); }
.side-logo {
  width: 38px; height: 38px; border-radius: 12px; font-size: 13px;
  background: var(--brand-grad);
  box-shadow: 0 8px 18px -8px rgba(59, 91, 219, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.side-title strong { font-size: 14px; letter-spacing: -.1px; }
.side-title span { font-size: 11px; }
.side-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--text-3); cursor: pointer; font-size: 12px;
  line-height: 1; display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: all .15s;
}
.side-toggle:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

.menu { padding: 10px 10px 18px; }
.menu-group {
  font-size: 10px; padding: 14px 10px 6px; letter-spacing: .9px; color: #a3adbd;
}
.menu-item {
  padding: 8px 10px; margin-bottom: 2px; gap: 10px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--text-2); position: relative;
}
.menu-item .mi { width: 22px; height: 22px; display: flex; align-items: center;
  justify-content: center; color: var(--text-3); transition: color .14s; }
.menu-item:hover { background: var(--panel-3); color: var(--text); }
.menu-item:hover .mi { color: var(--text-2); }
.menu-item.active {
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 600;
  box-shadow: none;
}
.menu-item.active .mi { color: var(--brand); }
.menu-item.active::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--brand);
}

.side-foot { padding: 12px 14px; background: #fff; }
.side-status { font-size: 11.5px; margin-bottom: 8px; }
.side-auto {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px;
  padding: 6px 8px; border-radius: var(--r-xs); line-height: 1.4;
  background: var(--green-soft); color: #0a6b3c;
}
.side-auto .ico { width: 13px; height: 13px; }
.side-auto.off { background: var(--panel-3); color: var(--text-3); }

/* 收起态 */
.shell.mini .sidebar { width: var(--side-w-mini); }
.shell.mini .side-title,
.shell.mini .menu-group,
.shell.mini .menu-item .mt,
.shell.mini .side-status span:not(.dot),
.shell.mini .side-auto span:not(.bi) { display: none; }
.shell.mini .side-brand { padding: 14px 0 22px; justify-content: center; }
.shell.mini .side-toggle {
  top: auto; bottom: -13px; right: auto; left: 50%; transform: translateX(-50%);
}
.shell.mini .menu { padding: 14px 10px 18px; }
.shell.mini .menu-item { justify-content: center; padding: 9px 0; }
.shell.mini .menu-item.active::before { left: -10px; }
.shell.mini .side-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.shell.mini .side-auto { padding: 6px; }

/* =============================== 顶栏 =============================== */
.topbar {
  padding: 12px 26px; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); gap: 18px; flex: none;
}
.crumb h2 { font-size: 19px; letter-spacing: -.3px; }
.page-desc { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.top-actions { gap: 10px; }

.draw-clock {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line);
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.draw-clock .dc-k { color: var(--text-3); font-size: 11.5px; }
.draw-clock .dc-v { font-size: 13px; font-weight: 650; color: var(--brand-dark);
  font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.draw-clock.over { background: var(--amber-soft); border-color: #f5e3b8; }
.draw-clock.over .dc-v { color: var(--amber); }
.draw-clock.pending { background: var(--red-soft); border-color: #f6cdd0;
  animation: pulseSoft 2s ease-in-out infinite; }
.draw-clock.pending .dc-v { color: var(--red); }
@keyframes pulseSoft { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }

.btn-soft { background: var(--panel-3); border-color: transparent; color: var(--text-2); }
.btn-soft:hover { background: #e8ecf5; color: var(--text); border-color: transparent; }
.btn-soft.live { background: var(--brand-soft); color: var(--brand-dark); }
.btn-icon { padding: 8px 10px; color: var(--text-2); }

.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
.uc-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 650;
  color: #fff; background: var(--brand-grad);
}
.uc-txt { display: flex; flex-direction: column; line-height: 1.25; }
.uc-txt b { font-size: 12.5px; font-weight: 600; }
.uc-txt i { font-style: normal; font-size: 11px; color: var(--text-3); }
.uc-out {
  width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all .14s;
}
.uc-out:hover { background: var(--red-soft); color: var(--red); }

/* =============================== 内容区 =============================== */
.view { padding: 22px 26px 56px; scroll-behavior: smooth; }
.view-in { animation: viewIn .22s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1680px) { .view > * { max-width: 1560px; } }

/* =============================== 卡片 =============================== */
.card {
  border-radius: var(--r-lg); border-color: var(--line); box-shadow: var(--sh-2);
  margin-bottom: 18px;
}
.card-head {
  padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line);
  gap: 14px;
}
.card-head h3 { font-size: 14.5px; letter-spacing: -.1px; display: flex;
  align-items: center; gap: 9px; }
.card-head .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.card-body { padding: 18px; }

/* =============================== 按钮 =============================== */
.btn {
  border-radius: var(--r-sm); padding: 8px 14px; font-size: 13px; font-weight: 550;
  border-color: var(--line-strong); transition: all .14s;
}
.btn:hover { box-shadow: var(--sh-1); }
.btn-primary {
  background: var(--brand-grad); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(59, 91, 219, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 10px 22px -10px rgba(59, 91, 219, 1),
  inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { padding: 11px; font-size: 14px; }
.badge { background: var(--red); box-shadow: 0 0 0 2px #fff; }

/* 分段控件 */
.seg {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--panel-3); border: 1px solid var(--line); margin-bottom: 14px;
}
.seg-i {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12.5px; color: var(--text-2); padding: 6px 11px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 6px; transition: all .14s;
  white-space: nowrap;
}
.seg-i:hover { color: var(--text); }
.seg-i.on { background: #fff; color: var(--brand-dark); font-weight: 600;
  box-shadow: var(--sh-1); }
.seg-n { font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 7px;
  background: #e6eaf3; color: var(--text-2); line-height: 15px; }
.seg-i.on .seg-n { background: var(--brand-soft); color: var(--brand); }

/* =============================== 表格 =============================== */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); }
table.tb { font-size: 13px; }
table.tb th {
  padding: 10px 13px; font-size: 11px; letter-spacing: .5px; text-transform: none;
  color: var(--text-3); background: var(--panel-2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
table.tb td { padding: 10px 13px; border-bottom: 1px solid #f2f5fa; color: var(--text); }
table.tb tbody tr { transition: background .12s; }
table.tb tbody tr:hover { background: #f7faff; }
table.tb.zebra tbody tr:nth-child(even) { background: #fbfcfe; }
table.tb.zebra tbody tr:nth-child(even):hover { background: #f7faff; }
table.tb td.wrap, table.tb th.wrap { white-space: normal; min-width: 180px; }
table.tb.compact td { padding: 7px 11px; }
table.tb.compact th { padding: 8px 11px; }

.empty { padding: 40px 16px; }
.empty .big { font-size: 28px; opacity: .35; color: var(--brand); }

/* =============================== 卡片里的小件 =============================== */
.stat { padding: 16px 18px 15px; }
.stat .k { font-size: 12px; color: var(--text-3); }
.stat .v { font-size: 25px; font-weight: 700; letter-spacing: -.7px; }
.stat .d { font-size: 11.5px; }

.kpi { border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 16px 17px 15px; }
.kpi::before { height: 3px; opacity: 1; }
.kpi .v { font-size: 24px; font-weight: 700; }

.hero { border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 22px 24px; }
.hero::after { background: radial-gradient(circle, rgba(59, 91, 219, .10), transparent 68%); }
.hero .h-k { font-size: 11.5px; letter-spacing: .6px; }
.hero .h-v { font-size: 26px; letter-spacing: -.7px; }
.hero .h-t { font-size: 13px; line-height: 1.8; color: var(--text-2); }
.hero.good { border-left: 3px solid var(--green); }
.hero.info { border-left: 3px solid var(--brand); }
.hero.warn { border-left: 3px solid var(--amber); }
.hero.bad { border-left: 3px solid var(--red); }

/* =============================== 提示条（去渐变，留色条） =============================== */
.note {
  border-radius: var(--r); padding: 12px 14px 12px 13px; font-size: 12.9px;
  gap: 10px; border-left-width: 3px; border-left-style: solid; margin-bottom: 14px;
  background: #fff;
}
.note .ni { display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; margin-top: 1px; }
.note .ni .ico { width: 13px; height: 13px; stroke-width: 2.1; }
.note.info { background: #f7f9ff; border-color: #dbe3fa; border-left-color: var(--brand);
  color: #2a3f8f; }
.note.info .ni { background: #e3eaff; color: var(--brand); }
.note.warn { background: #fffaf0; border-color: #f5e3b8; border-left-color: var(--amber);
  color: #7a4d00; }
.note.warn .ni { background: #fdeecb; color: var(--amber); }
.note.bad { background: #fff6f6; border-color: #f6cdd0; border-left-color: var(--red);
  color: #93201f; }
.note.bad .ni { background: #fbdedf; color: var(--red); }
.note.good { background: #f4fbf7; border-color: #c8e8d6; border-left-color: var(--green);
  color: #0a6135; }
.note.good .ni { background: #d7f0e2; color: var(--green); }

.chip { border-radius: 7px; padding: 1px 7px; font-size: 11.5px; font-weight: 550; }

/* =============================== 号码球 =============================== */
.ball { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .13), 0 2px 6px -2px rgba(16, 24, 40, .34); }

/* =============================== 骨架屏 =============================== */
.sk { display: flex; flex-direction: column; gap: 12px; }
.sk-row { display: flex; gap: 10px; }
.sk-line { height: 12px; border-radius: 6px; flex: 1;
  background: linear-gradient(90deg, #eef1f7 0%, #f6f8fc 50%, #eef1f7 100%);
  background-size: 200% 100%; animation: skShim 1.3s linear infinite; }
.sk-line.tall { height: 24px; width: 60%; flex: none; }
.sk-line.w1 { flex: 2; } .sk-line.w2 { flex: 3; } .sk-line.w3 { flex: 1.2; }
.sk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 17px; box-shadow: var(--sh-2); }
@keyframes skShim { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* =============================== 任务抽屉 =============================== */
.drawer {
  width: 520px; max-width: 94vw; box-shadow: -18px 0 48px -18px rgba(16, 24, 40, .28);
  border-left: 1px solid var(--line);
}
.drawer-head { padding: 15px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 15px; }
.dh-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.drawer-body { padding: 14px 16px 26px; background: var(--bg); }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.task-row:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.task-row.live { border-color: #c8d5fb; }
.task-row.live::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-grad); animation: pulseSoft 1.8s ease-in-out infinite;
}
.task-row.err { border-color: #f6cdd0; }
.task-row.err::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--red); }
.tr-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.tr-id { font-size: 11px; color: var(--text-3); }
.tr-title { font-size: 13.2px; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-bar { height: 5px; margin-bottom: 9px; }
.tr-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px;
  color: var(--text-3); }
.tr-meta span:first-child { flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.tr-meta .btn { margin-left: auto; }
.task-foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 14px 0 4px; }

/* =============================== 弹层 / Toast =============================== */
.modal { border-radius: var(--r-lg); box-shadow: var(--sh-4); border: 1px solid var(--line); }
.modal-head { padding: 15px 18px; }
.modal-body { padding: 18px; }
.modal-foot { padding: 13px 18px; background: var(--panel-2); }
.modal-layer { background: rgba(16, 24, 40, .34); backdrop-filter: blur(3px); }

.toast-box { top: auto; bottom: 22px; right: 22px; left: auto; transform: none;
  align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px 10px 11px;
  border-radius: var(--r); font-size: 13px; background: #fff; color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--sh-3); max-width: 380px;
  animation: toastIn .2s ease-out;
}
.toast .t-i { width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; }
.toast .t-i .ico { width: 12px; height: 12px; stroke-width: 2.3; }
.toast .t-m { line-height: 1.5; }
.toast.ok .t-i { background: var(--green-soft); color: var(--green); }
.toast.err .t-i { background: var(--red-soft); color: var(--red); }
.toast.warn .t-i { background: var(--amber-soft); color: var(--amber); }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast.warn { border-left: 3px solid var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================== 登录页 =============================== */
.login-layer { padding: 28px; }
.login-shell {
  display: grid; grid-template-columns: minmax(0, 1.05fr) 396px;
  width: 940px; max-width: 100%; background: #fff; border-radius: 22px;
  overflow: hidden; box-shadow: var(--sh-4); border: 1px solid var(--line);
  animation: viewIn .28s ease-out;
}
.login-hero {
  padding: 42px 40px 38px; position: relative; color: #fff;
  background: linear-gradient(150deg, #3b5bdb 0%, #4c6ef5 48%, #6b8afd 100%);
  display: flex; flex-direction: column;
}
.login-hero::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 320px;
  height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 68%);
}
.lh-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.lh-logo {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; letter-spacing: .4px;
}
.lh-brand strong { display: block; font-size: 15px; }
.lh-brand span { font-size: 11.5px; opacity: .78; }
.login-hero h1 { font-size: 27px; line-height: 1.34; letter-spacing: -.6px;
  font-weight: 700; margin-bottom: 14px; }
.lh-sub { font-size: 12.8px; line-height: 1.85; opacity: .88; }
.lh-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex;
  flex-direction: column; gap: 13px; margin-top: auto; }
.lh-list li { display: flex; flex-direction: column; gap: 2px;
  padding-left: 20px; position: relative; }
.lh-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}
.lh-list b { font-size: 13px; font-weight: 600; }
.lh-list span { font-size: 11.8px; opacity: .8; }

.login-card {
  width: auto; border: none; border-radius: 0; box-shadow: none;
  padding: 44px 38px 32px; display: flex; flex-direction: column; background: #fff;
}
.lc-head { margin-bottom: 24px; }
.lc-head h2 { font-size: 20px; letter-spacing: -.3px; }
.lc-head p { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.login-card .field > span { font-size: 12.5px; }
.login-card .field input { padding: 10px 13px; }
.login-msg { min-height: 20px; }
.btn-block { margin-top: 4px; }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); width: 420px; }
  .login-hero { display: none; }
  .login-card { padding: 30px 26px 24px; }
}

/* =============================== 响应式收尾 =============================== */
@media (max-width: 1180px) {
  .view { padding: 20px 18px 48px; }
  .topbar { padding: 12px 18px; }
  .draw-clock { display: none; }
}
@media (max-width: 820px) {
  .sidebar { width: var(--side-w-mini); }
  .side-title, .menu-group, .menu-item .mt, .side-status span:not(.dot) { display: none; }
  .menu-item { justify-content: center; padding: 9px 0; }
  .user-chip .uc-txt { display: none; }
  /* 一行 5 个在窄屏会挤到看不清号码 */
  .picks.p5, .picks.p6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   v3 收尾：把旧的胶囊 tabs 统一到和 seg 一样的视觉语言
   （同一个界面里出现两套「选项条」是最容易暴露拼凑感的地方）
   ========================================================================== */
.tabs {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--panel-3); border: 1px solid var(--line); flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab {
  padding: 6px 13px; font-size: 12.8px; border-radius: 7px; color: var(--text-2);
  font-weight: 500; transition: all .14s;
}
.tab:hover { background: rgba(255, 255, 255, .72); color: var(--text); }
.tab.active {
  background: #fff; color: var(--brand-dark); font-weight: 600;
  box-shadow: var(--sh-1);
}

/* 图标再放大一点点：16px 在 1080p 下偏轻，读起来像「装饰」而不是「控件」 */
.menu-item .mi .ico { width: 17px; height: 17px; }
.btn .ico { width: 15px; height: 15px; }
.top-actions .btn .ico { width: 16px; height: 16px; }

/* 已完成任务的进度条不必再抢注意力 */
.task-row .bar.ok > i { background: #b7ddc8; }
.task-row .bar.ok { background: #eef5f1; }

/* 分页条在抽屉里居中一些 */
.drawer-body .pager { justify-content: center; padding: 14px 0 4px; }
.drawer-body .pager .pg-info { margin-right: 8px; }

/* 图标降级位：调用方传了 PATHS 里没有的名字时（历史代码传 unicode 字符），
   这里兜底成一颗有尺寸约束的字符，避免裸字符破坏提示条的对齐。 */
.note .ni .ni-i { font-size: 12px; line-height: 1; font-weight: 700; }

/* 结构主推小方块：值大字在上、概率小字在下。
   旧版把「13 7.5%」塞进一颗 chip，读起来像「13.7.5%」。 */
.mini-pick {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 46px; padding: 6px 9px 5px; margin: 0 6px 6px 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel-2); line-height: 1.25;
}
.mini-pick b { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.mini-pick i { font-style: normal; font-size: 11px; color: var(--text-3); }

/* ==========================================================================
   历史数据页：固定表头 + 翻页不跳顶 + 标签页与顶部卡片的呼吸
   ========================================================================== */

/* 表头吸顶：容器自己滚，th 才吸得住（th 的 sticky 已在上面定义）。
   限高取视口比例，小屏也不会把分页条挤出屏幕。 */
.table-wrap.stick-wrap {
  max-height: 64vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.table-wrap.stick-wrap table.tb th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-2);
  /* 吸住时不留半像素缝隙（滚动到非整数位置时旧版会露出下一行） */
  box-shadow: inset 0 -1px 0 var(--line);
}
.table-wrap.stick-wrap { border-radius: var(--r-lg); }
.table-wrap.stick-wrap table.tb { border-collapse: separate; border-spacing: 0; }

/* 加载态撑住原高度：翻页时页面不该塌下去 */
.loading-wrap { display: flex; align-items: center; justify-content: center;
  min-height: 120px; }

/* 标签页与顶部统计卡之间留出呼吸，别糊在一起 */
.tabs { margin: 20px 0 14px; }

/* ==========================================================================
   总览页：覆盖卡等高填充
   ========================================================================== */
/* 2026-09-22：总览的「信号检定结论」卡片已移除（结论长期恒定、且占首屏一整块），
   随之删掉 .sig-grid / .sig-item / details.why 这几条只服务于它的规则。 */

.fs-11 { font-size: 11px; font-weight: 400; }

/* ==========================================================================
   历史数据页：筛选区网格化 + 结果区卡片化
   ========================================================================== */

/* 筛选用等宽流动网格，控件不再按 flex 宽度参差换行；
   input 与 select 同高通透也能消除原先 2px 的错位。 */
.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 13px 14px; align-items: start;
}
.filters .field { margin-bottom: 0; min-width: 0; }
.filters .field input,
.filters .field select { height: 36px; padding: 0 11px; width: 100%; }
.filters .field input[type="date"] { padding: 0 9px; }
.filters .field > span { margin-bottom: 5px; }

/* 操作条：独立一行、靠右，和上面的字段区有明确分界 */
.filters-act {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.filters-act .f-hint { margin-right: auto; font-size: 12px; color: var(--text-3); }

/* 购彩记录：一次可以贴一串号码，用等宽字体把数字对齐，纵向可拉长便于核对 */
.digits-input {
  font-family: var(--mono); letter-spacing: .6px;
  line-height: 1.7; resize: vertical; min-height: 58px;
}

/* ==========================================================================
   历史数据页 v4：筛选条件压回**一行**
   v3 是「标签在上、4 列 × 2 行」，光筛选就占近 200px 高（用户反馈「太多行了」）。
   v4 的三招：
     1) 标签挪到控件左侧做成 inline → 省掉整行标签（这是高度的主要来源）；
     2) 控件收窄到贴合内容（期号 62 / 和值 42 …），高 32px；
     3) 排序项文案缩成「倒序 / 正序」。
   兜底：条件区 nowrap + overflow-x（窗口太窄时横向滚动），
   绝不换行 —— 换行就变回用户不想要的「好多行」。
   2026-09-22 二次改：查询/重置按用户要求从卡片头工具条移到**这一行的末尾**。
   flex 分工保证了这不会把按钮弄丢：.flt-fields 是 flex:1 + min-width:0 +
   overflow-x（窄了它在自己内部滚），.flt-btns 是 flex:none（始终占满自身宽度、
   永远可见可用）。代价是条件区可用宽度少了约 120px，窄屏会先出横向滚动条。
   实测 1264px 视口（卡片内容宽 956）下 7 个条件共约 874px，无滚动条。
   ========================================================================== */
/* gap 10 而不是原来的 12：按钮进到这一行后条件区少了约 120px，
   在 1264px 视口下会溢出 14px（末尾「正序」右边缘被切 + 冒出横向滚动条）。
   条件区间隙同步从 8 收到 6（7 项共 6 个间隔，省 12px），两处合计刚好归零。 */
.flt-row { display: flex; align-items: center; gap: 10px; }
.flt-fields {
  display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden; padding: 1px 0 3px;
  scrollbar-width: thin;
}
.flt-fields::-webkit-scrollbar { height: 6px; }
.flt-fields::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.flt-fields::-webkit-scrollbar-track { background: transparent; }
.flt-fields .fitem {
  display: flex; align-items: center; gap: 5px; flex: none;
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.flt-fields input, .flt-fields select {
  height: 32px; padding: 0 8px; border: 1px solid var(--line-strong);
  border-radius: var(--r-xs); background: #fff; color: var(--text);
  font-size: 12.5px; font-family: inherit;
}
.flt-fields input:focus, .flt-fields select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}
.flt-fields select { cursor: pointer; padding-right: 4px; }
.flt-fields input[type="date"] { font-family: var(--mono); font-size: 11.5px; padding: 0 6px; }
/* 每个控件按内容定宽：宽一点就把后面的字段挤到滚动区外 */
.flt-fields .fitem input[type="text"] { width: 62px; }
.flt-fields .fitem input[type="number"] { width: 42px; }
/* 112px 是实测出来的：Chrome 原生日期控件在 11.5px 等宽字体下的固有宽度
   正好 112（含约 20px 日历图标），再窄就会把「年/月/日」尾部切掉 */
.flt-fields .fitem input[type="date"] { width: 112px; }
.flt-fields .range { display: flex; align-items: center; gap: 5px; }
.flt-fields .range .sep { color: var(--text-3); font-size: 12px; flex: none; }
.flt-btns { display: flex; align-items: center; gap: 8px; flex: none; }
/* 筛选卡的工具条：h3 / 说明 靠左，按钮推到最右。
   .card-head 本来是 space-between，加了第三个子元素后说明会被顶到中间，
   所以给 .sub 加 margin-right:auto 把它压回 h3 旁边。 */
.card-head.flt-head { flex-wrap: wrap; row-gap: 10px; }
.card-head.flt-head .sub { margin-right: auto; }

/* 分页条右侧的「每页」：一个整合的下拉列表。
   原来摆了 18/30/50/100 四颗文字按钮，翻页条右边一排小方块，
   看着零碎、还占宽（用户反馈「单独的下拉列表体验差」指的是这种碎按钮组）。
   现在收成一个 select，宽度固定 66px，与分页条同一行。 */
.foot-row { display: flex; align-items: center; }
.foot-row .pager { flex: 1; }
.pg-size {
  display: flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; color: var(--text-3); padding-right: 4px;
}
.pg-size select {
  height: 28px; padding: 0 6px; border: 1px solid var(--line-strong);
  border-radius: var(--r-xs); background: #fff; color: var(--text);
  font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.pg-size select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

/* 结果卡 */
.result-card .card-head { flex-wrap: wrap; row-gap: 8px; }
.result-card .ch-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; }
.result-card .card-foot { padding: 0; background: #fff; }
.result-card .card-foot .pager { padding: 11px 16px; }

/* ---------- 开奖列表：表头不吸顶（2026-09-22 按用户要求撤掉） ---------- */
/* 曾经的 `.result-card.page-sticky` 把这条链路上的 overflow / max-height 全放开，
   让 th 相对 .view 吸住，实现「翻页后表头留在页面顶部」。用户反馈
   「期号、开奖日期 这栏不需要悬浮功能」，于是整套撤掉：
   JS 不再加 page-sticky、UI.table 也不再传 sticky，表格跟着页面正常滚动。
   —— 注意别只删 JS：基础样式里 `table.tb th` 本来就写了 position:sticky，
   若还留着 max-height 限高容器，表头会在卡片内部吸住，出现「卡内半固定行」。
   2026-09-22 浏览器实测：基础样式里的 sticky 保留未删，但因为 .table-wrap
   不限高（clientH==scrollH），它是 th 的 sticky 容器却没有纵向滚动余量，
   实测 #view 滚 400px 表头跟着走 400px（th.top 504→104），不吸顶，符合要求。 */
.result-card .table-wrap { border: none; border-radius: 0; box-shadow: none; }

/* ---------- 总览：数据覆盖 / 最新一期 两卡同构 ---------- */
/* 一行四格紧凑指标：标签居左、数值居右。替代原来的 4 根进度条与 3 行 kv，
   同样的信息从 7 行压到 1 行 —— 两侧卡片的行数与内容高度靠它对齐。 */
.ms-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ms {
  min-width: 0; padding: 7px 10px; border-radius: var(--r-xs);
  background: var(--panel-2); border: 1px solid var(--line);
}
/* 标签在上、数值在下（都是块级，否则两个 span 会并排成「试机号100.0%」）。
   并排一行放不下「派生特征 100.0%」这类组合，会被省略号截断（实测），堆叠后任何宽度都完整。 */
.ms .k {
  display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ms .v {
  display: block; margin-top: 3px; font-size: 14px; font-weight: 650; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* 卡内内容纵向撑满：两卡等高时，把最后一块（脚注 / 动作条）压到底边，
   免得内容少的一侧在底部留出一块空白。 */
.stretch > .card-body { display: flex; flex-direction: column; }
.stretch > .card-body > :last-child { margin-top: auto; }

/* 开奖号与试机号并排：彩民就是拿这两个对照着看 */
.draw-line { display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.draw-line .dl-k { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }

/* 底部动作条：说明与动作挤在同一行，不再用两行提示块 + 独立按钮 */
.act-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 8px 8px 8px 11px; border-radius: var(--r-sm);
  background: var(--amber-soft); border: 1px solid #f6e2bd; color: #8a5a00;
}
.act-bar .ab-i { display: flex; flex: none; }
.act-bar .ab-i svg { width: 15px; height: 15px; }
.act-bar .ab-t { font-size: 12.4px; line-height: 1.5; margin-right: auto; }
.act-bar .btn { flex: none; }

@media (max-width: 980px) {
  .ms-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-bar { flex-wrap: wrap; }
  .act-bar .ab-t { flex: 1 1 100%; margin-right: 0; }
}
