/* =========================================================
   彩数阁 · 用户端样式
   设计语言：暖红品牌色 + 深墨色信息面板 + 轻量卡片
   ========================================================= */
:root {
  --brand: #d33a3a;
  --brand-dark: #a92c2c;
  --brand-soft: #fdf1f0;
  --ink: #141821;
  --ink-2: #2c3341;
  --muted: #6f7785;
  --faint: #9aa2ae;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e8eaee;
  --line-strong: #d8dce2;
  --gold: #c28a25;
  --gold-soft: #fbf3e2;
  --blue: #2f6bd8;
  --blue-soft: #edf2fd;
  --green: #1c8a57;
  --green-soft: #e9f7f0;
  --danger: #c62f2f;
  --danger-soft: #fdeeee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 33, .04), 0 12px 32px -16px rgba(20, 24, 33, .2);
  --shadow-lg: 0 24px 60px -24px rgba(20, 24, 33, .3);
  --header-h: 66px;
  --bottom-h: 64px;
  --shell: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { color: var(--ink); }
::selection { background: rgba(211, 58, 58, .16); }
:focus-visible { outline: 2px solid rgba(211, 58, 58, .55); outline-offset: 2px; }

.noscript {
  padding: 40px; text-align: center; font-size: 16px; color: var(--muted);
}
.boot-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--ink); background: var(--bg);
}
.boot-screen b { font-size: 22px; letter-spacing: -.02em; }
.boot-screen .spinner { margin-top: 10px; }
.boot-screen small { color: var(--faint); font-size: 11px; letter-spacing: .1em; }

/* ---------- 通用布局 ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }
.page { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 26px 24px 60px; }
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin: 10px 0 24px;
}
.page-header h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.page-header p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 760px; }
.page-header-inline .page-header-main {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0;
}
.page-header-inline h1 { flex: none; }
.page-header-inline p { flex: 1 1 420px; margin-top: 0; max-width: 760px; line-height: 1.55; }
.page-header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 7px;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin: 4px 0 16px;
}
.section-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; }
.section-head.compact { margin-bottom: 14px; }
.section-head.compact h2 { font-size: 19px; }
.muted { color: var(--muted); font-size: 13px; }
.grow { flex: 1; }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.num { text-align: right; }
.text-red { color: var(--brand); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 18px;
}
.link-more { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 3px; }
.link-more:hover { color: var(--brand); }
.breadcrumb {
  display: flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--faint); margin: 4px 0 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px;
  font-size: 14px; font-weight: 600; background: #eef0f4; color: var(--ink);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, #dc4646, var(--brand-dark));
  color: #fff; box-shadow: 0 8px 20px -10px rgba(211, 58, 58, .7);
}
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(211, 58, 58, .8); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: #c6ccd4; background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #fbe3e3; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--ink-2); display: inline-flex;
  align-items: center; justify-content: center; position: relative;
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: #f2f3f6; color: var(--brand); }
.icon-btn.tiny { width: 26px; height: 26px; border-radius: 7px; }
.mini-btn {
  border: none; background: none; color: var(--muted); font-size: 12px;
  padding: 2px 4px; border-radius: 6px;
}
.mini-btn:hover { color: var(--brand); background: var(--brand-soft); }
.mini-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.spinner {
  width: 22px; height: 22px; border: 2.5px solid #e5e7eb; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite; display: inline-block;
}
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 13px; padding: 46px 0;
}
.mini-loading {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: 12px; padding: 14px 0;
}
.mini-empty {
  text-align: center; color: var(--faint); font-size: 13px; padding: 22px 8px;
  background: var(--surface-2); border-radius: 10px; border: 1px dashed var(--line-strong);
}

/* ---------- 标签 / 胶囊 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11px;
  padding: 2px 7px; border-radius: 5px; background: var(--brand-soft);
  color: var(--brand); font-weight: 600; vertical-align: middle; white-space: nowrap;
}
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-red { background: var(--brand-soft); color: var(--brand); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-gold { background: var(--gold-soft); color: var(--gold); }
.tag-gray { background: #f0f2f5; color: var(--muted); }
.tag-light { background: rgba(255, 255, 255, .14); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  transition: all .18s ease; white-space: nowrap;
}
.chip:hover { border-color: #c4cad2; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; margin-left: 5px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 9px; font-size: 10px;
}
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px;
  height: 40px; color: var(--faint); min-width: 240px;
}
.search-box input { border: none; outline: none; flex: 1; background: transparent; font-size: 14px; }
.segmented {
  display: inline-flex; padding: 4px; background: #eef0f4; border-radius: 11px;
  gap: 3px; margin-bottom: 16px;
}
.segmented button {
  border: none; background: transparent; padding: 7px 22px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: all .18s;
}
.segmented button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.tabs {
  display: flex; gap: 4px; padding: 4px; background: #eef0f4;
  border-radius: 12px; overflow-x: auto;
}
.tab {
  border: none; background: transparent; color: var(--muted); font-size: 13px;
  font-weight: 600; padding: 9px 18px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.tab-badge {
  background: var(--brand); color: #fff; border-radius: 8px; padding: 0 5px;
  font-size: 10px; min-width: 16px; height: 16px; display: inline-flex;
  align-items: center; justify-content: center;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: #fff; font-size: 14px; transition: border-color .18s, box-shadow .18s;
}
.field textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(211, 58, 58, .55);
  box-shadow: 0 0 0 3px rgba(211, 58, 58, .09);
}
.field-head { display: flex; align-items: center; justify-content: space-between; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .field:first-child { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.form-error {
  display: flex; align-items: center; gap: 6px; color: var(--danger);
  background: var(--danger-soft); border-radius: 8px; padding: 9px 12px;
  font-size: 13px; margin-bottom: 12px;
}
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 5px; top: 5px; width: 32px; height: 32px;
  border: none; background: transparent; color: var(--faint); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.password-toggle:hover { background: #f2f3f6; color: var(--ink); }
input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer;
}
.append-check {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  color: var(--muted); cursor: pointer; user-select: none;
}
.select-compact {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 0 10px; background: #fff; font-size: 13px; min-width: 190px;
}

/* ---------- 彩球 ---------- */
.balls { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.ball {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; color: #fff;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .14), 0 2px 5px rgba(20, 24, 33, .1);
}
.ball.red { background: radial-gradient(circle at 32% 28%, #f47a68, #d33a3a 58%, #b52c2c); }
.ball.blue { background: radial-gradient(circle at 32% 28%, #6d9cf2, #2f6bd8 58%, #2456b4); }
.ball.orange { background: radial-gradient(circle at 32% 28%, #f8b464, #e88a28 58%, #c97518); }
.ball.gold { background: radial-gradient(circle at 32% 28%, #f4ce72, #c28a25 58%, #a87218); }
.ball.dan { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold), 0 2px 6px rgba(20, 24, 33, .16); }
.balls-sm .ball { width: 24px; height: 24px; font-size: 11px; }
.balls-lg .ball { width: 44px; height: 44px; font-size: 18px; }
.ball-sep { width: 7px; height: 1px; background: var(--line-strong); margin: 0 1px; }
.ball-label { font-size: 11px; color: var(--gold); font-weight: 700; margin-right: 1px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 234, 238, .9);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; color: var(--brand);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 19px; letter-spacing: -.02em; font-weight: 800; }
.brand-text small { font-size: 10px; color: var(--faint); letter-spacing: .08em; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 13px; border-radius: 9px; font-size: 14px; color: var(--ink-2);
  font-weight: 500; transition: background .18s, color .18s; position: relative;
}
.main-nav a:hover { background: #f3f4f7; color: var(--ink); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-message { color: var(--ink-2); }
.dot-badge {
  position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.coin-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 34px;
  padding: 0 11px; border-radius: 9px; background: var(--gold-soft);
  color: #946515; font-size: 12px; border: 1px solid #f0e2c4;
}
.coin-chip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.coin-chip span { color: #a3792f; }
.user-menu-wrap { position: relative; }
.user-trigger {
  display: inline-flex; align-items: center; gap: 7px; height: 38px;
  border: 1px solid transparent; background: transparent; border-radius: 10px;
  padding: 0 7px; color: var(--ink-2); font-size: 13px;
}
.user-trigger:hover, .user-trigger.open { background: #f3f4f7; border-color: var(--line); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), #e98444);
  color: #fff; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.user-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 244px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 70;
}
.user-menu-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.user-menu-head div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.user-menu-head b { font-size: 14px; }
.user-menu-head span { font-size: 11px; color: var(--faint); }
.user-menu-stats {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 10px; margin-bottom: 4px; border-radius: 8px;
  background: var(--surface-2); font-size: 11px; color: var(--muted);
}
.user-menu-stats b { color: var(--ink); font-size: 13px; margin-left: 3px; }
.user-menu a, .user-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: none; background: transparent; border-radius: 8px;
  font-size: 13px; color: var(--ink-2); text-align: left;
}
.user-menu a:hover, .user-menu button:hover { background: #f4f5f7; color: var(--brand); }
.user-menu .menu-danger { color: var(--danger); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.menu-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand); color: #fff; border-radius: 9px; font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-enter-active, .menu-leave-active { transition: opacity .16s ease, transform .16s ease; }
.menu-enter-from, .menu-leave-to { opacity: 0; transform: translateY(-5px); }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 10px; color: var(--faint);
  position: relative;
}
.bottom-icon { display: flex; align-items: center; justify-content: center; }
.bottom-item.active { color: var(--brand); font-weight: 700; }
.bottom-item.active .bottom-icon { transform: translateY(-1px); }

/* ---------- 首页 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(211, 58, 58, .5), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(47, 107, 216, .32), transparent 62%),
    linear-gradient(135deg, #151a26, #1b2130 55%, #121722);
  border-radius: 26px; margin-top: 24px; box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .25;
}
.hero-inner {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.04fr .96fr; gap: 34px;
  padding: 26px 34px 24px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px;
  color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12); padding: 6px 12px;
  border-radius: 999px; margin-bottom: 18px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #f4b740;
  box-shadow: 0 0 0 4px rgba(244, 183, 64, .16); display: inline-block;
}
.hero h1 {
  font-size: 30px; line-height: 1.16; letter-spacing: -.03em;
  font-weight: 800; margin-bottom: 10px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd67d, #f4b740 45%, #ff8a6a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p {
  color: rgba(255, 255, 255, .68); font-size: 13px; max-width: 500px;
  line-height: 1.75;
}
.hero .ad-stage { aspect-ratio: auto; height: 150px; }
.ad-stage-static { cursor: default; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-size: 22px; letter-spacing: -.02em; }
.hero-stats span { font-size: 11px; color: rgba(255, 255, 255, .52); }
.hero-media { display: flex; flex-direction: column; gap: 12px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .06);
  padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .08);
}
.home-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px; margin-top: 32px; align-items: start;
}
.home-main { min-width: 0; }
.lottery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-aside { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 14px; }
.home-loading { margin-top: 30px; }
.notice-strip {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; color: var(--muted); font-size: 12px; line-height: 1.65;
}
.notice-strip.compact { margin-top: 16px; box-shadow: none; }
.notice-strip .icon { flex: none; margin-top: 1px; color: var(--faint); }

/* 彩种卡片 */
.lot-card {
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 17px 18px 0; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.lot-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), #ef8a5a); opacity: .8;
}
.lot-card.blue::before { background: linear-gradient(180deg, var(--blue), #64a1f4); }
.lot-card:hover { transform: translateY(-3px); border-color: #d9dde3; box-shadow: var(--shadow-lg); }
.lot-card.disabled { opacity: .72; }
.lot-card-head { display: flex; gap: 10px; align-items: flex-start; }
.lot-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--brand), #e8824f);
}
.lot-avatar.blue { background: linear-gradient(135deg, #2f6bd8, #6a9df0); }
.lot-title { min-width: 0; }
.lot-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lot-name-row b { font-size: 16px; letter-spacing: -.01em; }
.lot-desc { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
.lot-latest { margin-top: 13px; }
.lot-latest-link { display: block; border-radius: 9px; padding: 6px 7px; margin: 7px -7px 0; transition: background .16s; }
.lot-latest-link:hover { background: var(--surface-2); }
.lot-latest-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; color: var(--muted); margin-bottom: 6px;
}
.lot-latest-meta b { color: var(--ink-2); font-weight: 700; }
.lot-click-tip { display: block; margin-top: 6px; color: var(--faint); font-size: 9px; text-align: right; }
.lot-next {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 11px; color: var(--muted);
}
.lot-next b { color: var(--brand); font-variant-numeric: tabular-nums; margin-left: auto; }
.lot-actions {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 13px -18px 0; border-top: 1px solid var(--line);
}
.lot-actions a {
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 10px 0; border-right: 1px solid var(--line);
  transition: background .16s, color .16s;
}
.lot-actions a:last-child { border-right: none; }
.lot-actions a:hover { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* 游戏推广卡 */
.game-promo {
  position: relative; overflow: hidden; border-radius: 18px; padding: 22px;
  color: #fff; background:
    radial-gradient(400px 200px at 100% 0%, rgba(244, 183, 64, .24), transparent 65%),
    linear-gradient(140deg, #202634, #151a26);
  box-shadow: var(--shadow-lg);
}
.game-promo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.game-promo-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #f4b740; font-weight: 700; }
.coin-total {
  position: relative; z-index: 1; margin: 14px 0 6px; font-size: 34px;
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.coin-total small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .55); margin-left: 7px; letter-spacing: 0; }
.game-promo-meta {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px;
  font-size: 11px; color: rgba(255, 255, 255, .52); margin-bottom: 16px;
}
.game-promo .btn { position: relative; z-index: 1; }
.game-promo-glow {
  position: absolute; width: 180px; height: 180px; right: -60px; bottom: -80px;
  background: radial-gradient(circle, rgba(211, 58, 58, .4), transparent 65%);
  border-radius: 50%; filter: blur(10px);
}
.side-card { padding: 18px; margin-bottom: 0; }
.side-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.side-card-head h3 { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.side-card-head h3 .icon { color: var(--gold); }
.mini-rank { display: flex; flex-direction: column; gap: 2px; }
.mini-rank-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 0;
  font-size: 13px; border-bottom: 1px dashed #f0f1f4;
}
.mini-rank-row:last-child { border-bottom: none; }
.mini-rank-name { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rank-row b { color: var(--brand); font-variant-numeric: tabular-nums; font-size: 13px; }
.rank-num {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1f2f5; color: var(--muted); font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rank-num.medal-1 { background: linear-gradient(135deg, #f7d77d, #c9922c); color: #fff; }
.rank-num.medal-2 { background: linear-gradient(135deg, #d7dce4, #9aa4b2); color: #fff; }
.rank-num.medal-3 { background: linear-gradient(135deg, #e8b48c, #b97848); color: #fff; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.quick-links a {
  display: flex; align-items: center; gap: 8px; padding: 9px 8px;
  border-radius: 9px; font-size: 12px; color: var(--ink-2);
}
.quick-links a:hover { background: var(--brand-soft); color: var(--brand); }
.quick-links .icon { color: var(--faint); }
.quick-links a:hover .icon { color: var(--brand); }
.side-note { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.side-note b { font-size: 12px; color: var(--ink-2); }
.side-note p { font-size: 11px; color: var(--faint); line-height: 1.7; margin-top: 5px; }

/* ---------- 广告轮播 ---------- */
.ad-carousel { position: relative; border-radius: 18px; overflow: hidden; background: #1c2230; }
.ad-stage { position: relative; aspect-ratio: 16 / 10; cursor: pointer; }
.ad-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0) 45%, rgba(10, 14, 22, .78) 100%);
}
.ad-caption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.ad-caption b { font-size: 15px; }
.ad-caption span { font-size: 11px; opacity: .72; }
.ad-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(20, 24, 33, .45); color: #fff; display: flex;
  align-items: center; justify-content: center; opacity: 0;
  transition: opacity .18s, background .18s; backdrop-filter: blur(4px);
}
.ad-carousel:hover .ad-arrow { opacity: 1; }
.ad-arrow:hover { background: rgba(20, 24, 33, .7); }
.ad-arrow.prev { left: 12px; }
.ad-arrow.next { right: 12px; }
.ad-dots {
  position: absolute; left: 18px; bottom: 9px; z-index: 3; display: flex; gap: 5px;
}
.ad-dot {
  width: 5px; height: 5px; padding: 0; border: none; border-radius: 3px;
  background: rgba(255, 255, 255, .38); transition: width .2s, background .2s;
}
.ad-dot.on { width: 18px; background: #fff; }
.ad-fade-enter-active, .ad-fade-leave-active { transition: opacity .4s ease; }
.ad-fade-enter-from, .ad-fade-leave-to { opacity: 0; }
.ad-fallback {
  position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 10px; padding: 24px;
  background:
    radial-gradient(320px 200px at 90% 0%, rgba(244, 183, 64, .22), transparent 65%),
    linear-gradient(145deg, #232a3a, #161b27);
}
.ad-fallback::before {
  content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  right: -70px; top: -100px; opacity: .55;
  background: radial-gradient(circle at 35% 30%, rgba(211, 58, 58, .55), transparent 62%);
}
.ad-fallback::after {
  content: 'CP'; position: absolute; right: 18px; top: 10px;
  font-size: 92px; font-weight: 900; letter-spacing: -.08em; line-height: 1;
  color: rgba(255, 255, 255, .045); pointer-events: none;
}
.ad-fallback-glow {
  position: absolute; width: 160px; height: 160px; right: -40px; top: -50px;
  background: radial-gradient(circle, rgba(211, 58, 58, .4), transparent 65%);
  border-radius: 50%;
}
.ad-fallback .brand-mark { position: relative; z-index: 1; }
.ad-fallback-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.ad-fallback-text b { font-size: 17px; letter-spacing: -.01em; }
.ad-fallback-text span { font-size: 11px; color: rgba(255, 255, 255, .55); }
.ad-fallback .btn { position: relative; z-index: 1; align-self: flex-start; height: 34px; }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 46px 16px; }
.empty-icon {
  width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--faint); display: flex; align-items: center; justify-content: center;
}
.empty-title { font-size: 16px; font-weight: 700; }
.empty-desc { font-size: 13px; color: var(--muted); margin-top: 5px; max-width: 420px; margin-left: auto; margin-right: auto; }
.empty-action { margin-top: 16px; }

/* ---------- 弹窗 / Toast / 确认框 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 20, 28, .5);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.modal-panel {
  width: 100%; max-height: calc(100vh - 48px); background: #fff;
  border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px; border-bottom: 1px solid var(--line); flex: none;
}
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-body .studio { grid-template-columns: minmax(0, 1fr) 320px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-fade-enter-active, .modal-fade-leave-active { transition: opacity .18s ease; }
.modal-fade-enter-from, .modal-fade-leave-to { opacity: 0; }
.modal-fade-enter-active .modal-panel, .modal-fade-leave-active .modal-panel { transition: transform .18s ease; }
.modal-fade-enter-from .modal-panel, .modal-fade-leave-to .modal-panel { transform: translateY(12px) scale(.99); }

.toast-wrap {
  position: fixed; top: 78px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none; width: min(92vw, 520px);
}
.toast {
  background: #1d2330; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  text-align: center; max-width: 100%;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #176b46; }
.toast-error { background: #a92c2c; }
.toast-info { background: #1d2330; }

.dialog-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(16, 20, 28, .48);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  opacity: 0; transition: opacity .16s ease;
}
.dialog-mask.show { opacity: 1; }
.dialog {
  width: 100%; max-width: 390px; background: #fff; border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow-lg); transform: translateY(8px);
  transition: transform .16s ease;
}
.dialog-mask.show .dialog { transform: translateY(0); }
.dialog-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dialog-body { font-size: 13px; color: var(--muted); line-height: 1.7; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 20px; flex-wrap: wrap; }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; color: var(--ink-2); font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn[disabled] { opacity: .4; pointer-events: none; }
.page-dots { color: var(--faint); font-size: 12px; padding: 0 3px; }
.page-total { font-size: 12px; color: var(--faint); margin-left: 8px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--faint);
  letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid #f1f2f5; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fcfcfd; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .center { text-align: center; }
/* 开奖详情页奖级表：列标签与列数据整体调大，与“奖级”列一致 */
.prize-table { font-size: 15px; }
.prize-table th { font-size: 14px; color: var(--muted); }
.prize-table td { padding: 13px 12px; }

/* ---------- 彩种入口 ---------- */
.lottery-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px;
  margin-bottom: 16px; scrollbar-width: none;
}
.lottery-tabs::-webkit-scrollbar { display: none; }
.lottery-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 13px; border-radius: 9px; font-size: 13px; color: var(--muted);
  background: #fff; border: 1px solid var(--line);
}
.lottery-tab:hover { border-color: #cdd2d9; color: var(--ink); }
.lottery-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.tab-dot.blue { background: var(--blue); }
.lottery-tab.active .tab-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }

.lottery-list { display: flex; flex-direction: column; gap: 10px; }
.lottery-row {
  display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.1fr) 170px auto;
  align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 18px; box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s;
}
.lottery-row:hover { border-color: #d5dae1; transform: translateY(-1px); }
.lottery-row-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lottery-row-info { display: flex; flex-direction: column; min-width: 0; }
.lottery-row-title { display: flex; align-items: center; gap: 6px; }
.lottery-row-title b { font-size: 16px; }
.lottery-row-info > .muted { font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lottery-row-draw { display: flex; flex-direction: column; gap: 4px; }
.lottery-draw-link { color: inherit; border-radius: 9px; padding: 4px 6px; margin: -4px -6px; transition: background .16s; }
.lottery-draw-link:hover { background: var(--surface-2); }
.lottery-draw-link:hover .lot-click-tip { color: var(--brand); }
.lottery-draw-day { font-size: 10px !important; color: var(--faint) !important; }
.lottery-row-next { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.lottery-row-next b { color: var(--brand); font-size: 17px; }
.lottery-row-next .muted { font-size: 10px; }
.lottery-row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.hub-card {
  display: flex; flex-direction: column; gap: 5px; background: #fff;
  border: 1px solid var(--line); border-radius: 15px; padding: 17px;
  box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.hub-card::after {
  content: ''; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(211, 58, 58, .1), transparent 68%);
}
.hub-card.blue::after { background: radial-gradient(circle, rgba(47, 107, 216, .12), transparent 68%); }
.hub-card:hover { transform: translateY(-3px); border-color: #d3d8df; box-shadow: var(--shadow-lg); }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.hub-card > b { font-size: 16px; }
.hub-card > .muted { font-size: 11px; line-height: 1.55; min-height: 34px; }
.hub-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--brand); margin-top: 5px; font-weight: 600; }
.hub-card.blue .hub-link { color: var(--blue); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 20px; }
.info-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.info-tile .icon { color: var(--brand); margin-bottom: 5px; }
.info-tile b { font-size: 13px; }
.info-tile span { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ---------- 历史开奖 ---------- */
.draw-list { display: flex; flex-direction: column; gap: 8px; }
.draw-row {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 13px; padding: 14px 18px; transition: border-color .18s, transform .18s;
}
.draw-row:hover { border-color: #d3d8df; transform: translateY(-1px); }
.draw-row-main { display: flex; flex-direction: column; }
.draw-no { font-size: 12px; color: var(--muted); }
.draw-no b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.draw-date { font-size: 12px; }
.draw-numbers { min-width: 0; }
.draw-more { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--faint); }
.draw-row:hover .draw-more { color: var(--brand); }
.load-more { display: flex; justify-content: center; margin-top: 18px; }

.draw-hero {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff;
  padding: 30px 32px 22px; margin-bottom: 18px;
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(244, 183, 64, .24), transparent 60%),
    linear-gradient(135deg, #1b2130, #121722);
  box-shadow: var(--shadow-lg);
}
.draw-hero.blue { background: radial-gradient(700px 320px at 90% -20%, rgba(47, 107, 216, .4), transparent 60%), linear-gradient(135deg, #1a2233, #111722); }
.draw-hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.draw-hero .eyebrow { color: #f4b740; font-size: 13px; }
.draw-hero h1 { font-size: 30px; letter-spacing: -.02em; }
.draw-hero p { font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.draw-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.draw-hero-balls { margin: 24px 0 20px; min-height: 44px; }
.draw-hero-balls .balls { gap: 9px; }
.draw-hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: rgba(255, 255, 255, .55);
}
.draw-hero-foot span { display: inline-flex; align-items: center; gap: 5px; }
.draw-hero-foot a { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .7); }
.draw-hero-foot a:hover { color: #fff; }
.draw-official-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: 14px; }
.draw-official-meta b { color: #f4b740; font-variant-numeric: tabular-nums; font-size: 15px; }
.draw-official-meta .meta-line { flex-basis: 100%; line-height: 1.7; }
.draw-official-mini { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; }
.draw-official-mini b { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

.bet-list { display: flex; flex-direction: column; gap: 6px; }
.bet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px dashed #eef0f3;
}
.bet-row:last-child { border-bottom: none; }
.bet-row.detailed { padding: 13px 2px; align-items: flex-start; }
.bet-row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bet-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; }
.bet-sub { font-size: 11px; }
.bet-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.status-pill {
  font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #f0f2f5;
  color: var(--muted); white-space: nowrap;
}
.status-pill.pending { background: var(--gold-soft); color: var(--gold); }
.status-pill.won { background: var(--green-soft); color: var(--green); }
.status-pill.lost { background: #f0f2f5; color: var(--faint); }

/* ---------- 走势图 ---------- */
.trend-page { max-width: none; padding-left: 12px; padding-right: 12px; }
.trend-page .page-header { margin-bottom: 14px; }
.trend-page .trend-scroll { border-radius: 12px; }
.trend-toolbar { padding: 14px 16px; margin-bottom: 14px; }
.trend-toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trend-toolbar-row + .trend-toolbar-row { margin-top: 9px; }
.toolbar-label { font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .08em; width: 34px; flex: none; }
.trend-card { padding: 0; overflow: hidden; }
.trend-scroll { overflow: auto; max-height: 68vh; position: relative; }
/* 走势图整页铺开（对齐彩经网）：纵向交给页面滚动，容器只做横向滚动。
   需保持更高优先级覆盖，否则移动端媒体查询的 max-height: 62vh 会重新生效。 */
.trend-scroll.page-scroll { max-height: none; }
.trend-table { border-collapse: separate; border-spacing: 0; font-size: 10.5px; white-space: nowrap; width: max-content; }
.trend-table th, .trend-table td {
  padding: 2px 1px; text-align: center; border-bottom: 1px solid #f2f3f5;
  border-right: 1px solid #f5f6f8; min-width: 18px;
}
.trend-table .trend-draw-cell { width: 120px; min-width: 120px; max-width: 120px; padding: 2px 2px; }
.trend-table .trend-draw-cell .balls { gap: 1px; justify-content: flex-start; }
.trend-table .trend-draw-cell .ball { width: 15px; height: 15px; font-size: 7px; }
.trend-table .draw-cell-head { width: 120px; min-width: 120px; }
.trend-table .miss-cell, .trend-table .num-head, .trend-table .stat-cell {
  width: 18px; min-width: 18px; max-width: 18px; padding-left: 0; padding-right: 0;
}
.trend-table .metric-head, .trend-table .metric-cell { width: 35px; min-width: 35px; max-width: 35px; }
.trend-table:not(.wide-trend) { width: 100%; table-layout: fixed; }
.trend-table:not(.wide-trend) .miss-cell,
.trend-table:not(.wide-trend) .num-head,
.trend-table:not(.wide-trend) .stat-cell {
  width: auto; min-width: 0; max-width: none;
}
.trend-table:not(.wide-trend) .metric-head,
.trend-table:not(.wide-trend) .metric-cell { width: 42px; min-width: 42px; max-width: 42px; font-size: 10px; }
.trend-table:not(.wide-trend) .trend-dot { width: 19px; height: 19px; font-size: 11px; }
.trend-table:not(.wide-trend) .trend-draw-cell { width: 150px; min-width: 150px; max-width: 150px; }
.trend-table:not(.wide-trend) .draw-cell-head { width: 150px; min-width: 150px; }
.trend-table:not(.wide-trend) .trend-draw-cell .ball { width: 18px; height: 18px; font-size: 11px; }
.trend-table:not(.wide-trend).qlc-trend .trend-draw-cell,
.trend-table:not(.wide-trend).qlc-trend .draw-cell-head { width: 176px; min-width: 176px; max-width: 176px; }
.trend-table:not(.wide-trend) .trend-draw-cell .balls { flex-wrap: nowrap; }
.trend-table.wide-trend .trend-draw-cell .balls { flex-wrap: wrap; }
.trend-table.wide-trend .trend-dot { font-size: 9px; }
.trend-table.wide-trend .trend-draw-cell .ball { font-size: 9px; }
.trend-table thead th {
  position: sticky; top: 0; z-index: 3; background: #fafbfc;
  color: var(--muted); font-weight: 600; height: 28px;
}
.trend-table thead tr:nth-child(2) th { top: 29px; z-index: 3; }
.trend-table .trend-area-head.red { background: #fdf3f2; color: var(--brand); }
.trend-table .trend-area-head.blue { background: #f0f4fd; color: var(--blue); }
.trend-table .trend-area-head.orange { background: #fdf7ec; color: var(--gold); }
.trend-table .num-head.red { color: var(--brand); }
.trend-table .num-head.blue { color: var(--blue); }
.trend-table .num-head.orange { color: var(--gold); }
.trend-table .stick-col, .trend-table .stick-col2 {
  position: sticky; left: 0; z-index: 2; background: #fff;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.trend-table .stick-col { width: 66px; min-width: 66px; max-width: 66px; }
.trend-table .stick-col2 { width: 38px; min-width: 38px; max-width: 38px; left: 66px; z-index: 2; }
.trend-table thead .stick-col, .trend-table thead .stick-col2 { z-index: 4; background: #fafbfc; }
.trend-table tbody tr:hover td { background: #fcfcfd; }
.trend-table tbody tr:hover .stick-col, .trend-table tbody tr:hover .stick-col2 { background: #fafbfc; }
.trend-table .stick-col a { color: var(--muted); }
.trend-table .stick-col a:hover { color: var(--brand); }
.miss-cell { position: relative; height: 27px; }
.miss-num { color: #b6bcc6; font-size: 10px; font-variant-numeric: tabular-nums; }
.trend-dot {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; color: #fff;
  font-size: 7.5px; font-weight: 700;
}
/* 命中连线：按“上一格命中”分段绘制在单元格上下半部，
   行高再高（如快乐8 换行球）也能连成一条线；球体绘制在其上方遮住端点 */
.miss-cell.link-up::before, .miss-cell.link-down::after {
  content: ""; position: absolute; left: 50%; width: 1px;
  transform: translateX(-50%); background: var(--brand); opacity: .4;
}
.miss-cell.link-up::before { top: 0; bottom: 50%; }
.miss-cell.link-down::after { top: 50%; bottom: 0; }
.miss-cell.blue.link-up::before, .miss-cell.blue.link-down::after { background: var(--blue); }
.miss-cell.orange.link-up::before, .miss-cell.orange.link-down::after { background: #e89a30; }
.trend-dot.red { color: #fff; }
.trend-dot.blue { color: #fff; }
.trend-dot.orange { color: #fff; }
.zone-trend-table .zone-numbers-cell { text-align: left; min-width: 126px; padding: 4px 5px; }
.zone-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin: 1px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
}
.zone-trend-table .zone-count-cell { min-width: 35px; }
.zone-trend-table .zone-blue-cell { min-width: 48px; }
.zone-trend-table .zeronumber { color: var(--faint); }
.blue-trend-table .metric-head { min-width: 34px; }
.zone-count-section { border-top: 1px solid var(--line); margin-top: 12px; padding: 12px 14px 14px; }
.zone-count-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.zone-count-title h3 { font-size: 14px; }
.zone-count-title .eyebrow { margin-bottom: 2px; }
.zone-count-title .muted { font-size: 9px; }
.zone-count-table { width: 100%; table-layout: fixed; }
.zone-count-table .stat-cell { font-size: 9px; }
.trend-dot.red { background: var(--brand); }
.trend-dot.blue { background: var(--blue); }
.trend-dot.orange { background: #e89a30; }
.trend-table tfoot td {
  position: sticky; bottom: 0; background: #fafbfc; z-index: 2;
  color: var(--muted); font-size: 10px; padding: 5px;
  border-top: 1px solid var(--line);
}
.trend-table tfoot .stick-col { z-index: 5; background: #fafbfc; text-align: left; padding-left: 8px; }
.stat-cell { font-variant-numeric: tabular-nums; }
/* 预测行：点击列放置示意球，仅作选号示意，不参与投注 */
.predict-row td { background: #fffcf2; }
.predict-row .predict-label { font-size: 10.5px; color: var(--gold); padding-left: 8px; }
.predict-cell { cursor: pointer; }
.predict-cell:hover { background: #f9f1d8 !important; }
.trend-dot.predict { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.predict-draw-cell { white-space: normal; line-height: 1.5; }
.predict-count { font-size: 9px; color: var(--gold); margin-right: 4px; }
.predict-draw-cell .trend-dot.predict { margin: 1px; width: 14px; height: 14px; font-size: 7px; }
.pwd-entry { gap: 10px; }
.pwd-panel { max-width: 400px !important; }
.pwd-note { font-size: 10px; margin-top: 10px; text-align: center; }

/* ---------- 我的彩豆 / 站内建议 ---------- */
.coin-links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.coin-link-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; transition: border-color .16s, transform .16s;
}
.coin-link-card:hover { border-color: #ccd2da; transform: translateY(-1px); }
.coin-link-card > .icon:first-child { color: var(--brand); flex: none; }
.coin-link-card > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.coin-link-card b { font-size: 13px; }
.coin-link-card span { font-size: 10px; color: var(--muted); }
.coin-link-card > .icon:last-child { color: var(--faint); flex: none; }
.feedback-form-card { padding: 16px; }
.feedback-content-field { position: relative; }
.feedback-content-field textarea {
  width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; font-size: 13px; line-height: 1.7;
  font-family: inherit; color: var(--ink); background: var(--surface);
}
.feedback-content-field textarea:focus { outline: none; border-color: var(--brand); }
.feedback-count { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: var(--faint); }
.feedback-upload { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload-btn { position: relative; overflow: hidden; }
.feedback-file-name { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.feedback-preview { max-width: min(420px, 100%); max-height: 240px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
.feedback-list { display: flex; flex-direction: column; gap: 10px; }
.feedback-item { border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; }
.feedback-item-head { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 7px; }
.feedback-content { margin: 0; font-size: 12px; line-height: 1.75; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word; }
.feedback-thumb { max-width: min(360px, 100%); max-height: 200px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 9px; object-fit: contain; }
.feedback-reply { margin-top: 9px; padding: 9px 11px; border-radius: 9px;
    background: var(--green-soft, #eef7f2); }
.feedback-reply b { font-size: 11px; color: var(--green, #2f8a62); }
.feedback-reply p { margin: 3px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.stat-cell.clickable { cursor: pointer; }
.stat-cell.clickable:hover { background: var(--brand-soft); color: var(--brand); }
.trend-table .metric-head {
  background: #f7f8fa; color: var(--ink-2); min-width: 38px; font-size: 10px;
}
.trend-table .metric-cell {
  color: var(--ink-2); background: #fcfcfd; font-variant-numeric: tabular-nums;
  font-size: 10px; padding-left: 4px; padding-right: 4px;
}
.trend-table .zone-head { font-size: 10px; letter-spacing: .02em; }
/* 分区分隔线：每个分区、开奖号码列与星期列的末尾加深竖线 */
.trend-table .group-end { border-right: 2px solid #c9d1db; }
.trend-table .trend-area-head { border-right: 2px solid #c9d1db; }
.trend-table .draw-cell-head, .trend-table .trend-draw-cell { border-right: 2px solid #c9d1db; }
.trend-table .stick-col2 { border-right: 2px solid #c9d1db; }
.zone-trend-table .zone-count-cell { border-right: 2px solid #c9d1db; }
.trend-dot.square { border-radius: 4px; }
.miss-num.miss-mid, .miss-num.miss-high { color: #b6bcc6; font-weight: 400; }
.trend-tip-inline { margin-left: 2px; font-size: 10px; }
.classic-trend .stick-col { width: 70px; min-width: 70px; max-width: 70px; }
.classic-trend .stick-col2 { width: 38px; min-width: 38px; max-width: 38px; left: 70px; }
.classic-trend .num-head { font-size: 9.5px; }
.classic-trend .miss-cell { height: 28px; }
.trend-hint {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-size: 11px; color: var(--faint); border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.compact-table td { padding: 7px 8px; }
.compact-table th { height: 32px; }
.trend-chart { width: 100%; height: 420px; padding: 10px 4px 4px; }

/* ---------- 选号器 ---------- */
.picker { min-width: 0; }
.picker-tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.picker-tools .muted { font-size: 11px; }
.pick-area { margin-bottom: 16px; }
.area-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 12px; color: var(--muted);
}
.area-head b { color: var(--ink-2); font-size: 13px; }
.area-count { font-size: 11px; color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 600; }
.area-count i { font-style: normal; color: var(--faint); font-weight: 400; }
.picker-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.pick-ball {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; transition: all .14s ease; flex: none;
}
.pick-ball:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.pick-ball.small { width: 30px; height: 30px; font-size: 12px; }
.pick-ball.on.red { background: linear-gradient(145deg, #e8584f, var(--brand)); border-color: var(--brand); color: #fff; box-shadow: 0 4px 10px -4px rgba(211, 58, 58, .6); }
.pick-ball.on.blue { background: linear-gradient(145deg, #5d8fee, var(--blue)); border-color: var(--blue); color: #fff; box-shadow: 0 4px 10px -4px rgba(47, 107, 216, .6); }
.pick-ball.on.orange { background: linear-gradient(145deg, #f7ab60, #e88a28); border-color: #e88a28; color: #fff; box-shadow: 0 4px 10px -4px rgba(232, 138, 40, .6); }
.pick-ball.on.gold { background: linear-gradient(145deg, #f4ce72, var(--gold)); border-color: var(--gold); color: #fff; }
.pick-ball.dim { opacity: .3; }
.pick-ball.dan-ball { border-style: dashed; }
.pick-ball.dan-ball.on { border-style: solid; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold); }

.play-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.digit-picker, .qxc-grid { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.digit-column { flex: none; }
.digit-grid { display: grid; grid-template-columns: repeat(5, 30px); gap: 5px; }
/* 七星彩 7 位并排：每位改为 2 列竖排（5 行），整体宽度收窄到无需横向滚动 */
.qxc-grid .digit-grid { grid-template-columns: repeat(2, 27px); }
.dantuo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dantuo-section {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px;
  background: var(--surface-2);
}
.dantuo-section.dan-section { background: #fffcf6; border-color: #f4e6cb; }
.dantuo-section.tuo-section { background: #fafbfc; }
.dantuo-title {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  font-weight: 700; margin-bottom: 12px; color: var(--ink-2);
}
.dantuo-title small { font-size: 10px; color: var(--faint); font-weight: 400; margin-left: 4px; }
.dantuo-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dantuo-title .dot.tuo { background: var(--blue); }
.pick-area.compact { margin-bottom: 11px; }
.pick-area.compact .area-head { margin-bottom: 6px; }
.dantuo-no-dan {
  padding: 9px 10px; border: 1px dashed #ecd9b7; border-radius: 8px;
  color: var(--faint); font-size: 11px; line-height: 1.6; background: #fffdf8;
}
.dantuo-total { font-size: 12px; color: var(--muted); padding-top: 6px; }
.dantuo-total b { color: var(--brand); font-size: 15px; font-variant-numeric: tabular-nums; }
.kl8-grid {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px; max-width: 560px;
}
.kl8-grid .pick-ball { width: 100%; aspect-ratio: 1; height: auto; }

/* ---------- 选号工作台 ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; align-items: start; }
.studio-picker { padding: 24px; margin-bottom: 0; }
.studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.studio-head h2 { font-size: 22px; letter-spacing: -.02em; }
.studio-price { text-align: right; flex: none; }
.studio-price b { font-size: 22px; color: var(--brand); font-variant-numeric: tabular-nums; }
.studio-price span { display: block; font-size: 10px; color: var(--faint); }
.method-switch {
  display: inline-flex; padding: 4px; background: #eef0f4; border-radius: 11px;
  gap: 3px; margin-bottom: 16px;
}
.method-switch button {
  border: none; background: transparent; border-radius: 8px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.3;
}
.method-switch button small { font-size: 9px; font-weight: 400; opacity: .7; }
.method-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.studio-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.selection-info { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.selection-info b { color: var(--ink); font-variant-numeric: tabular-nums; }
.selection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.selection-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(28, 138, 87, .12); }
.studio-buttons { display: flex; gap: 8px; }

.bet-slip { position: sticky; top: calc(var(--header-h) + 18px); padding: 20px; margin-bottom: 0; }
.slip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.slip-head h3 { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.slip-head h3 .icon { color: var(--brand); }
.slip-head > span { font-size: 11px; color: var(--faint); }
.slip-empty { text-align: center; padding: 26px 10px; color: var(--faint); font-size: 11px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.slip-empty b { display: block; color: var(--muted); font-size: 13px; margin: 6px 0 3px; }
.slip-empty-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  color: var(--faint); border: 1px solid var(--line);
}
.slip-list { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.slip-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; transition: border-color .16s, background .16s; }
.slip-item:hover { border-color: #d7dce4; background: #f7f8fa; }
.slip-item-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.slip-edit-hint { font-size: 9px; color: var(--faint); }
.slip-item-head .tag { font-size: 10px; }
.slip-total {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line-strong);
}
.slip-total > div:first-child { font-size: 12px; color: var(--muted); display: flex; align-items: baseline; gap: 4px; }
.slip-total b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.slip-price { display: flex; align-items: baseline; gap: 4px; }
.slip-price b { color: var(--brand); font-size: 24px; }
.slip-price span { font-size: 10px; color: var(--faint); }
.bet-controls { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.bet-ctrl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.stepper button { width: 28px; height: 30px; border: none; background: transparent; color: var(--muted); font-size: 15px; }
.stepper button:hover { background: #f3f4f7; color: var(--brand); }
.stepper b { min-width: 30px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.bet-start { width: 100%; font-size: 11px; color: var(--faint); }
.bet-start b { color: var(--ink-2); }
.public-check {
  width: 100%; display: flex; align-items: flex-start; gap: 7px;
  font-size: 10px; color: var(--muted); line-height: 1.5; cursor: pointer;
}
.public-check input { margin: 2px 0 0; accent-color: var(--brand); }
.bet-order-list { display: flex; flex-direction: column; gap: 10px; }
.bet-order { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: var(--surface-2); }
.bet-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bet-order-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.bet-order-summary { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; margin-top: 4px; }
.bet-order-groups { margin-top: 8px; }
.bet-group-row { padding: 7px 0; border-top: 1px dashed var(--line); }
.bet-group-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.bet-group-row .bet-sub { margin-top: 3px; }
.slip-actions { display: flex; gap: 8px; margin-top: 14px; }
.slip-actions .btn { flex: 1; }
.slip-note { font-size: 10px; color: var(--faint); line-height: 1.65; margin-top: 10px; }
.mobile-slip-bar {
  display: none; position: sticky; bottom: calc(var(--bottom-h) + 8px); z-index: 20;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 12px;
  align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5);
}
.mobile-slip-bar b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- 中奖查询 ---------- */
.check-form { padding: 22px; }
.check-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.check-row .field { margin-bottom: 14px; min-width: 260px; }
.check-draw { display: flex; flex-direction: column; gap: 5px; padding-bottom: 15px; }
.note-list { display: flex; flex-direction: column; gap: 6px; }
.note-row {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px;
}
.check-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.result-head h2 { font-size: 20px; }
.result-summary { text-align: right; font-size: 12px; color: var(--muted); }
.result-summary span { display: block; }
.result-summary b { color: var(--brand); font-size: 20px; font-variant-numeric: tabular-nums; }
.result-summary small { color: var(--faint); }
.result-summary.win b { color: var(--green); }
.result-list { display: flex; flex-direction: column; gap: 8px; }
.result-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  background: var(--surface-2);
}
.result-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.result-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.result-desc { font-size: 11px; }
.result-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.result-prize { color: var(--green); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.result-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--faint);
}

/* ---------- 方案 ---------- */
.scheme-list { display: flex; flex-direction: column; gap: 9px; }
.scheme-row {
  display: flex; align-items: flex-start; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px;
  cursor: pointer; transition: border-color .18s, transform .18s;
}
.scheme-row:hover { border-color: #d2d7de; transform: translateY(-1px); }
.scheme-main { flex: 1; min-width: 0; }
.scheme-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; }
.scheme-balls { margin: 8px 0; }
.scheme-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.scheme-link { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); }
.scheme-row:hover .scheme-link { color: var(--brand); }
.check-box {
  width: 19px; height: 19px; border: 1.5px solid var(--line-strong); border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; margin-top: 2px; background: #fff; color: #fff;
}
.check-box.on { background: var(--brand); border-color: var(--brand); }
.manage-bar {
  position: sticky; bottom: calc(var(--bottom-h) + 12px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; padding: 10px 14px;
  border-radius: 12px; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .5);
  font-size: 12px; margin-top: 14px;
}
.success-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--green-soft); color: var(--green); border: 1px solid #c9ebda;
  border-radius: 10px; padding: 10px 14px; font-size: 12px; margin-bottom: 16px;
}
.success-banner a { color: var(--green); text-decoration: underline; }
.success-banner .grow { flex: 1; }

.ticket {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 760px;
}
.ticket-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 24px 26px 18px; background:
    radial-gradient(400px 180px at 100% 0%, rgba(244, 183, 64, .18), transparent 62%),
    linear-gradient(135deg, #1b2130, #131824);
  color: #fff;
}
.ticket-top h2 { font-size: 26px; letter-spacing: -.02em; }
.ticket-top .eyebrow { color: #f4b740; }
.ticket-no { font-size: 12px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.ticket-body { padding: 22px 26px; }
.ticket-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 11px 0; border-bottom: 1px dashed #eef0f3; font-size: 13px;
}
.ticket-row > span:first-child { color: var(--muted); flex: none; }
.ticket-row > b { text-align: right; font-weight: 600; }
.ticket-row.total b { color: var(--brand); font-size: 17px; }
.ticket-group { padding: 11px 0; border-bottom: 1px dashed #eef0f3; }
.ticket-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.ticket-tear {
  position: relative; height: 24px; margin: 0 16px;
  border-top: 1px dashed var(--line-strong);
}
.ticket-tear span { position: absolute; left: -27px; top: -11px; color: var(--faint); font-size: 12px; }
.ticket-bottom { padding: 0 26px 20px; font-size: 11px; color: var(--faint); text-align: center; }
.ticket-actions { display: flex; gap: 10px; margin-top: 16px; max-width: 760px; }
.ticket-actions .btn { flex: 1; }

/* ---------- 彩豆购买 ---------- */
.coin-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; margin-bottom: 16px; }
.coin-buy-card, .coin-rules-card { padding: 22px; }
.coin-balance-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.coin-balance { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.coin-balance small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 7px; letter-spacing: 0; }
.coin-form { border-top: 1px solid var(--line); padding-top: 16px; }
.field-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.coin-amount-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coin-cny { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.coin-amount-row input { width: 130px; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 700; }
.coin-amount-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(211, 58, 58, .1); }
.coin-presets { display: flex; gap: 5px; flex-wrap: wrap; }
.coin-presets .chip { height: 30px; padding: 0 9px; font-size: 11px; }
.coin-preview { display: flex; align-items: baseline; gap: 6px; margin: 17px 0 12px; color: var(--muted); font-size: 12px; }
.coin-preview b { color: var(--brand); font-size: 28px; font-variant-numeric: tabular-nums; }
.coin-pay-note { display: flex; gap: 7px; align-items: flex-start; margin-top: 11px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.coin-rule-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.coin-rule-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); font-size: 12px; }
.coin-rule-list li b { color: var(--ink-2); font-weight: 600; }
.coin-rule-list li span { color: var(--muted); text-align: right; }
.coin-footnote { font-size: 10px; line-height: 1.7; margin-top: 14px; }
.coin-orders-card { padding: 20px 22px; }
@media (max-width: 760px) {
  .coin-layout { grid-template-columns: 1fr; }
  .coin-buy-card, .coin-rules-card, .coin-orders-card { padding: 16px; }
  .coin-balance { font-size: 32px; }
}

/* ---------- 号码灵感实验室 ---------- */
.lab-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 13px 16px; margin-bottom: 16px; }
.lab-lottery-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lab-lottery-pick > label { font-size: 11px; color: var(--muted); }
.lab-groups { display: flex; align-items: center; gap: 6px; }
.lab-groups .chip { height: 29px; padding: 0 10px; font-size: 11px; }
.lab-cost { margin-left: auto; font-size: 12px; color: var(--muted); }
.lab-cost b { color: var(--brand); font-size: 18px; font-variant-numeric: tabular-nums; }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.lab-factors { min-width: 0; }
.lab-section-head { margin-bottom: 10px; }
.lab-section-head h2 { font-size: 18px; letter-spacing: -.02em; }
.lab-factor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.lab-factor {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; transition: border-color .18s, box-shadow .18s;
}
.lab-factor.on { border-color: color-mix(in srgb, var(--brand) 36%, var(--line)); box-shadow: 0 8px 22px -22px rgba(211, 58, 58, .5); }
.lab-factor.disabled { opacity: .52; }
.lab-factor.locked { border-color: color-mix(in srgb, var(--gold) 36%, var(--line)); }
.lab-factor-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; background: transparent; color: var(--ink); padding: 0; cursor: pointer; text-align: left;
}
.lab-factor-toggle span { font-size: 12px; font-weight: 600; }
.lab-factor-toggle i { font-style: normal; color: var(--faint); font-size: 10px; }
.lab-factor.on .lab-factor-toggle i { color: var(--brand); font-weight: 600; }
.lab-factor-toggle:disabled { cursor: not-allowed; }
.lab-factor-body { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.lab-factor-body input:not(.mini-range):not([type="range"]) {
  width: 100%; height: 31px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface-2); color: var(--ink); padding: 0 8px; font-size: 12px;
}
.lab-factor-body input:focus { outline: none; border-color: var(--brand); }
.lab-factor-body small { color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.lab-factor-body small a { color: var(--brand); }
.lab-factor-line { font-size: 11px; font-weight: 600; line-height: 1.55; letter-spacing: .01em; }
.lab-mini-row { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.lab-mini-row span:first-child { color: var(--ink-2); font-weight: 600; }
.lab-mini-row .muted { color: var(--muted); }
.lab-zone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.lab-zone-row input { text-align: center; }
.lab-seg { display: flex; padding: 2px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.lab-seg button { flex: 1; height: 23px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.lab-seg button.active { background: var(--brand); color: #fff; }
.lab-furnace {
  background:
    radial-gradient(420px 300px at 50% -10%, rgba(211, 58, 58, .26), transparent 64%),
    linear-gradient(150deg, #1b2231, #10151e 68%);
  border-radius: 20px; color: #fff; padding: 18px; position: sticky; top: 82px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.lab-furnace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; position: relative; z-index: 2; }
.lab-furnace-head .eyebrow { color: rgba(255,255,255,.45); }
.lab-furnace-head h2 { font-size: 18px; color: #fff; }
.lab-orb-wrap { display: flex; align-items: center; justify-content: center; min-height: 248px; position: relative; }
.lab-orb-aura { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(211,58,58,.4), transparent 66%); filter: blur(8px); animation: lab-breathe 4.8s ease-in-out infinite; }
@keyframes lab-breathe { 0%,100% { opacity:.5; transform:scale(.9); } 50% { opacity:1; transform:scale(1.06); } }
.lab-orb {
  width: 160px; height: 160px; border-radius: 50%; position: relative; display: flex;
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.45), rgba(211,58,58,.45) 35%, rgba(10,15,25,.8) 72%);
  border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 38px rgba(255,255,255,.14), 0 0 45px rgba(211,58,58,.26);
}
.lab-orb::after { content:""; position:absolute; inset:-22px; border-radius:50%; border:1px solid rgba(243,183,68,.35); animation: cp-spin 18s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.lab-orb span { color: #f3d38a; font-size: 20px; }
.lab-orb b { font-size: 13px; color: #fff; margin-top: 2px; }
.lab-orb small { font-size: 8px; color: rgba(255,255,255,.5); margin-top: 2px; }
.lab-generate { position: relative; z-index: 2; height: 40px; }
.lab-furnace-note { text-align: center; font-size: 9.5px; color: rgba(255,255,255,.42); line-height: 1.6; margin: 8px 0 14px; }
.lab-result { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; position: relative; z-index: 2; }
.lab-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lab-result-head h3 { font-size: 14px; color: #fff; }
.lab-result-head .eyebrow { color: rgba(255,255,255,.42); }
.lab-result-head .muted { color: rgba(255,255,255,.48); font-size: 9px; }
.lab-result-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.lab-result-row .muted { color: rgba(255,255,255,.42); font-size: 9px; width: 38px; flex: none; }
.lab-result-actions { display: flex; gap: 7px; margin-top: 10px; }
.lab-result-actions .btn { flex: 1; height: 32px; }
.lab-reason { color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.7; margin-top: 10px; }
.lab-result-empty {
  min-height: 118px; border: 1px dashed rgba(255,255,255,.16); border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: rgba(255,255,255,.45); text-align: center; padding: 12px; font-size: 10px;
}
.lab-result-empty b { color: rgba(255,255,255,.8); font-size: 12px; }
.lab-bet-panel { max-width: 440px !important; }
.lab-bet-summary { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 11px; border-radius: 9px; background: var(--surface-2); font-size: 12px; margin-bottom: 12px; }
.lab-bet-summary b { color: var(--brand); font-size: 18px; }
.lab-bet-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; font-size: 11px; color: var(--muted); }
.lab-bet-note { color: var(--muted); font-size: 10px; line-height: 1.6; margin-bottom: 12px; }
@media (max-width: 980px) {
  .lab-layout { grid-template-columns: 1fr; }
  .lab-furnace { position: static; }
}
@media (max-width: 640px) {
  .lab-toolbar { align-items: flex-start; }
  .lab-cost { margin-left: 0; width: 100%; }
  .lab-factor-grid { grid-template-columns: 1fr; }
  .lab-orb-wrap { min-height: 210px; }
  .lab-furnace { padding: 14px; }
}

/* ---------- 游戏 ---------- */
.game-hero {
  display: flex; align-items: stretch; justify-content: space-between; gap: 26px;
  border-radius: 22px; padding: 26px 30px; color: #fff; margin-bottom: 18px;
  background:
    radial-gradient(600px 300px at 92% -30%, rgba(244, 183, 64, .28), transparent 60%),
    radial-gradient(500px 300px at 0% 120%, rgba(211, 58, 58, .28), transparent 65%),
    linear-gradient(135deg, #1c2331, #121722);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.game-hero-main { position: relative; z-index: 1; }
.game-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px;
  color: rgba(255, 255, 255, .6); margin-bottom: 8px;
}
.game-balance {
  font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.game-balance span { font-size: 13px; color: rgba(255, 255, 255, .55); font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.game-hero-note { font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 5px; }
.game-reset {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 11px; color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 10px; border-radius: 8px;
}
.game-reset b { color: #f4b740; font-variant-numeric: tabular-nums; }
.game-hero-side {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 13px; min-width: 170px;
  padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .12);
}
.game-hero-side div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.game-hero-side span { font-size: 11px; color: rgba(255, 255, 255, .5); }
.game-hero-side b { font-size: 15px; font-variant-numeric: tabular-nums; }
.game-tabs { margin-bottom: 16px; }
.game-tabs .tabs { background: #fff; border: 1px solid var(--line); padding: 5px; }
.game-tabs .tab.active { background: var(--ink); color: #fff; }
.game-page .my-bets-toolbar { align-items: flex-start; }
.my-bets-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.my-bets-filters .select-compact { min-width: 118px; }
.bet-limit-note {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 14px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1.6;
}
@media (max-width: 720px) {
  .my-bets-toolbar { align-items: stretch; }
  .my-bets-filters { justify-content: space-between; }
}
.game-lottery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.game-lottery {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; text-align: left; transition: all .18s; position: relative;
}
.game-lottery:hover { border-color: var(--brand); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.game-lottery.disabled { opacity: .55; }
.game-lottery-name { font-size: 14px; font-weight: 700; }
.game-lottery .muted { font-size: 10px; }
.game-lottery-go { position: absolute; right: 12px; bottom: 12px; color: var(--faint); }
.game-lottery:hover .game-lottery-go { color: var(--brand); }
.bet-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.rank-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.rank-head h2 { font-size: 20px; }
.rank-head p { font-size: 11px; margin-top: 4px; max-width: 640px; }
.rank-list { display: flex; flex-direction: column; gap: 3px; }
.rank-row {
  display: grid; grid-template-columns: 40px minmax(120px, 1.1fr) minmax(140px, 1.4fr) 100px 90px;
  align-items: center; gap: 10px; padding: 10px 8px; border: none; background: transparent;
  border-radius: 9px; text-align: left; font-size: 12px; transition: background .15s;
}
.rank-row:hover { background: var(--surface-2); }
.rank-row.mine { background: var(--brand-soft); }
.rank-row .rank-num { width: 26px; height: 26px; font-size: 12px; }
.rank-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name .tag { margin-left: 5px; font-size: 9px; }
.rank-meta { font-size: 10px; }
.rank-prize { text-align: right; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.rank-points { text-align: right; font-size: 10px; color: var(--gold); }
.rank-tip { margin-top: 12px; font-size: 10px; color: var(--faint); }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gift-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  border: 1px solid var(--line); border-radius: 13px; padding: 16px;
  background: var(--surface-2);
}
.gift-icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--gold-soft);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.gift-card b { font-size: 14px; }
.gift-cost { color: var(--brand); font-size: 12px; font-weight: 700; }
.gift-card .muted { font-size: 10px; }
.gift-card .btn { margin-top: 6px; width: 100%; }
.points-chip { font-size: 11px; color: var(--muted); }
.points-chip b { color: var(--brand); font-size: 15px; margin-left: 4px; }
.points-log { display: flex; flex-direction: column; gap: 2px; }
.points-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px dashed #f0f1f4; font-size: 12px;
}
.points-row:last-child { border-bottom: none; }
.points-row span:first-child { flex: 1; }
.points-row .muted { font-size: 10px; }
.points-row b { font-variant-numeric: tabular-nums; }

/* ---------- 个人中心 ---------- */
.profile-hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-radius: 20px; padding: 24px 26px; margin-bottom: 18px;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(244, 183, 64, .2), transparent 62%),
    linear-gradient(135deg, #1c2331, #131824);
  color: #fff; box-shadow: var(--shadow-lg);
}
.profile-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), #e98444);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}
.profile-main { min-width: 0; }
.profile-name { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-main .muted { color: rgba(255, 255, 255, .5); font-size: 11px; }
.profile-stats { display: flex; gap: 26px; margin-left: auto; }
.profile-stats div { display: flex; flex-direction: column; }
.profile-stats b { font-size: 22px; font-variant-numeric: tabular-nums; }
.profile-stats span { font-size: 10px; color: rgba(255, 255, 255, .5); }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-actions .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.profile-actions .btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.account-main, .account-aside { min-width: 0; }
.account-aside { position: sticky; top: calc(var(--header-h) + 18px); }
.sub-table td { padding: 9px 10px; }
.sub-table th { padding: 8px 10px; }
.channel-hints { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; font-size: 10px; color: var(--faint); }
.channel-hints span { display: flex; align-items: center; gap: 5px; }
.session-list { display: flex; flex-direction: column; gap: 8px; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0f1f4; }
.session-row:last-child { border-bottom: none; }
.session-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12px; }
.session-main .muted { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.session-note { margin-top: 10px; font-size: 10px; color: var(--faint); }

/* 消息 */
.message-list { display: flex; flex-direction: column; gap: 8px; }
.message-row {
  display: flex; align-items: flex-start; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px;
  cursor: pointer; transition: border-color .18s, background .18s; position: relative;
}
.message-row:hover { border-color: #d2d7de; }
.message-row.unread { background: #fffdfd; border-color: #f0dcdb; }
.message-icon {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.message-icon.game { background: var(--gold-soft); color: var(--gold); }
.message-icon.broadcast, .message-icon.system { background: var(--blue-soft); color: var(--blue); }
.message-main { flex: 1; min-width: 0; }
.message-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.message-head b { font-size: 13px; }
.message-head .muted { font-size: 10px; }
.message-main p { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: pre-line; line-height: 1.65; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 7px; }

/* ---------- 登录 ---------- */
.auth-layout { background: #0f131b; }
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 56px 60px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(211, 58, 58, .5), transparent 60%),
    radial-gradient(600px 500px at 100% 100%, rgba(47, 107, 216, .3), transparent 62%),
    linear-gradient(145deg, #171d2a, #0e131c);
}
.auth-side::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .18;
}
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.auth-side h1 { position: relative; z-index: 1; font-size: 44px; line-height: 1.2; letter-spacing: -.03em; margin-top: auto; }
.auth-side > p { position: relative; z-index: 1; color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 16px; max-width: 440px; line-height: 1.8; }
.auth-side ul { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.auth-side li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.auth-side li .icon { color: #f4b740; }
.auth-foot { position: relative; z-index: 1; margin-top: 40px; font-size: 11px; color: rgba(255, 255, 255, .38); letter-spacing: .08em; }
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg);
}
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }
.auth-head h2 { font-size: 25px; letter-spacing: -.02em; }
.auth-head p { font-size: 12px; margin-top: 4px; }
.auth-card .segmented { width: 100%; margin: 18px 0; }
.auth-card .segmented button { flex: 1; }
.auth-submit { height: 44px; margin-top: 6px; }
.auth-hint { text-align: center; font-size: 11px; color: var(--faint); margin-top: 12px; }
.auth-legal { text-align: center; font-size: 10px; color: var(--faint); margin-top: 16px; line-height: 1.6; }

/* ---------- 页脚 ---------- */
.site-footer { background: #10141c; color: rgba(255, 255, 255, .6); margin-top: 20px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  padding-top: 42px; padding-bottom: 30px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .35); }
.footer-brand p { font-size: 11px; line-height: 1.8; color: rgba(255, 255, 255, .38); margin-top: 14px; max-width: 480px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.footer-links > div { display: flex; flex-direction: column; gap: 7px; font-size: 11px; }
.footer-links b { color: rgba(255, 255, 255, .85); font-size: 12px; margin-bottom: 2px; }
.footer-links a, .footer-links span { color: rgba(255, 255, 255, .4); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; padding-bottom: 22px;
  font-size: 10px; color: rgba(255, 255, 255, .3); flex-wrap: wrap;
}
.footer-icp { color: rgba(255, 255, 255, .42); }
.footer-icp:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .hero h1 { font-size: 40px; }
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: minmax(0, 1fr) 330px; }
  .modal-body .studio { grid-template-columns: minmax(0, 1fr) 300px; }
  .lottery-row { grid-template-columns: minmax(200px, 1.2fr) minmax(200px, 1fr) 150px; }
  .lottery-row-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 8px; border-top: 1px dashed var(--line); }
  .game-lottery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .shell, .page { padding-left: 18px; padding-right: 18px; }
  .main-nav { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding: 20px 22px; }
  .hero h1 { font-size: 25px; }
  .hero-media { max-width: 520px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .home-aside > .side-note { grid-column: 1 / -1; }
  .lottery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: 1fr; }
  .account-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { min-height: 100vh; }
  .studio { grid-template-columns: 1fr; }
  .bet-slip { position: static; }
  .modal-body .studio { grid-template-columns: 1fr; }
  .mobile-slip-bar { display: flex; }
  .studio { padding-bottom: 8px; }
  .rank-row { grid-template-columns: 34px minmax(100px, 1fr) minmax(100px, 1.2fr) 86px 76px; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; }
  body { font-size: 14px; }
  .page { padding: 16px 14px 44px; }
  .page-header { margin: 6px 0 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-header h1 { font-size: 25px; }
  .page-header p { font-size: 12px; margin-top: 5px; }
  .page-header-actions { width: 100%; }
  .header-inner { padding: 0 14px; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 17px; }
  .header-login { display: none; }
  .header-register { display: none; }
  .coin-chip span { display: none; }
  .coin-chip { padding: 0 9px; }
  .user-name { display: none; }
  .user-trigger { padding: 0 4px; gap: 3px; }
  .hero { margin-top: 14px; border-radius: 18px; }
  .hero-inner { padding: 18px 16px; gap: 16px; }
  .hero h1 { font-size: 23px; }
  .hero-copy > p { font-size: 12px; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; padding-top: 16px; }
  .hero-stats b { font-size: 18px; }
  .hero-badges { justify-content: flex-start; }
  .home-grid { margin-top: 20px; gap: 18px; }
  .home-aside { grid-template-columns: 1fr; }
  .lottery-grid { grid-template-columns: 1fr; }
  .lot-card { padding: 15px 15px 0; }
  .lot-actions { margin-left: -15px; margin-right: -15px; }
  .section-head h2 { font-size: 20px; }
  .card { padding: 16px; border-radius: 13px; }
  .lottery-tabs { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .hub-card { padding: 13px; }
  .hub-card > .muted { min-height: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .lottery-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .lottery-row-draw, .lottery-row-next { flex-direction: row; align-items: center; gap: 8px; }
  .lottery-row-actions { border-top: none; padding-top: 0; }
  .lottery-row-actions .btn { flex: 1; }
  .draw-row { grid-template-columns: 1fr; gap: 8px; padding: 13px 14px; }
  .draw-row-main { flex-direction: row; align-items: baseline; gap: 8px; }
  .draw-more { display: none; }
  .draw-hero { padding: 20px 18px 16px; border-radius: 17px; }
  .draw-hero-head { flex-direction: column; }
  .draw-hero h1 { font-size: 23px; }
  .draw-hero-balls .balls { gap: 6px; }
  .draw-hero-balls .ball { width: 36px; height: 36px; font-size: 15px; }
  .draw-hero-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trend-scroll { max-height: 62vh; }
  .trend-toolbar { padding: 12px; }
  .trend-chart { height: 320px; }
  .studio-picker { padding: 16px; }
  .studio-head h2 { font-size: 19px; }
  .studio-actions { flex-direction: column; align-items: stretch; }
  .studio-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .bet-slip { padding: 16px; }
  .dantuo-layout { grid-template-columns: 1fr; }
  .kl8-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .digit-grid { grid-template-columns: repeat(5, 28px); }
  .qxc-grid { flex-wrap: wrap; gap: 10px; }
  .qxc-grid .digit-grid { grid-template-columns: repeat(2, 28px); }
  .check-row { flex-direction: column; align-items: stretch; gap: 0; }
  .check-draw { padding: 0 0 12px; }
  .result-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .result-side { flex-direction: row; align-items: center; }
  .result-summary { text-align: left; }
  .game-hero { flex-direction: column; padding: 22px 20px; gap: 18px; }
  .game-balance { font-size: 36px; }
  .game-hero-side { padding-left: 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; flex-direction: row; justify-content: space-between; }
  .game-hero-side div { flex-direction: column; gap: 2px; align-items: flex-start; }
  .game-lottery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-tabs .tabs { gap: 2px; }
  .game-tabs .tab { padding: 8px 11px; font-size: 12px; }
  .rank-row { grid-template-columns: 30px 1fr 86px; gap: 8px; padding: 9px 4px; }
  .rank-meta { grid-column: 2 / 3; font-size: 9px; }
  .rank-points { display: none; }
  .rank-head { flex-direction: column; }
  .gift-grid { grid-template-columns: 1fr 1fr; }
  .profile-hero { padding: 18px; gap: 12px; }
  .profile-stats { margin-left: 0; width: 100%; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .profile-actions { width: 100%; }
  .profile-actions .btn { flex: 1; }
  .ticket-top { padding: 20px 18px 15px; }
  .ticket-top h2 { font-size: 21px; }
  .ticket-body { padding: 16px 18px; }
  .ticket-bottom { padding: 0 18px 16px; }
  .ticket-actions { flex-direction: column; }
  .auth-main { padding: 24px 16px; align-items: flex-start; padding-top: 40px; }
  .auth-card { padding: 22px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .bottom-nav { display: flex; }
  .app-main.with-bottom { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal-panel { max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .toast-wrap { top: auto; bottom: calc(var(--bottom-h) + 20px); }
  .manage-bar { bottom: calc(var(--bottom-h) + 10px); }
  .pagination .page-total { width: 100%; text-align: center; margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field:first-child { grid-column: auto; }
  .search-box { min-width: 0; width: 100%; }
  .toolbar { align-items: stretch; }
  .draw-hero-foot span { line-height: 1.5; }
}

@media (max-width: 420px) {
  .kl8-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .pick-ball { width: 31px; height: 31px; font-size: 12px; }
  .pick-ball.small { width: 27px; height: 27px; }
  .game-tabs .tab span:not(.tab-badge) { display: none; }
  .game-tabs .tab { padding: 9px 14px; }
  .gift-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---- wechat integration ---- */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: #9aa2b1; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e8eaf0; }
.wechat-btn { background: #07c160; color: #fff; border: none; }
.wechat-btn:hover { background: #06ad56; }
.form-hint { display: flex; align-items: center; gap: 6px; padding: 8px 12px; margin-bottom: 12px;
  border-radius: 8px; background: #eef7f0; color: #2e7d4f; font-size: 13px; }
.flex-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }


/* ---- 彩种玩法规则页 ---- */
.intro-desc { color: var(--ink-2); font-size: 14px; margin: 6px 0; }
.intro-sub { font-size: 15px; margin: 14px 0 6px; }
.intro-list { margin: 4px 0; }
.intro-list li { padding: 2px 0; color: var(--muted); font-size: 14px; list-style: disc inside; }
.intro-links { display: flex; flex-wrap: wrap; gap: 8px; }
