/* 极速快三 · 开奖中心 —— 深蓝金「官方门户」风格 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --navy: #0a1733;
  --navy2: #101f42;
  --panel: #14264e;
  --line: rgba(255, 255, 255, .10);
  --txt: #eaf1ff;
  --muted: #93a4c6;
  --gold: #f6c65b;
  --gold2: #d9a334;
  --red: #ff5b6b;
  --blue: #3ea6ff;
  --green: #23c88a;
}
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 500px at 50% -160px, #1b3566 0%, transparent 60%),
    linear-gradient(180deg, #081229 0%, #0a1733 40%, #071021 100%);
  color: var(--txt);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
b { font-weight: 700; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* 顶部信息条 */
.topbar {
  background: rgba(6, 15, 34, .85);
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px);
}
.topbar .wrap { display: flex; align-items: center; gap: 8px; height: 34px; }
.topbar .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite;
}
.topbar .sep { opacity: .35; }
.topbar .right { margin-left: auto; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* 头部 */
.hero {
  background: linear-gradient(135deg, #142a5c 0%, #0d1c3e 55%, #16244a 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.hero-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: linear-gradient(145deg, var(--gold), var(--gold2));
  color: #2a1c00; font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(246, 198, 91, .28);
}
.titles h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.titles h1 span { color: var(--gold); font-size: 15px; margin-left: 8px; font-weight: 600; }
.titles p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.titles p b { color: var(--gold); }
.hero-stat { display: flex; gap: 22px; text-align: right; }
.hero-stat b { display: block; font-size: 20px; color: var(--gold); }
.hero-stat span { font-size: 12px; color: var(--muted); }

/* 卡片 */
.card {
  background: linear-gradient(180deg, rgba(23, 41, 82, .92), rgba(14, 27, 57, .92));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.card h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.card h3 small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* 最新开奖 */
.live { border-color: rgba(246, 198, 91, .35); }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.issue { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 13px; }
.issue b { font-size: 26px; color: var(--gold); letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.cd { display: flex; align-items: baseline; gap: 6px; }
.cd-label { color: var(--muted); font-size: 13px; }
.cd b { font-size: 30px; color: #fff; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
.cd-unit { color: var(--muted); font-size: 13px; }
.cd-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.09); margin: 12px 0 4px; overflow: hidden; }
.cd-track i { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .4s linear; }

.draw { display: flex; align-items: center; gap: 22px; padding: 14px 4px 6px; flex-wrap: wrap; }
.dice { display: flex; gap: 12px; }
.die {
  width: 78px; height: 78px; border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #dfe7f8);
  color: #16264a; font-size: 42px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 -3px 0 rgba(0,0,0,.08);
}
.die.hit { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.72) rotate(-8deg); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.draw-r { display: flex; flex-direction: column; gap: 8px; }
.sum-box { display: flex; align-items: baseline; gap: 8px; }
.sum-box span { color: var(--muted); font-size: 13px; }
.sum-box b { font-size: 34px; color: var(--gold); font-variant-numeric: tabular-nums; }
.badges { display: flex; gap: 8px; }
.bd {
  font-style: normal; font-size: 13px; padding: 3px 12px; border-radius: 99px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--muted);
}
.bd.on { color: #241800; font-weight: 700; }
.bd.on.big, .bd.on.odd, .bd.on.tri { background: linear-gradient(145deg, var(--gold), var(--gold2)); border-color: transparent; }
.bd.on.small, .bd.on.even, .bd.on.str { background: linear-gradient(145deg, #7fc4ff, var(--blue)); border-color: transparent; color: #04203a; }
.bd.on.pair { background: linear-gradient(145deg, #7be3b8, var(--green)); border-color: transparent; color: #052a1c; }
.open-time { color: var(--muted); font-size: 12.5px; }
.open-time b { color: #cfdcf6; }
.live-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px;
  color: var(--muted); font-size: 12.5px; }
.live-foot b { color: var(--gold); }
.wait { color: #ffd08a; }

/* 选项卡 */
.tabs { display: flex; gap: 8px; margin: 6px 0 0; }
.tab {
  background: rgba(255,255,255,.06); color: var(--muted);
  border: 1px solid var(--line); border-radius: 12px 12px 0 0;
  padding: 9px 18px; font-size: 14px; cursor: pointer;
}
.tab.on { background: linear-gradient(180deg, rgba(246,198,91,.20), rgba(246,198,91,.06));
  color: var(--gold); border-color: rgba(246,198,91,.45); font-weight: 700; }
.tabpane { display: none; }
.tabpane.on { display: block; }

/* 图表 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 .card { margin: 0; }
.cv-wrap { overflow-x: auto; overflow-y: hidden; }
.cv-wrap canvas { display: block; min-width: 100%; }
.legend { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
.sq { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.sq.red { background: var(--red); } .sq.blue { background: var(--blue); }
.comb-box { display: flex; flex-wrap: wrap; gap: 10px; }
.comb-item { flex: 1 1 46%; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.comb-item span { color: var(--muted); font-size: 12.5px; }
.comb-item b { font-size: 18px; color: var(--gold); }

/* 表格 */
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.bar label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.bar input, .bar select {
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--txt);
  border-radius: 9px; padding: 6px 9px; font-size: 13px; outline: none;
}
.btn {
  background: linear-gradient(145deg, var(--gold), var(--gold2)); color: #2a1c00;
  border: none; border-radius: 10px; padding: 7px 16px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.btn.ghost { background: rgba(255,255,255,.08); color: var(--txt); border: 1px solid var(--line); font-weight: 500; }
.btn:active { transform: translateY(1px); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 500; background: rgba(255,255,255,.04); }
.tbl tbody tr:hover { background: rgba(255,255,255,.04); }
.tbl .num { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.tbl .ball {
  display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%;
  background: linear-gradient(160deg, #fff, #dfe7f8); color: #16264a; font-weight: 800; margin: 0 2px; font-size: 13px;
}
.tbl .empty { color: var(--muted); padding: 22px 0; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; }
.tag.big, .tag.odd { background: rgba(255,91,107,.16); color: #ff97a2; }
.tag.small, .tag.even { background: rgba(62,166,255,.16); color: #8ccbff; }
.tag.tri { background: rgba(246,198,91,.18); color: var(--gold); }
.tag.str, .tag.pair { background: rgba(35,200,138,.16); color: #74e0b4; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* 预测 */
.pred-head { display: flex; align-items: center; justify-content: space-between; }
.pred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pred-item { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.pred-item h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.pred-item .big-v { font-size: 24px; color: var(--gold); font-weight: 800; }
.pred-item .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pick { background: rgba(246,198,91,.10); border: 1px solid rgba(246,198,91,.35);
  border-radius: 12px; padding: 9px 12px; display: flex; align-items: center; gap: 8px; }
.pick b { font-size: 18px; letter-spacing: 1px; color: #fff; }
.pick span { color: var(--muted); font-size: 12px; }
.disc { margin-top: 12px; padding: 11px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.7;
  background: rgba(255, 200, 90, .08); border: 1px solid rgba(255, 200, 90, .28); color: #ffd79a; }

.foot { display: flex; flex-direction: column; gap: 4px; color: var(--muted);
  font-size: 12px; padding: 18px 14px 30px; text-align: center; }

@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
  .die { width: 62px; height: 62px; font-size: 34px; border-radius: 13px; }
  .titles h1 { font-size: 18px; }
  .logo { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
  .issue b { font-size: 20px; }
  .cd b { font-size: 24px; min-width: 44px; }
  .topbar .right { display: none; }
  .hero-stat { gap: 16px; }
}
