/* ==========================================================
   晨风49统计 · 界面样式（无外部依赖）
   字体：微软雅黑优先；浅色留白 + 靛紫主色
   ========================================================== */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #7c8898;
  --line: #e8edf5;
  --line-2: #f0f3fa;
  --primary: #5856d6;
  --primary-2: #8a5cf6;
  --primary-soft: #eeefff;
  --ok: #10a06e;
  --ok-soft: #e7f8f1;
  --warn: #d9820a;
  --warn-soft: #fff4e2;
  --danger: #e5484d;
  --danger-soft: #ffecec;
  --macau: #0f9d75;
  --macau-soft: #e6f8f1;
  --am: #d9820a;
  --am-soft: #fff3e0;
  --hk: #2f6fed;
  --hk-soft: #eaf1ff;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 22px -16px rgba(15, 23, 42, .3);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .05), 0 22px 48px -28px rgba(15, 23, 42, .45);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 520px at 8% -8%, rgba(99, 102, 241, .12), transparent 65%),
    radial-gradient(900px 480px at 100% 0%, rgba(20, 184, 166, .1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4, p, ul, ol, pre { margin: 0; }
button { font-family: inherit; }
img, svg { vertical-align: middle; }
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  background: #f1f4fb;
  border-radius: 6px;
  padding: 1px 5px;
}

.ico { width: 18px; height: 18px; flex: none; display: inline-block; }
.muted { color: var(--muted); font-size: 12.5px; }
.muted-sm { color: var(--muted); font-size: 12px; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.prob { color: var(--danger); }
.nowrap { white-space: nowrap; }
.up { color: var(--ok); }
.down { color: var(--danger); }
.grow { flex: 1 1 auto; }

/* ---------------- 侧边栏（电脑） ---------------- */
.app { min-height: 100vh; }

.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, #0b1020 0%, #141c33 52%, #0c1324 100%);
  color: #c9d4e8;
  z-index: 40;
  overflow-y: auto;
}
.side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 240px at 15% 0%, rgba(99, 102, 241, .38), transparent 70%);
  pointer-events: none;
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 6px 18px;
  color: #fff;
}
.brand:hover { color: #fff; }
.logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 12px 26px -12px rgba(124, 92, 246, .95);
}
.logo.lg { width: 56px; height: 56px; font-size: 26px; border-radius: 17px; }
.brand-txt { min-width: 0; }
.brand-txt b { display: block; font-size: 15.5px; letter-spacing: .2px; }
.brand-txt small { display: block; font-size: 11px; color: #8b9abb; margin-top: 2px; }
.side-label {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #6d7c9b;
  text-transform: uppercase;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; position: relative; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #b9c5dc;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .16s, color .16s;
  position: relative;
}
.nav-item .ico { width: 19px; height: 19px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.on {
  background: linear-gradient(90deg, rgba(124, 92, 246, .28), rgba(124, 92, 246, .06));
  color: #fff;
  font-weight: 600;
}
.nav-item.on::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #8a5cf6, #38bdf8);
}
.nav-item.on .ico { opacity: 1; }
.side-tip {
  position: relative;
  margin: auto 2px 12px;
  padding: 13px 13px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  color: #93a2c0;
  line-height: 1.5;
}
.side-tip .ico { color: #a78bfa; width: 17px; height: 17px; }
.side-tip b { color: #e6ebf7; font-size: 12.5px; }
.side-foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 8px;
}
.side-foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #9fadc9;
  font-size: 13px;
}
.side-foot a:hover, .side-foot a.on { background: rgba(255, 255, 255, .07); color: #fff; }
.side-foot .ico { width: 17px; height: 17px; }


/* ---------------- 手机顶栏 / 底栏 ---------------- */
.topbar { display: none; }
.tabbar { display: none; }
.topbar-in {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
  padding: 9px 14px;
}
.brand-mini { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand-mini .logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 8px 18px -10px rgba(124, 92, 246, .9);
}
.brand-mini-txt { font-size: 13.5px; font-weight: 700; letter-spacing: .2px; }
.topbar-title { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.topbar-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #5b6b84;
}
.icon-btn:hover { background: #eef1f8; color: var(--ink); }
.tabbar-in { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin: 0 auto; }
.tabbar a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 0 6px;
  color: #97a3b6;
  font-size: 11px;
}
.tabbar a .ico { width: 21px; height: 21px; }
.tabbar a.on { color: var(--primary); }
.tabbar a.on .tab-ico { background: var(--primary-soft); border-radius: 10px; padding: 2px 12px; }

/* ---------------- 主区域 ---------------- */
.wrap {
  margin-left: 238px;
  max-width: 1200px;
  padding: 30px 34px 70px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.page-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 卡片 / KPI ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.card.tight { padding: 14px 16px; }
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-hd h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.card-hd h2 .ico { color: var(--primary); width: 17px; height: 17px; }
.hd-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card > .card-hd + .list { margin-top: -4px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdff 0%, #f7f9fe 100%);
}
.kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .1), transparent 70%);
}
.kpi .k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.kpi .k .ico { width: 15px; height: 15px; color: #8b93a8; }
.kpi b {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.kpi b.sm { font-size: 19px; }
.kpi b small { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi .sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.kpi.ok { border-color: #ccefe1; background: linear-gradient(180deg, #f6fdfa, #eefaf4); }
.kpi.ok b { color: var(--ok); }
.kpi.bad { border-color: #ffd9db; background: linear-gradient(180deg, #fffafa, #fff1f2); }
.kpi.bad b { color: var(--danger); }
.kpi.warn { border-color: #ffe6c2; background: linear-gradient(180deg, #fffdf8, #fff8ec); }
.kpi.warn b { color: var(--warn); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > .card { margin-bottom: 0; }

.sep { border: none; border-top: 1px solid var(--line); margin: 14px 0; }


/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 12px 24px -14px rgba(88, 86, 214, .95);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s;
  white-space: nowrap;
}
.btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -14px rgba(88, 86, 214, .9);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .65; cursor: default; transform: none; }
.btn .ico { width: 17px; height: 17px; }
.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: none;
}
.btn.ghost:hover { background: #f8faff; border-color: #d9e2f3; color: var(--primary); }
.btn.soft {
  background: var(--primary-soft);
  color: #4f46b8;
  box-shadow: none;
  border-color: #e0e1ff;
}
.btn.soft:hover { background: #e6e8ff; color: #4338a8; }
.btn.danger {
  background: var(--danger-soft);
  color: #c02b30;
  border-color: #ffd6d8;
  box-shadow: none;
}
.btn.danger:hover { background: #ffe0e2; color: #a71f24; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.sm .ico { width: 15px; height: 15px; }
.btn.xs { padding: 4px 9px; font-size: 12px; border-radius: 8px; }
.btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.btn.block { display: flex; width: 100%; }
.btn-sub { font-size: 12px; font-weight: 500; opacity: .85; }
.btn[disabled] { filter: grayscale(.2); }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}
.field > label .ico { width: 14px; height: 14px; color: #94a3b8; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #e4e9f2;
  border-radius: 11px;
  padding: 10px 12px;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
input::placeholder, textarea::placeholder { color: #a8b3c4; }
input:hover, select:hover, textarea:hover { border-color: #d6dfee; }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: #a5a2f0;
  box-shadow: 0 0 0 3px rgba(88, 86, 214, .13);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8898' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  background-color: #f8fafc;
}
select:focus { background-color: #fff; }
textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
  font-size: 13.5px;
}
input[type="date"] { min-height: 41px; }
input[type="radio"], input[type="checkbox"] { width: auto; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.step {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.step .ico { width: 13px; height: 13px; }

/* 盘口选择 chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: .16s;
}
.chip > span .dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.chip.region-macau > span .dot { background: var(--macau); }
.chip.region-am > span .dot { background: var(--am); }
.chip.region-hk > span .dot { background: var(--hk); }
.chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: #4338a8;
  box-shadow: 0 0 0 3px rgba(88, 86, 214, .1);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(88, 86, 214, .25); }


/* ---------------- 标签 / 列表 / 头像 ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  background: #eef2f8;
  color: #5b6b84;
  vertical-align: middle;
}
.tag.macau { background: var(--macau-soft); color: #0b7a5a; }
.tag.am { background: var(--am-soft); color: #a8610a; }
.tag.hk { background: var(--hk-soft); color: #2357c4; }
.tag.ok { background: var(--ok-soft); color: #0a7a53; }
.tag.warn { background: var(--warn-soft); color: #a8610a; }
.tag.gray { background: #eef2f8; color: #6b7a90; }

.list { display: flex; flex-direction: column; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid var(--line-2);
  color: inherit;
  min-width: 0;
}
.card .list > .list-row:first-child, .card .list > a:first-child { border-top: none; }
a.list-row { border-radius: 12px; transition: background .15s; }
a.list-row:hover { background: #f8faff; color: inherit; }
.list-row .main { min-width: 0; flex: 1; }
.list-row .t1 {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.list-row .t2 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.list-row .end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  flex: none;
}
.list-row .end b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.list-row .end small { font-size: 11.5px; color: var(--muted); }

.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 8px 18px -12px rgba(99, 102, 241, .9);
}
.avatar.a1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.avatar.a2 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.avatar.a3 { background: linear-gradient(135deg, #10b981, #34d399); }
.avatar.a4 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.avatar.a5 { background: linear-gradient(135deg, #f43f5e, #fb7185); }

/* ---------------- 注单行 ---------------- */
.bet-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px 2px;
  border-top: 1px solid var(--line-2);
}
.card .list > .bet-row:first-child { border-top: none; }
.bet-row .seq {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f1f4fb;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
}
.bet-row .bet-main { min-width: 0; }
.bet-row .targets {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  word-break: break-word;
}
.bet-row .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.bet-row .bet-raw { margin-top: 3px; word-break: break-word; opacity: .85; }
.bet-row .amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.bet-row .amt b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bet-row .amt small { font-size: 11px; color: var(--muted); }


/* ---------------- 号码球 ---------------- */
.ball {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .18), 0 6px 12px -8px rgba(15, 23, 42, .6);
  background: linear-gradient(160deg, #94a3b8, #64748b);
  flex: none;
}
.ball.red { background: radial-gradient(circle at 32% 28%, #fb7185, #e11d48 70%); }
.ball.blue { background: radial-gradient(circle at 32% 28%, #60a5fa, #1d4ed8 70%); }
.ball.green { background: radial-gradient(circle at 32% 28%, #34d399, #047857 70%); }
.ball.gold {
  background: radial-gradient(circle at 32% 28%, #fde68a, #d97706 72%);
  color: #43290a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: inset 0 -2px 4px rgba(146, 64, 14, .25), 0 8px 16px -8px rgba(217, 119, 6, .8);
}
.ball.sm { width: 26px; height: 26px; font-size: 11.5px; }
.balls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.plus-sign { font-weight: 800; color: #94a3b8; }

/* ---------------- 提示 / 空状态 ---------------- */
.flash {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  margin-bottom: 16px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(135deg, #eafaf3, #f3fdf8);
  border: 1px solid #cdeee0;
  color: #0a7350;
}
.flash.err {
  background: linear-gradient(135deg, #fff1f2, #fff7f7);
  border-color: #ffd6d8;
  color: #b32b30;
}
.flash .i-flash { width: 17px; height: 17px; flex: none; }

.empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
.empty > .ico {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 2px;
}
.empty b { font-size: 14.5px; color: var(--ink-2); font-weight: 700; }
.empty .btn { margin-top: 8px; }

.more { margin: 4px 2px 14px; }
.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 2px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary .ico { width: 15px; height: 15px; }
.more-body { margin-top: 8px; }
.raw {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-2);
  overflow-x: auto;
}
.prob-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.prob-list li { padding: 3px 0; }
.prob-list b { color: var(--danger); }


/* ---------------- 结算页 ---------------- */
.toolbar-card { padding: 14px 16px; }
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.filter-bar .field.grow { flex: 1 1 220px; }
.quick-ranges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.qr {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}
.qr:hover { border-color: #cfd8ee; color: var(--primary); }
.qr.on { background: var(--primary-soft); border-color: #d9d8ff; color: #4338a8; }

.settle-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: 20px;
  color: #e9edff;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(124, 92, 246, .55), transparent 70%),
    radial-gradient(420px 240px at 100% 20%, rgba(14, 165, 233, .35), transparent 70%),
    linear-gradient(135deg, #131a33, #1b2246 60%, #161d38);
  box-shadow: 0 22px 44px -30px rgba(15, 23, 42, .8);
}
.settle-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}
.hero-left { min-width: 0; }
.hero-eyebrow { font-size: 12px; letter-spacing: .04em; color: #a9b6dd; }
.hero-nums { display: flex; align-items: center; gap: 18px; margin: 8px 0 6px; }
.hero-num b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-num span { font-size: 11.5px; color: #9fadd4; }
.hero-divider { width: 1px; height: 34px; background: rgba(255, 255, 255, .14); }
.hero-hint { font-size: 12px; color: #a5b2d6; max-width: 420px; }
.hero-date {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #cdd6f5;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-date-mid { text-align: center; min-width: 74px; }
.hero-date-mid b { display: block; font-size: 16px; font-weight: 800; color: #fff; }
.hero-date-mid span { font-size: 10.5px; color: #9fadd4; }
.hero-today {
  margin-left: 2px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: #2b2f6b;
  font-size: 12px;
  font-weight: 700;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.region-card {
  --rc: var(--primary);
  --rc-soft: var(--primary-soft);
  display: block;
  padding: 13px 15px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--rc);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.region-card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.region-card.on { box-shadow: 0 0 0 2px var(--rc), var(--shadow-md); }
.region-card.off { opacity: .55; }
.region-card.region-macau { --rc: var(--macau); --rc-soft: var(--macau-soft); }
.region-card.region-am { --rc: var(--am); --rc-soft: var(--am-soft); }
.region-card.region-hk { --rc: var(--hk); --rc-soft: var(--hk-soft); }
.rc-top { display: flex; align-items: center; gap: 7px; }
.rc-badge {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--rc-soft);
  color: var(--rc);
  font-size: 11px;
  font-weight: 800;
}
.rc-name { font-size: 13.5px; font-weight: 700; flex: 1; }
.rc-go { width: 14px; height: 14px; color: #c3cbdd; }
.rc-mid { display: flex; align-items: baseline; gap: 8px; margin: 9px 0 2px; }
.rc-mid b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.rc-mid b small { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.rc-amount { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.rc-foot .pf { font-weight: 800; font-size: 12.5px; }
.rc-foot .pf.up { color: var(--ok); }
.rc-foot .pf.down { color: var(--danger); }

.region-pill {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  background: #eef2f8;
  color: #5b6b84;
}
.region-pill.region-macau { background: var(--macau-soft); color: #0b7a5a; }
.region-pill.region-am { background: var(--am-soft); color: #a8610a; }
.region-pill.region-hk { background: var(--hk-soft); color: #2357c4; }


.open-dates {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: -4px 2px 16px;
  font-size: 12px;
  color: var(--muted);
}
.od-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.od-label .ico { width: 14px; height: 14px; }
.od-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ffe2bd;
  background: #fffaf1;
  color: #96600f;
  font-size: 11.5px;
  font-weight: 600;
}
.od-chip b { margin-left: 4px; color: #b4690e; }
.od-chip:hover { background: #fff3e0; color: #8a560c; }

.settle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.settle-layout > .card { margin-bottom: 0; }
.settle-main { padding-bottom: 18px; }

.draw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.draw-title { font-size: 13.5px; font-weight: 700; }
.draw-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.settle-status {
  margin: 12px 0;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.55;
  background: #f7f9fd;
  border: 1px dashed #dde5f2;
  color: #64748b;
}
.settle-status.ok { background: var(--ok-soft); border: 1px solid #cdeee0; color: #0a7350; }
.settle-status.err { background: var(--danger-soft); border: 1px solid #ffd6d8; color: #b32b30; }

.number-inputs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.n-field { display: flex; flex-direction: column; gap: 5px; }
.n-field label {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #98a4b8;
  letter-spacing: .02em;
}
.n-field input {
  text-align: center;
  padding: 11px 4px;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 11px;
  -moz-appearance: textfield;
}
.n-field input::-webkit-outer-spin-button,
.n-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.n-field.special input {
  background: #fffaf0;
  border-color: #f3d9ab;
  color: #a35d06;
}
.n-field.special input:focus { border-color: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, .16); }

.settle-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.undo-form { margin-top: 10px; }

.settle-result .card-hd { margin-bottom: 10px; }
.draw-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 12px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfcff, #f5f7fd);
  border: 1px solid var(--line);
}
.draw-strip-meta { margin-left: auto; font-size: 11.5px; color: var(--muted); }

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.rg-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line-2);
}
.rg-item span { display: block; font-size: 11.5px; color: var(--muted); }
.rg-item b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rg-item.up { background: var(--ok-soft); border-color: #d2f0e4; }
.rg-item.up b { color: var(--ok); }
.rg-item.down { background: var(--danger-soft); border-color: #ffdcdd; }
.rg-item.down b { color: var(--danger); }

.summary {
  margin-top: 12px;
  padding: 14px;
  border-radius: 13px;
  background: linear-gradient(160deg, #131a2f, #1c2542);
  color: #e6ecff;
  font-family: ui-monospace, "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.summary::selection { background: rgba(124, 92, 246, .5); }

.tips { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.tips li { padding: 4px 0; }
.tips b { color: var(--ink); }

.round-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 2px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}
.card .list > .round-sep:first-child { border-top: none; margin-top: 0; }
.round-sep small { color: var(--muted); font-weight: 500; }
.round-sep .ico { width: 13px; height: 13px; margin-left: auto; color: #c3cbdd; }


/* ---------------- 期明细里的结算小卡 ---------------- */
.settle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.mini-settle {
  padding: 14px 15px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.ms-top { display: flex; align-items: center; gap: 7px; }
.ms-top b { font-size: 13.5px; }
.ms-top .tag { margin-left: auto; }
.ms-balls { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0; }
.ms-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ms-nums div { background: #f8fafc; border-radius: 9px; padding: 6px 8px; }
.ms-nums span { display: block; font-size: 10.5px; color: var(--muted); }
.ms-nums b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ms-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
}
.ms-link .ico { width: 13px; height: 13px; }

.notice {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  padding: 15px 17px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid #ffe4be;
  background: linear-gradient(135deg, #fffbf4, #fff6e8);
}
.notice-ico {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--warn);
  box-shadow: 0 6px 14px -10px rgba(217, 130, 10, .8);
}
.notice-main { flex: 1; min-width: 160px; }
.notice-main b { display: block; font-size: 13.5px; color: #8a560c; }
.notice-main span { font-size: 12px; color: #a5762f; }

/* ---------------- 日期分组 ---------------- */
.date-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #8996aa;
  letter-spacing: .04em;
}
.date-group .line { flex: 1; height: 1px; background: linear-gradient(90deg, #e6ebf4, transparent); }
.round-no {
  width: 46px;
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #a3aec0;
  font-variant-numeric: tabular-nums;
}

/* ---------- 记录列表：一行 + 右侧「删」 ---------- */
.round-wrap { display: flex; align-items: center; gap: 4px; }
.round-wrap > .round-item { flex: 1 1 auto; min-width: 0; }
.round-wrap .row-del { flex: none; padding-left: 2px; }
.card .list > .round-wrap:first-child > .round-item { border-top: none; }
.round-wrap .row-del .btn { white-space: nowrap; }

/* ---------- 列表底部操作（清空等） ---------- */
.list-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line-2);
}
.toolbar-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.bet-row .amt form { margin-top: 4px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th {
  padding: 7px 10px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #94a3b8;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table-wrap td {
  padding: 10px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: #f9fbff; }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap td.up { color: var(--ok); font-weight: 700; }
.table-wrap td.down { color: var(--danger); font-weight: 700; }

/* ---------------- 统计页 ---------------- */
.profit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: 20px;
  color: #eaf7f1;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(135deg, #0f766e, #059669 55%, #10b981);
  box-shadow: 0 22px 44px -30px rgba(5, 150, 105, .85);
}
.profit-card.down {
  color: #fff0f1;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(135deg, #9f1239, #e11d48 60%, #fb7185);
  box-shadow: 0 22px 44px -30px rgba(225, 29, 72, .85);
}
.profit-label { font-size: 12px; letter-spacing: .05em; opacity: .9; }
.profit-num {
  display: block;
  margin: 4px 0 2px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.profit-sub { font-size: 11.5px; opacity: .85; }
.profit-side { display: flex; gap: 22px; flex-wrap: wrap; }
.ps-item span { display: block; font-size: 11px; opacity: .85; }
.ps-item b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }


/* ---------------- 房间卡片 / 使用步骤 ---------------- */
.rooms-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 2px 10px;
}
.rooms-title h2 { font-size: 15px; font-weight: 700; }
.rooms-grid { margin-bottom: 16px; }
.room-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}
.room-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.rc-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rc-info { min-width: 0; }
.rc-info .t1 {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 700;
}
.rc-info .t2 {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
.rc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 11px 0 12px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.rc-stats b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.rc-stats span { font-size: 11px; color: var(--muted); }
.rc-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.rc-actions .btn { flex: 1 1 auto; }
.room-card .more { margin: 0; }
.room-card .more > summary { font-size: 12px; padding: 2px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff, #f7f9fe);
  border: 1px solid var(--line);
}
.step-item b { font-size: 13.5px; }
.step-item span:last-child { font-size: 12px; color: var(--muted); line-height: 1.6; }
.step-no {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

/* ---------------- KV ---------------- */
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.kv .k { font-size: 11px; color: var(--muted); }
.kv .v { font-size: 13px; font-weight: 600; margin-top: 2px; word-break: break-all; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 12px);
  z-index: 90;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ---------------- 登录页 ---------------- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  color: #e9edff;
  background: #0b1020;
  overflow: hidden;
  position: relative;
}
.login-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; left: -120px; top: -160px; background: #6366f1; }
.blob.b2 { width: 460px; height: 460px; right: -140px; top: 8%; background: #0ea5e9; opacity: .4; }
.blob.b3 { width: 520px; height: 520px; left: 30%; bottom: -260px; background: #a855f7; opacity: .35; }

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  width: min(940px, 100%);
}
.login-brand { max-width: 420px; }
.login-brand h1 {
  margin: 16px 0 6px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.login-brand p { font-size: 13.5px; color: #a9b6dd; }
.login-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #b9c4e4;
}
.login-points li span {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  background: rgba(124, 92, 246, .22);
  border: 1px solid rgba(167, 139, 250, .55);
  position: relative;
}
.login-points li span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #c4b5fd;
  border-bottom: 1.5px solid #c4b5fd;
  transform: rotate(-45deg);
}

.login-card {
  width: 100%;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .65);
  color: var(--ink);
  backdrop-filter: blur(14px);
}
.login-card-hd { margin-bottom: 16px; }
.login-card-hd b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.login-card-hd span { font-size: 12px; color: var(--muted); }
.login-card .field { margin-bottom: 12px; }
.login-card .field input { padding: 12px 14px; border-radius: 12px; background: #f6f8fd; }
.login-card .field input:focus { background: #fff; }
.login-card .btn { margin-top: 4px; }
.login-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #a3aec0;
  letter-spacing: .04em;
}


/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .settle-layout { grid-template-columns: 1fr; }
  .settle-layout .settle-result { order: -1; }
}

@media (max-width: 960px) {
  .side { display: none; }
  .topbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .wrap {
    margin-left: 0;
    max-width: 760px;
    padding: 16px 14px calc(88px + env(safe-area-inset-bottom));
  }
  .tabbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .page-head { margin-bottom: 14px; align-items: flex-start; }
  .page-head h1 { font-size: 21px; }
  .page-sub { font-size: 12px; margin-top: 4px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .card { padding: 15px; border-radius: 16px; }
  .card-hd { margin-bottom: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi { padding: 12px 13px 11px; border-radius: 14px; }
  .kpi b { font-size: 21px; }
  .kpi b.sm { font-size: 17px; }
  .kpi .sub { font-size: 11px; }
  .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .region-grid { grid-template-columns: 1fr; gap: 9px; }
  .region-card { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
  .rc-top { flex: 1; min-width: 0; }
  .rc-mid { margin: 0 0 0 auto; flex-direction: column; align-items: flex-end; gap: 0; }
  .rc-mid b { font-size: 18px; }
  .rc-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
  .rc-foot .rc-sub { display: none; }
  .settle-hero { padding: 17px; border-radius: 18px; gap: 14px; }
  .hero-num b { font-size: 25px; }
  .hero-date { width: 100%; justify-content: space-between; }
  .hero-date-mid { flex: 1; }
  .steps { grid-template-columns: 1fr; }
  .profit-card { padding: 18px; border-radius: 18px; }
  .profit-num { font-size: 31px; }
  .profit-side { width: 100%; justify-content: space-between; gap: 12px; }
  .ps-item b { font-size: 15px; }
  .toolbar-card .filter-bar .field.grow { flex-basis: 100%; }
  .toolbar-card .filter-bar .field { flex: 1 1 40%; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .wrap { padding: 13px 12px calc(90px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 19px; }
  .card { padding: 13px; }
  .card-hd h2 { font-size: 14px; }
  .number-inputs { gap: 5px; }
  .n-field input { padding: 10px 2px; font-size: 15px; border-radius: 10px; }
  .n-field label { font-size: 9.5px; }
  .draw-head .btn { width: 100%; }
  .settle-submit .btn { width: 100%; }
  .settle-submit { gap: 6px; }
  .bet-row { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; }
  .bet-row .targets { font-size: 13px; }
  .bet-row .amt b { font-size: 14px; }
  .filter-bar .field { flex: 1 1 calc(50% - 6px) !important; }
  .filter-bar .field.grow { flex-basis: 100% !important; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 11px 12px; }
  .kpi b { font-size: 19px; }
  .profit-side { display: grid; grid-template-columns: repeat(3, 1fr); }
  .profit-num { font-size: 28px; }
  .hd-actions { width: 100%; justify-content: space-between; }
  .hd-actions .btn { flex: none; }
  .login-shell { grid-template-columns: 1fr; gap: 22px; }
  .login-brand { text-align: center; max-width: none; }
  .login-brand .logo.lg { margin: 0 auto; }
  .login-brand h1 { font-size: 24px; }
  .login-points { display: none; }
  .login-card { padding: 20px 18px 18px; border-radius: 18px; }
}

@media (max-width: 380px) {
  .kpi b { font-size: 17px; }
  .rc-name { font-size: 12.5px; }
  .tag { font-size: 10px; }
}


/* ==========================================================
   简化版（2026-11）：去掉花哨渐变 / 多余装饰，只留白 + 细线
   ========================================================== */

body {
  background: #f6f7f9;
  background-image: none;
}
.side { background: #12182b; }
.side::before, .side-label, .side-tip { display: none; }
.nav-item { border-radius: 10px; }

.card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  box-shadow: none;
  padding: 16px;
}
.card-hd { margin-bottom: 12px; }
.btn { border-radius: 10px; box-shadow: none; }
.page-head h1 { font-size: 22px; letter-spacing: 0; }
.topbar { box-shadow: none; }

/* 一行三个字段 */
.field-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

/* 盘口分段选择 */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-item { position: relative; flex: 1 1 0; min-width: 84px; }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e4e9f2;
  border-radius: 11px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.seg-item input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: #4338a8;
}
.seg-item.region-macau input:checked + span {
  border-color: #0f9d75; background: #e6f8f1; color: #0b7a5a;
}
.seg-item.region-am input:checked + span {
  border-color: #d9820a; background: #fff3e0; color: #a8610a;
}
.seg-item.region-hk input:checked + span {
  border-color: #2f6fed; background: #eaf1ff; color: #2357c4;
}

/* 粘贴框 */
.paste-box { margin-top: 14px; }
.paste-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.paste-hd > label { font-size: 12.5px; font-weight: 600; color: #64748b; }
.paste-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.paste-count { font-size: 11.5px; color: #94a3b8; }
.paste-box textarea { min-height: 220px; font-size: 14.5px; line-height: 1.75; }
.paste-tip { margin-top: 6px; font-size: 11.5px; color: #94a3b8; }

/* 顶部工具条：房间 / 日期 / 查看 */
.bar-card { padding: 12px; }
.bar { display: flex; align-items: flex-end; gap: 10px; }
.bar .field.grow { flex: 1 1 auto; min-width: 0; }
.bar .bar-go { flex: none; min-width: 84px; height: 42px; }

/* 日期行 */
.date-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 2px 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.date-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #64748b;
}
.date-now { font-weight: 700; }
.date-today {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #4338a8;
  font-size: 12px;
  font-weight: 600;
}
.date-open { margin-left: auto; font-size: 12px; color: var(--muted); }

/* 盘口切换 */
.seg-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.seg-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  min-width: 0;
}
.seg-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: none; }
.seg-tab .dot.region-macau { background: var(--macau); }
.seg-tab .dot.region-am { background: var(--am); }
.seg-tab .dot.region-hk { background: var(--hk); }
.seg-tab .seg-n { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg-tab .seg-flag {
  font-size: 10.5px;
  color: #b45309;
  background: #fff4e2;
  border-radius: 999px;
  padding: 1px 6px;
}
.seg-tab .seg-flag.ok { color: #0b7a5a; background: #e7f8f1; }
.seg-tab.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); color: #312e81; }
.seg-tab.off { opacity: .55; }


/* 汇总条 */
.sum-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 14px 0 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12.5px;
  color: var(--muted);
}
.sum-strip b { font-size: 16px; color: var(--ink); margin-right: 2px; font-variant-numeric: tabular-nums; }
.sum-strip .bad { margin-left: auto; color: var(--danger); }

/* 结算结果 */
.settle-result-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.result-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.raw-line { margin-top: 3px; }

/* 可折叠卡片 */
details.card > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
details.card[open] > summary::after { content: "收起"; }
details.card[open] > summary { margin-bottom: 10px; }
.prob-box > summary { font-size: 13px; color: var(--danger); }
.other-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 2px 12px;
  font-size: 12px;
  color: var(--muted);
}
.other-dates a {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #64748b;
}
.other-dates b { color: var(--ink-2); }

/* ---------- 手机：彻底关掉输入放大 + 按钮大小修正 ---------- */
@media (max-width: 960px) {
  input, select, textarea { font-size: 16px; }
  .paste-box textarea { font-size: 16px; }
  .n-field input { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; }
  .bar .field.grow { flex: 1 1 100%; }
  .bar .field { flex: 1 1 0; }
  .bar .bar-go { flex: 1 1 100%; height: 46px; font-size: 15px; }
  .filter-bar .field:last-child { flex: 1 1 100% !important; }
  .filter-bar .field:last-child .btn { width: 100%; min-height: 46px; font-size: 15px; }
  .seg-tabs { gap: 6px; }
  .seg-tab { padding: 9px 8px; font-size: 12.5px; }
  .seg-tab .seg-flag { display: none; }
  .date-open { flex: 1 1 100%; margin-left: 0; }
  .round-wrap .row-del .btn { min-height: 34px; padding: 4px 11px; }
  .list-foot .btn { min-height: 40px; }
}

@media (max-width: 560px) {
  .seg-item { min-width: 0; }
  .seg-item > span { min-height: 44px; }
  .form-actions .btn { flex: 1 1 0; min-height: 44px; }
  .paste-box textarea { min-height: 200px; }
  .sum-strip { gap: 10px; }
  .seg-tab .seg-name { font-size: 12px; }
  .date-line { flex-wrap: wrap; }
}


/* 手机端：页头按钮别拉满整行 */
@media (max-width: 960px) {
  .page-actions { width: auto; justify-content: flex-end; }
  .page-actions .btn { flex: 0 0 auto; min-height: 36px; }
  .paste-tools .btn { min-height: 38px; }
  .settle-submit { flex-direction: column; align-items: stretch; gap: 8px; }
  .settle-submit .hint { text-align: center; }
  .hd-actions .btn { min-height: 34px; }
}


/* 手机上连点两下不要放大 */
.btn, .seg-tab, .tabbar a, .date-arrow, .nav-item, .seg-item > span,
.date-today, .od-chip, .qr { touch-action: manipulation; }


/* 电脑上盘口选择别拉太宽 */
.seg { max-width: 620px; }
@media (max-width: 960px) {
  .seg { max-width: none; }
}

