/* ============ 基础重置 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "WH-WebFont", Verdana, Arial, sans-serif;
  color: #fff;
  background: #060a2a;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ============ 真实品牌色板（深色，默认）============ */
:root {
  --navy:        #060a2a;  /* 页面主底，header */
  --navy-deep:   #000c24;  /* 更深，footer / 侧栏 */
  --navy-darker: #010317;  /* 最深 */
  --navy-card:   #0e1a44;  /* 卡片底 */
  --navy-card-2: #122050;  /* 卡片悬浮 */
  --navy-line:   #2e4068;  /* 边线 / 分隔 */
  --navy-hover:  #183060;  /* 悬浮蓝 */
  --yellow:      #faff05;  /* 主强调色（亮黄绿） */
  --yellow-soft: #f1f600;  /* 悬浮 */
  --gold:        #fce1a4;  /* 装饰金 */
  --gold-dim:    #bca979;  /* 金色文字 */
  --text:        #ffffff;
  --text-mute:   #9ba9c1;  /* 副文字 */
  --text-soft:   #7383a6;  /* 更弱文字 */
  --text-soft-2: #96a3c4;
  --line:        rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.15);
  --shadow:      0 2px 10px rgba(0,0,0,.35);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.55);
  --red:         #ff4757;
  --green:       #00d97e;
  --header-h:    60px;
}


/* ============ 顶部条 ============ */
.top-bar {
  background: var(--navy-darker);
  color: var(--text-soft-2);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.top-bar .wrap {
  max-width: 1280px; margin: 0 auto; padding: 6px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { margin-left: 16px; color: var(--text-soft-2); }
.top-bar a:hover { color: var(--yellow); }
.top-bar .switch-group {
  display: inline-flex; gap: 0; margin-left: 12px;
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  vertical-align: middle;
}
.top-bar .switch-group button {
  background: transparent; color: var(--text-soft-2); font-size: 11px;
  padding: 3px 10px; font-weight: 700; line-height: 1.4;
  transition: background .15s, color .15s;
}
.top-bar .switch-group button.active {
  background: var(--yellow); color: var(--navy);
}
.top-bar .switch-group button:hover:not(.active) {
  background: rgba(255,255,255,.06); color: #fff;
}

/* ============ Header ============ */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 12px rgba(0,0,0,.4);
  height: var(--header-h);
  display: flex; align-items: center;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 28px; width: auto; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 0; }
.main-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 4px;
  font-weight: 700; font-size: 13px; color: #fff;
  text-transform: uppercase; letter-spacing: .5px;
  transition: color .15s, background .15s;
  position: relative;
}
.main-nav a:hover { color: var(--yellow); }
.main-nav a.active { color: var(--yellow); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -8px;
  height: 2px; background: var(--yellow);
}
.main-nav a .badge {
  background: var(--red); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 3px;
  margin-left: 6px; font-weight: 800; vertical-align: middle;
  letter-spacing: 1px;
}

.auth-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 4px; font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: .5px;
  transition: transform .1s, background .15s, color .15s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn-ghost {
  color: #fff; border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-soft); }
.btn-secondary { background: var(--navy-line); color: #fff; }
.btn-secondary:hover { background: var(--navy-hover); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 22px; font-size: 14px; }
.btn-sm { padding: 6px 10px; font-size: 11px; }

.menu-toggle { display: none; color: #fff; font-size: 22px; padding: 6px 10px; }

/* ============ Hero 轮播（参照真实 BannerUK.css）============ */
.hero-carousel {
  background: var(--navy); max-width: 1920px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.hero-track {
  position: relative; width: 100%;
  aspect-ratio: 1920 / 667;
  max-height: 667px;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  display: grid; place-items: center;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide .slide-inner {
  max-width: 1280px; width: 100%; padding: 0 60px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  height: 100%;
}
.hero-slide h1 {
  font-size: 56px; line-height: 1.05; margin-bottom: 14px; font-weight: 900;
  letter-spacing: -.5px; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  max-width: 620px;
}
.hero-slide h1 .accent { color: var(--yellow); }
.hero-slide p {
  font-size: 18px; color: #fff; margin-bottom: 24px; max-width: 540px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-slide .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 24px;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent; cursor: pointer; padding: 0;
  transition: background .15s;
}
.hero-dots .dot.active { background: var(--gold); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff;
  display: grid; place-items: center; font-size: 22px; z-index: 4;
  transition: background .15s; opacity: 0;
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0,0,0,.6); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ============ 区块容器 ============ */
.section { max-width: 1280px; margin: 0 auto; padding: 44px 20px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: 22px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px;
  color: #fff;
}
.section-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 18px;
  background: var(--yellow); margin-right: 10px; vertical-align: -3px;
}
.section-head p { color: var(--text-mute); font-size: 13px; margin-top: 4px; }
.section-link { color: var(--yellow); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px;
}
.section-link:hover { color: #fff; }

/* ============ 游戏 / 类目入口卡片 ============ */
/* 参照真实 verticals.css 的金色按钮 + 大图卡片风格 */
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.cat-card {
  background: var(--navy-card); border-radius: 8px; padding: 0;
  text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,.6);
  outline: 1px solid var(--navy-line);
  transition: transform .2s, outline-color .15s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); outline-color: var(--gold); }
.cat-card .ico {
  height: 110px;
  display: grid; place-items: center; font-size: 52px; color: #fff;
  background: linear-gradient(135deg, #060a2a 0%, #122050 100%);
  position: relative; overflow: hidden;
}
.cat-card .ico::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(180px 120px at 50% 60%, rgba(252,225,164,.15), transparent 70%);
  pointer-events: none;
}
.cat-card .ico span { position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.cat-card.sports .ico { background: linear-gradient(135deg, #00321e 0%, #006d3a 50%, #003a1f 100%); }
.cat-card.casino .ico { background: linear-gradient(135deg, #2a0050 0%, #6d28d9 50%, #1f0040 100%); }
.cat-card.vegas  .ico { background: linear-gradient(135deg, #5a0815 0%, #b30c3a 50%, #3d0610 100%); }
.cat-card.live   .ico { background: linear-gradient(135deg, #4d2200 0%, #ad6b00 50%, #2a1300 100%); }
.cat-card.bingo  .ico { background: linear-gradient(135deg, #002e3a 0%, #006e8c 50%, #001e26 100%); }
.cat-card.poker  .ico { background: linear-gradient(135deg, #0a0a1a 0%, #2a2a4a 50%, #050510 100%); }
.cat-card .name {
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  color: #fff; padding: 14px 12px 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.cat-card .desc { font-size: 11px; color: var(--text-mute); padding: 0 12px 12px; }
.cat-card .play-btn {
  margin: 0 14px 14px;
  display: block; padding: 8px 0;
  color: var(--gold); border: 1px solid var(--gold-dim);
  border-radius: 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  transition: background .15s, color .15s;
}
.cat-card:hover .play-btn { background: var(--gold-dim); color: var(--navy-hover); }
.cat-card .tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--yellow); color: var(--navy);
  font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 800;
  z-index: 2; letter-spacing: .5px;
}

/* ============ 推荐 / 通用卡片 ============ */
.promo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.promo-card {
  background: var(--navy-card); border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .15s, border-color .15s;
}
.promo-card:hover { transform: translateY(-3px); border-color: var(--yellow); }
.promo-card .img {
  height: 160px;
  background-color: #060a2a; background-size: cover; background-position: center;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.promo-card .img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,42,0) 50%, rgba(6,10,42,.7) 100%);
  pointer-events: none;
}
.promo-card .img .badge-emoji {
  position: relative; z-index: 1;
  font-size: 44px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.promo-card .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.promo-card .body h3 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.promo-card .body p { color: var(--text-mute); font-size: 12.5px; flex: 1; line-height: 1.5; }
.promo-card .body .meta {
  margin-top: 12px; display: flex; justify-content: space-between; align-items: center;
}
.promo-card .body .meta .tag {
  background: rgba(250,255,5,.12); color: var(--yellow); font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 3px; letter-spacing: .5px; text-transform: uppercase;
  border: 1px solid rgba(250,255,5,.25);
}

/* ============ 特色 / 文字区块 ============ */
.feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature-item {
  background: var(--navy-card); border-radius: 8px; padding: 22px;
  border-left: 3px solid var(--yellow);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-item .ico {
  width: 38px; height: 38px; border-radius: 8px; background: rgba(250,255,5,.12);
  color: var(--yellow); display: grid; place-items: center; font-size: 18px;
  margin-bottom: 10px;
}
.feature-item h3 { font-size: 15px; margin-bottom: 6px; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.feature-item p { color: var(--text-mute); font-size: 13px; }

/* ============ App 下载区块 ============ */
.app-band {
  background:
    radial-gradient(600px 320px at 75% 60%, rgba(250,255,5,.06), transparent 60%),
    linear-gradient(135deg, #060a2a 0%, #0c1840 50%, #183060 100%);
  color: #fff; border-radius: 12px; padding: 0;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.app-band .text { padding: 36px 40px; }
.app-band h2 { font-size: 28px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.1; }
.app-band h2 .accent { color: var(--yellow); }
.app-band p { color: var(--text-mute); font-size: 14px; margin-bottom: 22px; max-width: 480px; }
.app-band .stores { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.store-btn { display: inline-block; transition: transform .15s; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn img { height: 44px; width: auto; }
.app-band .device {
  height: 100%; min-height: 280px;
  display: grid; place-items: center;
  background: radial-gradient(280px 200px at center, rgba(252,225,164,.15), transparent 60%);
  padding: 24px;
}
.app-band .device img { max-height: 260px; width: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-mute);
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.footer-top {
  max-width: 1280px; margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 30px;
}
.footer-brand h4 { color: #fff; font-size: 16px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.footer-brand p { font-size: 12px; color: var(--text-soft); margin-bottom: 14px; line-height: 1.6; }
.footer-col h5 {
  color: var(--yellow); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 14px; font-weight: 800;
}
.footer-col ul li { margin-bottom: 9px; font-size: 12.5px; }
.footer-col ul a { color: var(--text-mute); }
.footer-col ul a:hover { color: #fff; }
.payments { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-pill {
  background: rgba(255,255,255,.06); color: var(--text-mute); font-size: 10px;
  padding: 4px 8px; border-radius: 3px; font-weight: 700; letter-spacing: .3px;
  border: 1px solid var(--line-strong);
}
.footer-licence {
  border-top: 1px solid var(--line);
  padding: 22px 20px; max-width: 1280px; margin: 0 auto;
  font-size: 11px; color: var(--text-soft); line-height: 1.7;
}
.regulators {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-bottom: 16px;
}
.regulators img { height: 28px; width: auto; opacity: .9; transition: opacity .15s; }
.regulators img.tall { height: 40px; }
.regulators img:hover { opacity: 1; }
.reg-pill {
  background: rgba(255,255,255,.04); color: var(--text-mute);
  padding: 4px 9px; border-radius: 11px; font-size: 10px; font-weight: 700;
  border: 1px solid var(--line-strong); letter-spacing: .3px;
}
.reg-pill.age { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* ============ 通用页面工具类 ============ */
.page-title {
  background:
    radial-gradient(500px 200px at 80% 50%, rgba(250,255,5,.06), transparent 60%),
    linear-gradient(180deg, #060a2a, #04071f);
  color: #fff; padding: 40px 20px; border-bottom: 1px solid var(--line);
}
.page-title .wrap { max-width: 1280px; margin: 0 auto; }
.page-title h1 {
  font-size: 30px; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: -.5px; font-weight: 900;
}
.page-title p { color: var(--text-mute); font-size: 14px; }

.breadcrumb {
  max-width: 1280px; margin: 0 auto; padding: 12px 20px;
  font-size: 11px; color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .5px;
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; color: var(--text-soft); }

.notice {
  background: rgba(250,255,5,.07); border-left: 3px solid var(--yellow);
  padding: 12px 16px; border-radius: 4px; font-size: 13px; color: var(--gold);
  margin-bottom: 20px;
}
.notice a { color: var(--yellow); font-weight: 700; }

/* ============ 用户端在线客服（参考 SaaS 弹窗模式重做）============ */
:root {
  --cs-blue: #1880FF;
  --cs-blue-dark: #0F6FE5;
  --cs-blue-deep: #0a1a3d;
  --cs-blue-light: #E7F2FF;
  --cs-text: #1c2541;
  --cs-text-mute: #606787;
  --cs-bg: #ffffff;
  --cs-bg-msg: #f5f7fb;
  --cs-online: #22c55e;
}

/* 浮动气泡 */
.cs-fab {
  position: fixed; right: 22px; bottom: 84px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cs-blue) 0%, #40A9FF 100%);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(24,128,255,.45), 0 2px 8px rgba(0,0,0,.15);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  border: none;
}
.cs-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(24,128,255,.55), 0 4px 12px rgba(0,0,0,.2); }
.cs-fab:active { transform: scale(.95); }
.cs-fab.dragging { cursor: grabbing; transform: scale(1.05); transition: none !important; user-select: none; }
.cs-fab.dragging:hover { transform: scale(1.05); }
.cs-fab svg { width: 26px; height: 26px; }
.cs-fab .dot {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #ff3b30; color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid #fff;
  animation: cs-pulse 2s infinite;
}
@keyframes cs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,48,.5); }
  50% { box-shadow: 0 0 0 6px rgba(255,59,48,0); }
}

/* 弹窗主面板 */
.cs-panel {
  position: fixed; right: 22px; bottom: 84px; z-index: 850;
  width: 360px; max-width: calc(100vw - 44px);
  height: 540px; max-height: calc(100vh - 130px);
  background: var(--cs-bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(4,15,66,.25), 0 8px 20px rgba(24,128,255,.15);
  display: none; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.95);
  transform-origin: bottom right;
  transition: opacity .25s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cs-panel.open { display: flex; opacity: 1; transform: translateY(0) scale(1); }

/* 顶部 header：蓝色渐变 + 客服头像 */
.cs-panel .cs-head {
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, var(--cs-blue) 0%, #0F6FE5 60%, #0050C9 100%);
  color: #fff;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.cs-panel .cs-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.cs-panel .cs-head .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #E7F2FF 100%);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
  color: var(--cs-blue);
  position: relative;
  flex-shrink: 0;
}
.cs-panel .cs-head .avatar::after {
  content: ""; position: absolute; right: -2px; bottom: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cs-online); border: 2px solid var(--cs-blue);
}
.cs-panel .cs-head .info { flex: 1; line-height: 1.3; }
.cs-panel .cs-head .info .name { font-size: 15px; font-weight: 700; }
.cs-panel .cs-head .info .status { font-size: 11px; opacity: .85; margin-top: 2px; }
.cs-panel .cs-head .info .status::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--cs-online); border-radius: 50%; margin-right: 5px;
  vertical-align: middle;
}
.cs-panel .cs-head .close {
  background: rgba(255,255,255,.15); color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .15s; border: none;
}
.cs-panel .cs-head .close:hover { background: rgba(255,255,255,.25); }

/* 消息体 */
.cs-body {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  background: var(--cs-bg-msg);
  scroll-behavior: smooth;
}
.cs-body::-webkit-scrollbar { width: 6px; }
.cs-body::-webkit-scrollbar-thumb { background: #cdd3e0; border-radius: 3px; }
.cs-body::-webkit-scrollbar-track { background: transparent; }

.cs-msg {
  margin-bottom: 14px;
  display: flex; gap: 8px; align-items: flex-end;
}
.cs-msg.user { flex-direction: row-reverse; }
.cs-msg.agent { flex-direction: row; }
.cs-msg.system { justify-content: center; }

.cs-msg .av {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.cs-msg.user .av { background: linear-gradient(135deg, #FF9B6F, #FF7E5F); color: #fff; }
.cs-msg.agent .av { background: linear-gradient(135deg, var(--cs-blue), #40A9FF); color: #fff; }

.cs-msg .col { max-width: 76%; }
.cs-msg.user .col { align-items: flex-end; display: flex; flex-direction: column; }
.cs-msg.agent .col { align-items: flex-start; display: flex; flex-direction: column; }

.cs-msg .name { font-size: 10.5px; color: var(--cs-text-mute); margin-bottom: 3px; padding: 0 4px; }
.cs-msg .bubble {
  padding: 9px 13px; font-size: 13.5px; line-height: 1.55;
  word-wrap: break-word; max-width: 100%;
  position: relative;
}
.cs-msg.user .bubble {
  background: linear-gradient(135deg, var(--cs-blue), #2090FF);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 1px 3px rgba(24,128,255,.2);
}
.cs-msg.agent .bubble {
  background: #fff;
  color: var(--cs-text);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.cs-msg.system {
  font-size: 11px; color: var(--cs-text-mute);
  padding: 4px 0;
}
.cs-msg.system .pill {
  background: rgba(96,103,135,.12); padding: 4px 10px;
  border-radius: 10px;
}
.cs-msg .time {
  font-size: 10px; color: var(--cs-text-mute);
  margin-top: 3px; padding: 0 4px;
}

/* 输入条 */
.cs-foot {
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #eef0f7;
  display: flex; align-items: center; gap: 8px;
}
.cs-foot .input-wrap {
  flex: 1; display: flex; align-items: center;
  background: var(--cs-bg-msg);
  border-radius: 20px; padding: 0 6px 0 14px;
  transition: box-shadow .15s, background .15s;
}
.cs-foot .input-wrap:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--cs-blue-light), 0 0 0 1px var(--cs-blue);
}
.cs-foot input {
  flex: 1; background: transparent; color: var(--cs-text);
  border: none; outline: none;
  padding: 10px 0; font-size: 13.5px; font-family: inherit;
}
.cs-foot input::placeholder { color: var(--cs-text-mute); }
.cs-foot .send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cs-blue), #40A9FF);
  color: #fff;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .12s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(24,128,255,.35);
}
.cs-foot .send-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 12px rgba(24,128,255,.45); }
.cs-foot .send-btn:active:not(:disabled) { transform: scale(.92); }
.cs-foot .send-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.cs-foot .send-btn svg { width: 18px; height: 18px; }

/* 快捷回复条 */
.cs-quick {
  display: flex; gap: 6px; padding: 8px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cs-quick::-webkit-scrollbar { display: none; }
.cs-quick button {
  flex-shrink: 0;
  background: #fff; color: var(--cs-blue);
  border: 1px solid #d9e6fb;
  padding: 6px 12px; border-radius: 14px;
  font-size: 12px; cursor: pointer;
  transition: background .15s;
}
.cs-quick button:hover { background: var(--cs-blue-light); }

/* 移动端 */
@media (max-width: 720px) {
  .cs-fab { right: 16px; bottom: 78px; width: 52px; height: 52px; }
  .cs-fab svg { width: 24px; height: 24px; }
  .cs-panel {
    right: 8px; left: 8px; bottom: 78px;
    width: auto; max-width: none;
    height: calc(100vh - 100px);
    border-radius: 12px;
  }
}

/* ============ 通用内容页 page.html ============ */
.page-wrap {
  max-width: 880px; margin: 0 auto;
  padding: 30px 24px 60px;
}
.page-card {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 48px;
  box-shadow: var(--shadow-lg);
}
.page-card h1 {
  font-size: 28px; font-weight: 900; margin-bottom: 10px;
  letter-spacing: -.5px; color: #fff;
}
.page-card .updated {
  color: var(--text-soft); font-size: 12px;
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.page-body {
  color: var(--text-mute);
  font-size: 14.5px; line-height: 1.8;
}
.page-body h2 {
  font-size: 18px; font-weight: 800; color: var(--yellow);
  margin: 28px 0 12px;
  text-transform: uppercase; letter-spacing: .5px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-size: 15px; font-weight: 700; color: #fff;
  margin: 20px 0 8px;
}
.page-body p { margin-bottom: 12px; }
.page-body ul, .page-body ol { margin: 12px 0 12px 24px; }
.page-body li { margin-bottom: 6px; }
.page-body b, .page-body strong { color: #fff; }
.page-body a { color: var(--yellow); }
.page-body a:hover { color: #fff; }
.page-body table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.page-body table th, .page-body table td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  text-align: left;
}
.page-body table th { color: #fff; font-weight: 700; background: rgba(255,255,255,.03); }

@media (max-width: 720px) {
  .page-card { padding: 24px 20px; }
  .page-card h1 { font-size: 22px; }
}

/* ============ 反波胆游戏页 ============ */
.game-page { max-width: 1200px; margin: 0 auto; padding: 20px; }
.game-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: var(--navy-card); padding: 6px; border-radius: 8px;
  border: 1px solid var(--line);
}
.game-tabs button {
  flex: 1; padding: 9px 14px; border-radius: 6px; font-weight: 700; font-size: 13px;
  color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px;
  transition: background .15s, color .15s;
}
.game-tabs button.active { background: var(--yellow); color: var(--navy); }
.game-tabs button:hover:not(.active) { background: rgba(255,255,255,.04); color: #fff; }
.game-tabs button .cnt {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 8px;
  background: rgba(255,255,255,.1); color: var(--text-mute); font-size: 10px;
}
.game-tabs button.active .cnt { background: rgba(0,0,0,.2); color: var(--navy); }

.event-card {
  background: var(--navy-card); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 18px; margin-bottom: 8px;
  display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
  transition: background .15s, border-color .15s;
}
.event-card:hover { background: var(--navy-card-2); border-color: var(--yellow); cursor: pointer; }
.event-card .when { text-align: center; color: var(--text-mute); font-size: 11px; }
.event-card .when .time { color: var(--yellow); font-weight: 800; font-size: 14px; }
.event-card .teams { font-size: 14px; }
.event-card .teams .league { color: var(--text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.event-card .teams .vs { font-weight: 700; color: #fff; }
.event-card .arrow { color: var(--yellow); font-size: 18px; }
.event-card.live .when .time { color: var(--red); }

.league-section { margin-bottom: 24px; }
.league-section .lg-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--yellow); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
}
.league-section .lg-head .cnt {
  margin-left: auto; background: rgba(250,255,5,.1); color: var(--yellow);
  padding: 1px 10px; border-radius: 10px; font-size: 11px;
}

.detail-wrap { max-width: 1100px; margin: 0 auto; padding: 16px 20px; }
.detail-head {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px; padding: 24px; margin-bottom: 18px;
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  text-align: center;
}
.detail-head .team { font-size: 20px; font-weight: 800; color: #fff; }
.detail-head .center { color: var(--yellow); }
.detail-head .center .league { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.detail-head .center .time { font-size: 16px; font-weight: 800; }
.detail-head .center .countdown { font-size: 11px; color: var(--gold); margin-top: 4px; }

.market-block { background: var(--navy-card); border-radius: 8px; border: 1px solid var(--line); margin-bottom: 16px; overflow: hidden; }
.market-head { padding: 12px 16px; background: var(--navy-deep); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.market-head .name { color: var(--yellow); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.market-head .meta { color: var(--text-soft); font-size: 11px; }

.score-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 14px; }
@media (max-width: 720px) { .score-grid { grid-template-columns: repeat(3, 1fr); padding: 10px; gap: 6px; } .detail-head { grid-template-columns: 1fr; gap: 10px; padding: 18px; } }

.score-cell {
  background: var(--navy-deep); border: 1px solid var(--line);
  border-radius: 6px; padding: 12px 8px; text-align: center;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
  display: flex; flex-direction: column; gap: 3px;
}
.score-cell:hover { background: var(--navy-hover); border-color: var(--yellow); transform: translateY(-1px); }
.score-cell.disabled { opacity: .4; pointer-events: none; }
.score-cell .score { font-size: 16px; font-weight: 900; color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; }
.score-cell .score.txt { font-family: inherit; font-size: 11px; }
.score-cell .yield { font-size: 14px; font-weight: 800; color: var(--yellow); }
.score-cell .vol { font-size: 9px; color: var(--text-soft); font-family: ui-monospace, Menlo, Consolas, monospace; }

.bet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 900; display: none; align-items: center; justify-content: center; padding: 20px; }
.bet-mask.show { display: flex; }
.bet-modal { background: var(--navy-card); border: 1px solid var(--line-strong); border-radius: 12px; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; }
.bet-modal .bm-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--navy-deep); }
.bet-modal .bm-head h3 { font-size: 14px; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; }
.bet-modal .bm-head .close { color: var(--text-mute); font-size: 24px; padding: 0 6px; line-height: 1; }
.bet-modal .bm-body { padding: 22px; }
.bet-modal .target { text-align: center; padding: 14px; background: var(--navy-deep); border-radius: 8px; margin-bottom: 16px; }
.bet-modal .target .lbl { font-size: 11px; color: var(--text-soft); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.bet-modal .target .score-big { font-size: 36px; font-weight: 900; color: var(--yellow); font-family: ui-monospace, Menlo, Consolas, monospace; }
.bet-modal .calc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; margin: 16px 0; }
.bet-modal .calc-row .col { background: var(--navy-deep); border-radius: 6px; padding: 10px; }
.bet-modal .calc-row .col .lbl { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.bet-modal .calc-row .col .val { font-size: 16px; font-weight: 800; color: #fff; }
.bet-modal .calc-row .col.profit .val { color: var(--green); }
.bet-modal .calc-row .col.yield .val { color: var(--yellow); }
.bet-modal .fee-note { text-align: center; color: var(--text-soft); font-size: 11px; margin-bottom: 12px; }
.bet-modal .bm-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--navy-deep); display: flex; gap: 8px; }
.bet-modal .bm-foot button { flex: 1; }

.order-card { background: var(--navy-deep); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; }
.order-card .head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.order-card .body { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.order-card .body .score-tag { background: var(--navy-card-2); padding: 6px 12px; border-radius: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; color: var(--yellow); font-size: 16px; }
.order-card .body .info { font-size: 13px; }
.order-card .body .info .teams { color: #fff; font-weight: 700; }
.order-card .body .info .meta { color: var(--text-soft); font-size: 11px; margin-top: 2px; }
.order-card .body .amounts { text-align: right; font-size: 13px; }
.order-card .body .amounts .stake { color: var(--text-mute); }
.order-card .body .amounts .profit { color: var(--green); font-weight: 700; }
.order-card .body .amounts .lost { color: var(--red); font-weight: 700; }

/* ============ 体育页 ============ */
.sports-layout {
  max-width: 1280px; margin: 0 auto; padding: 20px;
  display: grid; grid-template-columns: 240px 1fr 320px; gap: 16px;
}
.side-panel {
  background: var(--navy-card); border-radius: 8px; padding: 14px;
  border: 1px solid var(--line);
  align-self: start; position: sticky; top: calc(var(--header-h) + 12px);
}
.side-panel h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--yellow); margin-bottom: 10px; font-weight: 800;
}
.side-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 10px; border-radius: 4px; font-size: 13px; cursor: pointer;
  color: var(--text-mute);
  transition: background .15s, color .15s;
}
.side-list li:hover { background: rgba(255,255,255,.04); color: #fff; }
.side-list li.active { background: rgba(250,255,5,.1); color: var(--yellow); }
.side-list li.active .count { background: var(--yellow); color: var(--navy); }
.side-list .count {
  background: rgba(255,255,255,.08); color: var(--text-mute);
  padding: 1px 8px; border-radius: 10px; font-size: 10px; font-weight: 700;
}

.sports-main { min-width: 0; }
.sport-tabs {
  background: var(--navy-card); border-radius: 8px; padding: 6px;
  display: flex; gap: 2px; overflow-x: auto;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.sport-tabs button {
  padding: 8px 14px; border-radius: 4px; font-weight: 700; font-size: 12px;
  color: var(--text-mute); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .5px;
  transition: background .15s, color .15s;
}
.sport-tabs button.active { background: var(--yellow); color: var(--navy); }
.sport-tabs button:hover:not(.active) { background: rgba(255,255,255,.04); color: #fff; }

.league-block {
  background: var(--navy-card); border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 12px; overflow: hidden;
}
.league-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--navy-card-2);
  border-bottom: 1px solid var(--line);
}
.league-head .name { font-weight: 800; font-size: 13px; color: var(--yellow); text-transform: uppercase; letter-spacing: .5px; }
.league-head .meta { color: var(--text-soft); font-size: 11px; }

.match-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px; padding: 14px 16px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: rgba(255,255,255,.02); }
.match-info .time {
  font-size: 11px; color: var(--text-soft); display: flex; gap: 8px; align-items: center;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.match-info .time .live {
  background: var(--red); color: #fff; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.match-info .teams {
  font-weight: 700; font-size: 14px; color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.match-info .teams .score {
  font-size: 11px; color: var(--green); font-weight: 700;
}
.match-odds {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.odd-btn {
  background: var(--navy-deep); border: 1px solid var(--line);
  border-radius: 4px; padding: 8px 6px;
  font-weight: 800; font-size: 13px; color: var(--yellow);
  text-align: center; transition: background .15s, transform .1s, border-color .15s;
  display: flex; flex-direction: column; gap: 2px;
}
.odd-btn:hover:not(:disabled) {
  background: var(--navy-hover); border-color: rgba(250,255,5,.4);
}
.odd-btn.picked { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.odd-btn small { font-size: 9px; color: var(--text-soft); font-weight: 600; }
.odd-btn.picked small { color: var(--navy); opacity: .7; }
.odd-btn:disabled { color: var(--text-soft); cursor: not-allowed; opacity: .5; }

/* 投注小票 */
.betslip {
  background: var(--navy-card); border-radius: 8px;
  align-self: start; position: sticky; top: calc(var(--header-h) + 12px);
  overflow: hidden; border: 1px solid var(--line);
}
.slip-head {
  background: var(--navy-deep); color: var(--yellow); padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.slip-head h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.slip-head .count-bubble {
  background: var(--yellow); color: var(--navy); padding: 1px 8px;
  border-radius: 10px; font-size: 11px; font-weight: 800;
}
.slip-empty {
  padding: 36px 20px; text-align: center; color: var(--text-soft); font-size: 12px;
}
.slip-empty .ico { font-size: 32px; margin-bottom: 8px; opacity: .5; }
.slip-list { padding: 6px; max-height: 320px; overflow-y: auto; }
.slip-pick {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  padding: 10px; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.slip-pick:last-child { border-bottom: none; }
.slip-pick .slip-market { font-size: 10px; color: var(--text-soft); }
.slip-pick .slip-label { font-weight: 700; color: #fff; }
.slip-pick .slip-odd { font-weight: 800; color: var(--yellow); }
.slip-remove {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--text-mute); font-size: 14px;
  display: grid; place-items: center;
}
.slip-remove:hover { background: var(--red); color: #fff; }
.slip-footer { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--navy-deep); }
.slip-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px; }
.slip-row b { font-weight: 800; color: var(--yellow); }
.stake-input {
  width: 100%; padding: 10px 12px; background: var(--navy-darker);
  border: 1px solid var(--line-strong); color: #fff;
  border-radius: 4px; font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.stake-input:focus { outline: none; border-color: var(--yellow); }
.stake-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px;
}
.stake-quick button {
  background: rgba(255,255,255,.06); color: var(--text-mute);
  padding: 6px 0; border-radius: 3px; font-size: 11px; font-weight: 700;
  border: 1px solid var(--line);
}
.stake-quick button:hover { background: var(--navy-hover); color: #fff; }
.slip-clear {
  width: 100%; padding: 8px; font-size: 11px; color: var(--text-soft);
  text-align: center; margin-top: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.slip-clear:hover { color: var(--red); }

/* ============ 促销页 ============ */
.promo-filter {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px;
}
.promo-filter button {
  background: var(--navy-card); padding: 8px 16px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  border: 1px solid var(--line-strong);
  color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .5px;
}
.promo-filter button.active, .promo-filter button:hover {
  background: var(--yellow); color: var(--navy); border-color: var(--yellow);
}

/* ============ 个人中心 (account.html) ============ */
.account-wrap {
  max-width: 1180px; margin: 24px auto; padding: 0 20px;
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
}
.account-side {
  background: var(--navy-card); border-radius: 10px; padding: 18px;
  border: 1px solid var(--line);
  align-self: start; position: sticky; top: calc(var(--header-h) + 12px);
}
.account-profile {
  text-align: center; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.account-profile .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--gold));
  color: var(--navy); font-size: 26px; font-weight: 900;
  display: grid; place-items: center; margin: 0 auto 10px;
}
.account-profile .uname { font-weight: 800; color: #fff; font-size: 15px; }
.account-profile .balance {
  font-size: 22px; font-weight: 900; color: var(--yellow); margin-top: 8px;
}
.account-profile .frozen { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.account-menu li {
  padding: 11px 14px; border-radius: 6px; font-size: 13px; cursor: pointer;
  color: var(--text-mute); display: flex; align-items: center; gap: 10px;
  transition: background .15s, color .15s;
}
.account-menu li:hover { background: rgba(255,255,255,.04); color: #fff; }
.account-menu li.active { background: rgba(250,255,5,.1); color: var(--yellow); }
.account-menu li .ic { font-size: 18px; }
.account-menu li.logout { color: var(--red); margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }

.account-main {
  background: var(--navy-card); border-radius: 10px; padding: 28px;
  border: 1px solid var(--line); min-height: 480px;
}
.account-main h2 {
  font-size: 20px; color: #fff; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .5px;
}
.account-main h2::before {
  content: ""; display: inline-block; width: 3px; height: 18px;
  background: var(--yellow); margin-right: 10px; vertical-align: -3px;
}

.acc-panel { display: none; }
.acc-panel.active { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.stat-tile {
  background: var(--navy-deep); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px;
}
.stat-tile .lab { color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.stat-tile .val { color: var(--yellow); font-size: 22px; font-weight: 900; }
.stat-tile .sub { color: var(--text-soft); font-size: 11px; margin-top: 4px; }

.quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 22px;
}
.quick-actions button {
  background: var(--navy-deep); border: 1px solid var(--line);
  padding: 14px 8px; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: background .15s, border-color .15s;
}
.quick-actions button:hover { background: var(--navy-hover); border-color: var(--yellow); }
.quick-actions button .ic { font-size: 22px; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.amount-grid button {
  background: var(--navy-deep); border: 1px solid var(--line-strong);
  padding: 9px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 700;
  transition: background .15s, border-color .15s;
}
.amount-grid button:hover { background: var(--navy-hover); border-color: var(--yellow); }
.amount-grid button.active { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.method-grid label {
  background: var(--navy-deep); border: 1px solid var(--line-strong);
  padding: 12px 6px; border-radius: 6px; text-align: center;
  cursor: pointer; font-size: 12px; color: var(--text-mute);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: background .15s, border-color .15s, color .15s;
}
.method-grid label .ic { font-size: 22px; }
.method-grid input { display: none; }
.method-grid input:checked + label,
.method-grid label:hover { border-color: var(--yellow); color: var(--yellow); background: var(--navy-hover); }
.method-grid label.selected { border-color: var(--yellow); color: var(--yellow); background: var(--navy-hover); }

/* 流水表 */
.txn-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.txn-filter button {
  background: var(--navy-deep); border: 1px solid var(--line-strong);
  padding: 6px 14px; border-radius: 14px; font-size: 11px; font-weight: 700;
  color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px;
}
.txn-filter button.active { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

.txn-table { width: 100%; border-collapse: collapse; }
.txn-table th, .txn-table td {
  padding: 10px 12px; text-align: left; font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.txn-table th { color: var(--text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.txn-table td { color: var(--text-mute); }
.txn-table td.amount-pos { color: var(--green); font-weight: 700; }
.txn-table td.amount-neg { color: var(--red); font-weight: 700; }
.txn-table .pill {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
}
.txn-table .pill.success { background: rgba(0,217,126,.15); color: var(--green); }
.txn-table .pill.pending { background: rgba(250,255,5,.12); color: var(--yellow); }
.txn-table .pill.rejected { background: rgba(255,71,87,.15); color: var(--red); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.pager button {
  background: var(--navy-deep); border: 1px solid var(--line-strong);
  padding: 6px 12px; border-radius: 4px; font-size: 12px; color: var(--text-mute);
}
.pager button:hover:not(:disabled) { background: var(--navy-hover); color: #fff; }
.pager button.active { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: var(--navy-card); color: #fff; border: 1px solid var(--line-strong);
  padding: 10px 18px; border-radius: 6px; font-size: 13px;
  z-index: 1000; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(8px); }
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }

@media (max-width: 1024px) {
  .account-wrap { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
body.mobile-active .account-wrap { grid-template-columns: 1fr; padding: 12px; gap: 12px; margin: 12px auto; }
body.mobile-active .account-side { position: static; padding: 14px; }
body.mobile-active .account-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
body.mobile-active .account-menu li { padding: 8px 6px; font-size: 11px; flex-direction: column; gap: 4px; text-align: center; }
body.mobile-active .account-menu li .ic { font-size: 18px; }
body.mobile-active .account-menu li.logout { grid-column: 1 / -1; flex-direction: row; justify-content: center; border-top: none; padding-top: 8px; margin-top: 4px; }
body.mobile-active .account-main { padding: 18px; }
body.mobile-active .stat-row, body.mobile-active .quick-actions { grid-template-columns: 1fr 1fr; }
body.mobile-active .amount-grid { grid-template-columns: repeat(4, 1fr); }
body.mobile-active .method-grid { grid-template-columns: 1fr 1fr; }
body.mobile-active .txn-table th:nth-child(4), body.mobile-active .txn-table td:nth-child(4) { display: none; }
body.mobile-active .txn-table th, body.mobile-active .txn-table td { padding: 8px 6px; font-size: 11px; }

/* ============ 表单页 (登录/注册) ============ */
.auth-wrap { max-width: 460px; margin: 50px auto; padding: 0 20px; }
.auth-wrap-wide {
  max-width: 1080px; margin: 40px auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 460px; gap: 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-wrap-wide .auth-card {
  border-radius: 0 12px 12px 0; box-shadow: none; margin: 0;
}
.auth-side {
  background-size: cover; background-position: center;
  background-color: var(--navy-card);
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: 540px;
  border-radius: 12px 0 0 12px;
  border-right: 1px solid var(--line);
}
.auth-side::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,42,.3) 0%, rgba(6,10,42,.5) 60%, rgba(6,10,42,.95) 100%);
}
.auth-side-content {
  position: relative; z-index: 1; padding: 32px 36px;
  color: #fff;
}
.auth-side-content h2 {
  font-size: 26px; font-weight: 900; line-height: 1.1; margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.auth-side-content h2 .accent { color: var(--yellow); }
.auth-side-content p {
  font-size: 14px; color: var(--text-mute); margin-bottom: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.auth-side-content .perks { display: flex; flex-direction: column; gap: 8px; }
.auth-side-content .perk {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #fff;
}
.auth-side-content .perk .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-weight: 900; font-size: 13px;
  flex-shrink: 0;
}
.auth-card {
  background: var(--navy-card); border-radius: 10px; padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; color: #fff; text-transform: uppercase; letter-spacing: -.5px; }
.auth-card .sub { color: var(--text-mute); font-size: 13px; margin-bottom: 24px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 800;
  color: var(--text-mute); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .8px;
}
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px;
  background: var(--navy-darker); color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px; font-size: 14px; font-family: inherit;
}
.form-group input::placeholder { color: var(--text-soft); }
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(250,255,5,.12);
}
.form-group input.error { border-color: var(--red); }
.field-error { color: var(--red); font-size: 11px; margin-top: 4px; min-height: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-check {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-mute);
  margin-bottom: 14px;
}
.form-check input { margin-top: 3px; accent-color: var(--yellow); }
.form-check a { color: var(--yellow); font-weight: 700; }
.form-success {
  display: none; background: rgba(0,217,126,.1); color: var(--green);
  padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 14px;
  border: 1px solid rgba(0,217,126,.3);
}
.auth-divider {
  text-align: center; color: var(--text-soft); font-size: 11px;
  margin: 20px 0; position: relative;
  text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line-strong);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-mute); }
.auth-foot a { color: var(--yellow); font-weight: 700; }
.auth-foot a:hover { color: #fff; }

/* ============ FAQ ============ */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--navy-card); border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 8px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
}
.faq-q:hover { color: var(--yellow); }
.faq-q::after { content: "+"; font-size: 22px; color: var(--yellow); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height .25s, padding .25s; color: var(--text-mute); font-size: 13px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 18px; }

.help-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 30px;
}
.help-tile {
  background: var(--navy-card); border-radius: 8px; padding: 24px 18px;
  text-align: center; border: 1px solid var(--line);
  transition: transform .15s, border-color .15s;
}
.help-tile:hover { transform: translateY(-3px); border-color: var(--yellow); }
.help-tile .ico { font-size: 32px; margin-bottom: 10px; }
.help-tile h3 { font-size: 14px; margin-bottom: 4px; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.help-tile p { color: var(--text-mute); font-size: 12px; }

/* ============ 关于 ============ */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.about-body {
  background: var(--navy-card); border-radius: 10px; padding: 32px;
  border: 1px solid var(--line);
}
.about-body h2 {
  font-size: 18px; margin: 20px 0 10px;
  color: var(--yellow); text-transform: uppercase; letter-spacing: 1px;
}
.about-body h2:first-child { margin-top: 0; }
.about-body p { color: var(--text-mute); font-size: 13.5px; margin-bottom: 12px; line-height: 1.7; }
.about-body p b { color: #fff; }
.about-side { display: flex; flex-direction: column; gap: 12px; }
.stat-card {
  background: var(--navy-card); border-radius: 8px; padding: 22px;
  border: 1px solid var(--line);
  text-align: center;
}
.stat-card .num { font-size: 30px; font-weight: 900; color: var(--yellow); }
.stat-card .lab { color: var(--text-mute); font-size: 12px; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 36px 20px; }
  .hero h1 { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sports-layout { grid-template-columns: 1fr; }
  .side-panel, .betslip { position: static; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .main-nav a { padding: 8px 10px; font-size: 12px; }
  .auth-wrap-wide { grid-template-columns: 1fr; max-width: 460px; }
  .auth-side { display: none; }
  .auth-wrap-wide .auth-card { border-radius: 12px; }
}

@media (max-width: 880px) {
  .menu-toggle { display: inline-block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); display: none; padding: 8px 12px;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 14px; }
  .main-nav a.active::after { display: none; }
}

@media (max-width: 1024px) {
  .hero-slide h1 { font-size: 40px; }
  .hero-slide .slide-inner { padding: 0 30px; }
}
@media (max-width: 720px) {
  .top-bar .wrap { padding: 6px 12px; flex-wrap: wrap; gap: 4px; }
  .top-bar .links-extra { display: none; }
  .hero-track { aspect-ratio: 686 / 667; }
  .hero-slide h1 { font-size: 26px; max-width: 100%; }
  .hero-slide p { font-size: 14px; }
  .hero-slide .slide-inner { padding: 0 18px; align-items: center; text-align: center; }
  .hero-slide .hero-cta { justify-content: center; width: 100%; }
  .hero-arrow { display: none; }
  .hero-cta .btn { padding: 10px 18px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { padding: 18px 10px; }
  .promo-grid { grid-template-columns: 1fr; }
  .app-band { grid-template-columns: 1fr; }
  .app-band .text { padding: 24px; }
  .app-band .device { min-height: 200px; padding: 0 20px 20px; }
  .app-band .device img { max-height: 180px; }
  .app-band .stores { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; padding: 26px 16px; }
  .section { padding: 24px 16px; }
  .section-head h2 { font-size: 18px; }
  .auth-actions .btn { padding: 7px 10px; font-size: 11px; }
  .logo-img { height: 24px; }
  .header-inner { padding: 0 14px; gap: 10px; }
  .match-row { grid-template-columns: 1fr; gap: 10px; }
  .match-odds { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .page-title { padding: 28px 16px; }
  .page-title h1 { font-size: 22px; }
  .auth-card { padding: 22px; }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .sports-layout { padding: 14px 12px; gap: 14px; }
  .league-head { padding: 10px 12px; }
  .match-row { padding: 12px; }
  .breadcrumb { padding: 10px 16px; }
}

@media (max-width: 380px) {
  .cat-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}

/* 强制 PC 视图 */
html[data-view-mode="pc"] body { min-width: 1280px; }
html[data-view-mode="pc"] .menu-toggle { display: none !important; }
html[data-view-mode="pc"] .main-nav {
  position: static !important; display: block !important;
  background: transparent !important; padding: 0 !important;
  border: none !important; max-height: none !important;
}
html[data-view-mode="pc"] .main-nav ul { flex-direction: row !important; gap: 0 !important; }
html[data-view-mode="pc"] .cat-grid { grid-template-columns: repeat(6, 1fr) !important; }
html[data-view-mode="pc"] .promo-grid { grid-template-columns: repeat(3, 1fr) !important; }
html[data-view-mode="pc"] .feature-row { grid-template-columns: repeat(3, 1fr) !important; }
html[data-view-mode="pc"] .hero-inner { grid-template-columns: 1.2fr 1fr !important; }
html[data-view-mode="pc"] .footer-top { grid-template-columns: 2fr repeat(4, 1fr) !important; }
html[data-view-mode="pc"] .sports-layout { grid-template-columns: 240px 1fr 320px !important; }
html[data-view-mode="pc"] .match-row { grid-template-columns: 1fr 220px !important; }
html[data-view-mode="pc"] .about-grid { grid-template-columns: 2fr 1fr !important; }
html[data-view-mode="pc"] .help-grid { grid-template-columns: repeat(4, 1fr) !important; }

/* ===========================================================
   手机专用 UI（body.mobile-active 触发；
   由 JS 在视窗 ≤720 或 data-view-mode="mobile" 时打上）
   =========================================================== */
.mobile-bottom-nav,
.m-slip-btn,
.m-app-bar { display: none; }

body.mobile-active {
  padding-bottom: 64px;          /* 给底部 tab 让位 */
  background: var(--navy);
}
body.mobile-active.has-slip { padding-bottom: 124px; }

/* —— 顶部 ——  */
body.mobile-active .top-bar .wrap {
  padding: 6px 12px; gap: 6px; flex-wrap: wrap;
}
body.mobile-active .top-bar .links-extra { display: none; }
body.mobile-active .top-bar .switch-group { margin-left: 0; }

/* App Bar (替代桌面 header) */
body.mobile-active .site-header {
  height: 52px; box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
body.mobile-active .header-inner {
  display: grid; grid-template-columns: 40px 1fr 40px;
  align-items: center; padding: 0 12px; gap: 0;
}
body.mobile-active .logo { justify-content: center; grid-column: 2; }
body.mobile-active .logo-img { height: 22px; }
body.mobile-active .main-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
  background: var(--navy-deep); z-index: 300; padding: 60px 0 0;
  display: block !important;
  transform: translateX(-100%); transition: transform .25s ease;
  border-right: 1px solid var(--line);
  max-height: none; overflow-y: auto;
}
body.mobile-active .main-nav.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.5); }
body.mobile-active .main-nav ul { flex-direction: column; gap: 0; padding: 0; }
body.mobile-active .main-nav li { border-bottom: 1px solid var(--line); }
body.mobile-active .main-nav a {
  display: block; padding: 14px 20px; font-size: 14px;
  border-radius: 0; color: #fff; letter-spacing: .5px;
}
body.mobile-active .main-nav a:hover, body.mobile-active .main-nav a.active {
  background: var(--navy-card); color: var(--yellow);
}
body.mobile-active .main-nav a.active::after { display: none; }
body.mobile-active .menu-toggle {
  display: grid !important; place-items: center;
  grid-column: 1; font-size: 22px; color: #fff;
  width: 40px; height: 40px; padding: 0;
}
body.mobile-active .auth-actions {
  grid-column: 3; justify-content: end;
}
body.mobile-active .auth-actions .btn-ghost { display: none; }
body.mobile-active .auth-actions .btn-primary {
  padding: 7px 14px; font-size: 11px;
}

/* 主侧栏遮罩 */
body.mobile-active.nav-open::before {
  content: ""; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 250;
}

/* —— Hero ——  */
body.mobile-active .hero-track {
  aspect-ratio: 16 / 14; max-height: none;
}
body.mobile-active .hero-arrow { display: none; }
body.mobile-active .hero-slide .slide-inner {
  padding: 0 18px; align-items: flex-start; text-align: left;
  padding-bottom: 40px;
}
body.mobile-active .hero-slide h1 {
  font-size: 24px; line-height: 1.1; margin-bottom: 8px;
  max-width: 100%;
}
body.mobile-active .hero-slide p { font-size: 13px; margin-bottom: 14px; }
body.mobile-active .hero-slide .hero-cta { flex-direction: column; width: 100%; gap: 8px; }
body.mobile-active .hero-slide .hero-cta .btn { width: 100%; padding: 12px 16px; font-size: 13px; }
body.mobile-active .hero-dots { bottom: 12px; }

/* —— 区块 ——  */
body.mobile-active .section { padding: 22px 12px; }
body.mobile-active .section-head { margin-bottom: 14px; gap: 8px; }
body.mobile-active .section-head h2 { font-size: 16px; letter-spacing: .5px; }
body.mobile-active .section-head p { font-size: 12px; }
body.mobile-active .section-head h2::before { width: 3px; height: 14px; margin-right: 8px; vertical-align: -2px; }
body.mobile-active .section-link { font-size: 11px; }

/* —— 6 分区卡片 —— 2 列 */
body.mobile-active .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
body.mobile-active .cat-card .ico { height: 80px; font-size: 38px; }
body.mobile-active .cat-card .name { font-size: 12px; padding: 10px 8px 2px; }
body.mobile-active .cat-card .desc { font-size: 10px; padding: 0 8px 8px; }
body.mobile-active .cat-card .play-btn { margin: 0 10px 10px; padding: 6px 0; font-size: 10px; }
body.mobile-active .cat-card .tag { font-size: 9px; padding: 1px 5px; top: 6px; right: 6px; }

/* —— 促销卡片单列 —— */
body.mobile-active .promo-grid { grid-template-columns: 1fr; gap: 12px; }
body.mobile-active .promo-card .img { height: 130px; }
body.mobile-active .promo-card .body { padding: 14px 16px; }
body.mobile-active .promo-card .body h3 { font-size: 15px; }
body.mobile-active .promo-card .body p { font-size: 12px; }

/* —— 特性 / App 区块 —— */
body.mobile-active .feature-row { grid-template-columns: 1fr; gap: 10px; }
body.mobile-active .feature-item { padding: 18px; }
body.mobile-active .feature-item h3 { font-size: 14px; }
body.mobile-active .feature-item p { font-size: 12px; }
body.mobile-active .app-band { grid-template-columns: 1fr; }
body.mobile-active .app-band .text { padding: 22px 20px 10px; }
body.mobile-active .app-band h2 { font-size: 20px; }
body.mobile-active .app-band p { font-size: 13px; margin-bottom: 14px; }
body.mobile-active .app-band .device { min-height: 180px; padding: 0 20px 20px; }
body.mobile-active .app-band .device img { max-height: 160px; }
body.mobile-active .store-btn img { height: 38px; }

/* —— Footer 手机版（手风琴）—— */
body.mobile-active .site-footer { margin-top: 30px; }
body.mobile-active .footer-top {
  grid-template-columns: 1fr; gap: 0; padding: 22px 16px 8px;
}
/* 品牌区压缩 */
body.mobile-active .footer-brand {
  padding-bottom: 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
body.mobile-active .footer-brand h4 { font-size: 14px; margin-bottom: 6px; }
body.mobile-active .footer-brand p { font-size: 11.5px; margin-bottom: 10px; line-height: 1.55; }
body.mobile-active .payments {
  gap: 5px; flex-wrap: wrap;
}
body.mobile-active .pay-pill { font-size: 9px; padding: 3px 6px; }

/* 列变成手风琴 */
body.mobile-active .footer-col {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
body.mobile-active .footer-col h5 {
  margin: 0; padding: 14px 4px;
  font-size: 11px; color: #fff; letter-spacing: 1.2px;
  cursor: pointer; user-select: none;
  display: flex; justify-content: space-between; align-items: center;
}
body.mobile-active .footer-col h5::after {
  content: "+"; color: var(--yellow); font-size: 18px;
  transition: transform .2s, content .2s;
  font-weight: 400; line-height: 1;
}
body.mobile-active .footer-col.open h5 { color: var(--yellow); }
body.mobile-active .footer-col.open h5::after { content: "−"; }
body.mobile-active .footer-col ul {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .25s;
  padding: 0 4px;
}
body.mobile-active .footer-col.open ul {
  max-height: 400px; padding: 0 4px 14px;
}
body.mobile-active .footer-col ul li { margin-bottom: 10px; font-size: 13px; }
body.mobile-active .footer-col ul li:last-child { margin-bottom: 0; }
body.mobile-active .footer-col ul a { color: var(--text-mute); }

/* 规管图：水平滚动 */
body.mobile-active .footer-licence {
  padding: 18px 16px; font-size: 10.5px; line-height: 1.6;
}
body.mobile-active .regulators {
  gap: 14px; flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
  scrollbar-width: none;
}
body.mobile-active .regulators::-webkit-scrollbar { display: none; }
body.mobile-active .regulators img {
  height: 26px; flex-shrink: 0;
}
body.mobile-active .regulators img.tall { height: 36px; }
body.mobile-active .footer-licence p { margin-bottom: 8px; }

/* —— 页面标题/面包屑 —— */
body.mobile-active .page-title { padding: 22px 14px; }
body.mobile-active .page-title h1 { font-size: 20px; }
body.mobile-active .page-title p { font-size: 12px; }
body.mobile-active .breadcrumb { padding: 8px 14px; font-size: 10px; }
body.mobile-active .notice { font-size: 12px; padding: 10px 14px; }

/* —— 体育页移动版 —— */
body.mobile-active .sports-layout {
  grid-template-columns: 1fr; padding: 12px; gap: 12px; display: block;
}
body.mobile-active .side-panel {
  position: static; padding: 8px 10px; margin-bottom: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
body.mobile-active .side-panel h3 { display: none; }
body.mobile-active .side-list {
  display: flex; flex-wrap: nowrap; gap: 6px;
  white-space: nowrap; padding-bottom: 2px;
}
body.mobile-active .side-list li {
  display: inline-flex; align-items: center;
  flex-shrink: 0; padding: 6px 12px; border-radius: 18px;
  background: var(--navy-deep); border: 1px solid var(--line-strong);
  font-size: 11px; color: var(--text-mute);
}
body.mobile-active .side-list li.active { background: rgba(250,255,5,.12); color: var(--yellow); border-color: var(--yellow); }
body.mobile-active .side-list .count { margin-left: 6px; }
body.mobile-active .sport-tabs { margin-bottom: 12px; padding: 4px; }
body.mobile-active .sport-tabs button { padding: 7px 12px; font-size: 11px; }
body.mobile-active .league-head { padding: 10px 12px; }
body.mobile-active .league-head .name { font-size: 12px; }
body.mobile-active .match-row { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
body.mobile-active .match-info .teams { font-size: 13px; }
body.mobile-active .match-odds { grid-template-columns: repeat(3, 1fr); }
body.mobile-active .odd-btn { padding: 9px 4px; font-size: 12px; }
body.mobile-active .betslip {
  position: static; margin-top: 16px;
  border-radius: 8px;
}

/* —— 小票浮动按钮（数量>0 时显示）—— */
body.mobile-active .m-slip-btn {
  display: flex; position: fixed; left: 12px; right: 12px;
  bottom: 70px; z-index: 150;
  padding: 12px 16px; border-radius: 26px;
  background: var(--yellow); color: var(--navy);
  align-items: center; justify-content: space-between;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .2s, transform .2s;
}
body.mobile-active.has-slip .m-slip-btn { opacity: 1; pointer-events: auto; transform: translateY(0); }
body.mobile-active .m-slip-btn .count {
  background: var(--navy); color: var(--yellow);
  border-radius: 14px; padding: 2px 9px;
  font-size: 11px; min-width: 24px; text-align: center;
}

/* —— 帮助 / 关于 —— */
body.mobile-active .help-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
body.mobile-active .help-tile { padding: 18px 12px; }
body.mobile-active .help-tile h3 { font-size: 12px; }
body.mobile-active .help-tile p { font-size: 11px; }
body.mobile-active .faq-q { font-size: 13px; padding: 14px 16px; }
body.mobile-active .faq-a { font-size: 12px; }
body.mobile-active .about-grid { grid-template-columns: 1fr; }
body.mobile-active .about-body { padding: 22px; }
body.mobile-active .about-body p { font-size: 12.5px; }
body.mobile-active .stat-card { padding: 18px; }
body.mobile-active .stat-card .num { font-size: 24px; }
body.mobile-active .stat-card .lab { font-size: 11px; }

/* —— 登录 / 注册 —— */
body.mobile-active .auth-wrap-wide {
  grid-template-columns: 1fr; max-width: 100%;
  margin: 16px 12px; padding: 0;
}
body.mobile-active .auth-side { display: none; }
body.mobile-active .auth-wrap-wide .auth-card { border-radius: 10px; padding: 22px; }
body.mobile-active .auth-card h1 { font-size: 20px; }
body.mobile-active .form-row { grid-template-columns: 1fr; gap: 0; }

/* —— 底部 Tab 导航 —— */
body.mobile-active .mobile-bottom-nav {
  display: block;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--navy-deep);
  border-top: 1px solid var(--line-strong);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
}
/* 给所有移动端页面留出底部空间,防止内容被 fixed 底部 nav 遮挡 */
body.mobile-active {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
/* account / game-detail / sports 等内容多的页面,额外给内层容器留余量 */
body.mobile-active .account-main,
body.mobile-active .game-page,
body.mobile-active .section,
body.mobile-active .auth-card,
body.mobile-active .help-grid,
body.mobile-active .faq-list,
body.mobile-active .promo-grid { padding-bottom: 24px; }
/* 移动端 footer 也额外留余量,防止 © 那行贴到 nav 上 */
body.mobile-active .site-footer { padding-bottom: 24px; }
.mobile-bottom-nav ul { display: flex; }
.mobile-bottom-nav li { flex: 1; }
.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; font-size: 9.5px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .3px; font-weight: 700;
  transition: color .15s;
}
.mobile-bottom-nav a .ic { font-size: 20px; line-height: 1; }
.mobile-bottom-nav a.active { color: var(--yellow); }
.mobile-bottom-nav a:hover { color: var(--yellow); }

/* === 旧的 data-view-mode 强制规则（兼容已保存设置）=== */
html[data-view-mode="mobile"] body {
  max-width: 420px; margin: 0 auto;
  box-shadow: 0 0 30px rgba(0,0,0,.6);
  min-height: 100vh;
}

/* ===== 主菜单下拉（体育 ▾） ===== */
.main-nav li { position: relative; }
.main-nav .caret {
  font-size: 10px; opacity: .7; margin-left: 2px;
  transition: transform .18s ease;
}
.main-nav li.has-sub:hover .caret { transform: rotate(180deg); }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 180px;
  background: #0e1547;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 6px 0;
  margin-top: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  display: none; z-index: 200;
}
.main-nav li.has-sub:hover .sub-menu,
.main-nav li.has-sub:focus-within .sub-menu { display: block; }
.main-nav .sub-menu a {
  display: block; padding: 9px 16px;
  border-radius: 0;
  font-size: 13px;
  color: var(--text, #c9d0e3);
  white-space: nowrap;
}
.main-nav .sub-menu a:hover {
  background: rgba(250,255,5,.08);
  color: var(--yellow);
}
.main-nav .sub-menu a.active::after { display: none; }
.main-nav .sub-menu .badge { margin-left: 4px; }

/* 移动端：下拉直接展开为子项 */
@media (max-width: 720px) {
  .main-nav .sub-menu {
    position: static; display: block; background: transparent;
    border: 0; box-shadow: none; padding: 0; margin: 0;
  }
  .main-nav .sub-menu a { padding: 10px 28px; font-size: 13px; opacity: .9; }
  .main-nav .caret { display: none; }
}
html[data-view-mode="mobile"] .main-nav .sub-menu {
  position: static; display: block; background: transparent;
  border: 0; box-shadow: none; padding: 0; margin: 0;
}
html[data-view-mode="mobile"] .main-nav .sub-menu a { padding: 10px 28px; font-size: 13px; opacity: .9; }
html[data-view-mode="mobile"] .main-nav .caret { display: none; }
