﻿:root{
  --bg:#F3F6FB;
  --card:#FFFFFF;
  --text:#2b2f36;
  --sub:#8E97A6;
  --blue:#2F80ED;
  --green:#30C08C;
  --red:#FF4D4F;
  --warning:#FF8A00;
  --line:#E6ECF4;
  --shadow:0 6px 18px rgba(25,55,115,0.08);
}
*{box-sizing:border-box}
html{
  min-height:100%;
  background:#eaf0f8 url('../image/bg_login.a7fb8724.png') center center / cover fixed no-repeat;
}
body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:rgba(243,246,251,.78);
  -webkit-tap-highlight-color: transparent;
  padding-bottom:10px;
  padding-top: 130px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

body.auth-locked{
  overflow:hidden;
}

body.auth-locked .topbar,
body.auth-locked .tab-content,
body.auth-locked .bottom-bar,
body.auth-locked .float-top,
body.auth-locked .period-bet-modal,
body.auth-locked .customer-service-btn{
  visibility:hidden;
  pointer-events:none;
}

.screen-toast{
  position:fixed;
  left:50%;
  top:50%;
  z-index:20000;
  transform:translate(-50%,-50%) scale(.98);
  width:min(86vw,420px);
  min-height:38px;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:14px;
  line-height:1.35;
  text-align:center;
  box-shadow:0 10px 26px rgba(15,23,42,.24);
  opacity:0;
  pointer-events:none;
  white-space:normal;
  transition:opacity .18s ease,transform .18s ease;
}

.screen-toast.show{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

.auth-gate{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,23,42,.18) url('../image/bg_login.a7fb8724.png') center center / cover fixed no-repeat;
}

.auth-gate.hidden{
  display:none;
}

.auth-gate-card{
  width:100%;
  max-width:360px;
  padding:24px;
  border-radius:10px;
  background:rgba(43, 47, 54, 0.71);
  box-shadow:0 16px 36px rgba(15,23,42,.16);
  border:1px solid rgba(230,236,244,.9);
}

.auth-gate-title{
  margin-bottom:18px;
  font-size:22px;
  line-height:1.3;
  font-weight:700;
  text-align:center;
  color:#dddddd;
}

.auth-gate-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.auth-gate-register-field.hidden{
  display:none;
}

.auth-gate-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  color:#dddddd;
}

.auth-gate-field input{
  width:100%;
  height:42px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 12px;
  font-size:15px;
  outline:none;
  background:#f9fbff;
  color:var(--text);
}

.auth-gate-field input:focus{
  border-color:var(--blue);
  background:#fff;
}

.auth-gate-code-row{
  display:grid;
  grid-template-columns:1fr 120px;
  gap:10px;
  align-items:center;
}

.auth-gate-code-row img{
  display:block;
  width:120px;
  height:42px;
  object-fit:contain;
  object-position:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}

#loginCodeImage,
#codeImage{
  display:block;
  width:120px !important;
  height:42px !important;
  object-fit:contain;
  object-position:center;
  vertical-align:middle;
}

.auth-gate-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:4px;
}

.auth-gate-submit,
.auth-gate-secondary {
    height: 44px;
    border: 0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.auth-gate-submit {
    background: #feca57e6;
    color: #494848;
}

.auth-gate-secondary {
    background: rgba(255,255,255,.92);
    color: #334155;
    border: 1px solid rgba(255,255,255,.65);
}

.auth-gate-submit:disabled,
.auth-gate-secondary:disabled{
  opacity:.65;
  cursor:not-allowed;
}

body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(47,128,237,.08),rgba(48,192,140,.05) 45%,rgba(255,255,255,0));
  z-index:-1;
}
.safe-bottom{height: env(safe-area-inset-bottom, 0)}

/* 顶部栏 */
.topbar{
  position:fixed;top:0;left:0;right:0;z-index:999;
  overflow:visible;
  background:#16213b url('../image/bg_pop_top.ee9cd08e.png') center / cover no-repeat;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  display:flex;
  flex-direction: column;
  box-shadow:var(--shadow);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.topbar::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:rgba(15,23,42,.42);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

.topbar > *{
  position:relative;
  z-index:1;
}

.topbar-header {
  display: grid;
  grid-template-columns: minmax(74px, 3fr) minmax(0, 7fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  overflow: visible;
}
.icon-btn{
  width:32px;
  height:32px;
  padding: 8px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#58627a;
  background:#EEF3FB
}
.title{
  font-weight:600;
  color:#fff;
  white-space:nowrap;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.balance{margin-left:auto;display:flex;align-items:center;gap:8px}
.auth{
  display:grid;
  grid-template-columns:minmax(0, 3fr) minmax(112px, 2fr);
  align-items:center;
  gap:6px;
  min-width:0;
  justify-content:stretch;
  position:relative;
  overflow:visible;
}
.auth .badge{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  color:#fff;
  font-size:14px;
  font-weight:700;
  line-height:1;
  padding:0;
  background:transparent;
  border:none;
  white-space:nowrap;
  overflow:hidden;
}
.auth .badge #money{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.auth-actions{
  display:grid;
  align-items:center;
  justify-content:stretch;
  gap:4px;
  max-width:100%;
}
.auth-actions-cols-2{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.auth-actions-cols-3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
.auth-actions .btn-primary{
  width:100%;
  min-width:0;
  padding:3px 2px;
  font-size:11px;
  min-height:27px;
}
.user-settings-panel{
  position:fixed;
  top:52px;
  right:max(8px, calc((100vw - 480px) / 2 + 8px));
  z-index:30000;
  width:min(280px, calc(100vw - 24px));
  max-height:calc(100vh - 64px);
  overflow:auto;
  padding:10px;
  border:1px solid #dbe3ef;
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.18);
  display:grid;
  gap:8px;
}
.settings-profile{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  padding:10px;
  border:1px solid #edf2f7;
  border-radius:8px;
  background:#f8fafc;
}
.settings-profile div{
  min-width:0;
}
.settings-profile span{
  display:block;
  margin-bottom:4px;
  color:#64748b;
  font-size:12px;
}
.settings-profile strong{
  display:block;
  color:#111827;
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.settings-action{
  width:100%;
  min-height:34px;
  border:1px solid #e6ecf4;
  border-radius:6px;
  background:#f8fafc;
  color:#1f2937;
  font-size:13px;
  font-weight:700;
}
.settings-invite{
  display:grid;
  gap:8px;
  padding-top:8px;
  border-top:1px solid #edf2f7;
}
.settings-invite div{
  display:grid;
  gap:4px;
}
.settings-invite span{
  font-size:12px;
  color:#64748b;
}
.settings-invite strong{
  color:#1f2937;
}
.settings-invite input{
  width:100%;
  height:34px;
  border:1px solid #dbe3ef;
  border-radius:6px;
  padding:0 8px;
  color:#1f2937;
  background:#fff;
}
.rmb-icon{
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-2px);
}
.btn-primary{padding:4px 6px;border-radius:5px;background:#e9a819;color:#fff;border:none;flex:0 0 auto;font-size:13px;line-height:1.15}

.transfer-user-card{
  padding:12px;
  border-radius:10px;
  background:#f6f8fc;
  border:1px solid #e6ecf4;
  margin-bottom:12px;
}
.transfer-card-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}
.transfer-mini-btn{
  border:none;
  border-radius:999px;
  padding:6px 12px;
  background:#2f80ed;
  color:#fff;
  font-size:12px;
  line-height:1;
  cursor:pointer;
}
.transfer-mini-btn:active{
  transform:translateY(1px);
}
.transfer-user-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  line-height:1.5;
  margin:4px 0;
}
.transfer-label{color:#64748b;flex:0 0 auto}
.transfer-value{color:#111827;font-weight:600;word-break:break-all;text-align:right}
.transfer-value.muted{color:#94a3b8;font-weight:500}
.transfer-value.success{color:#16a34a}
.transfer-value.error{color:#dc2626}

/* 顶部 tabs - 设计图样式（胶囊分段） */
.tabs{margin:12px}
.tabs-segment{display:flex;align-items:center;gap:8px;padding:6px;background:rgba(255,255,255,.12);border-radius:12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.tab{flex:1 1 0;display:flex;align-items:center;justify-content:center;height:40px;
  border-radius:10px;color:#dddddd;font-weight:600;cursor:pointer;user-select:none;transition:all .2s ease;background:transparent;border:none}

.tab.active {
    background: #2b2f36;
    color: #fff;
    box-shadow: 0 6px 14px #eaeef5;
}
.sticky-tabs {
  background: rgba(15,23,42,.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 12px;
  border-top: 1px solid var(--line);
}

.bet-top-status{
  display:none;
}

.sticky-tabs .tabs-segment {
  margin: 0;
  box-shadow: none;
}

body.bet-tab-active .tabs-segment .play-tab-entry{
  display:none;
}

body.bet-tab-active .sticky-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
}

body.bet-tab-active .bet-top-status{
  display:flex;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
}

body.bet-tab-active .tabs-segment .tab[data-tab="bet"]{
  display:none;
}

body.bet-tab-active .sticky-tabs .tabs-segment{
  flex:0 0 auto;
  gap:6px;
  padding:0;
  background:transparent;
  border-radius:0;
}

body.bet-tab-active .sticky-tabs .tabs-segment .tab{
  flex:0 0 auto;
  height:32px;
  padding:0 8px;
  border-radius:8px;
  font-size:12px;
  white-space:nowrap;
}

/* 猜名次 tabs */
.tabs-rank{display:flex;align-items:center;gap:4px;padding:4px;background:#EEF3FB;border-radius:10px;overflow-x:auto;white-space:nowrap}
.tabs-rank .tab{flex:0 0 auto;height:36px;padding:0 12px;border-radius:8px;font-size:13px}
.tabs-rank .tab.active{background:var(--blue);color:#fff;box-shadow:0 4px 10px rgba(47,128,237,.35)}

/* 面板基类 */
.panel{
  background:rgba(255,255,255,0.27);
  border-radius:10px;
  margin:12px;
  margin-top: 5px;
  box-shadow: 0 4px 12px rgba(25,55,115,0.08);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
}

.video-side-actions{
  position:absolute;
  left:10px;
  top:52px;
  z-index:6;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  pointer-events:auto;
}
.video-container{
  border-radius:10px !important;
  box-shadow:0 10px 24px rgba(15,23,42,.14);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.video-container video{
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.video-freeze-frame{
  position:absolute;
  inset:0;
  z-index:1;
  display:none;
  width:100%;
  height:100%;
  pointer-events:none;
}

.video-freeze-frame.active{
  display:block;
}

.video-closed-overlay{
  position:absolute;
  inset:0;
  z-index:8;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.92);
  color:#f8fafc;
  font-size:24px;
  font-weight:700;
  letter-spacing:0;
  pointer-events:none;
}

.video-closed-overlay.hidden{
  display:none;
}

.video-switch-buffer{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.video-switch-buffer.active{
  opacity:1;
  visibility:visible;
}

video[data-locked-video="1"]{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}

.video-play-overlay{
  position:absolute;
  inset:0;
  z-index:5;
  border:0;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:15px;
  font-weight:600;
  letter-spacing:0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.video-play-overlay.hidden{
  display:none;
}

.video-loading-overlay{
  position:absolute;
  inset:0;
  z-index:4;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:13px;
  letter-spacing:0;
  pointer-events:none;
}

.video-loading-overlay.hidden{
  display:none;
}

.video-loading-spinner{
  width:30px;
  height:30px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,.28);
  border-top-color:#fff;
  animation:videoSpin .8s linear infinite;
}

@keyframes videoSpin{
  to{transform:rotate(360deg)}
}

.countdown-wrap{
  background:linear-gradient(135deg,#0f172a,#1f3b67);
  color:#fff;
}

body.bet-tab-active .bet-top-status .countdown-wrap{
  width:100%;
  min-width:0;
  padding:0;
  gap:14px;
  background:transparent;
}

body.bet-tab-active .bet-top-status .periods{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
}

body.bet-tab-active .bet-top-status .periods .row{
  gap:0;
}

body.bet-tab-active .bet-top-status .periods .row.meta{
  font-size:12px;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
}

body.bet-tab-active .bet-top-status .countdown{
  font-size:20px;
  line-height:24px;
  color:#7dd3fc;
}

body.bet-tab-active .bet-top-status .right-area{
  min-width:0;
  gap:8px;
}

#betTab .video-panel-main{
  margin:0 12px 12px;
  margin-top:-20px;
  border-top:0;
}

#betTab .plate{
  margin:4px 12px;
}

#betTab .section-label{
  padding:4px 0;
  font-size:13px;
  line-height:18px;
}

#betTab .quick-grid,
#betTab .quick-grid2{
  gap:4px;
  padding:4px 6px 6px;
}

#betTab .tiger-grid{
  grid-template-columns:repeat(3,1fr);
  padding-top:0;
}

#betTab .quick-btn{
  min-height:34px;
  padding:4px 3px;
  font-size:12px;
  line-height:1.1;
}

#betTab .quick-btn small{
  margin-top:1px;
  font-size:10px;
  line-height:1;
}

#betTab .nums{
  gap:1px;
  padding:0 4px 4px;
}

#betTab .num{
  padding:2px 2px;
  gap:0;
}

#betTab .num .circle{
  width:28px;
  height:28px;
  font-size:12px;
}

#betTab .selected-amount{
  min-height:10px;
  font-size:10px;
  line-height:10px;
}

#betTab .odd{
  font-size:9px;
  line-height:10px;
}

#betTab .mini-nav-space{
  height:128px;
}

body.bet-tab-active .bet-top-status .period-label{
  font-size:12px;
  color:rgba(255,255,255,.84);
}

body.bet-tab-active .bet-top-status .balls{
  min-width:0;
  padding:0;
  gap:3px;
  border-radius:0;
  flex-wrap:nowrap;
  background:transparent;
  border:0;
  box-shadow:none;
}

body.bet-tab-active .bet-top-status .ball{
  width:24px;
  height:24px;
  min-width:24px;
  min-height:24px;
  flex:0 0 24px;
  font-size:12px;
}

.countdown-wrap .periods .row.meta,
.countdown-wrap .period-label{
  color:rgba(255,255,255,.78);
}

.countdown-wrap .countdown{
  color:#7dd3fc;
  letter-spacing:0;
}

.countdown-wrap .balls{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.2);
  box-shadow:none;
}

.close-warning{
  display:none;
  margin-top:4px;
  font-size:12px;
  line-height:1.3;
  color:#f59e0b;
  font-weight:600;
}

/* 倒计时区 */
.countdown-wrap{display:flex;align-items:center;gap:12px;padding:12px}
.periods{flex:1}
.periods .row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.periods .row.meta{font-size:12px;color:var(--sub)}
.periods .row.tight{align-items:flex-end;gap:14px}
.countdown{font-size:28px;font-weight:700;color:var(--blue);}
.right-area{display:flex;align-items:center;gap:10px}
.period-label{font-size:13px;color:var(--blue);font-weight:600;white-space:nowrap}
.balls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);padding:12px 18px;border-radius:16px;box-shadow:0 4px 15px rgba(47,128,237,0.1), inset 0 1px 0 rgba(255,255,255,0.8);min-width:60px;justify-content:center;border:1px solid rgba(47,128,237,0.08)}
.ball{
  width:38px;
  height:38px;
  min-width:38px;
  min-height:38px;
  flex:0 0 38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:700;
  color:#333;
  position:relative;
  box-shadow:0 3px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4)
}
.ball.red{background:url('../image/red.png') center/contain no-repeat;color:#c33434}
.ball.small{background:#3EA8EE;color:#fff}
.ball.big{background:#FDA426;color:#fff}
.ball.blue{background:url('../image/blue.png') center/contain no-repeat;color:#2f6fe3}
.ball.green{background:url('../image/green.png') center/contain no-repeat;color:#039910}
.ball.color{background:linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,0.3)}
.countdown-wrap .balls .ball.empty{
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  flex:0 0 34px;
  aspect-ratio:1;
  box-sizing:border-box;
  padding:0;
  background:#fff;
  border:2px solid #444445;
  color:#444445;
  text-shadow:none;
  font-size:13px;
  line-height:1;
  box-shadow:0 2px 6px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.55);
}
.divider{width:12px;height:2px;background:#c7d2e3;border-radius:1px;margin:0 2px}

/* 快捷玩法（大小单双等，在号码盘下方） */
.quick-panel{padding:4px 10px 8px}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:10px 12px}
.quick-grid2{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 12px}
.quick-btn{border:1px solid var(--line)}
#quickGrid3,
#quickGrid5{
  grid-template-columns:repeat(4,1fr);
  gap:6px;
}
#quickGrid3 .quick-btn,
#quickGrid5 .quick-btn{
  padding:7px 3px;
  font-size:12px;
  line-height:1.15;
  min-width:0;
}
#quickGrid3 .quick-btn small,
#quickGrid5 .quick-btn small{
  font-size:10px;
  line-height:1.1;
  margin-top:1px;
}

/* 常用玩法折叠 */
.section-title{display:flex;align-items:center;justify-content:space-between;padding:12px 12px;border-top:1px solid var(--line)}
.section-label {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    font-weight: 700;
    color: #dddddd;
    width: 100%;
    text-align: center;
    background: transparent;
    padding: 10px 0;
    margin-bottom: 0px;
}

.section-label::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:#16213b url('../image/bg_pop_top.ee9cd08e.png') center / cover no-repeat;
    box-shadow:inset 0 0 0 999px rgba(15,23,42,.42);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
}
.chev{transition:transform .2s ease}
.chev.open{transform:rotate(180deg)}
.chips{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:12px}
.chip{padding:10px 8px;border-radius:12px;text-align:center;border:1px solid var(--line);color:#4b5568;background:#fff;font-weight:600}
.chip,.quick-btn,.num,.btn,.select,.custom-select{border-radius:8px}
.chip small{display:block;color:#444445;font-weight:600;margin-top:2px}
.chip.active{border-color:var(--blue);background:#EFF6FF;color:var(--blue)}
#betTab .chip[data-filter="small"],
#betTab .chip[data-filter="small_odd"],
#betTab .chip[data-filter="small_even"],
#betTab .chip[data-filter="s1_6"],
#betTab .chip[data-filter="s7_12"],
#betTab .chip[data-filter="s1_8"],
#betTab .chip[data-filter="s1_3"],
#betTab .chip[data-filter="s4_6"],
#betTab .chip[data-filter="s7_9"],
#betTab .chip[data-filter="s10_12"]{
  color:#3EA8EE;
  border-color:rgba(62,168,238,.45);
}
#betTab .chip[data-filter="small"].active,
#betTab .chip[data-filter="small_odd"].active,
#betTab .chip[data-filter="small_even"].active,
#betTab .chip[data-filter="s1_6"].active,
#betTab .chip[data-filter="s7_12"].active,
#betTab .chip[data-filter="s1_8"].active,
#betTab .chip[data-filter="s1_3"].active,
#betTab .chip[data-filter="s4_6"].active,
#betTab .chip[data-filter="s7_9"].active,
#betTab .chip[data-filter="s10_12"].active{
  color:#3EA8EE;
  border-color:#3EA8EE;
  background:rgba(62,168,238,.12);
}
#betTab .chip[data-filter="big"],
#betTab .chip[data-filter="big_odd"],
#betTab .chip[data-filter="big_even"],
#betTab .chip[data-filter="s13_18"],
#betTab .chip[data-filter="s19_24"],
#betTab .chip[data-filter="s17_24"],
#betTab .chip[data-filter="s13_15"],
#betTab .chip[data-filter="s16_18"],
#betTab .chip[data-filter="s19_21"],
#betTab .chip[data-filter="s22_24"]{
  color:#FDA426;
  border-color:rgba(253,164,38,.5);
}
#betTab .chip[data-filter="big"].active,
#betTab .chip[data-filter="big_odd"].active,
#betTab .chip[data-filter="big_even"].active,
#betTab .chip[data-filter="s13_18"].active,
#betTab .chip[data-filter="s19_24"].active,
#betTab .chip[data-filter="s17_24"].active,
#betTab .chip[data-filter="s13_15"].active,
#betTab .chip[data-filter="s16_18"].active,
#betTab .chip[data-filter="s19_21"].active,
#betTab .chip[data-filter="s22_24"].active{
  color:#FDA426;
  border-color:#FDA426;
  background:rgba(253,164,38,.14);
}
.chip.red{color:var(--red)}
.chip.blue{color:var(--blue)}
.chip.green{color:var(--green)}
.chip.color{background:linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);color:#fff;border:none;text-shadow:0 1px 2px rgba(0,0,0,0.3)}
.chip.color small{color:#444445;text-shadow:none}

/* 其他玩法区域 */
.other-games{display:flex;flex-direction:column;gap:16px;padding:12px}
.game-item{border:1px solid var(--line);border-radius:12px;padding:12px}
.game-title{font-weight:600;margin-bottom:10px;color:var(--text)}

/* 链接与工具类 */
.link-sub{font-size:12px;color:var(--sub);text-decoration:none}
.minw-50{min-width:50px}
.h-6{height:6px}
.collapsible{display:block}

/* 数字选号盘 */
.plate{padding:0px;overflow:hidden}
.nums{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;}
.special-num-row{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:2px;
}
.num{
  border:none;
  background:none;  /*rgba(255,255,255,0.72);*/
  /*border:1px solid var(--line);*/
  border-radius:12px;
  padding:4px 3px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
}
.num .circle{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;position:relative;font-size:13px}
.num .circle .order-mark{position:absolute;top:-2px;right:-2px;background:var(--blue);color:white;border-radius:50%;width:16px;height:16px;font-size:10px;display:flex;align-items:center;justify-content:center}
.num.red .circle{background:url('../image/red.png') center/contain no-repeat;color:#c33434;text-shadow:none}
.num.small .circle{background:#3EA8EE;color:#fff;text-shadow:none}
.num.big .circle{background:#FDA426;color:#fff;text-shadow:none}
.num.blue .circle{background:url('../image/blue.png') center/contain no-repeat;color:#2f6fe3;text-shadow:none}
.num.green .circle{background:url('../image/green.png') center/contain no-repeat;color:#039910;text-shadow:none}
.num.color .circle{background:linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);color:#444445;text-shadow:none}
.num.empty .circle{background:#fff;border:2px solid #444445;color:#444445;text-shadow:none}
.selected-amount{display:block;min-height:12px;font-size:11px;line-height:12px;font-weight:700;color:#e60012;margin-top:0}
.odd{font-size:10px;color:#444445;font-weight:600;line-height:12px;order:1}
.num .selected-amount{order:2}
.chip .selected-amount{order:2}
/* 选中态切换不同颜色图片 */
.num.selected.red .circle{background:url('../image/red.png') center/contain no-repeat;color:#c33434}
.num.selected.small .circle{background:#3EA8EE;color:#fff}
.num.selected.big .circle{background:#FDA426;color:#fff}
.num.selected.blue .circle{background:url('../image/blue.png') center/contain no-repeat;color:#2f6fe3}
.num.selected.green .circle{background:url('../image/green.png') center/contain no-repeat;color:#039910}
.num.selected.color .circle{background:linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);color:#444445;text-shadow:none;box-shadow:0 0 10px rgba(255,107,107,0.5)}
.num.selected.empty .circle{background:#fff;border:2px solid #111827;color:#111827;box-shadow:0 0 10px rgba(17,24,39,0.24)}
.num.selected{
  border-color:var(--blue);
  background:#f2f7ff;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(47,128,237,0.2);
}
.num{
  transition: all 0.2s ease;
}
.num:hover{
  transform: scale(1.02);
  background: #f8f9fb;
}

/* 底部操作条 */
.bottom-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:900;background:var(--card);box-shadow:0 -8px 18px rgba(25,55,115,0.08);
  border-top:1px solid var(--line);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.bottom-bar{
  overflow:visible;
  background:#16213b url('../image/bg_pop_top.ee9cd08e.png') center / cover no-repeat;
}

.bottom-bar::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:rgba(15,23,42,.42);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

.bottom-bar > *{
  position:relative;
  z-index:1;
}

.bottom-bar .controls{
  background:transparent;
  position:relative;
  z-index:30;
  overflow:visible;
}

.support-fab,
.video-action-btn{
  position:relative;
  z-index:20;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(22, 33, 59, .90);
  color:#fff;
  font-size:12px;
  font-weight:700;
  box-shadow:0 8px 18px rgba(15,118,110,.30);
  cursor:pointer;
}

.video-action-btn{
  background:rgba(37,99,235,.92);
  box-shadow:0 8px 18px rgba(37,99,235,.28);
}

.video-sound-btn{
  width:42px;
  height:42px;
  padding:10px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.45);
  box-shadow:0 8px 18px rgba(15,23,42,.18);
  cursor:pointer;
}
.support-fab.has-unread{
  animation:supportPulse 1s ease-in-out infinite;
}
.support-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  border:2px solid #fff;
  font-size:12px;
  line-height:16px;
  font-weight:700;
  box-shadow:0 6px 14px rgba(239,68,68,.34);
  pointer-events:none;
}
.support-badge[hidden]{
  display:none;
}
.support-notice{
  position:fixed;
  left:50%;
  bottom:258px;
  z-index:2301;
  width:min(360px,calc(100vw - 28px));
  transform:translate(-50%,14px);
  opacity:0;
  pointer-events:none;
  background:#111827;
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
  border-left:4px solid #22c55e;
  border-radius:10px;
  padding:11px 14px;
  font-size:14px;
  line-height:1.35;
  font-weight:700;
  box-shadow:0 16px 36px rgba(15,23,42,.24);
  transition:opacity .18s ease,transform .18s ease;
}
.support-notice.show{
  opacity:1;
  transform:translate(-50%,0);
  pointer-events:auto;
}
@keyframes supportPulse{
  0%,100%{box-shadow:0 10px 24px rgba(15,118,110,.35);transform:translateY(0)}
  50%{box-shadow:0 12px 30px rgba(239,68,68,.42);transform:translateY(-2px)}
}

.support-panel{
  position:fixed;
  left:50%;
  top:50%;
  right:auto;
  bottom:auto;
  transform:translate(-50%,-50%);
  width:min(390px,calc(100vw - 28px));
  height:min(560px,calc(100vh - 96px));
  max-height:calc(100vh - 96px);
  z-index:2400;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 24px 70px rgba(15,23,42,.35);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.support-panel::before{
  content:'';
  position:fixed;
  inset:-100vh -100vw;
  background:rgba(15,23,42,.34);
  z-index:-1;
}

.support-panel.hidden{display:none}
.support-header{height:48px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;background:#0f172a;color:#fff}
.support-header button{border:0;background:transparent;color:#fff;font-size:24px}
.support-body{flex:1;min-height:0;overflow:auto;background:#f8fafc;padding:12px}
.support-message{margin-bottom:10px;display:flex}
.support-message.service{justify-content:flex-start}
.support-message.user{justify-content:flex-end}
.support-bubble{max-width:78%;padding:9px 11px;border-radius:8px;background:#fff;border:1px solid var(--line);font-size:14px;line-height:1.45;word-break:break-word}
.support-message.user .support-bubble{background:#2563eb;color:#fff;border-color:#2563eb}
.support-input-row{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}
.support-input-row input{flex:1;border:1px solid var(--line);border-radius:8px;padding:0 10px;height:38px}
.support-input-row button{border:0;border-radius:8px;background:#2563eb;color:#fff;padding:0 14px}

@media (max-width: 520px){
  .video-side-actions{left:8px;top:50px;gap:7px}
  .support-fab,.video-action-btn,.video-sound-btn{width:36px;height:36px}
  .support-fab,.video-action-btn{font-size:11px}
  .video-sound-btn{padding:8px}
  .support-panel{width:calc(100vw - 24px);height:min(520px,calc(100vh - 82px));max-height:calc(100vh - 82px)}
  .support-notice{bottom:238px}
}
.summary{font-size:12px;color:#6b7280;padding:0 4px 6px}
.controls{display:flex;flex-direction:column;gap:8px;padding:8px 10px calc(10px + env(safe-area-inset-bottom,0))}
.controls-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.select,.input{height:36px;border:1px solid var(--line);border-radius:10px;padding:0 8px;background:#fff;z-index:100;position:relative}

.bottom-bar .stepper,
.bottom-bar #quick5,
.bottom-bar #quick10,
.bottom-bar #quick20{
  display:none !important;
}

.bottom-bar .summary{
  flex:1;
  min-width:0;
  min-height:36px;
  display:flex;
  align-items:center;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fafc;
  color:#475569;
  font-size:13px;
  font-weight:600;
  overflow:hidden;
  white-space:nowrap;
}

.bottom-bar .round-score{
  flex:1 1 auto;
  min-width:0;
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fafc;
  color:#475569;
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  text-align:center;
  overflow:hidden;
  white-space:nowrap;
}

.bottom-bar .round-score.win{
  color:#16a34a;
  background:#f0fdf4;
  border-color:#bbf7d0;
}

.bottom-bar .round-score.lose{
  color:#dc2626;
  background:#fff1f2;
  border-color:#fecdd3;
}

.bottom-bar .chat-open-btn{
  flex:0 0 74px;
  min-width:74px;
}

.round-result-effect{
  position:fixed;
  left:50%;
  top:42%;
  z-index:21000;
  width:min(330px,calc(100vw - 52px));
  padding:16px 18px;
  border-radius:16px;
  text-align:center;
  color:#fff;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-50%) scale(.82);
  transition:opacity .2s ease, transform .2s ease;
  box-shadow:0 16px 40px rgba(15,23,42,.26);
}

.round-result-effect.show{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
  animation:round-result-pop 900ms ease both;
}

.round-result-effect.win{
  background:linear-gradient(135deg,#22c55e,#16a34a);
}

.round-result-effect.lose{
  background:linear-gradient(135deg,#64748b,#334155);
}

.round-result-title{
  font-size:26px;
  line-height:1.1;
  font-weight:900;
}

.round-result-items{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.round-result-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.18);
  font-size:13px;
  font-weight:700;
}

.round-result-item span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.round-result-item b{
  flex:0 0 auto;
  font-size:14px;
}

.round-result-empty{
  margin-top:12px;
  font-size:13px;
  font-weight:700;
  opacity:.92;
}

.round-result-total{
  margin-top:10px;
  font-size:15px;
  font-weight:900;
}

.round-result-score{
  margin-top:4px;
  font-size:15px;
  font-weight:800;
}

@keyframes round-result-pop{
  0%{transform:translate(-50%,-50%) scale(.72)}
  45%{transform:translate(-50%,-50%) scale(1.1)}
  100%{transform:translate(-50%,-50%) scale(1)}
}

.btn.cancel-bet{
  flex:0 0 24%;
  min-width:62px;
  color:#ef4444;
  border-color:#fecaca;
  background:#fff5f5;
  font-weight:700;
}

.bottom-bar .btn.buy{
  flex:0 0 34%;
  min-width:96px;
  padding-left:2px;
  padding-right:2px;
}

@media (max-width: 380px){
  .controls{gap:6px;padding-left:6px;padding-right:6px}
  .controls-row{gap:6px}
  .custom-select{width:78px;flex-basis:78px}
  .bottom-bar .chat-open-btn{flex-basis:66px;min-width:66px;font-size:12px}
  .bottom-bar .summary{font-size:12px;padding:0 7px}
  .bottom-bar .round-score{font-size:13px;padding:0 4px}
  .btn.cancel-bet{flex-basis:22%;min-width:56px}
  .bottom-bar .btn.buy{flex-basis:32%;min-width:86px;font-size:14px;letter-spacing:0}
}

/* 自定义金额选择器 */
.custom-select{position:relative;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;z-index:950;width:96px;flex:0 0 96px}
.custom-select-value{height:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;position:relative}
.custom-select-value::after{content:'▼';font-size:10px;margin-left:8px}
.custom-select-options{position:absolute;bottom:calc(100% + 6px);left:0;width:100%;background:#fff;border:1px solid var(--line);border-radius:10px;max-height:240px;overflow-y:auto;box-shadow:0 -8px 22px rgba(0,0,0,0.22);z-index:951}
.custom-select-option{padding:8px 12px;cursor:pointer;transition:background-color 0.2s}
.custom-select-option:hover{background-color:#f3f6fb}
.custom-select-option.selected{background-color:#eef3fb;color:var(--blue)}
.custom-select-options.hidden{display:none}
.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.stepper button{width:32px;height:36px;border:none;background:#f3f6fb}
.stepper input{width:46px;height:36px;border:none;text-align:center}
.spacer{flex:1}
.btn{
  height: 44px;
  border: none;
  border-radius: 5px;
  padding: 2px 4px;
  flex: 1;
}
.btn.cart{background:#fff;border:1px solid var(--line)}
.btn.add{background:#2F80ED;color:#fff}
.btn.danger{background:#FF4D4F;color:#fff}
.btn.buy{
  background: linear-gradient(90deg,#2F80ED,#30C08C);
  color:#fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(47,128,237,0.35);
  transition: all 0.3s ease;
}
.btn.buy:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47,128,237,0.45);
}
.btn.buy:disabled,
.btn.buy.disabled{
  background: #c6ccd6;
  color: #f5f7fa;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
}
.btn.buy:disabled:hover,
.btn.buy.disabled:hover{
  transform: none;
  box-shadow: none;
}

/* 浮动返回顶部 */
.float-top{position:fixed;left:12px;bottom:164px;width:36px;height:36px;border-radius:18px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}

/* 联系客服按钮 */
.float-top.customer-service{width:120px;height:80px;bottom:38%;font-size:12px;text-align:center;color:var(--text);background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);color:white;border:none;box-shadow:0 6px 18px rgba(102, 126, 234, 0.4);cursor:pointer;display:flex;align-items:center;transition:all 0.3s ease;right:12px}

.float-top.customer-service .arrow{position:absolute;left:10px;font-size:16px;font-weight:bold;transition:all 0.3s ease}

.float-top.customer-service .content{margin-left:25px}

.float-top.customer-service.collapsed{width:50px}

.float-top.customer-service.collapsed .content{display:none}

.float-top.customer-service.collapsed .arrow{transform:rotate(180deg)}

.float-top.customer-service.dragging{cursor:grabbing;z-index:9999}

/* 底部导航示例（可选） */
.mini-nav{position:fixed;left:0;right:0;bottom:0;background:var(--card);display:flex;justify-content:space-around;padding:8px 0;border-top:1px solid var(--line)}
.mini-nav .item{display:flex;flex-direction:column;align-items:center;font-size:10px;color:#7b8698}
.mini-nav .item .dot{width:22px;height:22px;border-radius:11px;background:#eef3fb;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.mini-nav .item.active{color:var(--blue)}
.mini-nav-space{height:200px}
#betTab .mini-nav-space{height:128px}

/* 登录模态框 */
.hidden{display:none}
.modal.hidden{display:none}
.modal{position:fixed;left:0;right:0;top:0;bottom:0;z-index:25000}
.modal2{position:fixed;left:0;right:0;top:0;bottom:0;z-index:993}
.modal-backdrop{position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,.45)}
.modal-content{position:relative;z-index:1;width:min(92vw,360px);margin:12vh auto 0;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:14px}
#pointTransferModal .modal-content{
  margin:6vh auto 0;
  max-height:88vh;
  overflow-y:auto;
}
.modal-close-btn{position:absolute;top:12px;right:12px;width:28px;height:28px;border:none;background:transparent;padding:0;cursor:pointer;z-index:10;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:background-color 0.2s ease}
.modal-content.modal-fullscreen .modal-close-btn{
    top: 40px;
    right: 40px;
    width: 28px;
    height: 28px;
}

.modal-close-btn:hover{background-color:rgba(0,0,0,0.1)}
.modal-close-btn img{width:100%;height:100%;object-fit:contain}
.modal-content.modal-fullscreen{width:100% !important;height:100% !important;margin:0 !important;border-radius:0 !important;overflow-y:auto !important;max-width:none !important;padding:20px;background:#f5f7fa}
.modal-content.modal-fullscreen h3{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    font-size:24px;
    font-weight:700;
    margin-bottom:24px;
    color:#dddddd;
    text-align:center;
    padding:20px 0;
    background:transparent;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(15,23,42,.22);
}
.modal-content.modal-fullscreen h3::before{
    content:"";
    position:absolute;
    inset:-10px;
    z-index:-2;
    background:#16213b url("../image/bg_pop_top.ee9cd08e.png") center / cover no-repeat;
    filter:blur(8px);
    transform:scale(1.04);
}
.modal-content.modal-fullscreen h3::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:rgba(15,23,42,.42);
    -webkit-backdrop-filter:blur(4px);
    backdrop-filter:blur(4px);
}
.modal-content.modal-fullscreen .modal-body{gap:16px;max-width:800px;margin:0 auto}
.modal-content h3{margin:0 0 12px 0;font-size:16px}
.modal-body{display:flex;flex-direction:column;gap:10px}
.input-group{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#6b7280}
.input-group input{height:38px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font-size:14px;background:#fff}
.modal-actions{display:flex;gap:10px;margin-top:12px}

/* 响应式小优化 */
@media (min-width:430px){
  .nums{grid-template-columns:repeat(7,1fr)}
}

/* 开奖历史样式 */
.history-list{
  padding:12px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
.history-item{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  background:rgba(255,255,255,0.95);
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.15);
  transition:all 0.3s ease;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.history-item:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
.history-period{
  font-weight:700;
  font-size:13px;
  color:#667eea;
  text-align:center;
  background:linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
  padding:6px 10px;
  border-radius:6px;
}
.history-balls{
  display:flex;
  justify-content:center;
  gap:4px;
}
.history-time{
  font-size:10px;
  color:#718096;
  text-align:center;
}
.history-date{font-size:10px;color:#718096}
.history-time-detail{font-size:10px;color:#718096}

/* 注单样式 */
.filter-bar{
  padding:16px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.27);
}
.filter-bar .select{
  background: #fff;
  border: 2px solid #e8ecf1;
  color: #2b2f36;
  padding: 0px 16px;
  border-radius:10px;
  font-size:14px;
  font-weight:500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-bar .select:hover{
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102,126,234,0.15);
}
.filter-bar .select option{
  background: #fff;
  color: #2b2f36;
}
.bet-list{padding:16px}
.bet-item{
  padding:20px;
  border: 2px solid #e8ecf1;
  border-radius:16px;margin-bottom:12px;
  background: rgba(255,255,255,.27);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.bet-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: #667eea;
}
.bet-header{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:14px
}
.bet-period{
  font-weight:700;font-size:16px;
  color: #2b2f36;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding:8px 16px;
  border-radius:10px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102,126,234,0.25);
}
.bet-status{
  padding:6px 14px;border-radius:8px;font-size:13px;font-weight:600
}
.status-0{
  background: linear-gradient(135deg, #fff7e6 0%, #ffe8cc 100%);
  color: #d46b08;
  border: 1px solid #ffd591;
  box-shadow: 0 2px 8px rgba(250,140,22,0.15);
}
.status-1{
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
  color: #389e0d;
  border: 1px solid #b7eb8f;
  box-shadow: 0 2px 8px rgba(82,196,26,0.15);
}
.status-2{
  background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
  color: #cf1322;
  border: 1px solid #ffa39e;
  box-shadow: 0 2px 8px rgba(245,34,45,0.15);
}
.bet-content{margin-bottom:14px}
.bet-nums{
  font-size:15px;color:#2b2f36;
  margin-bottom:8px;
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  padding:14px;
  border-radius:12px;
  border: 1px solid #e8ecf1;
  font-weight:500;
  line-height:1.6;
}
.bet-info{
  display:flex;gap:16px;font-size:14px;
  color:#5a6c7d;
  flex-wrap:wrap
}
.bet-result{
  font-size:14px;color:#667eea;
  margin-top:8px;
  font-weight:600;
  background: linear-gradient(135deg, #f0f5ff 0%, #e6f4ff 100%);
  padding:12px;
  border-radius:10px;
  border: 1px solid #adc6ff;
  box-shadow: 0 2px 8px rgba(102,126,234,0.1);
}
.bet-win{
  font-size:15px;color:#fa8c16;
  margin-top:8px;
  font-weight:700;
  background: linear-gradient(135deg, #fff7e6 0%, #ffe8cc 100%);
  padding:12px;
  border-radius:10px;
  border: 2px solid #ffd591;
  box-shadow: 0 4px 12px rgba(250,140,22,0.2);
  text-shadow: none;
}
.bet-time{
  font-size:12px;color:#8e97a6;
  text-align:right;
  margin-top:8px
}

.bet-cancel-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4f 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.2);
}

.bet-cancel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 77, 79, 0.3);
  background: linear-gradient(135deg, #ff5252 0%, #ff3d3f 100%);
}

.bet-cancel-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.2);
}

/* 走势图样式 */
.trend-stats{padding:12px;border-bottom:1px solid var(--line)}
.stats-section{margin-bottom:16px}
.stats-section h4{
  margin:0 0 8px 0;font-size:13px;
  color:var(--text);font-weight:600
}
.stat-balls{display:flex;gap:8px;flex-wrap:wrap}
.stat-ball{
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:600;color:#333
}
.stat-ball.red{background:url('../image/red.png') center/contain no-repeat;color:#c33434}
.stat-ball.small{background:#3EA8EE;color:#fff}
.stat-ball.big{background:#FDA426;color:#fff}
.stat-ball.blue{background:url('../image/blue.png') center/contain no-repeat;color:#2f6fe3}
.stat-ball.green{background:url('../image/green.png') center/contain no-repeat;color:#039910}
.stat-row{
  display:flex;justify-content:space-between;
  padding:4px 0;font-size:12px
}
.stat-label{color:var(--card)}
.stat-value{font-weight:600;color:var(--text)}
.stat-value.red{color:var(--red)}
.stat-value.blue{color:var(--blue)}
.stat-value.green{color:var(--green)}

.trend-list{padding:12px;max-height:400px;overflow-y:auto}
.trend-item{
  display:flex;align-items:center;gap:12px;
  padding:10px;border-bottom:1px solid var(--line)
}
.trend-period{
  font-weight:600;font-size:13px;
  min-width:70px;color:var(--text)
}
.trend-balls{display:flex;gap:4px;flex:1}

/* 分页样式 */
.pagination{padding:12px;display:flex;justify-content:center}
.pagination-controls{display:flex;align-items:center;gap:12px}
.page-btn{
  padding:8px 18px;border:1px solid #e8ecf1;
  border-radius:10px;
  background: #fff;
  color:#2b2f36;
  cursor:pointer;font-size:13px;
  font-weight:600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.page-btn:hover{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.15);
  border-color: #667eea;
}
.page-info{font-size:13px;color:#5a6c7d;font-weight:600}

/* 通用样式 */
.loading{text-align:center;padding:40px 0;color:var(--sub);font-size:13px}
.empty:not(.num):not(.ball):not(.history-ball){text-align:center;padding:40px 0;color:var(--sub);font-size:13px}
.error{text-align:center;padding:40px 0;color:var(--red);font-size:13px}
.login-tip{text-align:center;padding:40px 0;color:var(--warning);font-size:13px}

/* 玩法介绍样式 */
.play-intro{
  padding:16px;
  background: none;/*linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);*/
  min-height: 80vh;
  position: relative;
  z-index: 1;
}
.play-intro h3{
  font-size:20px;
  font-weight:700;
  color:#2b2f36;
  margin-bottom:20px;
  text-align:center;
  padding:16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius:14px;
  box-shadow: 0 6px 20px rgba(102,126,234,0.25);
  color: #fff;
}
.play-section{
  margin-bottom:16px;
  position: relative;
  z-index: 1;
}
.play-card{
  background: rgba(255,255,255,0.27);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8ecf1;
}
.play-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102,126,234,0.15);
}
.play-card-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.play-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.play-icon img{
  width:28px;
  height:28px;
  object-fit:contain;
}
.play-intro h4{
  font-size:17px;
  font-weight:700;
  color:#2b2f36;
  margin:0;
}
.play-desc{
  font-size:13px;
  color:#718096;
  margin-bottom:14px;
  padding:12px;
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  border-radius:10px;
  border-left:4px solid #667eea;
}
.play-items{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.play-item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
  border-radius:10px;
  border:1px solid #e8ecf1;
  transition: all 0.3s ease;
}
.play-item:hover{
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
  border-color: #667eea;
  transform: translateX(4px);
}
.play-label{
  font-size:14px;
  font-weight:700;
  color:#667eea;
  display:flex;
  align-items:center;
  gap:6px;
}
.play-label-icon{
  width:18px;
  height:18px;
  object-fit:contain;
}
.play-value{
  font-size:13px;
  color:#5a6c7d;
  line-height:1.6;
}
/* 隐藏横向滚动条 */
.tabs-rank {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Chrome, Safari and Opera */
.tabs-rank::-webkit-scrollbar {
  display: none;
}

/* 管理模态框样式 */
.manage-tabs {
  display: flex;
  gap: 12px;
  padding: 4px;
  background: #f0f4f8;
  border-radius: 12px;
}

.manage-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #64748b;
  position: relative;
}

.manage-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.manage-tab.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.manage-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.manage-tab-content {
  display: none;
}

.manage-tab-content.active {
  display: block;
}

.manage-tab-content.hidden {
  display: none;
}

/* Tab 内容区域 */
.tab-content {
  display: block;
}
.tab-content.hidden {
  display: none !important;
}

.manage-header {
  margin-bottom: 15px;
}

.manage-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.subordinates-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 4px;
}

.subordinates-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.subordinates-toolbar input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.subordinates-toolbar input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.subordinates-toolbar .btn {
  flex: 0 0 auto;
}

.balance-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.balance-section-header h4 {
  margin: 0;
}

.commission-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: 16px;
}

@media (max-width: 768px) {
  .commission-list {
    padding: 12px;
    border-radius: 12px;
    max-height: calc(100vh - 180px);
  }
}

.commission-item {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .commission-item {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .commission-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  
  .commission-name {
    font-size: 14px;
  }
  
  .commission-id {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .commission-settle-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

.commission-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #30C08C 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.commission-item:hover::before {
  opacity: 1;
}

.commission-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.commission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f2f5;
  position: relative;
}

.commission-name {
  font-weight: 700;
  font-size: 16px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.commission-self-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
  .commission-self-tag {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 4px;
  }
}

.commission-id {
  font-size: 11px;
  color: #6c757d;
  background: linear-gradient(135deg, #e8ecf1 0%, #d9e2ec 100%);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.commission-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .commission-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }
  
  .commission-stat {
    padding: 10px;
  }
  
  .commission-value {
    font-size: 16px;
  }
  
  .commission-label {
    font-size: 11px;
  }
}

.commission-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.commission-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.commission-label {
  font-size: 12px;
  color: #8b949e;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.commission-value {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

.commission-value.text-warning {
  color: #f59f00;
  text-shadow: 0 0 10px rgba(245, 159, 0, 0.2);
}

.commission-value.text-success {
  color: #30C08C;
  text-shadow: 0 0 10px rgba(48, 192, 140, 0.2);
}

.commission-settle-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #30C08C 0%, #28a745 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(48, 192, 140, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.commission-settle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(48, 192, 140, 0.4);
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.commission-settle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(48, 192, 140, 0.3);
}

.commission-settle-btn.disabled {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  color: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
}

.commission-settle-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.commission-settle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(48, 192, 140, 0.3);
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.commission-settle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(48, 192, 140, 0.2);
}

.commission-settle-btn.disabled {
  background: #e8ecf1;
  color: var(--sub);
  cursor: not-allowed;
  box-shadow: none;
}

.commission-settle-btn.disabled:hover {
  transform: none;
  background: #e8ecf1;
}

.subordinate-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    /* padding: 16px; */
    /* background: white; */
    border-radius: 12px;
    /* margin-bottom: 12px; */
    cursor: pointer;
    transition: all 0.3s ease;
    /* border: 1px solid #e8ecf1; */
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);*/
}

.subordinate-item:hover {
  background: #f8fafc;
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subordinate-info {
  flex: 1;
  min-width: 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.subordinate-name {
  font-weight: 700;
  color: var(--card);
  margin-bottom: 6px;
  font-size: 15px;
}

.subordinate-account {
  font-size: 16px;
  color: var(--card);
  margin-bottom: 12px;
}

.subordinate-balance {
  font-weight: 700;
  color: var(--blue);
  font-size: 16px;
  white-space: nowrap;
  padding-left: 12px;
  border-left: 2px solid #e8ecf1;
}

.subordinate-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding-left: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8ecf1;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  align-items: center;
}

.stat-label {
  color: var(--card);
  font-weight: 500;
}

.stat-value {
  font-weight: 600;
  color: var(--card);
}

.profit-positive {
  color: #10b981;
  font-weight: 700;
}

.profit-negative {
  color: #ef4444;
  font-weight: 700;
}

.add-subordinate-form {
  padding: 16px 0;
}

.add-subordinate-form .input-group {
  margin-bottom: 16px;
}

.add-subordinate-form .input-group span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.add-subordinate-form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

.add-subordinate-form select {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23818ea3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

.add-subordinate-form select option {
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
  background: #fff !important;
}

.add-subordinate-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.add-subordinate-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.transfer-section .input-group {
  margin-bottom: 16px;
}

.transfer-section .input-group span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.transfer-section input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.transfer-section input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.transfer-section button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.transfer-section button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-subordinate-form button {
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.add-subordinate-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.subordinate-info .info-row {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.subordinate-info .info-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subordinate-info .info-value {
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subordinate-info .info-value.text-warning {
  color: #FFD700;
}

.subordinate-info .info-value.text-success {
  color: #30C08C;
}

.subordinate-info .info-row-group {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.subordinate-info .info-row-group:last-child {
  margin-bottom: 0;
}

.manage-actions {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.manage-actions h4 {
  margin: 0 0 15px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-buttons button {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.action-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons button.active {
  background: linear-gradient(90deg, #2F80ED, #30C08C);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
}

.transfer-section,
.bets-section,
.profit-section {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.transfer-section.hidden,
.bets-section.hidden,
.profit-section.hidden {
  display: none;
}

.transfer-section h4,
.bets-section h4,
.profit-section h4 {
  margin: 0 0 15px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8ecf1;
}

.bets-list {
  max-height: 300px;
  overflow-y: auto;
}

.bet-item {
  padding: 14px;
  background: rgba(255,255,255,.27);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.bet-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bet-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--sub);
  font-weight: 500;
}

.bet-item-content {
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}

.bet-item-result {
  font-weight: 600;
}

.bet-item-result.win {
  color: var(--green);
}

.bet-item-result.lose {
  color: var(--red);
}

.profit-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profit-item {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.profit-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profit-label {
  color: var(--sub);
  font-size: 14px;
  font-weight: 500;
}

.profit-value {
  font-weight: 700;
  font-size: 18px;
}

.profit-value.positive {
  color: var(--green);
}

.profit-value.negative {
  color: var(--red);
}

.balance-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 4px;
  background: #f0f4f8;
  border-radius: 12px;
}

.balance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.balance-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
}

.balance-summary span {
  color: #64748b;
  font-size: 12px;
}

.balance-summary strong {
  color: #1f2937;
  font-size: 16px;
}

.balance-tab {
  flex: 1;
  padding: 12px 6px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #64748b;
}

.balance-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.balance-tab.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.balance-list {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  padding: 4px;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.balance-item-left {
  flex: 1;
}

.balance-item-right {
  text-align: right;
}

.balance-type {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.balance-type.recharge {
  color: #10b981;
}

.balance-type.withdraw {
  color: #ef4444;
}

.balance-type.bet {
  color: #f59e0b;
}

.balance-type.win {
  color: #10b981;
}

.balance-type.commission {
  color: #8b5cf6;
}

.balance-type.transfer {
  color: #6366f1;
}

.balance-time {
  font-size: 13px;
  color: #64748b;
}

.balance-amount {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.balance-amount.recharge {
  color: #10b981;
}

.balance-amount.withdraw {
  color: #ef4444;
}

.balance-amount.bet {
  color: #f59e0b;
}

.balance-amount.win {
  color: #10b981;
}

.balance-amount.commission {
  color: #8b5cf6;
}

.balance-amount.transfer {
  color: #6366f1;
}

.balance-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.balance-status.completed {
  background: #d1fae5;
  color: #065f46;
}

.balance-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.balance-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-btn {
  padding: 8px 16px;
  border: none;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #2563eb;
}

.page-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* 玩法介绍美化 */
.play-intro {
  padding: 24px 20px;
  background: none;/*linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);*/
  min-height: 80vh;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.play-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: none;/*linear-gradient(90deg, #667eea 0%, #764ba2 50%, #2F80ED 100%);*/
}
.play-intro h3 {
  margin: 0 0 24px 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}
.play-intro h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}
/*
.play-section {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
*/
.play-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #667eea;
}
.play-section h4 {
  margin: 0 0 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.play-section h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 2px;
}
.play-section p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}
.play-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.play-section li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  border-radius: 10px;
  border-left: 3px solid #667eea;
  color: #2d3748;
  font-size: 14px;
  transition: all 0.2s ease;
}
.play-section li:hover {
  background: linear-gradient(135deg, #f0f5ff 0%, #e6f4ff 100%);
  border-left-color: #2F80ED;
  transform: translateX(4px);
}
.play-section li strong {
  color: #667eea;
  font-weight: 600;
}
.play-item {
  padding: 16px;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #ffd591;
}
.play-item:last-child {
  margin-bottom: 0;
}
.play-item h5 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #d46b08;
  display: flex;
  align-items: center;
  gap: 8px;
}
.play-item p {
  margin: 0;
  font-size: 14px;
  color: #874d00;
  line-height: 1.6;
}

/* 开奖历史美化 - 添加背景色 */
/*
#historyTab .panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
}
*/
.history-item {
  background: rgba(255, 255, 255, 0.95) !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 投注记录弹窗美化 */
.period-bet-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.period-bet-modal.show {
  display: flex;
}
.period-bet-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}
.period-bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.period-bet-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.period-bet-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.period-bet-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.period-bet-list {
  padding: 16px;
  max-height: calc(70vh - 70px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.period-bet-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.period-bet-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.period-bet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e6ecf4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  overflow: hidden;
}
.period-bet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.period-bet-nickname {
  font-size: 11px;
  color: #4a5568;
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.period-bet-info {
  font-size: 11px;
  color: #718096;
}
.period-bet-amount {
  color: #e53e3e;
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
}

/* History tab: hot/cold/current/past balls */
#historyTab .history-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#historyTab .history-section {
  background: rgba(255,255,255,0.27);/*linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);*/
  border: 1px solid rgba(102, 126, 234, 0.14);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

#historyTab .history-section-title {
  font-weight: 700;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 8px;
}

#historyTab .history-grid,
#historyTab .history-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

#historyTab .history-stat-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

#historyTab .history-past-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#historyTab .history-period-card {
  display: block;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

#historyTab .history-period-card:first-child {
  border-top: 0;
}

#historyTab .history-ball {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#historyTab .history-ball.red {
  background: url('../image/red.png') center / contain no-repeat;
  color: #c33434;
}

#historyTab .history-ball.small {
  background: #3EA8EE;
  color: #fff;
}

#historyTab .history-ball.big {
  background: #FDA426;
  color: #fff;
}

#historyTab .history-ball.blue {
  background: url('../image/blue.png') center / contain no-repeat;
  color: #2f80ed;
}

#historyTab .history-ball.green {
  background: url('../image/green.png') center / contain no-repeat;
  color: #039910;
}

#historyTab .history-ball.color {
  background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#historyTab .history-ball.empty {
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 0;
  background: #fff;
  border: 2px solid #444445;
  color: #444445;
}

#historyTab .history-count {
  font-size: 10px;
  color: #64748b;
  line-height: 1;
}

@media (max-width: 360px) {
  #historyTab .history-list {
    padding: 8px;
  }

  #historyTab .history-section {
    padding: 8px;
  }

  #historyTab .history-grid,
  #historyTab .history-row {
    gap: 4px;
  }

  #historyTab .history-ball {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  #historyTab .history-period-card {
    padding: 6px 0;
  }
}

