: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,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:var(--bg);
  -webkit-tap-highlight-color: transparent;
  padding-bottom:120px; /* 给固定底栏预留更多空间，避免遮挡底部玩法 */
  padding-top: 120px; /* 给固定的header和tabs预留空间 */
}
.safe-bottom{height: env(safe-area-inset-bottom, 0)}

/* 顶部栏 */
.topbar{
  position:fixed;top:0;left:0;right:0;z-index:999;
  background:var(--card);
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  box-shadow:var(--shadow);
}
.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}
.balance{margin-left:auto;display:flex;align-items:center;gap:8px}
.auth{margin-left:auto;display:flex;align-items:center;gap:0px}
.badge{
  font-size: 16px;
  line-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 8px;
  background: #EEF3FB;
  color: #4c5a77;
}
.rmb-icon{
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-2px);
}
.btn-primary{padding:8px 10px;border-radius:10px;background:var(--green);color:#fff;border:none}

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

.sticky-tabs {
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  z-index: 995;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 12px;
}

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

/* 猜名次 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:var(--card);border-radius:14px;margin:12px;margin-top: 20px;box-shadow:var(--shadow)}

/* 倒计时区 */
.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);}
.balls{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ball{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#333;position:relative}
.ball.red{background:url('../image/red.png') center/contain no-repeat;color:#c33434}
.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}
.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:12px}
.quick-grid2{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px}
.quick-btn{border:1px solid var(--line)}

/* 常用玩法折叠 */
.section-title{display:flex;align-items:center;justify-content:space-between;padding:12px 12px;border-top:1px solid var(--line)}
.section-label{font-weight:700}
.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 small{display:block;color:#8e97a6;font-weight:500;margin-top:2px}
.chip.active{border-color:var(--blue);background:#EFF6FF;color:var(--blue)}
.chip.red{color:var(--red)}
.chip.blue{color:var(--blue)}
.chip.green{color:var(--green)}

/* 其他玩法区域 */
.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:8px;overflow:hidden}
.nums{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;}
.num{
  border:none;
  background:#fff;
  /*border:1px solid var(--line);*/
  border-radius:12px;
  padding:8px 6px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.num .circle{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;position:relative}
.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/red2.png') center/contain no-repeat;color:#d6a9a9}
.num.blue .circle{background:url('../image/blue2.png') center/contain no-repeat;color:#bac7e2}
.num.green .circle{background:url('../image/green2.png') center/contain no-repeat;color:#a3c6a1}
.odd{font-size:11px;color:#9aa4b2}
/* 选中态切换不同颜色图片 */
.num.selected.red .circle{background:url('../image/red.png') center/contain no-repeat;color:#c33434}
.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{border-color:var(--blue);background:#f2f7ff}

/* 底部操作条 */
.bottom-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--card);box-shadow:0 -8px 18px rgba(25,55,115,0.08);
  padding:8px 10px calc(10px + env(safe-area-inset-bottom,0));
  border-top:1px solid var(--line);
}
.summary{font-size:12px;color:#6b7280;padding:0 4px 6px}
.controls{display:flex;flex-direction:column;gap:8px}
.controls-row{display:flex;align-items:center;gap:8px}
.select,.input{height:36px;border:1px solid var(--line);border-radius:10px;padding:0 8px;background:#fff;z-index:100;position:relative}

/* 自定义金额选择器 */
.custom-select{position:relative;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;z-index:100;width:120px}
.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:100%;left:0;width:100%;background:#fff;border:1px solid var(--line);border-radius:10px;max-height:200px;overflow-y:auto;box-shadow:0 -2px 10px rgba(0,0,0,0.1);z-index:101}
.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}

/* 浮动返回顶部 */
.float-top{position:fixed;right:12px;bottom:114px;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)}

/* 底部导航示例（可选） */
.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:58px}

/* 登录模态框 */
.hidden{display:none}
.modal.hidden{display:none}
.modal{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}
.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:38vh auto 0;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:14px}
.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{font-size:24px;font-weight:700;margin-bottom:24px;color:var(--text);text-align:center;padding:20px 0;background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);color:white;border-radius:12px;box-shadow:0 4px 15px rgba(102, 126, 234, 0.3)}
.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(8,1fr)}
}

/* 开奖历史样式 */
.history-list{padding:12px}
.history-item{
  display:flex;align-items:center;gap:12px;
  padding:16px;border-bottom:1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius:12px;margin-bottom:10px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.history-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
}
.history-period{
  font-weight:700;font-size:15px;
  min-width:90px;color:#fff;
  background: linear-gradient(135deg, rgba(102,126,234,0.3) 0%, rgba(118,75,162,0.3) 100%);
  padding:8px 12px;
  border-radius:8px;
  text-align:center;
}
.history-balls{display:flex;gap:6px;flex:1}
.history-time{
  font-size:11px;color:rgba(255,255,255,0.7);
  white-space:nowrap;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px
}
.history-date{font-size:11px;color:rgba(255,255,255,0.7)}
.history-time-detail{font-size:11px;color:rgba(255,255,255,0.7)}

/* 注单样式 */
.filter-bar{
  padding:16px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
}
.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: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  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
}

/* 走势图样式 */
.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.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{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:20px;
  background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
  min-height: 80vh;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.play-intro::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
  pointer-events: none;
}
.play-intro h3{
  font-size:24px;
  font-weight:700;
  color:#2b2f36;
  margin-bottom:30px;
  text-align:center;
  padding:20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius:16px;
  box-shadow: 0 8px 24px rgba(102,126,234,0.2);
  text-shadow: none;
  border: none;
  position: relative;
  z-index: 1;
  color: #fff;
}
.play-intro h3::before{
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px auto;
  background: url('../image/game.png') center/contain no-repeat;
}
.play-intro h4{
  font-size:18px;
  font-weight:700;
  color:#2b2f36;
  margin-top:30px;
  margin-bottom:20px;
  border-left:6px solid #667eea;
  padding-left:20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  padding-top:12px;
  padding-bottom:12px;
  padding-right:15px;
  border-radius:0 12px 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.play-intro h4:hover{
  transform: translateX(8px);
  box-shadow: 0 6px 16px rgba(102,126,234,0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
}
.play-intro h5{
  font-size:16px;
  font-weight:600;
  color:#2b2f36;
  margin-top:15px;
  margin-bottom:10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding:10px 16px;
  border-radius:10px;
  box-shadow: 0 3px 8px rgba(102,126,234,0.15);
  display: inline-block;
  border: none;
  color: #fff;
}
.play-intro p{
  font-size:14px;
  color:#5a6c7d;
  line-height:1.8;
  margin-bottom:15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  padding:15px;
  border-radius:10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e8ecf1;
}
.play-intro ul{
  list-style-type:none;
  padding-left:0;
  margin-bottom:20px;
}
.play-intro li{
  font-size:14px;
  color:#5a6c7d;
  line-height:1.8;
  margin-bottom:12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  padding:14px 18px 14px 50px;
  border-radius:10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid #e8ecf1;
}
.play-intro li:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px rgba(102,126,234,0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
  border-color: #667eea;
}
.play-intro li::before{
  content: '';
  position: absolute;
  left:18px;
  top:12px;
  width: 24px;
  height: 24px;
  background: url('../image/jb.png') center/contain no-repeat;
}
.play-intro li strong{
  color:#667eea;
  font-weight:700;
  text-shadow: none;
}
.play-section{
  margin-bottom:30px;
  padding-bottom:25px;
  border-bottom:2px solid #e8ecf1;
  position: relative;
  z-index: 1;
}
.play-section:last-child{
  border-bottom:none;
}
.play-item{
  margin-left:0;
  margin-bottom:18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius:14px;
  padding:22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #e8ecf1;
  position: relative;
  overflow: hidden;
}
.play-item::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
  border-radius: 14px 14px 0 0;
}
.play-item:hover{
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(102,126,234,0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
  border-color: #667eea;
}
.play-item h5{
  margin-top:0;
  color:#FFFFFF;
  text-shadow: none;
}
.play-item p{
  margin-bottom:0;
  background: transparent;
  box-shadow: none;
  padding:0;
  border: none;
}
/* 隐藏横向滚动条 */
.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;
}

.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;
}

.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;
}

.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-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: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  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-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;
}