:root{
  --blue:#1a3d96;
  --line:#d4d4d4;
  --ink:#222;
  --muted:#414141;
  --ball-red:#ff0000;
  --ball-blue:#0000ff;
  --ball-green:#008000;
  --plus:#da0f1f;
  --issue-red:#d21e1e;
  --site-max:1100px;
  --page-pad:10px;
}
*{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  height:100%;
}
body{
  margin:0;
  min-height:100%;
  background:#e9eef5;
  color:var(--ink);
  font-family:"Microsoft JhengHei","Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB",Arial,sans-serif;
  font-size:15px;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
  padding-bottom:env(safe-area-inset-bottom);
}
a{color:inherit;text-decoration:none}
button{font:inherit;touch-action:manipulation}
img,picture,video{max-width:100%;height:auto;display:block}

/* ===== 全端共用：内容区居中，手机铺满、电脑限宽 ===== */
.site{
  width:100%;
  max-width:var(--site-max);
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  padding-left:env(safe-area-inset-left);
  padding-right:env(safe-area-inset-right);
  overflow-x:hidden;
  box-shadow:0 0 0 1px rgba(15,35,70,.04), 0 10px 36px rgba(15,35,70,.08);
}
header{max-width:100%;overflow:hidden}

.brand-row{
  position:relative;display:block;width:100%;max-width:100%;
  height:auto;min-height:0;padding:0;background:#fff;overflow:hidden;
  border-radius:0;
}
.brand{display:block;line-height:0;width:100%;max-width:100%;height:auto;overflow:hidden;border-radius:0}
.brand-logo{
  display:block;width:100%;max-width:100%;height:auto;
  aspect-ratio:1024 / 353;object-fit:contain;object-position:center center;
  border-radius:0;vertical-align:top;
}
.brand picture{display:contents}
.hero picture{display:contents}
.style-switch{
  border:0;border-radius:26px;background:#1a3d96;color:#fff;
  padding:1px 10px;height:22px;line-height:20px;font-size:13px;cursor:pointer;
  position:absolute;right:max(8px, env(safe-area-inset-right));bottom:7px;z-index:2;
  flex-shrink:0;white-space:nowrap;margin:0;box-shadow:0 2px 7px rgba(0,0,0,.22);
}
.main-nav{
  display:grid;grid-template-columns:repeat(2,1fr);width:100%;max-width:100%;
  height:auto;border-bottom:3px solid #edd823;
}
.main-nav a{
  display:grid;place-items:center;color:#fff;font-weight:700;text-shadow:0 1px 2px #555;
  white-space:nowrap;font-size:15px;min-width:0;height:44px;
}
.main-nav a:nth-child(1){background:#dc0612}
.main-nav a:nth-child(2){background:#0d9fd5}
.main-nav a:hover,.main-nav a.active{filter:brightness(.88);box-shadow:inset 0 -4px rgba(255,255,255,.45)}

.hero{
  height:auto;aspect-ratio:1024/326;margin-top:0;overflow:hidden;position:relative;
  border:0;border-bottom:1px solid #aab6c6;background:#064f65;max-width:100%;
}
.hero-banner{
  display:block;width:100%;height:100%;max-width:100%;
  object-fit:cover;object-position:center center;
}

.draw-card{
  border:1px solid var(--blue);box-shadow:0 1px 4px #cad0db;background:#fff;
  margin:12px var(--page-pad) 0;width:auto;max-width:none;
}
.draw-card-head{
  display:block;height:auto;padding:11px 12px;line-height:1.6;
  color:var(--blue);font-weight:700;border-bottom:1px solid #d8dee8;
  box-sizing:border-box;
}
.draw-card-head > span:first-child{font-size:17px}
.next-time{display:block;margin-top:2px;font-size:13px}
.live-board{
  padding:13px 10px;min-height:0;
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:13px;
  max-width:100%;
}
.open-left{flex:1;min-width:0;max-width:100%}
.issue-line{
  font:14px "Helvetica Neue",Helvetica,"PingFang SC","Microsoft JhengHei",Arial,sans-serif;
  color:#222;margin-bottom:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.issue-line span{font-size:14px}
.issue-line i{font-style:normal;font-weight:600;color:var(--issue-red)}
.balls-row{
  display:flex;align-items:flex-end;justify-content:flex-start;gap:8px;
  flex-wrap:nowrap;max-width:100%;min-width:0;width:100%;
}

/* 号码始终一排，随屏宽缩放 */
.balls{
  display:flex;align-items:flex-end;justify-content:flex-start;
  gap:clamp(2px,.8vw,8px);min-width:0;flex:1 1 auto;flex-wrap:nowrap;max-width:100%;
}
.ball-wrap{
  text-align:center;font-size:clamp(10px,2.6vw,14px);line-height:1.2;
  display:flex;flex-direction:column;align-items:center;flex:0 0 auto;
}
.ball-wrap .zodiac{display:flex;align-items:center;justify-content:center;margin-top:3px;color:#222}
.ball{
  width:clamp(26px,7.6vw,46px);height:clamp(26px,7.6vw,46px);border-radius:0;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:clamp(13px,3.8vw,22px);font-weight:700;border:0;background:#ccc;line-height:1;
}
.ball.red{background:var(--ball-red)}
.ball.blue{background:var(--ball-blue)}
.ball.green{background:var(--ball-green)}
.ball.gray,.mini-ball.gray{background:#ccc;color:#000;font-size:clamp(13px,3.6vw,20px)}
.plus{
  font-size:clamp(14px,3.8vw,22px);font-weight:100;color:var(--plus);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  height:clamp(26px,7.6vw,46px);padding:0 1px;align-self:flex-end;margin-bottom:1.15em;
}
.moni-btn{
  font-size:12px;height:26px;line-height:26px;cursor:pointer;display:inline-block;
  border:0;border-radius:26px;padding:0 8px;color:#fff;background:var(--blue);
  margin:0 0 1.15em 0;text-align:center;align-self:flex-end;white-space:nowrap;flex:0 0 auto;
}
.moni-btn:hover{filter:brightness(1.08)}
.moni-btn:active{transform:scale(.98)}
.countdown{text-align:center;color:var(--blue);font-weight:700;flex-shrink:0;width:100%}
.countdown b{display:block;font-size:clamp(22px,5.5vw,28px);letter-spacing:3px;margin:4px 0;color:#333}

body.style-ball .ball,
body.style-ball .mini-ball{
  border-radius:50%;
  box-shadow:inset -2px -3px 6px rgba(0,0,0,.25),inset 2px 2px 4px rgba(255,255,255,.35),0 2px 4px rgba(0,0,0,.18);
}

.section-title{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:10px 12px;background:var(--blue);color:#fff;font-weight:700}
.section-title a{font-size:13px;padding:6px 0}

.his-wrapper{border:0;background:#f4f6f9;padding:0 var(--page-pad)}
.his-subject{display:none}
.his-item{
  display:grid;grid-template-columns:1fr;gap:8px;background:#fff;border:1px solid #d7dce5;
  border-radius:8px;margin:9px 0;padding:12px;min-height:0;
  color:var(--muted);font-size:14px;
}
.his-item:last-child{margin-bottom:12px}
.his-issue,.his-time,.his-code{width:auto;text-align:left}
.his-issue i{font-weight:600;font-style:normal;color:var(--issue-red)}
.his-time{color:#666;font-size:13px}

.mini-balls{display:flex;justify-content:flex-start;align-items:flex-start;gap:0;padding:4px 0 0;flex-wrap:nowrap}
.mini-item{margin-right:3px;text-align:center;flex:0 0 auto}
.mini-item .zodiac{
  width:clamp(24px,7vw,34px);font-size:clamp(10px,2.8vw,12px);color:#222;
  display:flex;align-items:center;justify-content:center;margin-top:2px;
}
.mini-ball{
  width:clamp(24px,7vw,34px);height:clamp(24px,7vw,34px);border-radius:0;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:clamp(12px,3.4vw,17px);font-weight:700;border:0;background:#ccc;line-height:1;
}
.mini-ball.red{background:var(--ball-red)}
.mini-ball.blue{background:var(--ball-blue)}
.mini-ball.green{background:var(--ball-green)}
.mini-balls .plus{
  margin-right:3px;color:var(--plus);height:clamp(28px,8vw,36px);font-size:18px;font-weight:100;
  display:flex;align-items:center;justify-content:center;
}

.pager{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:16px 10px 20px}
.pager button{
  min-width:40px;height:40px;border:0;border-radius:6px;background:#ded9d9;color:#222;
  font-size:15px;line-height:40px;cursor:pointer;padding:0 8px;
}
.pager button:disabled{opacity:.45;cursor:default}
.footer{
  text-align:center;color:#666;border-top:1px solid #ddd;padding:16px 12px calc(16px + env(safe-area-inset-bottom));
  font-size:12px;background:#fff;line-height:1.6;
}

.inner-hero{margin-top:0;background:var(--blue);color:#fff;padding:16px 14px}
.inner-hero h1{margin:0;font-size:22px}
.page-panel{border:0;border-top:1px solid var(--line);padding:14px;min-height:240px}
.video-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.video-card{border:1px solid #ddd}
.video-cover{height:110px;background:linear-gradient(135deg,#087ca1,#173e80);display:grid;place-items:center;color:#fff;font-size:28px}
.video-card p{margin:0;padding:10px;font-size:13px}
.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tool-number{border:1px solid #ddd;text-align:center;padding:14px;font-weight:800}
.contact-box{max-width:100%;line-height:1.9;font-size:14px}
.note{color:#777;font-size:13px}
.pick-btn{
  color:#fff;border:1px solid #b02b21;background:linear-gradient(180deg,#d21e1e,#b02b21);
  box-shadow:inset 0 0 3px #fff;padding:8px 24px;border-radius:4px;cursor:pointer;font-weight:700;
}

/* 走勢圖 — 對齊 macaujc.com/trend（ECharts） */
.trend-hero{background:#d9a400}
.trend-panel{border:0;padding:0;min-height:360px;background:#fff}
.trend-page{display:flex;flex-direction:column;gap:0}
.trend-card{
  background:#fff;padding:12px 8px 8px;border:0;
  border-bottom:8px solid #f0f0f0;
}
.trend-card:last-child{border-bottom:0}
.trend-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:4px;padding:0 10px;flex-wrap:wrap;
}
.trend-card-head h2{
  margin:0;font-size:16px;color:#000;font-weight:700;
  display:flex;align-items:center;gap:8px;
}
.trend-mark{
  display:inline-block;width:4px;height:16px;background:#1a3d96;border-radius:1px;
}
.trend-period{font-size:16px;color:#000;display:flex;align-items:center;gap:4px}
.trend-period input{
  width:48px;height:16px;border:1px solid #cfcfcf;border-radius:2px;
  padding:0 4px;font-size:14px;outline:none;line-height:16px;
}
.trend-period input:focus{border-color:#1a3d96}
.trend-echart{width:100%;height:420px}

/* 快乐10 四种玩法 */
.h10-hero{
  margin-top:0;padding:16px 14px;color:#fff;
  background:linear-gradient(120deg,#0a2a5c 0%,#1a3d96 45%,#0d9fd5 100%);
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
.h10-kicker{margin:0 0 6px;letter-spacing:.18em;font-size:12px;opacity:.85}
.h10-hero h1{margin:0;font-size:24px;letter-spacing:.08em}
.h10-hero p{margin:8px 0 0;opacity:.92;font-size:13px}
.h10-meta{display:flex;flex-direction:column;gap:4px;font-size:13px;text-align:left}
.h10-meta b{color:#ffe08a}
.h10-panel{border:1px solid var(--line);border-top:0;background:#f7f8fb;padding:0 0 18px;min-height:420px}
.h10-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.h10-tab{
  border:0;background:#e8edf5;color:#334;padding:12px 8px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:2px;border-bottom:3px solid transparent;
}
.h10-tab em{font-style:normal;font-size:11px;opacity:.7;letter-spacing:.04em}
.h10-tab.active{background:#fff;color:var(--tab,#1a3d96);border-bottom-color:var(--tab,#1a3d96);font-weight:700}
.h10-game{display:none;padding:18px 20px 8px}
.h10-game.show{display:block}
.h10-game-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:16px}
.h10-game-head h2{margin:0;font-size:22px;color:#1a3d96}
.h10-game-head span{font-size:12px;color:#888}
.h10-versus{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.h10-side{background:#fff;border:1px solid #dbe3ef;border-radius:10px;padding:14px 12px}
.h10-side-head{display:flex;justify-content:space-between;font-weight:700;margin-bottom:12px}
.h10-side-head em{font-style:normal;color:#c41e3a;font-size:14px}
.h10-vs{font-weight:800;color:#c41e3a;font-size:18px}
.pk-row{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.pk-card{
  width:56px;height:80px;border-radius:6px;background:#fff;border:1px solid #ccc;
  box-shadow:0 2px 6px rgba(0,0,0,.12);display:flex;flex-direction:column;justify-content:space-between;
  padding:6px 8px;font-weight:800;color:#111;
}
.pk-card.red{color:#c41e3a}
.pk-card b{font-size:18px;line-height:1}
.pk-card i{font-style:normal;font-size:20px;align-self:flex-end}
.h10-winner{
  margin:16px 0 8px;text-align:center;font-weight:800;font-size:18px;
  padding:12px;border-radius:8px;background:#fff;
}
.h10-winner.win-player{color:#1a3d96;border:1px solid #9bb7e8}
.h10-winner.win-banker{color:#c41e3a;border:1px solid #f0b4b4}
.h10-winner.win-tie{color:#b45309;border:1px solid #f0d39b}
.h10-rule{margin:0 0 16px;color:#666;font-size:13px;line-height:1.7;text-align:center}
.h10-hist-label{font-size:13px;color:#666;margin:4px 0 8px}
.h10-road{display:flex;flex-wrap:wrap;gap:6px}
.h10-road span{
  min-width:36px;height:32px;padding:0 8px;border-radius:4px;
  display:grid;place-items:center;font-size:13px;font-weight:700;color:#fff;
}
.road-p{background:#1a3d96}
.road-b{background:#c41e3a}
.road-t{background:#0b6e4f}
.road-n{background:#5b6b88}
.fantan-board{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:360px;margin:0 auto}
.fantan-cell{
  height:88px;border-radius:10px;background:#fff;border:2px solid #c9d4e6;
  display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;
}
.fantan-cell span{font-size:32px;color:#1a3d96}
.fantan-cell small{color:#888;font-size:12px}
.fantan-cell.hit{background:#1a3d96;border-color:#1a3d96;color:#fff}
.fantan-cell.hit span,.fantan-cell.hit small{color:#ffe08a}
.dice-row{display:flex;justify-content:center;gap:16px;padding:10px 0 6px}
.dice{
  width:64px;height:64px;background:linear-gradient(145deg,#fffef8,#e8e0d0);
  border-radius:12px;border:2px solid #c9a227;
  box-shadow:0 4px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.8);position:relative;
}
.dice .dot{
  width:10px;height:10px;border-radius:50%;background:#1a1a1a;position:absolute;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.25);
}
.dice .p1{top:8px;left:8px}.dice .p2{top:8px;left:27px}.dice .p3{top:8px;right:8px}
.dice .p4{top:27px;left:8px}.dice .p5{top:27px;left:27px}.dice .p6{top:27px;right:8px}
.dice .p7{bottom:8px;left:8px}.dice .p8{bottom:8px;left:27px}.dice .p9{bottom:8px;right:8px}

/* 百家乐 — 对齐赌场风台面 */
.bacc-table{
  margin:0 -4px;
  padding:12px;
  border-radius:14px;
  color:#f6e7c4;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180,30,30,.45), transparent 58%),
    linear-gradient(180deg,#3a1010 0%,#140808 55%,#0b0505 100%);
  border:2px solid #c9a227;
  box-shadow:inset 0 0 0 1px rgba(255,210,80,.25), 0 8px 22px rgba(0,0,0,.28);
}
.bacc-top{
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(200px,1.15fr) minmax(248px,290px);
  gap:10px;align-items:stretch;margin-bottom:10px;
}
.bacc-chip{
  background:linear-gradient(180deg,#2a1610,#120a08);
  border:1px solid #c9a227;border-radius:10px;padding:10px 14px;
  display:flex;flex-direction:column;justify-content:center;min-width:0;
  color:#f3e6c8;font-size:15px;line-height:1.45;letter-spacing:.02em;
}
.bacc-chip b{color:#ffe08a;font-size:clamp(16px,1.6vw,20px);font-weight:800;letter-spacing:.06em}
.bacc-chip small{
  display:block;color:#d8c49a;font-size:13px;margin-top:6px;
  letter-spacing:.02em;font-weight:500;
}
.bacc-title{
  text-align:center;border-radius:12px;padding:8px 12px;min-width:0;
  background:linear-gradient(180deg,#b42323,#6e0d0d);
  border:2px solid #e8c25a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}
.bacc-title h3{margin:0;font-size:clamp(20px,2.2vw,28px);letter-spacing:.16em;color:#fff8dc;text-shadow:0 2px 0 #5a0000}
.bacc-title p{margin:4px 0 0;font-size:12px;color:#ffe9a8}
.bacc-cd-box{
  text-align:center;align-items:center;justify-content:center;gap:10px;
  min-width:0;overflow:hidden;padding:10px 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,200,80,.18), transparent 55%),
    linear-gradient(180deg,#3a2216 0%,#160a08 100%);
  border:1px solid #e0c35a;
  box-shadow:
    inset 0 0 0 1px rgba(80,40,10,.65),
    inset 0 1px 0 rgba(255,230,150,.28),
    0 6px 16px rgba(0,0,0,.35);
}
.bacc-cd-box > small{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  margin:0;padding:0 2px;max-width:100%;
  font-size:clamp(14px,1.5vw,20px);font-weight:800;letter-spacing:.12em;
  color:#ffe08a;text-indent:.12em;white-space:nowrap;
}
.bacc-cd-box > small::before,
.bacc-cd-box > small::after{
  content:"";width:clamp(10px,1.4vw,22px);height:2px;flex:0 0 auto;
  background:linear-gradient(90deg,transparent,#e8c25a,transparent);
  box-shadow:0 0 6px rgba(232,194,90,.45);
}
.bacc-cd{color:#fff;font-size:14px}
.bacc-cd b{display:inline-block;font-size:34px;line-height:1;color:#fff;margin:0 4px;text-shadow:0 0 10px #ffce6a}
.cd-digits{
  display:inline-flex;align-items:center;justify-content:center;
  gap:clamp(4px,.6vw,8px);max-width:100%;
  margin-top:0;padding:2px 0 0;line-height:1;flex-wrap:nowrap;
}
.cd-digit{
  display:inline-flex;align-items:center;justify-content:center;
  width:clamp(34px,3.4vw,46px);height:clamp(42px,4.2vw,56px);border-radius:8px;padding:0;
  background:linear-gradient(180deg,#5c3c24 0%,#2a160e 48%,#120808 100%);
  border:1px solid #e8c25a;color:#ffe08a;flex:0 0 auto;
  font-family:"DIN Alternate","Segoe UI",Consolas,"Courier New",monospace;
  font-size:clamp(22px,2.4vw,32px);font-weight:800;font-variant-numeric:tabular-nums;
  letter-spacing:0;line-height:1;
  text-shadow:0 1px 0 rgba(0,0,0,.45), 0 0 12px rgba(255,200,80,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,230,160,.35),
    inset 0 -8px 14px rgba(0,0,0,.35),
    0 3px 8px rgba(0,0,0,.45);
}
.cd-sep{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  width:clamp(8px,.9vw,12px);gap:clamp(6px,.7vw,9px);transform:translateY(1px);
  font-size:0;color:transparent;line-height:0;flex:0 0 auto;
}
.cd-sep::before,
.cd-sep::after{
  content:"";width:clamp(5px,.55vw,7px);height:clamp(5px,.55vw,7px);border-radius:50%;
  background:#ffe08a;box-shadow:0 0 10px rgba(255,210,90,.75);
}
.bacc-body{
  display:grid;grid-template-columns:1.15fr 1.15fr 1fr 118px;gap:10px;align-items:stretch;
}
.bacc-body-no-stats{
  grid-template-columns:1.15fr 1.15fr 1fr;
}
.bacc-seat{
  border-radius:12px;padding:8px 10px 12px;border:2px solid #d4b14a;
  min-height:148px;
}
.bacc-seat.banker{background:linear-gradient(180deg,#7a1414,#3b0808)}
.bacc-seat.player{background:linear-gradient(180deg,#154a9a,#0b2458)}
.bacc-seat-head{
  display:flex;justify-content:space-between;align-items:center;
  color:#fff;font-weight:800;font-size:20px;padding:2px 4px 8px;
}
.bacc-seat-head em{font-style:normal;color:#ffe08a}
.bacc-cards{display:flex;justify-content:center;gap:10px}
.bacc-card{
  width:72px;height:102px;border-radius:8px;background:#fffaf0;color:#111;
  border:1px solid #ccc;position:relative;box-shadow:0 3px 8px rgba(0,0,0,.35);
  overflow:hidden;
}
.bacc-card.red{color:#c41e3a}
.bacc-idx{position:absolute;display:flex;flex-direction:column;align-items:center;line-height:1;font-weight:800}
.bacc-idx b{font-size:14px}
.bacc-idx i{font-style:normal;font-size:12px}
.bacc-idx.tl{top:4px;left:5px}
.bacc-idx.br{bottom:4px;right:5px;transform:rotate(180deg)}
.bacc-face{height:100%;display:grid;place-items:center;font-size:34px;padding-top:4px}
.bacc-face.ace{font-size:28px}
.bacc-pips{
  position:absolute;inset:18px 12px;display:grid;place-items:center;font-size:16px;
}
.bacc-pips i{font-style:normal}
.bacc-pips.n7,.bacc-pips.n8{display:grid;grid-template-columns:repeat(3,1fr);align-content:space-between;justify-items:center}
.bacc-result{
  border-radius:12px;border:2px solid #d4b14a;text-align:center;
  background:linear-gradient(180deg,#5a1010,#2a0707);padding:10px 8px;
  display:flex;flex-direction:column;justify-content:center;
}
.bacc-result small{color:#e8c25a;font-size:13px}
.bacc-result strong{font-size:34px;letter-spacing:.12em;margin:8px 0;color:#ffe08a;text-shadow:0 0 12px rgba(255,180,40,.45)}
.bacc-result.win-player strong{color:#7ec8ff}
.bacc-result.win-banker strong{color:#ffb4b4}
.bacc-result p{margin:0;font-size:12px;color:#f0d9a0}
.bacc-stats{
  background:#120808;border:2px solid #d4b14a;border-radius:12px;padding:8px;
  display:flex;flex-direction:column;justify-content:center;gap:6px;
}
.bacc-stats > div{display:flex;align-items:center;justify-content:space-between;color:#fff;font-weight:700}
.bacc-stats .tag{
  min-width:36px;height:22px;border-radius:4px;display:grid;place-items:center;font-size:13px;color:#fff;
}
.bacc-stats .tag.banker{background:#c41e3a}
.bacc-stats .tag.player{background:#1a73c7}
.bacc-stats .tag.tie{background:#0b6e4f}
.bacc-stats .total{color:#d8c49a;font-size:12px;justify-content:flex-end}

/* 三公 · 8份牌 */
.sg-table{
  margin:0 -4px;padding:12px;border-radius:14px;color:#f6e7c4;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180,30,30,.42), transparent 58%),
    linear-gradient(180deg,#3a1010 0%,#140808 55%,#0b0505 100%);
  border:2px solid #c9a227;
  box-shadow:inset 0 0 0 1px rgba(255,210,80,.25), 0 8px 22px rgba(0,0,0,.28);
}
.sg-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:4px 0 14px;
}
.sg-seat{
  position:relative;border:2px solid #d4b14a;border-radius:12px;padding:10px 8px 8px;
  background:linear-gradient(180deg,#5a1414,#2a0808);min-height:150px;
  display:flex;flex-direction:column;align-items:center;gap:8px;
}
.sg-seat-num{
  position:absolute;top:-1px;left:10px;min-width:22px;height:20px;padding:0 6px;
  border-radius:0 0 6px 6px;background:#c9a227;color:#3a1008;font-size:12px;font-weight:800;
  display:grid;place-items:center;
}
.sg-cards{display:flex;justify-content:center;gap:6px;padding-top:8px}
.sg-seat .bacc-card{width:54px;height:78px}
.sg-seat .bacc-face{font-size:24px}
.sg-seat .bacc-idx b{font-size:12px}
.sg-seat .bacc-idx i{font-size:11px}
.sg-meta{
  width:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 2px;
}
.sg-meta-row{
  background:rgba(0,0,0,.28);border:1px solid rgba(212,177,74,.45);border-radius:6px;
  padding:6px 4px;text-align:center;display:flex;flex-direction:column;gap:2px;
}
.sg-meta-row span{font-size:11px;color:#d8c49a}
.sg-meta-row b{font-size:16px;color:#ffe08a}
.sg-meta-row b.sg-special{color:#ff6b6b;text-shadow:0 0 8px rgba(255,80,80,.45)}
.sg-meta-row em{font-style:normal;font-size:18px;font-weight:800;color:#fff}
.sg-draw-btn{
  display:block;width:min(320px,100%);margin:0 auto;border:0;cursor:pointer;
  height:46px;border-radius:24px;font-size:18px;font-weight:800;color:#fff;
  background:linear-gradient(180deg,#e23a3a,#9a1010);
  border:2px solid #e8c25a;box-shadow:0 4px 14px rgba(0,0,0,.35);
}
.sg-draw-btn:hover{filter:brightness(1.06)}
.sg-draw-btn:disabled{opacity:.7;cursor:default}

/* 三公 · 开奖记录 */
.sg-history{
  margin:16px 0 4px;border-radius:12px;overflow:hidden;color:#e8dff0;
  background:linear-gradient(180deg,#142033 0%,#0b1422 100%);
  border:2px solid #c9a227;
  box-shadow:inset 0 0 0 1px rgba(255,210,80,.18), 0 8px 20px rgba(0,0,0,.28);
  /* 允许内部表格区域横向滑动，不被父级裁切手势 */
  touch-action:manipulation;
}
.sg-history-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:12px 14px 10px;border-bottom:1px solid rgba(201,162,39,.35);
  background:linear-gradient(180deg,#1a2a42,#101c30);
}
.sg-history-head h3{
  margin:0;font-size:18px;font-weight:800;color:#ffe08a;letter-spacing:.08em;
}
.sg-history-filters{display:flex;flex-wrap:wrap;gap:6px}
.sg-history-filters button{
  min-width:56px;height:30px;padding:0 12px;border-radius:4px;cursor:pointer;
  border:1px solid #8a6a2a;background:#1a1520;color:#d8c49a;font-size:13px;font-weight:700;
}
.sg-history-filters button:hover{border-color:#e8c25a;color:#ffe08a}
.sg-history-filters button.active{
  background:linear-gradient(180deg,#d42a2a,#9a1010);border-color:#e8c25a;color:#fff;
}
.sg-history-table-wrap{
  width:100%;max-width:100%;
  overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  touch-action:pan-x pan-y;
  scrollbar-width:thin;
  scrollbar-color:#8a9bb0 rgba(0,0,0,.15);
}
.sg-history-table-wrap::-webkit-scrollbar{height:8px}
.sg-history-table-wrap::-webkit-scrollbar-track{background:rgba(0,0,0,.2)}
.sg-history-table-wrap::-webkit-scrollbar-thumb{
  background:#7a8aa0;border-radius:4px;
}
.sg-history-table{
  width:max-content;min-width:980px;border-collapse:collapse;font-size:12px;
}
.sg-history-table th{
  padding:10px 6px;text-align:center;white-space:nowrap;
  color:#ffe08a;font-weight:700;background:#121c2e;
  border-bottom:1px solid rgba(201,162,39,.4);
}
.sg-history-table td{
  padding:8px 4px;text-align:center;vertical-align:middle;
  border-bottom:1px solid rgba(80,100,140,.25);background:transparent;
}
.sg-history-table tbody tr:nth-child(even) td{background:rgba(255,255,255,.02)}
.sg-history-table tbody tr:hover td{background:rgba(232,194,90,.06)}
.sg-hist-expect{color:#7ec8ff;font-weight:700;white-space:nowrap;min-width:96px}
.sg-hist-time{color:#b8c4d8;white-space:nowrap;font-size:11px;min-width:120px}
.sg-hist-result{font-weight:800;white-space:nowrap;min-width:56px}
.sg-hist-empty{padding:28px 12px!important;color:#8899aa}
.sg-history-table td .sg-hist-hand{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:72px}
.sg-hist-cards{display:flex;gap:2px;justify-content:center}
.sg-mini{
  width:22px;height:30px;border-radius:3px;background:#fff;color:#1a1a1a;
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:0 1px 2px rgba(0,0,0,.35);line-height:1;flex:0 0 auto;
}
.sg-mini b{font-size:10px;font-weight:800}
.sg-mini i{font-style:normal;font-size:9px;margin-top:1px}
.sg-mini.red{color:#c41e3a}
.sg-mini.empty{background:#2a3548;color:#667;width:66px;height:30px}
.sg-hist-hand em{font-style:normal;font-size:11px;font-weight:700;color:#d0d8e8;white-space:nowrap}
.sg-hist-gong,.sg-hist-hand em.sg-hist-gong,.sg-hist-result.sg-hist-gong{color:#ffe08a!important}
.sg-hist-hi,.sg-hist-hand em.sg-hist-hi,.sg-hist-result.sg-hist-hi{color:#7ec8ff!important}
.sg-history-foot{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:10px 14px 12px;border-top:1px solid rgba(201,162,39,.28);
  background:#0e1828;color:#a8b4c8;font-size:12px;
}
.sg-history-pager{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.sg-history-pager button{
  min-width:28px;height:28px;padding:0 8px;border-radius:4px;cursor:pointer;
  border:1px solid #3a4a66;background:#162033;color:#d0d8e8;font-size:12px;
}
.sg-history-pager button:hover:not(:disabled){border-color:#e8c25a;color:#ffe08a}
.sg-history-pager button.active{
  background:#1a73c7;border-color:#4aa3f0;color:#fff;font-weight:700;
}
.sg-history-pager button:disabled{opacity:.4;cursor:default}
.sg-history-pager span{color:#667788;padding:0 2px}

/* 百家乐 · 开奖记录 */
.bacc-history-table{min-width:920px}
.bacc-pt{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:50%;
  color:#fff;font-weight:800;font-size:14px;line-height:1;
}
.bacc-pt.banker{background:#c41e3a;box-shadow:0 0 0 2px rgba(196,30,58,.25)}
.bacc-pt.player{background:#1a73c7;box-shadow:0 0 0 2px rgba(26,115,199,.25)}
.bacc-flag{color:#d0d8e8;font-weight:700;font-variant-numeric:tabular-nums}
.bacc-pill{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:48px;height:24px;padding:0 10px;border-radius:12px;
  font-size:12px;font-weight:800;color:#fff;letter-spacing:.04em;
  background:#556;
}
.bacc-pill.banker{background:#c41e3a}
.bacc-pill.player{background:#1a73c7}
.bacc-pill.tie{background:#0b6e4f}
.bacc-hist-cards{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  white-space:nowrap;min-width:160px;
}
.bacc-hist-side{display:inline-flex;gap:2px}
.bacc-hist-vs{color:#8a9bb0;font-size:11px;font-weight:700;padding:0 2px}

/* 番滩 · 开奖记录 */
.ft-history-table{min-width:0;width:100%}
.ft-history-table th:nth-child(1),
.ft-history-table td:nth-child(1){width:34%}
.ft-history-table th:nth-child(2),
.ft-history-table td:nth-child(2){width:40%}
.ft-history-table th:nth-child(3),
.ft-history-table td:nth-child(3){width:26%}
.ft-hist-latest td{
  background:rgba(232,194,90,.14)!important;
  color:#ffe08a;
}
.ft-hist-latest .sg-hist-expect{color:#ffe08a}
.ft-hist-result{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  white-space:nowrap;
}
.ft-hist-beads{
  display:inline-flex;align-items:center;gap:4px;min-width:56px;justify-content:flex-end;
}
.ft-hist-beads .ft-bead,
.ft-history .ft-bead{
  width:10px;height:10px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,#fff,#d8d8d8 55%,#9a9a9a);
  box-shadow:0 1px 2px rgba(0,0,0,.45);
  display:inline-block;
}
.ft-hist-fan{
  font-style:normal;font-weight:800;font-size:15px;letter-spacing:.04em;
  min-width:2.6em;text-align:left;
}
.ft-hist-fan.fan-1{color:#ff4d4f}
.ft-hist-fan.fan-2{color:#2fd6d6}
.ft-hist-fan.fan-3{color:#ffb020}
.ft-hist-fan.fan-4{color:#3ddc84}
.ft-hist-time{color:#c8d2e0;font-variant-numeric:tabular-nums;white-space:nowrap}

/* 大小骰 · 开奖记录（与其它玩法同系深色台面） */
.sb-history .sb-hist-wrap{
  background:transparent;
  padding:0;
}
.sb-hist-table{
  width:100%;min-width:0;border-collapse:collapse;
  background:transparent;color:#e8dff0;font-size:13px;
}
.sb-hist-table thead th{
  background:#121c2e!important;
  color:#ffe08a!important;
  font-weight:700;
  padding:10px 8px;
  border:0!important;
  border-bottom:1px solid rgba(201,162,39,.4)!important;
  text-align:center;white-space:nowrap;
}
.sb-hist-table tbody td{
  padding:9px 6px;
  border:0!important;
  border-bottom:1px solid rgba(80,100,140,.25)!important;
  text-align:center;vertical-align:middle;
  background:transparent!important;
  color:#e8dff0;
}
.sb-hist-table tbody tr:nth-child(even) td{
  background:rgba(255,255,255,.03)!important;
}
.sb-hist-table tbody tr:hover td{
  background:rgba(232,194,90,.06)!important;
}
.sb-hist-expect{color:#7ec8ff;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.sb-hist-time{color:#b8c4d8;font-variant-numeric:tabular-nums;white-space:nowrap}
.sb-hist-nums{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;
  white-space:nowrap;
}
.sb-hist-dice-row{display:inline-flex;align-items:center;gap:4px}
.sb-hist-dice{
  position:relative;display:inline-block;width:28px;height:28px;
  border:1px solid #bdbdbd;border-radius:4px;background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.35);
}
.sb-hist-dice .dot{
  position:absolute;width:5px;height:5px;border-radius:50%;background:#222;
  transform:translate(-50%,-50%);
}
.sb-hist-dice .dot.red{background:#e11d2e}
.sb-hist-dice .p1{top:22%;left:22%}.sb-hist-dice .p3{top:22%;left:78%}
.sb-hist-dice .p4{top:50%;left:22%}.sb-hist-dice .p5{top:50%;left:50%}.sb-hist-dice .p6{top:50%;left:78%}
.sb-hist-dice .p7{top:78%;left:22%}.sb-hist-dice .p9{top:78%;left:78%}
.sb-hist-eq{color:#8a9bb0;font-weight:700;margin:0 2px}
.sb-hist-sum{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:28px;height:28px;padding:0 6px;border-radius:3px;
  background:#e11d2e;color:#fff;font-weight:800;font-size:14px;
}
.sb-hist-tag{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border:1px solid #6a7a90;border-radius:3px;
  background:#162033;font-weight:800;font-size:14px;
}
.sb-hist-tag.big{color:#ff6b6b;border-color:#c41e3a}
.sb-hist-tag.small{color:#7ec8ff;border-color:#1a73c7}
.sb-hist-tag.odd{color:#ff6b6b;border-color:#c41e3a}
.sb-hist-tag.even{color:#7ec8ff;border-color:#1a73c7}
.sb-hist-tag.triple{color:#ffe08a;border-color:#d4b14a}
.sb-history .sg-hist-empty{color:#8899aa!important;background:transparent!important}

/* 番滩 — 本期开奖结果台面 */
.ft-table{
  margin:0 -4px;padding:12px;border-radius:14px;color:#f6e7c4;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40,70,160,.35), transparent 58%),
    linear-gradient(180deg,#1a1430 0%,#0b0a16 60%,#07060e 100%);
  border:2px solid #c9a227;
  box-shadow:inset 0 0 0 1px rgba(255,210,80,.2), 0 8px 22px rgba(0,0,0,.28);
}
.ft-result-banner{
  display:grid;grid-template-columns:1.15fr 1fr;gap:0;align-items:stretch;
  background:linear-gradient(180deg,#121a3a,#0a1028);
  border:1px solid #d4b14a;border-radius:12px;overflow:hidden;min-height:132px;
}
.ft-left{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:18px 16px 16px;border-right:1px solid rgba(212,177,74,.35);
}
.ft-label{
  position:absolute;top:8px;left:50%;transform:translateX(-50%);
  background:linear-gradient(180deg,#e8c25a,#b8860b);color:#3a1808;
  font-size:12px;font-weight:800;padding:3px 14px;border-radius:4px;white-space:nowrap;
  box-shadow:0 2px 0 rgba(0,0,0,.25);
}
.ft-fan-box{
  margin-top:18px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
}
.ft-ornament{
  width:28px;height:36px;opacity:.9;
  background:
    radial-gradient(circle at 30% 40%, #f3d27a 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, #e8c25a 0 4px, transparent 5px);
}
.ft-ornament.left{
  background:none;
  border-right:18px solid #c9a227;border-top:18px solid transparent;border-bottom:18px solid transparent;
  width:0;height:0;filter:drop-shadow(-4px 0 0 #8a1a1a);
}
.ft-ornament.right{
  background:none;
  border-left:18px solid #c9a227;border-top:18px solid transparent;border-bottom:18px solid transparent;
  width:0;height:0;filter:drop-shadow(4px 0 0 #8a1a1a);
}
.ft-fan-num{
  min-width:168px;padding:10px 28px;text-align:center;
  background:linear-gradient(180deg,#b42323,#6e0d0d);
  border:2px solid #e8c25a;border-radius:8px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px rgba(0,0,0,.35);
  display:flex;align-items:baseline;justify-content:center;gap:6px;
}
.ft-fan-num b{font-size:44px;line-height:1;color:#fff;text-shadow:0 2px 0 #5a0000,0 0 12px rgba(255,200,80,.4)}
.ft-fan-num em{font-style:normal;font-size:28px;font-weight:800;color:#ffe08a}
.ft-right{padding:16px 20px;display:flex;flex-direction:column;justify-content:center;gap:12px}
.ft-detail-title{
  color:#e8c25a;font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px;
}
.ft-detail-title i{
  width:14px;height:14px;border-radius:50%;border:2px solid #e8c25a;display:inline-block;
  box-shadow:inset 0 0 0 3px #0a1028;background:#e8c25a;
}
.ft-detail-body{display:flex;align-items:center;gap:14px}
.ft-beads{display:flex;gap:8px;align-items:center;min-height:28px}
.ft-bead{
  width:22px;height:22px;border-radius:50%;
  background:radial-gradient(circle at 32% 28%, #fff 0 28%, #d9e4f5 45%, #9aa8c4 100%);
  box-shadow:0 2px 4px rgba(0,0,0,.35), inset -2px -2px 4px rgba(40,50,80,.25);
}
.ft-count{font-size:22px;font-weight:800;color:#fff;display:flex;align-items:baseline;gap:4px}
.ft-count b{color:#7ec8ff;font-size:28px}
.ft-count span{font-size:18px;color:#fff}

/* 大小骰 — 对齐赌场风台面 */
.sb-table{
  margin:0 -4px;padding:12px;border-radius:14px;color:#f6e7c4;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180,90,20,.4), transparent 58%),
    linear-gradient(180deg,#3a2010 0%,#140a08 55%,#0b0505 100%);
  border:2px solid #c9a227;
  box-shadow:inset 0 0 0 1px rgba(255,210,80,.25), 0 8px 22px rgba(0,0,0,.28);
}
.sb-result-banner{
  display:grid;grid-template-columns:1fr 1.2fr;gap:0;align-items:stretch;
  background:linear-gradient(180deg,#2a160e,#120a08);
  border:1px solid #d4b14a;border-radius:12px;overflow:hidden;min-height:148px;
}
.sb-left{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:18px 14px 16px;border-right:1px solid rgba(212,177,74,.35);
}
.sb-main{
  margin-top:18px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
}
.sb-result-text{
  min-width:140px;padding:12px 28px;text-align:center;
  background:linear-gradient(180deg,#b45309,#7a3200);
  border:2px solid #e8c25a;border-radius:8px;font-size:40px;font-weight:800;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px rgba(0,0,0,.35);
  text-shadow:0 2px 0 #4a1800,0 0 12px rgba(255,200,80,.35);letter-spacing:.12em;
}
.sb-main.big .sb-result-text{background:linear-gradient(180deg,#c41e3a,#7a0d0d)}
.sb-main.small .sb-result-text{background:linear-gradient(180deg,#1a73c7,#0b3a78)}
.sb-main.triple .sb-result-text{background:linear-gradient(180deg,#0b6e4f,#06402e)}
.sb-right{padding:16px 18px;display:flex;flex-direction:column;justify-content:center;gap:12px}
.sb-dice-wrap{display:flex;gap:12px;justify-content:flex-start;flex-wrap:wrap}
.sb-dice-wrap .dice{width:58px;height:58px}
.sb-dice-wrap .dice .dot{width:9px;height:9px}
.sb-dice-wrap .dice .p1{top:7px;left:7px}.sb-dice-wrap .dice .p2{top:7px;left:24px}.sb-dice-wrap .dice .p3{top:7px;right:7px}
.sb-dice-wrap .dice .p4{top:24px;left:7px}.sb-dice-wrap .dice .p5{top:24px;left:24px}.sb-dice-wrap .dice .p6{top:24px;right:7px}
.sb-dice-wrap .dice .p7{bottom:7px;left:7px}.sb-dice-wrap .dice .p8{bottom:7px;left:24px}.sb-dice-wrap .dice .p9{bottom:7px;right:7px}
.sb-sum{font-size:15px;color:#d8c49a}
.sb-sum b{color:#ffe08a;font-size:24px;margin:0 4px}
.sb-sum span{color:#fff;font-weight:700}
.sb-road-wrap{margin:12px 0 10px}
.sb-road-wrap .h10-road{justify-content:flex-start}

/* ===== 电脑 / 大屏平板：居中限宽 + 横排开奖区 ===== */
@media(min-width:801px){
  :root{--page-pad:18px}
  .brand-logo{object-fit:cover}
  .main-nav a{height:46px;font-size:16px}
  .draw-card{margin:16px var(--page-pad) 0}
  .draw-card-head{
    display:flex;align-items:baseline;justify-content:space-between;gap:12px;
    padding:12px 16px;
  }
  .draw-card-head > span:first-child{font-size:18px}
  .next-time{margin-top:0;font-size:13px;text-align:right}
  .live-board{
    flex-direction:row;align-items:flex-end;justify-content:space-between;
    padding:16px 18px;gap:20px;
  }
  .balls-row{gap:12px}
  .balls{gap:8px}
  .ball{width:46px;height:46px;font-size:22px}
  .ball-wrap{font-size:14px}
  .plus{height:46px;font-size:22px;margin-bottom:1.2em}
  .moni-btn{height:30px;line-height:30px;font-size:13px;padding:0 12px;margin-bottom:1.2em}
  .countdown{width:210px;padding-bottom:4px}
  .countdown b{font-size:30px;letter-spacing:4px}
  .his-wrapper{padding:8px var(--page-pad) 4px}
  .his-subject{
    display:grid;grid-template-columns:140px 190px 1fr;gap:12px;
    padding:10px 14px;color:#667;font-size:13px;font-weight:700;
  }
  .his-item{
    grid-template-columns:140px 190px 1fr;align-items:center;gap:12px;
    margin:0 0 8px;border-radius:6px;padding:12px 14px;
  }
  .mini-balls{flex-wrap:nowrap}
  .mini-ball{width:34px;height:34px;font-size:16px}
  .mini-item .zodiac{width:34px;font-size:12px}
  .mini-balls .plus{height:34px}
  .h10-game{padding:20px 22px 10px}
  .page-panel{padding:18px 20px;min-height:320px}
  .trend-echart{height:460px}
  .footer{padding:18px 20px}
  .bacc-top{
    grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr) minmax(260px,300px);
    gap:12px;
  }
  .bacc-cd-box{padding:12px 14px;gap:12px;overflow:visible}
  .bacc-cd-box > small{font-size:18px;letter-spacing:.14em;gap:12px}
  .cd-digits{gap:8px}
  .cd-digit{width:44px;height:54px;font-size:30px}
  .cd-sep{width:12px;gap:8px}
  .cd-sep::before,.cd-sep::after{width:6px;height:6px}
}

@media(max-width:800px){
  :root{--page-pad:10px}
  body{background:#e9eef5;overflow-x:hidden}
  .site{width:100%;max-width:100%;margin:0;background:#fff;overflow-x:hidden;box-shadow:none}
  .brand-row{height:auto;min-height:0;padding:0;border-radius:0}
  .brand{width:100%;max-width:100%;height:auto;border-radius:0}
  .brand-logo{width:100%;max-width:100%;height:auto;aspect-ratio:1024 / 353;object-fit:contain;border-radius:0}
  .style-switch{right:8px;bottom:7px;font-size:13px;padding:1px 10px;height:22px;line-height:20px;margin:0}
  .main-nav{grid-template-columns:repeat(2,1fr);width:100%;height:auto;border-bottom:3px solid #edd823}
  .main-nav a{height:40px;font-size:15px}
  .hero{margin-top:0;border-left:0;border-right:0;max-width:100%}
  .hero-banner{max-width:100%;object-fit:cover}
  .draw-card{margin:12px var(--page-pad) 0}
  .draw-card-head{display:block;height:auto;padding:11px 12px;line-height:1.6}
  .next-time{display:block;margin-top:2px;font-size:13px}
  .live-board{flex-direction:column;align-items:stretch;padding:13px 10px;gap:13px;min-height:0;max-width:100%}
  .open-left,.balls-row{max-width:100%;min-width:0}
  .issue-line{margin-bottom:12px;gap:8px}
  .balls-row{gap:6px}
  .balls{gap:clamp(2px,1.2vw,4px);flex-wrap:nowrap;max-width:100%}
  .ball{width:clamp(26px,8.2vw,36px);height:clamp(26px,8.2vw,36px);font-size:clamp(13px,4vw,18px)}
  .ball-wrap{font-size:clamp(10px,2.8vw,12px)}
  .plus{font-size:clamp(14px,4vw,18px);height:clamp(26px,8.2vw,36px);margin-bottom:1.15em;padding:0 1px}
  .moni-btn{font-size:11px;height:22px;line-height:22px;margin:0 0 1.15em 0;padding:0 6px}
  .countdown b{font-size:clamp(22px,7vw,27px)}
  .section-title{margin-top:14px;padding:10px 12px}
  .his-wrapper{border:0;background:#f4f6f9;padding:0 var(--page-pad)}
  .his-subject{display:none}
  .his-item{
    display:grid;grid-template-columns:1fr;gap:8px;background:#fff;border:1px solid #d7dce5;
    border-radius:7px;margin:9px 0;padding:12px;min-height:0;
  }
  .his-issue,.his-time,.his-code{width:auto;text-align:left}
  .his-time{color:#666;font-size:13px}
  .mini-balls{justify-content:flex-start;padding:0;flex-wrap:nowrap}
  .mini-ball{width:clamp(24px,7.2vw,30px);height:clamp(24px,7.2vw,30px);font-size:clamp(12px,3.4vw,15px)}
  .mini-item{margin-right:2px}
  .mini-item .zodiac{width:clamp(24px,7.2vw,30px);font-size:clamp(10px,2.6vw,12px)}
  .mini-balls .plus{height:clamp(24px,7.2vw,30px);font-size:16px;margin-right:2px}
  .video-grid,.tools-grid{grid-template-columns:1fr 1fr}
  .page-panel{padding:14px}
  .footer{background:#fff}
  .trend-card{padding:10px 2px 6px}
  .trend-card-head{padding:0 6px}
  .trend-card-head h2{font-size:15px}
  .trend-echart{height:320px}
  .h10-hero{margin-top:0;padding:16px 14px}
  .h10-hero h1{font-size:24px}
  .h10-meta{text-align:left}
  .h10-tab{padding:10px 4px}
  .h10-tab strong{font-size:14px}
  .h10-game{padding:14px 12px 6px}
  .h10-versus{grid-template-columns:1fr; gap:8px}
  .h10-vs{text-align:center}
  .pk-card{width:48px;height:70px}
  .bacc-table{margin:0;padding:8px}
  .bacc-top{grid-template-columns:1fr}
  .bacc-title{grid-column:1 / -1;order:-1}
  .bacc-chip{
    width:100%;min-width:0;
    align-items:center;text-align:center;
    padding:12px 14px;font-size:14px;
  }
  .bacc-chip b{font-size:19px;letter-spacing:.05em}
  .bacc-chip small{font-size:12px;margin-top:5px}
  .bacc-cd-box{padding:16px 14px 14px;gap:12px}
  .bacc-cd-box > small{font-size:20px;letter-spacing:.14em;text-indent:.14em}
  .bacc-cd-box > small::before,
  .bacc-cd-box > small::after{width:18px}
  .bacc-cd{font-size:15px}
  .bacc-cd b{font-size:36px}
  .cd-digits{gap:6px;padding:2px 0 0}
  .cd-digit{width:44px;height:54px;font-size:32px;border-radius:7px}
  .cd-sep{width:12px;gap:8px}
  .cd-sep::before,
  .cd-sep::after{width:6px;height:6px}
  .bacc-body{grid-template-columns:1fr 1fr}
  .bacc-body-no-stats{grid-template-columns:1fr 1fr}
  .bacc-result,.bacc-stats{grid-column:1 / -1}
  .bacc-card{width:58px;height:84px}
  .bacc-title h3{font-size:22px;letter-spacing:.12em}
  .bacc-result strong{font-size:28px}
  .sg-table{margin:0;padding:8px}
  .sg-history{margin:12px 0 0;border-radius:10px}
  .sg-history-head{padding:10px;flex-direction:column;align-items:flex-start}
  .sg-history-head h3{font-size:16px}
  .sg-history-filters{
    width:100%;overflow-x:auto;flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;touch-action:pan-x;overscroll-behavior-x:contain;
  }
  .sg-history-filters button{min-width:48px;height:28px;padding:0 8px;font-size:12px;flex:0 0 auto}
  .sg-history-table-wrap{
    display:block;width:100%;max-width:100%;
    overflow-x:scroll;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x;
    padding-bottom:6px;
    cursor:grab;
  }
  .sg-history-table{min-width:920px;width:max-content}
  .bacc-history-table{min-width:980px}
  .ft-history-table{min-width:0;width:100%}
  .ft-hist-fan{font-size:14px}
  .sg-history-foot #ft-history-count,
  .sg-history-foot #sb-history-count{flex:0 0 auto}
  .sb-hist-table{font-size:12px}
  .sb-hist-dice{width:24px;height:24px}
  .sb-hist-dice .dot{width:4px;height:4px}
  .sb-hist-sum,.sb-hist-tag{width:24px;height:24px;min-width:24px;font-size:12px}
  .sb-hist-nums{gap:4px}
  .bacc-pt{width:26px;height:26px;font-size:13px}
  .bacc-pill{min-width:44px;height:22px;font-size:11px;padding:0 8px}
  .sg-history-foot{
    padding:8px 10px;flex-wrap:nowrap;gap:8px;
  }
  .sg-history-foot #sg-history-count,
  .sg-history-foot #bacc-history-count{flex:0 0 auto}
  .sg-history-pager{
    flex:1 1 auto;min-width:0;justify-content:flex-end;
    overflow-x:auto;flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;touch-action:pan-x;
  }
  .sg-history-pager button,.sg-history-pager span{flex:0 0 auto}
  .sg-mini{width:18px;height:26px}
  .sg-mini b{font-size:9px}
  .sg-mini i{font-size:8px}
  .sg-grid{grid-template-columns:1fr 1fr;gap:8px}
  .sg-seat .bacc-card{width:46px;height:66px}
  .sg-draw-btn{height:42px;font-size:16px}
  .ft-table{margin:0;padding:8px}
  .ft-result-banner{grid-template-columns:1fr}
  .ft-left{border-right:0;border-bottom:1px solid rgba(212,177,74,.35);padding-bottom:20px}
  .ft-fan-num{min-width:140px;padding:8px 20px}
  .ft-fan-num b{font-size:36px}
  .ft-fan-num em{font-size:22px}
  .sb-table{margin:0;padding:8px}
  .sb-result-banner{grid-template-columns:1fr}
  .sb-left{border-right:0;border-bottom:1px solid rgba(212,177,74,.35);padding-bottom:18px}
  .sb-result-text{min-width:120px;font-size:32px;padding:10px 22px}
  .sb-dice-wrap{justify-content:center}
}
@media(max-width:380px){
  .main-nav a{font-size:13px}
  .ball{width:clamp(24px,7.6vw,30px);height:clamp(24px,7.6vw,30px);font-size:clamp(12px,3.6vw,15px)}
  .plus{height:clamp(24px,7.6vw,30px);font-size:14px}
  .mini-ball{width:24px;height:24px;font-size:12px}
  .mini-item .zodiac{width:24px;font-size:10px}
  .mini-balls .plus{height:24px;font-size:14px}
  .moni-btn{font-size:10px;padding:0 5px}
}

@media(max-width:360px){
  .moni-btn{display:none}
}
