/* =========================================================
   汇彩开奖网 · 主题样式
   基于 Bootstrap 5.3 —— 现代靛紫 + 玫瑰配色 / 卡片化布局
   ========================================================= */

:root {
  /* 品牌色 */
  --hc-primary:      #6366f1;
  --hc-primary-600:  #4f46e5;
  --hc-primary-700:  #4338ca;
  --hc-primary-soft: #eef0ff;
  --hc-violet:       #8b5cf6;
  --hc-rose:         #f43f5e;
  --hc-rose-soft:    #ffeef1;
  --hc-cyan:         #06b6d4;
  --hc-emerald:      #10b981;
  --hc-amber:        #f59e0b;

  /* 中性色 */
  --hc-ink:      #0f172a;
  --hc-ink-2:    #1e293b;
  --hc-bg:       #f4f5fb;
  --hc-surface:  #ffffff;
  --hc-surface-2:#fafbff;
  --hc-line:     #e7e9f2;
  --hc-line-2:   #d6dae8;
  --hc-text:     #1f2937;
  --hc-text-2:   #4b5563;
  --hc-muted:    #8b92a6;

  --hc-radius:    16px;
  --hc-radius-sm: 10px;
  --hc-shadow:    0 1px 2px rgba(15,23,42,.04), 0 6px 20px rgba(15,23,42,.06);
  --hc-shadow-lg: 0 14px 44px rgba(15,23,42,.12);

  /* 走势分组色 */
  --g0:#6366f1; --g1:#f43f5e; --g2:#06b6d4; --g3:#f59e0b; --g4:#10b981;
  --g5:#8b5cf6; --g6:#ec4899; --g7:#0ea5e9; --g8:#84cc16; --g9:#64748b;

  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  /* 覆写 Bootstrap 主题变量 */
  --bs-primary:        #6366f1;
  --bs-primary-rgb:    99, 102, 241;
  --bs-secondary-rgb:  148, 163, 184;
  --bs-success-rgb:    16, 185, 129;
  --bs-info-rgb:       6, 182, 212;
  --bs-warning-rgb:    245, 158, 11;
  --bs-danger-rgb:     244, 63, 94;
  --bs-body-color:     #1f2937;
  --bs-body-bg:        #f4f5fb;
  --bs-border-color:   #e7e9f2;
  --bs-link-color:     #4f46e5;
  --bs-link-hover-color:#4338ca;
  --bs-font-sans-serif: var(--sans);
}

/* =========================================================
   基础
   ========================================================= */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--hc-text);
  background:
    radial-gradient(1100px 520px at 12% -8%, #eceafe 0%, rgba(236,234,254,0) 62%),
    radial-gradient(900px 460px at 92% 0%, #ffe9ef 0%, rgba(255,233,239,0) 58%),
    var(--hc-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

::selection { background: var(--hc-primary); color: #fff; }

/* 统一滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfd4e4; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b3bacd; background-clip: content-box; }

/* =========================================================
   Bootstrap 组件微调
   ========================================================= */

.btn {
  --bs-btn-border-radius: 10px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: .42rem;
  --bs-btn-padding-x: .95rem;
  transition: transform .15s, box-shadow .2s, background-color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  --bs-btn-bg: var(--hc-primary);
  --bs-btn-border-color: var(--hc-primary);
  --bs-btn-hover-bg: var(--hc-primary-600);
  --bs-btn-hover-border-color: var(--hc-primary-600);
  --bs-btn-active-bg: var(--hc-primary-700);
  --bs-btn-active-border-color: var(--hc-primary-700);
  --bs-btn-disabled-bg: var(--hc-primary);
  --bs-btn-disabled-border-color: var(--hc-primary);
  box-shadow: 0 4px 14px rgba(99,102,241,.28);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(99,102,241,.38); }

.btn-outline-primary {
  --bs-btn-color: var(--hc-primary-600);
  --bs-btn-border-color: #c9cdfa;
  --bs-btn-hover-bg: var(--hc-primary);
  --bs-btn-hover-border-color: var(--hc-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--hc-primary-600);
  --bs-btn-active-border-color: var(--hc-primary-600);
}

.btn-light {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--hc-line);
  --bs-btn-hover-bg: var(--hc-surface-2);
  --bs-btn-hover-border-color: var(--hc-line-2);
  --bs-btn-color: var(--hc-text-2);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.btn-outline-light {
  --bs-btn-color: rgba(255,255,255,.85);
  --bs-btn-border-color: rgba(255,255,255,.28);
  --bs-btn-hover-bg: rgba(255,255,255,.14);
  --bs-btn-hover-border-color: rgba(255,255,255,.42);
  --bs-btn-hover-color: #fff;
}

.badge { font-weight: 600; letter-spacing: .02em; }
.rounded-pill { border-radius: 999px !important; }

.form-check-input { border-color: var(--hc-line-2); }
.form-check-input:checked { background-color: var(--hc-primary); border-color: var(--hc-primary); }
.form-check-input:focus { border-color: var(--hc-primary); box-shadow: 0 0 0 .2rem rgba(99,102,241,.16); }
.chk input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--hc-primary);
  margin: 0; cursor: pointer; flex: 0 0 auto;
}

.table { --bs-table-border-color: var(--hc-line); }
.table > :not(caption) > * > * { padding: .55rem .75rem; }
.table thead th {
  font-size: 12.5px; font-weight: 700; color: var(--hc-text-2);
  background: var(--hc-surface-2); border-bottom: 1px solid var(--hc-line-2);
  white-space: nowrap; letter-spacing: .02em;
}
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f7f8ff; }

/* =========================================================
   顶栏
   ========================================================= */

.topbar {
  background: var(--hc-ink);
  color: #9aa3b8;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 36px; }
.tb-left { display: flex; align-items: center; min-width: 0; }
.tb-date { color: #c7ccff; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.tb-note { color: #6b7488; margin-left: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-right { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.tb-right a {
  color: #b3bacb; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 7px; transition: background .15s, color .15s;
}
.tb-right a:hover { background: rgba(255,255,255,.09); color: #fff; }
.tb-right a i { font-size: 13px; opacity: .85; }

/* =========================================================
   品牌条
   ========================================================= */

.brandbar { background: var(--hc-surface); border-bottom: 1px solid var(--hc-line); }
.brand-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(140deg, var(--hc-primary) 0%, var(--hc-violet) 55%, var(--hc-rose) 100%);
  color: #fff; font-size: 22px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(99,102,241,.34);
}
.logo-txt b { display: block; font-size: 21px; font-weight: 800; letter-spacing: .02em; color: var(--hc-ink); line-height: 1.25; }
.logo-txt i {
  display: block; font-style: normal; font-size: 10.5px; letter-spacing: .14em;
  color: var(--hc-muted); text-transform: uppercase;
}
.brand-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-tags span {
  font-size: 12px; color: var(--hc-text-2); padding: 5px 13px;
  border: 1px solid var(--hc-line); border-radius: 999px; background: var(--hc-surface-2);
  font-weight: 500;
}
.brand-tags span i { color: var(--hc-primary); margin-right: 5px; }

/* =========================================================
   彩种导航
   ========================================================= */

.nav-lottery {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hc-line);
  position: sticky; top: 0; z-index: 1030;
}
.nav-inner {
  display: flex; align-items: flex-start; gap: 14px;
  padding-top: 8px; padding-bottom: 8px;
}
.nav-tag {
  font-size: 11.5px; letter-spacing: .12em; color: var(--hc-muted);
  border-right: 1px solid var(--hc-line); padding-right: 14px; flex: 0 0 auto; font-weight: 600;
  line-height: 26px;
}
.nav-groups { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-group b { font-size: 11.5px; color: var(--hc-primary-600); font-weight: 700; margin-right: 3px; }
.nav-group a {
  font-size: 13px; color: var(--hc-text-2); padding: 4px 11px; border-radius: 999px;
  white-space: nowrap; flex: 0 0 auto; font-weight: 500;
  transition: background .15s, color .15s, box-shadow .15s;
}
.nav-group a:hover { background: var(--hc-primary-soft); color: var(--hc-primary-600); }
.nav-group a.on { background: var(--hc-primary); color: #fff; box-shadow: 0 3px 10px rgba(99,102,241,.32); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background: linear-gradient(135deg, #171d38 0%, #241a44 48%, #35173a 100%);
  color: #e7e9f5; position: relative; overflow: hidden;
  padding: 38px 0 42px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 320px at 14% 18%, rgba(99,102,241,.42), transparent 62%),
    radial-gradient(620px 300px at 88% 82%, rgba(244,63,94,.26), transparent 62%),
    radial-gradient(460px 240px at 62% 6%, rgba(139,92,246,.24), transparent 65%);
}
.hero-in { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .1em; color: #cbd0ff; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 5px 12px; border-radius: 999px;
}
.hero-label i { color: var(--hc-rose); }
.hero-issue { margin-top: 12px; font-size: 13.5px; color: #a2abc4; }
.hero-balls { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 24px; align-items: center; }
.hero-cd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-cd .lb { font-size: 12.5px; color: #98a1bb; }
.cd { font-family: var(--mono); font-size: 21px; letter-spacing: .04em; color: #fff; }
.cd b { font-weight: 600; }

.hero-side {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--hc-radius);
  padding: 18px 20px;
  backdrop-filter: blur(6px);
  height: 100%;
  display: flex; flex-direction: column;
}
.hero-side h2 {
  font-size: 15px; letter-spacing: .06em; margin-bottom: 12px; color: #fff;
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
}
.hero-side h2 i { color: var(--hc-rose); font-size: 16px; }
.hero-side .sched { flex: 1 1 auto; min-height: 0; max-height: 420px; overflow-y: auto; padding-right: 6px; }
.hero-side .sched::-webkit-scrollbar { width: 5px; }
.hero-side .sched::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
/* 头条区「今日开奖速览」 */
.hero-quick { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-quick h3 {
  font-size: 12.5px; letter-spacing: .12em; color: #cbd0ff; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2px 24px; max-height: 300px; overflow-y: auto; padding-right: 6px;
}
.hero-grid::-webkit-scrollbar { width: 5px; }
.hero-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.hero-qrow {
  display: flex; align-items: center; gap: 9px; padding: 6px 0;
  font-size: 12.5px; color: #98a1bb; border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .15s;
}
.hero-qrow:hover { color: #fff; }
.hq-name { color: #e2e5f2; min-width: 92px; white-space: nowrap; font-weight: 500; }
.hq-issue { font-family: var(--mono); font-size: 10.5px; color: #6f7893; min-width: 90px; white-space: nowrap; }
.hq-balls { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }

.sched li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.09); font-size: 12.5px;
}
.sched li:last-child { border-bottom: 0; }
.sched b { color: #6f7893; font-weight: 500; min-width: 54px; font-size: 11.5px; }
.sched .sname { color: #dfe2ee; min-width: 92px; white-space: nowrap; }
.sched .stime { font-family: var(--mono); color: #ffd9e1; white-space: nowrap; }
.sched .sper { color: #6f7893; margin-left: auto; text-align: right; white-space: nowrap; }
.sched li.on b, .sched li.on .sname { color: #fff; }
.sched li.on .sname { font-weight: 700; }
.sched li.on .stime { color: #fff; }

/* =========================================================
   数据速览条
   ========================================================= */

.stat-strip { margin-top: -26px; position: relative; z-index: 5; }
.stat-card {
  background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius);
  padding: 16px 18px; box-shadow: var(--hc-shadow); height: 100%;
  display: flex; align-items: center; gap: 14px;
}
.stat-ico {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; font-size: 19px; line-height: 1;
}
.stat-ico.i1 { background: var(--hc-primary-soft); color: var(--hc-primary); }
.stat-ico.i2 { background: var(--hc-rose-soft); color: var(--hc-rose); }
.stat-ico.i3 { background: #e4f7fb; color: #0e9bb5; }
.stat-ico.i4 { background: #fef3e2; color: #d97706; }
.stat-txt b { display: block; font-size: 22px; font-weight: 800; color: var(--hc-ink); line-height: 1.15; }
.stat-txt span { font-size: 12px; color: var(--hc-muted); }

/* =========================================================
   区块
   ========================================================= */

.sec { padding: 34px 0 6px; }
.sec-hd {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px; border-bottom: 1px solid var(--hc-line); padding-bottom: 12px;
}
.sec-hd h2 {
  font-size: 19px; letter-spacing: .01em; color: var(--hc-ink);
  display: flex; align-items: center; gap: 9px;
}
.sec-hd h2::before {
  content: ""; display: inline-block; width: 5px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--hc-primary), var(--hc-rose));
}
.sec-hd h2 i { font-size: 16px; color: var(--hc-primary); }
.sec-sub { font-size: 12.5px; color: var(--hc-muted); }

/* =========================================================
   彩种卡片
   ========================================================= */

.tcard {
  background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius);
  padding: 18px 20px 16px; height: 100%;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tcard:hover { border-color: #cdd2f5; box-shadow: var(--hc-shadow-lg); transform: translateY(-3px); }
.tcard-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tcard-hd h3 { font-size: 17px; letter-spacing: .01em; }
.tcard-hd h3 a:hover { color: var(--hc-primary); }
.tcard-issue { font-size: 11px; color: var(--hc-muted); font-family: var(--mono); white-space: nowrap; }
.tcard-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--hc-muted); margin-top: 5px; }
.tcard-period { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-balls { margin: 14px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.tcard-cd {
  display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--hc-text-2);
  padding: 8px 12px; background: var(--hc-surface-2); border: 1px solid var(--hc-line); border-radius: var(--hc-radius-sm);
}
.tcard-cd .lb { color: var(--hc-muted); font-size: 11.5px; }
.tcard-cd .cd { font-size: 15px; color: var(--hc-primary-600); font-weight: 700; letter-spacing: .02em; }
.tcard-cd .cd-off { font-size: 12px; color: var(--hc-muted); font-family: var(--sans); }
.tcard-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.tcard-links a {
  font-size: 12px; color: var(--hc-text-2); border: 1px solid var(--hc-line);
  border-radius: 999px; padding: 3px 11px; background: var(--hc-surface-2); transition: all .15s;
}
.tcard-links a:hover { border-color: var(--hc-primary); color: var(--hc-primary-600); background: var(--hc-primary-soft); }
.tcard-links .more { margin-left: auto; border: 0; background: transparent; color: var(--hc-primary-600); padding-right: 0; font-weight: 600; }
.tcard-links .more:hover { background: transparent; color: var(--hc-rose); }

/* =========================================================
   号码球
   ========================================================= */

.ball {
  display: inline-grid; place-items: center; min-width: 29px; height: 29px; padding: 0 5px;
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: #fff;
  border-radius: 50%; letter-spacing: -.03em;
}
.ball-red   { background: linear-gradient(160deg, #fb7185, #e11d48); box-shadow: 0 2px 6px rgba(225,29,72,.3); }
.ball-blue  { background: linear-gradient(160deg, #818cf8, #4338ca); box-shadow: 0 2px 6px rgba(67,56,202,.3); }
.ball-digit { background: linear-gradient(160deg, #a78bfa, #6d28d9); box-shadow: 0 2px 6px rgba(109,40,217,.28); border-radius: 8px; }
.ball-rank  { background: linear-gradient(160deg, #fbbf24, #d97706); box-shadow: 0 2px 6px rgba(217,119,6,.28); border-radius: 8px; }
.ball-sm    { min-width: 26px; height: 26px; font-size: 13px; background: linear-gradient(160deg, #6366f1, #4338ca); }
.ball.mini  { min-width: 17px; height: 17px; font-size: 9.5px; border-radius: 50%; padding: 0 2px; }
.ball.mini.ball-digit, .ball.mini.ball-rank { border-radius: 4px; }
.balls { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* =========================================================
   功能索引表
   ========================================================= */

.sec-idx { padding-bottom: 40px; }
.idx-wrap {
  overflow-x: auto; background: var(--hc-surface); border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius); box-shadow: var(--hc-shadow);
}
.idx { width: 100%; font-size: 12.5px; margin: 0; }
.idx thead th { background: var(--hc-surface-2); }
.idx tbody th.iname {
  text-align: left; position: sticky; left: 0; background: var(--hc-surface); z-index: 2;
  border-right: 1px solid var(--hc-line); white-space: nowrap;
}
.idx tbody th.iname i {
  font-style: normal; font-size: 10px; color: var(--hc-muted); margin-left: 7px;
  background: var(--hc-surface-2); border: 1px solid var(--hc-line); border-radius: 999px; padding: 1px 7px;
}
.idx tbody th.iname a { font-weight: 700; color: var(--hc-ink); }
.idx tbody th.iname a:hover { color: var(--hc-primary); }
.idx td a { color: var(--hc-primary-600); font-weight: 600; }
.idx td a:hover { text-decoration: underline; }
.idx .na { color: #c9cedd; }
.idx tbody tr:hover td { background: #f7f8ff; }

/* =========================================================
   走势页布局
   ========================================================= */

.zs-layout { padding: 26px 0 44px; }
.side { position: sticky; top: 58px; display: flex; flex-direction: column; gap: 16px; }
.side-block {
  background: var(--hc-surface); border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius); overflow: hidden; box-shadow: var(--hc-shadow);
}
.side-block h3 {
  font-size: 13.5px; padding: 12px 16px; background: var(--hc-surface-2);
  border-bottom: 1px solid var(--hc-line); letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px; color: var(--hc-ink);
}
.side-block h3 i { color: var(--hc-primary); font-size: 14px; }
.side-list { padding: 8px; max-height: 320px; overflow-y: auto; }
.side-group { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 4px 10px; }
.side-group b { width: 100%; font-size: 11px; color: var(--hc-primary-600); margin-bottom: 4px; font-weight: 700; }
.side-list a {
  display: block; font-size: 13px; padding: 6px 11px; border-radius: var(--hc-radius-sm);
  color: var(--hc-text-2); transition: background .15s, color .15s;
}
.side-list a:hover { background: var(--hc-primary-soft); color: var(--hc-primary-600); }
.side-list a.on { background: var(--hc-primary); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(99,102,241,.3); }
.side-charts a.on { background: var(--hc-ink); box-shadow: 0 3px 10px rgba(15,23,42,.25); }

.zs-main { min-width: 0; }
.zs-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius);
  padding: 18px 22px; box-shadow: var(--hc-shadow);
}
.zs-title h1 { font-size: 21px; letter-spacing: .01em; color: var(--hc-ink); }
.zs-title p { margin: 5px 0 0; font-size: 12.5px; color: var(--hc-muted); }
.zs-latest { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zs-latest .lb { font-size: 12px; color: var(--hc-muted); }
.zs-latest .issue { font-family: var(--mono); font-size: 12px; color: var(--hc-text-2); }

/* =========================================================
   工具条
   ========================================================= */

.toolbar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius);
  padding: 12px 20px; margin-top: 14px; box-shadow: var(--hc-shadow);
}
.tb-block { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-right { margin-left: auto; }
.tb-label { font-size: 12px; color: var(--hc-muted); white-space: nowrap; font-weight: 500; }
.seg {
  display: inline-flex; border: 1px solid var(--hc-line); border-radius: 999px;
  overflow: hidden; background: var(--hc-surface-2); padding: 3px; gap: 2px;
}
.seg-btn {
  border: 0; background: transparent; font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  padding: 4px 14px; cursor: pointer; color: var(--hc-text-2); border-radius: 999px;
  transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.seg-btn:hover { background: #fff; color: var(--hc-ink); }
.seg-btn.on {
  background: var(--hc-primary); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(99,102,241,.3);
}
/* 按日期查历史时，期次范围暂时不适用 —— 灰掉，不让点 */
.seg.off { opacity: .4; pointer-events: none; }
.date-pick {
  font-family: var(--mono); font-size: 12.5px; color: var(--hc-ink);
  padding: 4px 8px; border: 1px solid var(--hc-line); border-radius: 8px;
  background: #fff; min-width: 148px;
}
.date-pick:focus { outline: none; border-color: var(--hc-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.chk { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--hc-text-2); cursor: pointer; }
.link-btn {
  background: none; border: 0; color: var(--hc-primary-600); font-size: 12.5px;
  cursor: pointer; font-family: var(--sans); font-weight: 600; padding: 0;
}
.link-btn:hover { text-decoration: underline; }

.sub-tool {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}

.desc-box {
  display: none; margin-top: 14px; padding: 16px 20px;
  background: var(--hc-surface); border: 1px solid var(--hc-line);
  border-left: 4px solid var(--hc-primary); border-radius: var(--hc-radius);
  font-size: 12.5px; color: var(--hc-text-2); box-shadow: var(--hc-shadow);
}
.desc-box.show { display: block; }
.desc-box b { display: block; color: var(--hc-ink); margin-bottom: 6px; font-size: 14px; }
.desc-box p { margin: 0 0 10px; }
.desc-box ol { margin: 0; padding-left: 20px; }
.desc-box li { margin-bottom: 3px; }

.chart-box { margin-top: 16px; }

/* =========================================================
   走势表格
   ========================================================= */

.trend-scroll {
  overflow: auto; max-height: 74vh; background: var(--hc-surface);
  border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow);
}
.trend-inner { position: relative; }
.trend { border-collapse: separate; border-spacing: 0; font-size: 11.5px; font-family: var(--mono); margin: 0; }
.trend th, .trend td { padding: 0; text-align: center; white-space: nowrap; border: 0; }

.trend thead th {
  position: sticky; z-index: 3; background: var(--hc-surface-2);
  border-bottom: 1px solid var(--hc-line-2); border-right: 1px solid var(--hc-line);
  font-weight: 700; color: var(--hc-text-2); font-family: var(--sans); font-size: 11px;
}
.trend thead .th-group th { top: 0; height: 26px; letter-spacing: .06em; }
.trend thead .th-val th { top: 26px; height: 24px; }
.trend thead .grp { border-left: 1px solid var(--hc-line-2); font-size: 12px; }
.trend thead .val { color: var(--hc-muted); font-weight: 500; }
.trend thead .c-issue { left: 0; z-index: 5; width: 104px; }
.trend thead .c-num { left: 104px; z-index: 5; width: 150px; }

.trend tbody td { height: 27px; border-bottom: 1px solid #eef0f7; border-right: 1px solid #f3f4fa; }
.trend tbody tr:hover td { background: #f7f8ff; }
.trend tbody td.c-issue {
  position: sticky; left: 0; z-index: 2; background: var(--hc-surface);
  border-right: 1px solid var(--hc-line); text-align: left; padding: 3px 9px;
  font-family: var(--sans);
}
.trend tbody td.c-num {
  position: sticky; left: 104px; z-index: 2; background: var(--hc-surface);
  border-right: 1px solid var(--hc-line); padding: 3px 7px; width: 156px;
}
.trend tbody tr:hover td.c-issue, .trend tbody tr:hover td.c-num { background: #f7f8ff; }
.trend .c-issue b { display: block; font-size: 11.5px; color: var(--hc-ink); font-weight: 700; }
.trend .c-issue i { display: block; font-style: normal; font-size: 9.5px; color: var(--hc-muted); }
.trend tbody td.c-num .balls { width: 142px; flex-wrap: wrap; gap: 2px; }

.trend tbody tr.sep td { border-bottom: 1.5px solid var(--hc-line-2); }
.trend.no-sep tbody tr.sep td { border-bottom: 1px solid #eef0f7; }

/* 分组色 */
.gc-0{--gc:var(--g0)} .gc-1{--gc:var(--g1)} .gc-2{--gc:var(--g2)} .gc-3{--gc:var(--g3)}
.gc-4{--gc:var(--g4)} .gc-5{--gc:var(--g5)} .gc-6{--gc:var(--g6)} .gc-7{--gc:var(--g7)}
.gc-8{--gc:var(--g8)} .gc-9{--gc:var(--g9)}
.trend thead .grp.gc-0{--gc:var(--g0)} .trend thead .grp.gc-1{--gc:var(--g1)} .trend thead .grp.gc-2{--gc:var(--g2)}
.trend thead .grp.gc-3{--gc:var(--g3)} .trend thead .grp.gc-4{--gc:var(--g4)} .trend thead .grp.gc-5{--gc:var(--g5)}
.trend thead .grp.gc-6{--gc:var(--g6)} .trend thead .grp.gc-7{--gc:var(--g7)} .trend thead .grp.gc-8{--gc:var(--g8)}
.trend thead .grp.gc-9{--gc:var(--g9)}
.trend thead .grp { color: var(--gc); border-top: 2px solid var(--gc); text-align: left; }
.trend thead .grp > span {
  position: sticky; left: 0; display: inline-block;
  background: var(--hc-surface-2); padding-right: 8px;
}

.tc { width: 25px; min-width: 25px; color: #b6bcd0; }
.tc.miss { font-size: 11px; }
.tc.hit { background: var(--gc); color: #fff; font-weight: 700; }
.tc.hit b { font-size: 11.5px; }
.tc.hit.gc-0 { background: var(--g0); } .tc.hit.gc-1 { background: var(--g1); } .tc.hit.gc-2 { background: var(--g2); }
.tc.hit.gc-3 { background: var(--g3); } .tc.hit.gc-4 { background: var(--g4); } .tc.hit.gc-5 { background: var(--g5); }
.tc.hit.gc-6 { background: var(--g6); } .tc.hit.gc-7 { background: var(--g7); } .tc.hit.gc-8 { background: var(--g8); }
.tc.hit.gc-9 { background: var(--g9); }

/* 遗漏分成（热力） */
.tc.hm1 { background: #eef0ff; color: #6b6fa8; }
.tc.hm2 { background: #dcdffb; color: #5a5e9c; }
.tc.hm3 { background: #c2c6f7; color: #454a90; }
.tc.hm4 { background: #a3a8f2; color: #34387a; }
.tc.hit.hm1, .tc.hit.hm2, .tc.hit.hm3, .tc.hit.hm4 { background: var(--gc); color: #fff; }

/* 拆线模式 */
.trend.mode-line .tc.miss { color: transparent; }
.trend.mode-line .tc.hit { box-shadow: 0 0 0 2px rgba(255,255,255,.55) inset; }
.trend-lines { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }
.trend-lines .tl { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.trend-lines .tl-cross { stroke-width: 1.8; opacity: .42; }

/* 路珠模式 */
.trend-bead .tc { width: 34px; min-width: 34px; }
.trend-bead tbody td.tc.hit { background: transparent; }
.trend-bead .bead {
  display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--gc);
  margin: 0 auto; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 1px 3px rgba(0,0,0,.2);
}
.trend-bead tbody td.c-num .balls { width: 142px; flex-wrap: wrap; gap: 2px; }

/* 底部统计 */
.trend tfoot th, .trend tfoot td {
  position: sticky; height: 24px; font-size: 11px;
  background: var(--hc-surface-2); border-top: 1px solid var(--hc-line-2); border-right: 1px solid var(--hc-line);
}
.trend tfoot tr.stat-appear th, .trend tfoot tr.stat-appear td { bottom: 72px; }
.trend tfoot tr.stat-avg th, .trend tfoot tr.stat-avg td { bottom: 48px; }
.trend tfoot tr.stat-max th, .trend tfoot tr.stat-max td { bottom: 24px; }
.trend tfoot tr.stat-run th, .trend tfoot tr.stat-run td { bottom: 0; }
.trend tfoot th {
  z-index: 4; text-align: left; padding: 0 9px; font-family: var(--sans);
  color: var(--hc-text-2); font-weight: 700;
}
.trend tfoot th.c-issue { left: 0; width: 104px; min-width: 104px; }
.trend tfoot th.c-num { left: 104px; width: 150px; min-width: 150px; padding: 0 7px; }
.trend tfoot td { color: var(--hc-muted); z-index: 2; }
.trend tfoot td.on { color: var(--hc-primary-600); font-weight: 700; }
.trend tfoot tr.stat-appear td.on { background: var(--hc-primary-soft); }

/* =========================================================
   冷热分析 / 历史开奖
   ========================================================= */

.hc-wrap, .history-wrap {
  overflow: auto; background: var(--hc-surface); border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius); box-shadow: var(--hc-shadow);
}
.hotcold, .history { width: 100%; font-size: 12.5px; margin: 0; }
.hotcold .num { text-align: left; }
.hotcold .b { font-family: var(--mono); }
.hotcold .warn { color: var(--hc-rose); font-weight: 700; }
.hotcold tr.top .b { color: var(--hc-primary-600); font-weight: 700; }
.hotcold .dist { width: 30%; min-width: 140px; }
.hotcold .bar { height: 8px; background: var(--hc-primary-soft); border-radius: 999px; overflow: hidden; }
.hotcold .bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--hc-primary), var(--hc-violet) 60%, var(--hc-rose));
}
.hotcold tr.cold { opacity: .6; }

.history td.issue { font-family: var(--mono); color: var(--hc-ink); font-weight: 600; }
/* 期号长度不固定（当天序号可能到四位），别截断 */
.history td.issue { white-space: nowrap; }
.history td.date { font-family: var(--mono); color: var(--hc-muted); font-size: 11.5px; }
.history td.b { font-family: var(--mono); }
.history .balls { justify-content: center; }
.history-note {
  padding: 9px 14px; font-size: 12.5px; color: var(--hc-text-2);
  border-bottom: 1px solid var(--hc-line); background: var(--hc-surface-2);
  font-family: var(--mono);
}

.empty {
  padding: 44px; text-align: center; color: var(--hc-muted);
  background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-radius);
}
.empty-sub { margin-top: 8px; font-size: 12px; }

/* =========================================================
   页脚
   ========================================================= */

.footer {
  display: block; padding: 0; border-top: 0; gap: 0; flex-wrap: nowrap;
  background: var(--hc-ink); color: #8d96ad; margin-top: 40px;
  background-image: radial-gradient(600px 260px at 15% 0%, rgba(99,102,241,.2), transparent 62%);
}
.foot-in {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px;
  padding-top: 40px; padding-bottom: 24px;
}
.foot-col b {
  display: block; color: #fff; font-size: 14px; margin-bottom: 10px; letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
}
.foot-col b i { color: var(--hc-violet); }
.foot-col p { margin: 0; font-size: 12.5px; line-height: 1.95; }
.foot-col a { color: #c7ccff; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-note { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0 30px; font-size: 12px; color: #646d82; }

/* =========================================================
   数据来源标记
   ========================================================= */

.badge { font-size: 10.5px; padding: 3px 9px; white-space: nowrap; letter-spacing: .02em; }
.badge-official { background: #e7f8f1; color: #0f7a55; border: 1px solid #b9e8d5; }
.badge-live    { background: #e6f6fb; color: #0e7490; border: 1px solid #b6e4f0; }
.badge-history { background: #eef0f5; color: #5b6478; border: 1px solid #dde1ea; }
.badge-sim     { background: #fff5e6; color: #92610b; border: 1px solid #f3dfb4; }
.badge-load    { background: #eef0ff; color: #4f46e5; border: 1px solid #d3d7fb; }
.tcard-meta .badge { align-self: center; }

/* =========================================================
   加载态
   ========================================================= */

.loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 100px 0; color: var(--hc-muted); }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid var(--hc-line); border-top-color: var(--hc-primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1199.98px) {
  .hero-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 991.98px) {
  .brand-in { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .brand-tags { order: 3; width: 100%; }
  .nav-inner { flex-wrap: wrap; }
  .nav-groups { gap: 14px; }
  .nav-tag { display: none; }
  .side { position: static; }
  .side-list { max-height: none; }
  .zs-layout { padding: 18px 0 34px; }
  .hero { padding: 28px 0 32px; }
}

@media (max-width: 767.98px) {
  body { font-size: 13.5px; }
  .topbar-in { height: auto; padding: 7px 0; }
  .tb-note { display: none; }
  .tb-right a { padding: 2px 7px; font-size: 11.5px; }
  .tb-right a span { display: none; }
  .logo-txt b { font-size: 18px; }
  .logo-txt i { font-size: 9.5px; }
  .logo-mark { width: 38px; height: 38px; font-size: 19px; }
  .sec { padding: 24px 0 4px; }
  .sec-hd h2 { font-size: 17px; }
  .hero { padding: 24px 0 28px; }
  .hero-side .sched { max-height: 240px; }
  .hero-grid { grid-template-columns: 1fr; max-height: 260px; }
  .stat-strip { margin-top: -16px; }
  .toolbar { gap: 14px; padding: 12px 14px; }
  .zs-head { padding: 15px 16px; }
  .zs-title h1 { font-size: 18px; }
  .trend-scroll { max-height: 68vh; }
  .foot-in { padding: 30px 0 18px; gap: 24px; }
}

@media (max-width: 575.98px) {
  .hero-cd { gap: 10px; }
  .cd { font-size: 18px; }
  .tcard { padding: 15px 16px 14px; }
  .seg-btn { padding: 4px 11px; font-size: 12px; }
  .idx { font-size: 11.5px; }
}
