/* ============================================================
   香港六合彩 — 共享主题
   深色专业盘口 · 金红点缀 · 官方红蓝绿波色
   ============================================================ */
:root {
  --bg:        #0c1118;
  --bg2:       #131c27;
  --bg3:       #1b2735;
  --bg4:       #233242;
  --line:      rgba(255,255,255,.07);
  --line2:     rgba(255,255,255,.13);
  --txt:       #e9eef5;
  --txt2:      #93a2b6;
  --txt3:      #5d6c80;
  --gold:      #e8c486;
  --gold-deep: #c79c54;
  --red:       #d94343;
  --red-deep:  #b2302f;
  --ok:        #2bb673;

  --w-red:    #e23b3b;
  --w-red-2:  #f06a6a;
  --w-blue:   #2f7fe0;
  --w-blue-2: #5ba0f0;
  --w-green:  #27a85a;
  --w-green-2:#46c97c;

  --font-zh:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Oswald", "Barlow Semi Condensed", var(--font-zh);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-zh);
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.num { font-family: var(--font-num); font-weight: 600; letter-spacing: .02em; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 号码球 ---------- */
.ball {
  --bs: 40px;
  width: var(--bs); height: var(--bs);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-weight: 600;
  font-size: calc(var(--bs) * .44);
  color: #fff;
  position: relative; cursor: pointer; user-select: none;
  flex: none;
  transition: transform .12s ease, box-shadow .12s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.ball::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), rgba(255,255,255,0) 52%);
  pointer-events: none;
}
.ball--red   { background: radial-gradient(circle at 50% 38%, var(--w-red-2), var(--w-red) 72%); }
.ball--blue  { background: radial-gradient(circle at 50% 38%, var(--w-blue-2), var(--w-blue) 72%); }
.ball--green { background: radial-gradient(circle at 50% 38%, var(--w-green-2), var(--w-green) 72%); }
.ball:hover { transform: translateY(-1px); }
body.flat-ball .ball::after { opacity: 0; }
body.flat-ball .ball--red   { background: var(--w-red); }
body.flat-ball .ball--blue  { background: var(--w-blue); }
body.flat-ball .ball--green { background: var(--w-green); }
.ball.is-sel {
  box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--gold), 0 6px 14px rgba(0,0,0,.4);
  transform: translateY(-2px) scale(1.04);
}
.ball.is-sel::before {
  content: "✓"; position: absolute; top: -7px; right: -7px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold); color: #2a1d05; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.4); z-index: 2;
}
.ball.is-dim { opacity: .34; filter: saturate(.6); }

/* 号码 + 生肖竖排 (号码盘单元) */
.numcell {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer;
}
.numcell .zlabel { font-size: 11px; color: var(--txt2); line-height: 1; }
.numcell.is-sel .zlabel { color: var(--gold); }

/* ---------- 生肖卡 ---------- */
.zchip {
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 8px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; position: relative; transition: all .12s ease;
}
.zchip:hover { border-color: var(--line2); background: var(--bg4); }
.zchip.is-sel {
  border-color: var(--gold); background: linear-gradient(180deg, rgba(232,196,134,.16), rgba(232,196,134,.04));
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.zchip .zname { font-size: 22px; font-weight: 700; color: var(--txt); line-height: 1; }
.zchip.is-sel .zname { color: var(--gold); }
.zchip .znums { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.zchip .znum {
  font-family: var(--font-num); font-size: 11px; color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.zchip .zodds { font-family: var(--font-num); font-size: 13px; color: var(--gold); font-weight: 600; }

/* ---------- 选项格 (两面/大小单双/波色) ---------- */
.opt {
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; transition: all .12s ease; position: relative; min-height: 64px;
  justify-content: center;
}
.opt:hover { border-color: var(--line2); background: var(--bg4); }
.opt.is-sel { border-color: var(--gold); background: linear-gradient(180deg, rgba(232,196,134,.16), rgba(232,196,134,.04)); box-shadow: 0 0 0 1px var(--gold) inset; }
.opt .olabel { font-size: 16px; font-weight: 600; }
.opt .osub { font-size: 11px; color: var(--txt3); }
.opt .oodds { font-family: var(--font-num); font-size: 14px; color: var(--gold); font-weight: 600; }
.opt.is-sel .oodds { color: var(--gold); }
.opt.w-red .olabel   { color: var(--w-red-2); }
.opt.w-blue .olabel  { color: var(--w-blue-2); }
.opt.w-green .olabel { color: var(--w-green-2); }

/* 波色色块 */
.wave-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.wave-dot.red { background: var(--w-red); }
.wave-dot.blue { background: var(--w-blue); }
.wave-dot.green { background: var(--w-green); }

/* 通用按钮 */
.btn {
  font-family: var(--font-zh); border: none; cursor: pointer;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  padding: 9px 16px; transition: filter .12s ease, opacity .12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #2a1d05; }
.btn-red  { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff; }
.btn-ghost { background: var(--bg3); color: var(--txt2); border: 1px solid var(--line2); }

.chip-num {
  font-family: var(--font-num); font-weight: 600; color: #2a1d05;
  background: var(--gold); border-radius: 4px; padding: 1px 6px; font-size: 13px;
}

/* ---------- 公告走马灯 ---------- */
.um-track { display: flex; overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.um-text { white-space: nowrap; padding-right: 60px; animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.um-ico { flex: none; margin-right: 8px; font-size: 13px; }
.util-marquee:hover .um-text, .h5-marquee:active .um-text { animation-play-state: paused; }

/* ---------- 公告页 ---------- */
.news { display: flex; flex-direction: column; gap: 14px; }
.news-item { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.news-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; flex-wrap: wrap; }
.news-top { font-size: 11px; font-weight: 700; color: #2a1d05; background: var(--gold); border-radius: 4px; padding: 1px 7px; }
.news-title { font-size: 15px; font-weight: 700; color: var(--txt); }
.news-date { font-size: 12px; color: var(--txt3); margin-left: auto; }
.news-body { font-size: 13.5px; color: var(--txt2); line-height: 1.7; }

/* ---------- 账户中心弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: mfade .18s ease;
}
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
.modal-win {
  width: 100%; max-width: 720px; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,.6); overflow: hidden;
}
.modal-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg3);
}
.modal-tabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.modal-tab {
  font-family: var(--font-zh); cursor: pointer; white-space: nowrap;
  background: none; border: 1px solid transparent; color: var(--txt2);
  padding: 7px 14px; font-size: 14px; border-radius: 7px; transition: all .12s ease;
}
.modal-tab:hover { color: var(--txt); background: var(--bg4); }
.modal-tab.is-on { color: var(--gold); background: var(--bg2); border-color: var(--gold-deep); font-weight: 600; }
.modal-close { flex: none; background: none; border: none; color: var(--txt2); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 8px; }
.modal-close:hover { color: var(--red); }
.modal-body { flex: 1; overflow-y: auto; padding: 18px 20px; min-height: 120px; }
.modal-empty { text-align: center; color: var(--txt3); padding: 60px 0; font-size: 14px; }

/* 注单卡 */
.betlist { display: flex; flex-direction: column; gap: 12px; }

/* 开奖号码球 */
.rb-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.rb-z { font-size: 11px; color: var(--txt2); }
.dh-plus { color: var(--gold); font-weight: 700; font-size: 18px; align-self: center; }

/* 历史开奖结果 */
.drawhist { display: flex; flex-direction: column; gap: 10px; }
.dh-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 16px;
}
.dh-meta { flex: 0 0 132px; }
.dh-issue { font-size: 14px; color: var(--txt); font-weight: 600; white-space: nowrap; }
.dh-date { font-size: 12px; color: var(--txt3); margin-top: 3px; }
.dh-balls { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.dh-sum { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt2); }
.dh-sum-k { color: var(--txt3); }
.dh-sum b { font-size: 17px; color: var(--gold); margin: 0 2px; }
.dh-sum-tag { font-size: 11px; color: var(--txt2); background: var(--bg4); border-radius: 4px; padding: 1px 7px; }

/* 实时开奖 */
.live { display: flex; flex-direction: column; gap: 16px; }
.live-now {
  background: linear-gradient(165deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 26px; text-align: center;
}
.live-issue { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; flex-wrap: nowrap; }
.live-badge {
  font-size: 13px; font-weight: 700; color: #2a1d05; padding: 3px 13px; border-radius: 20px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}
.live-issue-no { font-size: 20px; font-weight: 700; color: var(--txt); white-space: nowrap; }
.live-cd-label { font-size: 13px; color: var(--txt3); margin-bottom: 10px; }
.live-cd { display: flex; gap: 10px; justify-content: center; }
.live-cd-seg {
  display: flex; flex-direction: column; align-items: center; min-width: 60px;
  background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 4px;
}
.live-cd-num { font-size: 30px; color: var(--gold); line-height: 1; }
.live-cd-unit { font-size: 11px; color: var(--txt3); margin-top: 4px; }
.live-rolling { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.roll-ball {
  animation: rollpulse .42s ease-in-out infinite alternate;
  box-shadow: 0 0 10px 1px rgba(232,196,134,.55), 0 4px 10px rgba(0,0,0,.35);
}
@keyframes rollpulse {
  from { transform: translateY(0) scale(1); filter: brightness(1); }
  to   { transform: translateY(-7px) scale(1.07); filter: brightness(1.22); }
}

/* Header 实时开奖跳动球(PC/H5 共用 .is-rolling .roll-ball) */
.draw-balls.is-rolling, .h5-dc-balls.is-rolling { display: flex; align-items: center; gap: 8px; }
.draw-balls.is-rolling .roll-ball,
.h5-dc-balls.is-rolling .roll-ball { animation: rollpulse .42s ease-in-out infinite alternate; }
.draw-balls.is-rolling .roll-ball:nth-child(2n),
.h5-dc-balls.is-rolling .roll-ball:nth-child(2n) { animation-delay: .14s; }
.draw-balls.is-rolling .roll-ball:nth-child(3n),
.h5-dc-balls.is-rolling .roll-ball:nth-child(3n) { animation-delay: .28s; }

/* 实时开奖 label 闪动红点 */
.hd-live { color: var(--red); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.hd-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(217,67,67,.6); animation: livedot 1.1s ease-out infinite; flex: none;
}
.h5-dc-live { color: var(--red); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
@keyframes livedot {
  0%   { box-shadow: 0 0 0 0 rgba(217,67,67,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(217,67,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,67,67,0); }
}

/* tab 级封盘遮罩 */
.playboard { position: relative; }
.is-board-closed .lgrid,
.is-board-closed .numgrid,
.is-board-closed .zgrid,
.is-board-closed .tail-grid,
.is-board-closed .fill-block,
.is-board-closed .fill-tools,
.is-board-closed .board-tools,
.is-board-closed .combo-amt-bar,
.is-board-closed .pick-modes,
.is-board-closed .amt-input,
.is-board-closed .extras-flat { pointer-events: none; opacity: .55; }
.board-closed-mask {
  position: absolute; inset: 0; z-index: 20; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,16,24,.62); backdrop-filter: blur(1px);
  border-radius: var(--r-md, 12px);
}
.bcm-txt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(217,67,67,.22), rgba(217,67,67,.10));
  border: 1px solid var(--red); color: var(--red);
  font-size: 16px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.bcm-txt::before { content: '⏸'; font-size: 18px; }
.live-last { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.live-last-hd { font-size: 13px; color: var(--txt2); margin-bottom: 14px; }
.live-last-balls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-tip { font-size: 12px; color: var(--txt3); line-height: 1.6; }

/* 注单汇总条 */
.bet-summary { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bs-item {
  flex: 1 1 0; min-width: 120px; background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 11px 14px; display: flex; flex-direction: column; gap: 5px;
}
.bs-k { font-size: 12px; color: var(--txt3); }
.bs-v { font-size: 18px; font-weight: 600; color: var(--txt); }
.bs-v.pay-win { color: var(--ok); } .bs-v.pay-zero { color: var(--red); }

/* 时段筛选 */
.period-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.period-btn {
  font-family: var(--font-zh); cursor: pointer; background: var(--bg3); color: var(--txt2);
  border: 1px solid var(--line2); border-radius: 20px; padding: 7px 16px; font-size: 13.5px; font-weight: 500;
  transition: all .12s ease;
}
.period-btn:hover { color: var(--txt); border-color: var(--gold-deep); }
.period-btn.is-on { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #2a1d05; border-color: var(--gold); font-weight: 700; }
.range-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.range-lbl { font-size: 13px; color: var(--txt2); }
.range-date {
  background: var(--bg); border: 1px solid var(--line2); border-radius: 7px; color: var(--txt);
  font-family: var(--font-num); font-size: 14px; padding: 8px 12px; outline: none; color-scheme: dark;
}
.range-date:focus { border-color: var(--gold-deep); }

/* 分页 */
.pager { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pg-btn, .pg-num {
  font-family: var(--font-zh); cursor: pointer; background: var(--bg3); color: var(--txt2);
  border: 1px solid var(--line2); border-radius: 7px; padding: 7px 13px; font-size: 13px; min-width: 36px;
}
.pg-num { font-family: var(--font-num); font-weight: 600; }
.pg-btn:hover:not(:disabled), .pg-num:hover { color: var(--txt); border-color: var(--gold-deep); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-num.is-on { background: rgba(232,196,134,.16); border-color: var(--gold); color: var(--gold); }
.pg-ellipsis { color: var(--txt3); padding: 0 4px; }
.pg-info { font-size: 12px; color: var(--txt3); margin-left: 8px; }

.betcard { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; }
.bc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bc-id { font-size: 13px; color: var(--txt2); white-space: nowrap; }
.bc-issue { font-size: 12px; color: var(--txt3); white-space: nowrap; }
.bc-status { margin-left: auto; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.st-won { color: var(--ok); background: rgba(43,182,115,.12); }
.st-lost { color: var(--txt3); background: var(--bg4); }
.st-pending { color: var(--gold); background: rgba(232,196,134,.12); }
.bc-lines { display: flex; flex-direction: column; gap: 7px; }
.bc-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-play { font-size: 12px; color: var(--txt3); }
.bc-detail { font-size: 14px; font-weight: 600; color: var(--txt); }
.bc-detail.w-red { color: var(--w-red-2); } .bc-detail.w-blue { color: var(--w-blue-2); } .bc-detail.w-green { color: var(--w-green-2); }
.bc-odds { font-family: var(--font-num); font-size: 12px; color: var(--gold); }
.bc-cnt { font-size: 12px; color: var(--txt2); }
.bc-foot { display: flex; align-items: center; gap: 16px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--txt2); }
.bc-time { color: var(--txt3); font-size: 12px; }
.bc-amt { margin-left: auto; }
.bc-amt b, .bc-payout b { font-size: 14px; }
.pay-win { color: var(--ok); } .pay-zero { color: var(--txt3); }

/* 游戏规则 */
.rules { display: flex; flex-direction: column; gap: 20px; }
.special-rules { background: linear-gradient(165deg, rgba(232,196,134,.1), rgba(232,196,134,.02)); border: 1px solid var(--gold-deep); border-radius: var(--r-md); padding: 16px 18px; }
.sr-title { font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.sr-item { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sr-item:first-of-type { border-top: none; }
.sr-tag { flex: 0 0 100px; font-size: 13px; font-weight: 600; color: var(--gold); }
.sr-desc { flex: 1; font-size: 13px; color: var(--txt2); line-height: 1.65; }
.rule-cat-name { font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.rule-cat-desc { font-size: 12px; color: var(--txt3); font-weight: 400; }
.rule-item { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rule-item-name { flex: 0 0 88px; font-size: 13px; font-weight: 600; color: var(--txt); }
.rule-item-text { flex: 1; font-size: 13px; color: var(--txt2); line-height: 1.6; }

/* 我的资料 */
.profile-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(145deg, var(--bg4), var(--bg3)); border: 1px solid var(--gold-deep); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-tag { font-size: 12px; color: var(--ok); margin-top: 3px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg3); padding: 13px 15px; }
.pr-k { font-size: 13px; color: var(--txt3); }
.pr-v { font-size: 14px; color: var(--txt); font-weight: 500; }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } }

/* 资料页 — 区块标题 */
.sec-title {
  font-size: 15px; font-weight: 700; color: var(--gold); margin: 26px 0 12px;
  padding-left: 11px; border-left: 3px solid var(--gold);
}

/* 修改密码 */
.pwbox { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.pw-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pw-label { flex: 0 0 96px; font-size: 13px; color: var(--txt2); }
.pw-input {
  flex: 1; max-width: 320px; background: var(--bg); border: 1px solid var(--line2); border-radius: 7px;
  color: var(--txt); font-size: 14px; padding: 9px 12px; outline: none; font-family: var(--font-zh);
}
.pw-input:focus { border-color: var(--gold-deep); }
.pw-foot { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.pw-msg { font-size: 13px; color: var(--ok); }
.pw-msg.is-err { color: var(--red); }
.pw-btn { padding: 9px 22px; font-size: 14px; }

/* 玩法限额表 */
.limit-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.limit-table { width: 100%; border-collapse: collapse; }
.limit-table th {
  background: var(--bg4); color: var(--txt2); font-size: 12.5px; font-weight: 600;
  padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line);
}
.limit-table th:first-child { text-align: left; }
.limit-table td { padding: 10px 14px; text-align: right; font-size: 13px; color: var(--txt); border-bottom: 1px solid var(--line); }
.limit-table td.lt-name { text-align: left; color: var(--txt); }
.limit-table tr:last-child td { border-bottom: none; }
.limit-table .limit-grp td { background: var(--bg2); color: var(--gold); font-weight: 600; font-size: 12.5px; text-align: left; padding: 8px 14px; }
.lt-rebate { color: var(--gold) !important; }
.limit-table tbody tr:not(.limit-grp):hover { background: var(--bg4); }

/* ---------- 玩法面板 ---------- */
.playboard { padding: 2px; }

/* 盘口工具条 */
.board-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 13px; margin-bottom: 14px;
}
.bt-label { font-size: 13px; color: var(--txt2); flex: none; }
.amt-presets { display: flex; gap: 6px; }
.amt-preset {
  font-family: var(--font-num); font-weight: 600; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--line2); color: var(--txt2);
  border-radius: 6px; padding: 5px 14px; font-size: 13px;
}
.amt-preset:hover { color: var(--txt); }
.amt-preset.is-on { background: rgba(232,196,134,.16); border-color: var(--gold); color: var(--gold); }
.amt-custom {
  width: 86px; background: var(--bg); border: 1px solid var(--line2); border-radius: 6px;
  color: var(--gold); font-size: 13px; padding: 6px 9px; text-align: right; outline: none;
}
.amt-custom:focus { border-color: var(--gold-deep); }
.amt-custom::placeholder { color: var(--txt3); font-family: var(--font-zh); font-size: 12px; }
.bt-hint { font-size: 12px; color: var(--txt3); margin-left: auto; }

.fill-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.fill-block { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.fill-block.fill-flat { flex-direction: row; flex-wrap: wrap; gap: 7px; }
.fill-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fill-tag { font-size: 12px; color: var(--txt3); flex: none; width: 32px; }
.fill-tool {
  font-family: var(--font-zh); cursor: pointer;
  background: var(--bg3); color: var(--txt2); border: 1px solid var(--line2);
  border-radius: 6px; padding: 5px 13px; font-size: 13px; font-weight: 500;
}
.fill-tool:hover { color: var(--txt); border-color: var(--gold-deep); }
.fill-tool.is-clear { color: var(--txt3); }
.fill-tool.is-clear:hover { color: var(--red); border-color: var(--red); }
.fill-tool.w-red { color: var(--w-red-2); } .fill-tool.w-blue { color: var(--w-blue-2); } .fill-tool.w-green { color: var(--w-green-2); }

/* 底部操作行: 快捷金额 + 取消/下单 同一行 */
.board-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 18px; flex-wrap: wrap;
}
.board-bottom .board-tools { margin: 0; flex: 0 1 auto; }
.board-bottom .bb-spacer { flex: 1; }
.board-actions { display: flex; gap: 12px; flex: none; justify-content: flex-end; }
.board-actions .board-cancel { flex: 0 0 132px; padding: 12px; font-size: 15px; }
.board-actions .board-submit { flex: 0 0 176px; padding: 12px; font-size: 15px; }

/* 分组 */
.lgroup { margin-bottom: 16px; }
.lgroup-title {
  font-size: 12px; color: var(--txt3); margin-bottom: 9px; letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
}
.lgroup-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 列表盘网格 */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 8px; }
.lgrid-num { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lgrid-num .lcell { padding: 6px 7px; gap: 6px; }
.lgrid-num .lcell-name.is-num { width: 44px; gap: 4px; }
.lgrid-num .lcell-odds { width: 34px; }
.lgrid-num .amt-input { min-width: 30px; }
.lgrid-table { grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); }
.extras-flat { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* 单页(不分页)分区 */
.single-page { display: block; }
.single-sec { margin-bottom: 22px; }
.single-sec-title {
  font-size: 15px; font-weight: 600; color: var(--gold); margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.single-sec-title::before { content: ""; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; }
.single-sec .playboard { padding: 0; }
.single-sec .play-rule { margin-bottom: 10px; }
.tabstrip-cat { font-size: 16px; font-weight: 700; color: var(--txt); }
.tabstrip-cat em { font-style: normal; font-size: 12px; color: var(--txt3); margin-left: 10px; font-weight: 400; }

.lcell {
  display: flex; align-items: center; gap: 8px; min-height: 46px;
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 6px 9px; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.lcell:hover { border-color: var(--line2); }
.lcell.is-on { border-color: var(--gold); background: rgba(232,196,134,.07); }
.lcell-name { flex: 0 0 auto; min-width: 0; }
.lcell-name.is-num { display: flex; align-items: center; gap: 6px; width: 52px; }
.lcell-name:not(.is-num) { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 92px; }
.lcell-z { font-size: 11px; color: var(--txt2); }
.lcell-label { font-size: 15px; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.lcell-sub { font-size: 10px; color: var(--txt3); white-space: nowrap; }
.lcell.w-red .lcell-label { color: var(--w-red-2); } .lcell.w-blue .lcell-label { color: var(--w-blue-2); } .lcell.w-green .lcell-label { color: var(--w-green-2); }
.lcell-odds { font-family: var(--font-num); font-size: 14px; color: var(--gold); font-weight: 600; flex: 0 0 auto; width: 42px; text-align: center; }

.amt-input {
  flex: 1 1 auto; min-width: 48px; width: 100%;
  background: var(--bg); border: 1px solid var(--line2); border-radius: 5px;
  color: var(--txt); font-family: var(--font-num); font-size: 14px; padding: 6px 8px;
  text-align: right; outline: none;
}
.amt-input:focus { border-color: var(--gold-deep); }
.amt-input.has-val { border-color: var(--gold); color: var(--gold); background: rgba(232,196,134,.06); }
.amt-input::placeholder { color: var(--txt3); font-family: var(--font-zh); font-size: 12px; }

/* 组合金额条 */
.combo-amt-bar {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-md); padding: 12px 16px;
}
.cab-odds { font-size: 13px; color: var(--txt2); }
.cab-odds b { color: var(--gold); margin-left: 4px; }
.cab-cnt { font-size: 13px; color: var(--txt2); }
.cab-cnt b { color: var(--txt); font-size: 16px; margin-right: 3px; }
.combo-amt-bar .amt-input { flex: 0 0 160px; max-width: 160px; }
.cab-sub { margin-left: auto; font-size: 18px; color: var(--txt); font-weight: 600; }

.play-rule {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.55; color: var(--txt2);
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 12px; margin-bottom: 14px;
}
.rule-tag {
  flex: none; font-size: 11px; font-weight: 700; color: var(--gold);
  border: 1px solid var(--gold-deep); border-radius: 4px; padding: 1px 7px;
  background: rgba(232,196,134,.08);
}
.rule-text { flex: 1; min-width: 0; }
.rule-49 {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--red); white-space: nowrap;
  border: 1px solid rgba(217,67,67,.45); background: rgba(217,67,67,.12);
  border-radius: 4px; padding: 0 6px; margin-right: 7px; vertical-align: 1px; letter-spacing: .02em;
}

.qtools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.qtool {
  font-family: var(--font-zh); cursor: pointer;
  background: var(--bg3); color: var(--txt2); border: 1px solid var(--line2);
  border-radius: 6px; padding: 5px 13px; font-size: 13px; font-weight: 500;
  transition: all .12s ease;
}
.qtool:hover { color: var(--txt); border-color: var(--gold-deep); }
.qtool.w-red { color: var(--w-red-2); }
.qtool.w-blue { color: var(--w-blue-2); }
.qtool.w-green { color: var(--w-green-2); }

.numgrid {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 14px 8px; justify-items: center; align-items: start;
}

.opt-group { margin-bottom: 16px; }
.opt-group-title {
  font-size: 12px; color: var(--txt3); margin-bottom: 9px; letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
}
.opt-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 9px; }
.tail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; }
.ht-grid { display: grid; gap: 9px; }
.ht-grid.head { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ht-grid.tail { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ht-cell {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; cursor: pointer; transition: all .12s ease;
}
.ht-cell:hover { border-color: var(--line2); background: var(--bg4); }
.ht-cell.is-sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: rgba(232,196,134,.1); }
.ht-cell-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.ht-title { font-size: 17px; font-weight: 700; color: var(--txt); }
.ht-cell.is-sel .ht-title { color: var(--gold); }
.ht-odds { font-size: 15px; color: var(--gold); font-weight: 600; }
.ht-cell-nums { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.ht-n { font-family: var(--font-num); font-weight: 600; font-size: 12.5px; line-height: 1.2; }

.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 9px; }

/* 特六肖 肖数单选 */
.pick-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pick-mode {
  flex: 1 1 0; min-width: 92px; cursor: pointer; font-family: var(--font-zh);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r-md);
  padding: 11px 10px; transition: all .12s ease;
}
.pick-mode:hover { border-color: var(--gold-deep); }
.pick-mode.is-on { background: linear-gradient(180deg, rgba(232,196,134,.16), rgba(232,196,134,.04)); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.pm-name { font-size: 15px; font-weight: 600; color: var(--txt); }
.pick-mode.is-on .pm-name { color: var(--gold); }
.pm-odds { font-size: 14px; color: var(--gold); font-weight: 600; }

.combo-hint {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--txt2); margin-bottom: 13px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 14px;
}
.combo-hint b { font-size: 16px; color: var(--txt); margin: 0 2px; }
.combo-need { color: var(--txt3); }

/* 两面表 */
.opttable-scroll { overflow-x: auto; }
.opttable { width: 100%; border-collapse: separate; border-spacing: 6px; min-width: 520px; }
.opttable th {
  font-size: 12px; font-weight: 500; color: var(--txt2); padding: 6px 4px; text-align: center;
}
.opttable .rowhead {
  background: var(--bg2); color: var(--txt); font-weight: 600; font-size: 13px;
  border-radius: var(--r-sm); padding: 0 14px; text-align: center; white-space: nowrap;
  border: 1px solid var(--line);
}
.opttable .tcell {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm);
  text-align: center; cursor: pointer; height: 44px; transition: all .12s ease;
}
.opttable .tcell:hover { border-color: var(--line2); background: var(--bg4); }
.opttable .tcell.is-sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: rgba(232,196,134,.12); }
.opttable .tcell-odds { font-family: var(--font-num); font-size: 14px; color: var(--gold); font-weight: 600; }
.opttable .tcell.w-red .tcell-odds { color: var(--w-red-2); }
.opttable .tcell.w-blue .tcell-odds { color: var(--w-blue-2); }
.opttable .tcell.w-green .tcell-odds { color: var(--w-green-2); }
