/* ==========================================================================
   Crown Ent. — 全局样式
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800;900&display=swap');
@import url('https://use.typekit.net/tsq5jgb.css');

/* ========== 基础变量 ========== */
:root {
  --bg: #0F212E;
  --bg-elevated: #16272F;
  --card: #1A2C38;
  --card-hover: #213743;
  --border: #2F4553;
  --border-light: #3D5765;
  --primary: #1A73E8;
  --primary-hover: #2E80F0;
  --green: #00E701;
  --green-dim: #00B301;
  --red: #FF4D4D;
  --gold: #FFC531;
  --gold-light: #FFE680;
  --gold-dark: #B8860B;
  --tech-cyan: #22D3EE;
  --tech-sky: #38BDF8;
  --tech-blue: #1A73E8;
  --tech-violet: #7C3AED;
  --text: #E8EAED;
  --text-dim: #8FA3B0;
  --text-muted: #6B7E8A;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --sidebar-w: 200px;
  --topbar-h: 60px;
  --font: 'neue-haas-grotesk-display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'neue-haas-grotesk-display', 'Inter', sans-serif;
  --font-logo: 'Orbitron', 'neue-haas-grotesk-display', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
code { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
img { max-width: 100%; display: block; }

::selection { background: var(--primary); color: #fff; }

/* ========== 移动端遮罩层 ========== */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 110; display: none; opacity: 0;
  transition: opacity 0.25s ease;
}
.sidebar-overlay.open { display: block; opacity: 1; }

/* ==========================================================================
   左侧图标栏
   ========================================================================== */
.sidebar-icons {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #1A2C38 0%, #16272F 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 8px;
  z-index: 120;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.sidebar-scroll {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-icon {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
}
.sidebar-icon-glyph {
  font-size: 20px;
  line-height: 1;
  filter: grayscale(0.3);
  transition: filter 0.15s, transform 0.15s;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.sidebar-icon-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.sidebar-icon:hover {
  background: rgba(34,211,238,0.1);
  color: var(--text);
}
.sidebar-icon:hover .sidebar-icon-glyph { filter: none; transform: scale(1.1); }
.sidebar-icon.active {
  background: linear-gradient(90deg, rgba(34,211,238,0.2), rgba(124,58,237,0.12));
  color: var(--tech-cyan);
}
.sidebar-icon.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  background: linear-gradient(180deg, var(--tech-cyan), var(--tech-violet));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--tech-cyan);
}
.sidebar-icon.active .sidebar-icon-glyph { filter: none; }
.sidebar-icon.active .sidebar-icon-label { font-weight: 700; }

.sidebar-divider {
  width: calc(100% - 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 10px 8px;
  flex-shrink: 0;
}
.sidebar-spacer { flex: 1; min-height: 8px; }

/* ========== 顶部导航栏 ========== */
.topbar {
  position: fixed;
  left: var(--sidebar-w); right: 0; top: 0;
  height: var(--topbar-h);
  background: linear-gradient(180deg, #16272F 0%, #0F212E 100%);
  border-bottom: 1px solid var(--border);
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  overflow: visible;
}
.topbar-inner {
  display: flex; align-items: center;
  height: 100%; padding: 0 16px;
  gap: 12px; flex-wrap: nowrap; overflow: visible;
  position: relative;
}
.topbar-left {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; min-width: 0;
  margin-right: auto;
  z-index: 2;
}
.topbar-right {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto; z-index: 1;
}

/* ========== Logo ========== */
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-logo);
  font-weight: 900; font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.25s ease;
  min-width: 0; flex-shrink: 0;
}
.logo:hover { transform: translateY(-1px); }
.logo-crown {
  display: inline-flex; width: 24px; height: 24px;
  align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)) drop-shadow(0 0 8px rgba(255,197,49,0.55));
  transition: filter 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.logo-crown svg { width: 100%; height: 100%; display: block; }
.logo:hover .logo-crown {
  transform: rotate(-6deg) scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)) drop-shadow(0 0 16px rgba(255,197,49,0.95));
}
.logo-text {
  display: inline-flex; align-items: baseline;
  white-space: nowrap;
  background: linear-gradient(120deg, #67E8F9 0%, #22D3EE 15%, #38BDF8 30%, #1A73E8 45%, #7C3AED 60%, #C084FC 75%, #22D3EE 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 900;
  letter-spacing: 0.03em;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.55)) drop-shadow(0 0 10px rgba(34,211,238,0.4));
  line-height: 1;
  animation: logoShine 6s linear infinite;
}
@keyframes logoShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.logo-word { font-weight: 900; }
.logo-dot {
  display: inline-block;
  background: linear-gradient(180deg, #22D3EE, #7C3AED);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 1px; font-weight: 900;
}
.logo-text-sub {
  font-size: 0.82em;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.95;
}

/* ========== 语言切换 ========== */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-globe {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(47,69,83,0.6), rgba(26,44,56,0.8));
  border: 1px solid var(--border);
  color: var(--tech-cyan);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: pointer;
}
.lang-globe svg { width: 17px; height: 17px; transition: transform 0.35s ease; }
.lang-globe:hover {
  border-color: var(--tech-cyan);
  color: #FFFFFF;
  background: linear-gradient(180deg, rgba(34,211,238,0.2), rgba(26,115,232,0.15));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 16px rgba(34,211,238,0.45);
}
.lang-globe:hover svg { transform: rotate(20deg); }
.lang-switcher.open .lang-globe {
  border-color: var(--tech-cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 20px rgba(34,211,238,0.55);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px); left: 0;
  background: linear-gradient(180deg, #1A2C38 0%, #16272F 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 190px; overflow: hidden;
  z-index: 9999;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85), 0 0 0 1px rgba(34,211,238,0.15), 0 0 30px rgba(34,211,238,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: langFadeIn 0.18s ease;
}
.lang-dropdown.open { display: block; }
@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  white-space: nowrap;
}
.lang-option:hover { background: rgba(34,211,238,0.1); color: var(--text); border-left-color: var(--tech-cyan); }
.lang-option.active {
  background: linear-gradient(90deg, rgba(34,211,238,0.18), transparent);
  color: var(--tech-cyan);
  border-left-color: var(--tech-cyan);
}
.lang-flag-svg {
  display: inline-flex; width: 24px; height: 16px;
  flex-shrink: 0; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.5);
}
.lang-flag-svg svg { width: 100%; height: 100%; display: block; }
.lang-name { flex: 1; min-width: 0; }
.lang-check {
  color: var(--tech-cyan);
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(34,211,238,0.6));
}

/* ========== 余额芯片 ========== */
.balance-chip {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(26,44,56,1) 0%, rgba(15,33,46,1) 100%) padding-box,
    linear-gradient(135deg, #22D3EE 0%, #38BDF8 25%, #00E701 60%, #7C3AED 100%) border-box;
  border: 1.5px solid transparent;
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 0 0 1px rgba(34,211,238,0.08),
    0 0 16px rgba(0,231,1,0.15),
    0 4px 12px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden; flex-shrink: 0;
}
.balance-chip::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg, transparent 330deg,
    rgba(34,211,238,0.5) 340deg,
    rgba(56,189,248,0.9) 355deg,
    rgba(34,211,238,0.5) 360deg);
  animation: balanceShine 4s linear infinite;
  pointer-events: none; opacity: 0.6; z-index: 0;
}
@keyframes balanceShine {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.balance-chip > * { position: relative; z-index: 1; }
.balance-chip:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 0 0 1px rgba(34,211,238,0.15),
    0 0 28px rgba(0,231,1,0.28),
    0 6px 16px rgba(0,0,0,0.6);
}
.balance-gem {
  display: inline-flex; width: 14px; height: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0,231,1,0.7));
  animation: gemPulse 2.5s ease-in-out infinite;
}
.balance-gem svg { width: 100%; height: 100%; }
@keyframes gemPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0,231,1,0.6)); }
  50% { filter: drop-shadow(0 0 12px rgba(0,231,1,1)); }
}
.balance-value {
  background: linear-gradient(180deg, #FFFFFF 0%, #D8FFE0 50%, #8FE89E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.03em;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6));
}
.balance-cur {
  background: linear-gradient(180deg, #22D3EE 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.1em;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* ========== 按钮 ========== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none; isolation: isolate; flex-shrink: 0;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none; z-index: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #4FA8F0 0%, #2E80F0 25%, #1A73E8 60%, #0D4E9F 100%);
  color: #fff;
  border: 1px solid #0A3E7E;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.04),
    0 4px 14px rgba(26,115,232,0.5),
    0 2px 4px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #5FB4FF 0%, #3E8DF0 25%, #2A80F0 60%, #1058AC 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 22px rgba(26,115,232,0.65),
    0 4px 8px rgba(0,0,0,0.5);
}
.btn-ghost {
  background: linear-gradient(180deg, rgba(61,87,101,0.7) 0%, rgba(33,55,67,0.9) 100%);
  border: 1px solid var(--border-light);
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -2px 0 rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.3);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(77,109,127,0.8) 0%, rgba(45,71,86,0.95) 100%);
  border-color: var(--tech-cyan);
  color: var(--tech-cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -2px 0 rgba(0,0,0,0.2), 0 6px 18px rgba(34,211,238,0.3), 0 3px 6px rgba(0,0,0,0.35);
}
.btn-success {
  background: linear-gradient(180deg, #3DFF40 0%, #00E701 45%, #009901 100%);
  color: #003300;
  border: 1px solid #007700;
  text-shadow: 0 1px 1px rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 0 rgba(0,0,0,0.2), 0 4px 14px rgba(0,231,1,0.4), 0 2px 4px rgba(0,0,0,0.4);
}
.btn-success:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #5AFF5D 0%, #00FF1A 45%, #00B301 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 0 rgba(0,0,0,0.2), 0 8px 22px rgba(0,231,1,0.55), 0 4px 8px rgba(0,0,0,0.5);
}
.btn-danger {
  background: linear-gradient(180deg, #FF7373 0%, #FF4D4D 45%, #B81717 100%);
  color: #fff;
  border: 1px solid #991414;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.25), 0 4px 14px rgba(255,77,77,0.45), 0 2px 4px rgba(0,0,0,0.4);
}
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 14px 40px; font-size: 15px; font-weight: 800; border-radius: 10px; letter-spacing: 0.05em; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; filter: grayscale(0.4); }

.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.icon-btn:hover {
  background: rgba(34,211,238,0.1);
  color: var(--tech-cyan);
  box-shadow: 0 0 10px rgba(34,211,238,0.25);
}
.hamburger {
  display: none;
  flex-direction: column; gap: 4px;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.2s;
}

/* ========== 用户菜单 ========== */
.user-area { position: relative; flex-shrink: 0; }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22D3EE 0%, #38BDF8 40%, #7C3AED 100%);
  color: #0F212E;
  font-weight: 900; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 8px rgba(34,211,238,0.4);
}
.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 12px rgba(34,211,238,0.6);
}
.user-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px; overflow: hidden;
  z-index: 9999;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.user-menu.open { display: block; }
.user-menu-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34,211,238,0.08), transparent);
}
.user-menu-name {
  font-weight: 700; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.user-menu-item {
  display: block; width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px; color: var(--text-dim);
  transition: 0.15s;
}
.user-menu-item:hover {
  background: rgba(34,211,238,0.12);
  color: var(--tech-cyan);
}
.user-menu-item.danger { color: var(--red); }
.user-menu-item.danger:hover { background: rgba(255,77,77,0.12); color: #FF8A8A; }
.hidden { display: none !important; }

/* ========== 主内容区 ========== */
.app-body {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
  max-width: 100%;
}
.main {
  flex: 1; min-width: 0;
  padding: 20px 24px 40px;
  overflow-x: hidden;
}

/* ==========================================================================
   周年庆 Hero 横幅
   ========================================================================== */
.hero-banner {
  position: relative;
  border-radius: 16px;
  padding: 58px 40px 62px;
  margin-bottom: 24px;
  text-align: center;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 12% 20%, rgba(255,197,49,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 88% 80%, rgba(124,58,237,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(34,211,238,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #16272F 0%, #0F212E 50%, #1A2C38 100%);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroBgZoom 20s ease-in-out infinite alternate;
}
@keyframes heroBgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15,33,46,0.45) 0%, rgba(15,33,46,0.75) 100%),
    linear-gradient(180deg, rgba(15,33,46,0.35) 0%, rgba(15,33,46,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-banner.has-bg-image .deco-item { opacity: 0.3; }
.hero-banner.has-bg-image:hover .deco-item { opacity: 0.4; }
.hero-banner.has-bg-image .confetti { opacity: 0.4; }

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, #FFE680 0%, #FFC531 20%, #22D3EE 45%, #7C3AED 70%, #FFC531 90%, #FFE680 100%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  animation: heroBorderShine 6s linear infinite;
}
@keyframes heroBorderShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-banner::after {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 50%; height: 180px;
  background: radial-gradient(ellipse at center, rgba(255,197,49,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(24px);
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-deco svg {
  position: absolute;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}
.deco-item {
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.hero-banner:hover .deco-item { opacity: 0.7; }

.deco-dice {
  left: 3%; bottom: 12%;
  width: 76px; height: 76px;
  transform: rotate(-15deg);
  animation: floatSlow 6s ease-in-out infinite;
}
.deco-chip {
  left: 6%; top: 15%;
  width: 58px; height: 58px;
  transform: rotate(15deg);
  animation: floatSlow 5s ease-in-out infinite 0.5s;
}
.deco-card {
  right: 4%; top: 12%;
  width: 64px; height: 90px;
  transform: rotate(15deg);
  animation: floatSlow 7s ease-in-out infinite 1s;
}
.deco-soccer {
  left: 14%; bottom: 22%;
  width: 52px; height: 52px;
  animation: floatSlow 6.5s ease-in-out infinite 0.3s;
}
.deco-basketball {
  right: 14%; bottom: 20%;
  width: 54px; height: 54px;
  animation: floatSlow 5.8s ease-in-out infinite 1.2s;
}
.deco-tennis {
  left: 22%; top: 12%;
  width: 40px; height: 40px;
  opacity: 0.5;
  animation: floatSlow 7.5s ease-in-out infinite 0.8s;
}
.deco-boxing {
  right: 22%; top: 14%;
  width: 44px; height: 44px;
  opacity: 0.5;
  animation: floatSlow 6s ease-in-out infinite 1.8s;
}
.deco-trophy {
  left: 50%; bottom: 6%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  opacity: 0.5;
  animation: floatSlow 8s ease-in-out infinite 2.2s;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.deco-dice { --rot: -15deg; }
.deco-chip { --rot: 15deg; }
.deco-card { --rot: 15deg; }
.deco-trophy { --rot: 0deg; }

.confetti {
  position: absolute;
  width: 6px; height: 10px;
  border-radius: 2px;
  opacity: 0.65;
  animation: confettiFloat 5s ease-in-out infinite;
}
@keyframes confettiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.65; }
  50% { transform: translateY(-22px) rotate(180deg); opacity: 0.25; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-line-1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 50px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 4px;
  background: linear-gradient(110deg, #FFE680 0%, #FFC531 25%, #FF9A1F 50%, #FFC531 75%, #FFE680 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(139,105,20,0.65))
    drop-shadow(0 3px 6px rgba(0,0,0,0.6))
    drop-shadow(0 0 18px rgba(255,197,49,0.35));
  animation: heroTitleShine 5s linear infinite;
}
@keyframes heroTitleShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-line-2 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 700;
  color: #E8EAED;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.5);
  margin-bottom: 2px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-amount {
  display: inline-block;
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-weight: 900;
  font-size: 1.55em;
  line-height: 1;
  padding: 0 6px;
  background: linear-gradient(120deg, #67E8F9 0%, #22D3EE 20%, #38BDF8 40%, #1A73E8 60%, #7C3AED 80%, #C084FC 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.6))
    drop-shadow(0 2px 6px rgba(0,0,0,0.5))
    drop-shadow(0 0 16px rgba(34,211,238,0.55));
  animation: amountShine 4s linear infinite, amountPop 2.4s ease-in-out infinite;
}
@keyframes amountShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes amountPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.hero-line-3 {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 800;
  padding: 9px 24px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #003300;
  background: linear-gradient(180deg, #3DFF40 0%, #00E701 50%, #00B301 100%);
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 4px 16px rgba(0,231,1,0.4),
    0 0 26px rgba(0,231,1,0.25);
  animation: heroPulse 2.4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 0 rgba(0,0,0,0.25), 0 4px 16px rgba(0,231,1,0.4), 0 0 26px rgba(0,231,1,0.25);
  }
  50% {
    transform: scale(1.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -2px 0 rgba(0,0,0,0.25), 0 6px 20px rgba(0,231,1,0.55), 0 0 40px rgba(0,231,1,0.35);
  }
}
.hero-cta {
  margin-top: 4px;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 10px;
  background: linear-gradient(180deg, #FFD966 0%, #FFC531 45%, #B8860B 100%);
  color: #1A1000;
  border: 1px solid #8B6914;
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -2px 0 rgba(0,0,0,0.3),
    0 6px 18px rgba(255,197,49,0.4),
    0 0 40px rgba(255,197,49,0.22);
  animation: ctaGlow 2.5s ease-in-out infinite;
}
.hero-cta:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #FFE680 0%, #FFD140 45%, #C89116 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -2px 0 rgba(0,0,0,0.3),
    0 10px 26px rgba(255,197,49,0.6),
    0 0 60px rgba(255,197,49,0.4);
}
@keyframes ctaGlow {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 0 rgba(0,0,0,0.3), 0 6px 18px rgba(255,197,49,0.4), 0 0 40px rgba(255,197,49,0.22);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -2px 0 rgba(0,0,0,0.3), 0 8px 22px rgba(255,197,49,0.55), 0 0 55px rgba(255,197,49,0.32);
  }
}

/* ==========================================================================
   页面标题
   ========================================================================== */
.page-heading {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
  background: linear-gradient(135deg, #FFFFFF 0%, #22D3EE 35%, #38BDF8 60%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.6)) drop-shadow(0 4px 8px rgba(34,211,238,0.35));
}
.page-heading::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tech-cyan) 0%, var(--tech-sky) 25%, var(--green) 55%, var(--tech-violet) 85%, transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(34,211,238,0.5);
}

/* ========== 区块标题 ========== */
.section { margin-bottom: 32px; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 8px;
}
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 900;
  letter-spacing: 0.01em;
  color: #FFE680;
  text-shadow:
    0 1px 0 #B8860B, 0 2px 0 #8B6914, 0 3px 0 #6B4F0F,
    0 4px 8px rgba(0,0,0,0.7),
    0 0 22px rgba(255,197,49,0.4);
  min-width: 0;
}
.section-title-icon { font-size: 18px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(255,197,49,0.6)); }
.section-arrow { color: var(--gold); font-weight: 400; font-size: 20px; }
.section-link {
  font-size: 13px; color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, text-shadow 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.section-link:hover { color: var(--tech-cyan); text-shadow: 0 0 10px rgba(34,211,238,0.6); }

/* ==========================================================================
   搜索 & 统计栏
   ========================================================================== */
.search-stats-bar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.stat-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.15s;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 56px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(47,69,83,0.65) 0%, rgba(26,44,56,0.95) 100%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 1px 0 rgba(0,0,0,0.25),
    0 4px 12px rgba(0,0,0,0.35);
}
.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--tech-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 20px rgba(34,211,238,0.28),
    0 6px 18px rgba(0,0,0,0.5);
}
.stat-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
}
.stat-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}
.stat-label {
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.stat-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.15;
}
.stat-value.green {
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,231,1,0.7), 0 1px 0 rgba(0,0,0,0.5);
}

.search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
  min-height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(47,69,83,0.55) 0%, rgba(26,44,56,0.95) 100%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 4px 12px rgba(0,0,0,0.35);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within {
  border-color: var(--tech-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 0 0 2px rgba(34,211,238,0.18),
    0 0 24px rgba(34,211,238,0.32),
    0 6px 16px rgba(0,0,0,0.5);
}
.search-icon { font-size: 16px; color: var(--text-dim); flex-shrink: 0; }
.search-input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-shortcut {
  font-size: 11px; color: var(--text-muted);
  background: linear-gradient(180deg, rgba(15,33,46,0.9), rgba(15,33,46,0.7));
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  font-family: var(--mono);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ==========================================================================
   游戏卡片
   ========================================================================== */
.grid-games-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.game-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-width: 0;
  position: relative;
}
.game-tile:hover {
  transform: translateY(-5px);
  border-color: var(--tech-cyan);
  box-shadow:
    0 16px 36px rgba(0,0,0,0.6),
    0 0 0 1px rgba(34,211,238,0.2),
    0 0 28px rgba(34,211,238,0.35);
}
.game-tile-media {
  position: relative;
  aspect-ratio: 10 / 13;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #2F4553 0%, #1A2C38 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@supports (aspect-ratio: 10 / 13) {
  .game-tile-media { height: auto; }
}
.game-tile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-tile:hover .game-tile-img { transform: scale(1.06); }
.game-tile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 72px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
  background: linear-gradient(135deg, #2F4553 0%, #1A2C38 100%);
}
.game-tile-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px; font-weight: 800; color: #0F212E;
  background: linear-gradient(180deg, #22D3EE, #38BDF8);
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.game-tile-info {
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(47,69,83,0.3), rgba(26,44,56,0.8));
  border-top: 1px solid var(--border);
  text-align: center;
}
.game-tile-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
}

.green-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50% { opacity: 0.5; box-shadow: 0 0 12px var(--green); }
}

/* 首页每类显示限制 */
.home-grid .game-tile:nth-child(n+8) { display: none !important; }
@media (max-width: 767px) {
  .home-grid .game-tile:nth-child(7) { display: none !important; }
}
@media (max-width: 480px) {
  .home-grid .game-tile:nth-child(7) { display: none !important; }
}

/* ==========================================================================
   体育网格
   ========================================================================== */
.grid-sports {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.sport-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  cursor: pointer; min-width: 0;
}
.sport-card:hover {
  transform: translateY(-4px);
  border-color: var(--tech-cyan);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,211,238,0.15), 0 0 24px rgba(34,211,238,0.25);
}
.sport-thumb {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1A73E8 0%, #0F212E 100%);
  position: relative; overflow: hidden;
}
.sport-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12), transparent 60%);
}
.sport-thumb-icon { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); z-index: 1; }
.sport-info { padding: 10px 12px; }
.sport-name {
  font-size: 13px; font-weight: 700;
  margin-bottom: 2px;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sport-count { font-size: 11px; color: var(--text-dim); text-align: center; font-family: var(--mono); }

/* ==========================================================================
   促销网格
   ========================================================================== */
.grid-promos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.promo-card-v2 {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  cursor: pointer; min-width: 0;
}
.promo-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--tech-cyan);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,211,238,0.15), 0 0 24px rgba(34,211,238,0.25);
}
.promo-thumb {
  width: 110px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2F4553 0%, #1A73E8 100%);
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
.promo-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.promo-thumb-icon {
  position: relative;
  z-index: 0;
  font-size: 42px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.promo-body { padding: 14px; flex: 1; min-width: 0; }
.promo-tag {
  font-size: 10px;
  background: linear-gradient(135deg, #22D3EE, #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.promo-title-v2 { font-size: 14px; font-weight: 800; margin-bottom: 6px; line-height: 1.3; }
.promo-desc-v2 { font-size: 12px; color: var(--text-dim); line-height: 1.4; margin-bottom: 8px; }
.promo-cta { font-size: 12px; color: var(--tech-cyan); font-weight: 700; text-shadow: 0 0 8px rgba(34,211,238,0.4); }

/* ==========================================================================
   投注 Tab 栏
   ========================================================================== */
.bets-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.bets-tab-group {
  display: flex;
  gap: 0;
  background: linear-gradient(180deg, rgba(47,69,83,0.5), rgba(26,44,56,0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.25);
}
.bets-tab {
  padding: 8px 20px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  transition: 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.bets-tab:hover { color: var(--text); }
.bets-tab.active {
  background: linear-gradient(180deg, #4FA8F0 0%, #1A73E8 60%, #0D4E9F 100%);
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -2px 0 rgba(0,0,0,0.2), 0 4px 12px rgba(26,115,232,0.5);
}
.bets-tabs-wrap > .bets-tab {
  background: linear-gradient(180deg, rgba(47,69,83,0.5), rgba(26,44,56,0.8));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.25);
}
.bets-tabs-wrap > .bets-tab.active {
  background: linear-gradient(180deg, #4FA8F0 0%, #1A73E8 60%, #0D4E9F 100%);
  border-color: #0A3E7E;
  color: #fff;
}

.bets-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(47,69,83,0.5), rgba(26,44,56,0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  transition: 0.15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.25);
}
.bets-count:hover {
  border-color: var(--tech-cyan);
  color: var(--tech-cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 12px rgba(34,211,238,0.3), 0 2px 8px rgba(0,0,0,0.3);
}
.bets-count-caret { font-size: 10px; color: var(--text-dim); }

/* ==========================================================================
   投注面板
   ========================================================================== */
.bets-panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
.bets-panel.active { display: block; }

.live-bets-table-wrap { overflow-x: auto; }

.live-bets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.live-bets-table .col-game   { width: 22%; }
.live-bets-table .col-player { width: 20%; }
.live-bets-table .col-time   { width: 12%; }
.live-bets-table .col-bet    { width: 16%; }
.live-bets-table .col-multi  { width: 12%; }
.live-bets-table .col-win    { width: 18%; }

.live-bets-table thead th {
  text-align: left;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, rgba(47,69,83,0.4), rgba(26,44,56,0.6));
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.live-bets-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(47,69,83,0.5);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-bets-table tbody tr { transition: background 0.15s; }
.live-bets-table tbody tr:hover { background: rgba(34,211,238,0.05); }
.live-bets-table tbody tr.lb-new { animation: lbRowIn 0.5s ease; }
@keyframes lbRowIn {
  from { opacity: 0; transform: translateY(-8px); background: rgba(34,211,238,0.15); }
  to   { opacity: 1; transform: translateY(0); }
}

.lb-game {
  font-weight: 700;
  color: var(--text);
}
.lb-game-icon { font-size: 16px; margin-right: 6px; }
.lb-game-name {
  display: inline-block;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.lb-player {
  color: var(--text-dim);
  font-size: 12px;
}
.lb-avatar {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F4553, #1A2C38);
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 6px;
  vertical-align: middle;
}
.lb-player-name {
  display: inline-block;
  max-width: calc(100% - 30px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.lb-time { color: var(--text-dim); font-family: var(--mono); font-size: 12px; }
.lb-bet { font-family: var(--mono); font-weight: 700; color: var(--text); }
.lb-cur { font-size: 12px; margin-left: 2px; }
.lb-multi {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255,197,49,0.4);
}
.lb-win { font-family: var(--mono); font-weight: 800; }
.lb-win.pos { color: var(--green); text-shadow: 0 0 8px rgba(0,231,1,0.5); }
.lb-win.neg { color: var(--red); text-shadow: 0 0 8px rgba(255,77,77,0.4); }

/* ==========================================================================
   竞赛排行榜
   ========================================================================== */
.race-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(34,211,238,0.06), transparent);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}
.race-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.race-trophy {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(255,197,49,0.6));
  flex-shrink: 0;
}
.race-title {
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,197,49,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-header-right {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.race-header-right strong {
  color: var(--tech-cyan);
  font-family: var(--mono);
  text-shadow: 0 0 8px rgba(34,211,238,0.4);
}

.race-table-wrap { overflow-x: auto; }

.race-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.race-table thead th {
  padding: 12px 18px;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, rgba(47,69,83,0.4), rgba(26,44,56,0.6));
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.race-table thead th:first-child { text-align: left; }
.race-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(47,69,83,0.5);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-table tbody td:first-child { text-align: left; }
.race-table tbody td:not(:first-child) {
  text-align: right;
  font-family: var(--mono);
  font-weight: 700;
}
.race-table tbody tr { transition: background 0.15s; }
.race-table tbody tr:hover { background: rgba(34,211,238,0.05); }
.race-top { background: rgba(255,197,49,0.04); }

.race-player {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.race-rank {
  display: inline-block;
  width: 34px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  font-family: var(--mono);
}
.race-medal-icon {
  font-size: 15px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,197,49,0.6));
}
.race-avatar {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F4553, #1A2C38);
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.race-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.race-bet { color: var(--text); }
.race-prize { color: var(--green); text-shadow: 0 0 8px rgba(0,231,1,0.4); }

/* ========== 免责声明 ========== */
.disclaimer-box {
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(47,69,83,0.3), rgba(26,44,56,0.5));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ========== 聊天停靠 ========== */
.chat-dock {
  width: 300px; flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--card);
  display: flex; flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  position: sticky; top: var(--topbar-h);
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34,211,238,0.05), transparent);
}
.chat-tabs { display: flex; gap: 4px; }
.chat-tab {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-dim);
  transition: 0.15s;
  font-weight: 600;
}
.chat-tab:hover { color: var(--text); }
.chat-tab.active {
  background: rgba(34,211,238,0.15);
  color: var(--tech-cyan);
  text-shadow: 0 0 8px rgba(34,211,238,0.4);
}
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; }
.chat-msg { margin-bottom: 10px; font-size: 12px; line-height: 1.4; }
.chat-msg-user { font-weight: 700; color: var(--tech-cyan); }
.chat-msg-text { color: var(--text); }
.chat-msg-system { color: var(--green); font-style: italic; }
.chat-foot { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input {
  flex: 1; min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text); font-size: 12px;
  outline: none;
}
.chat-input:focus { border-color: var(--tech-cyan); }
.chat-fab {
  display: none;
  position: fixed; right: 20px; bottom: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4FA8F0 0%, #1A73E8 60%, #0D4E9F 100%);
  color: #fff; font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 6px 20px rgba(26,115,232,0.6), 0 2px 6px rgba(0,0,0,0.4);
  z-index: 90;
}

/* ========== 弹窗 ========== */
.modal-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 420px;
  max-height: 90vh; overflow: auto;
  animation: modalIn 0.18s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 800; font-size: 15px;
  background: linear-gradient(180deg, rgba(34,211,238,0.08), transparent);
}
.modal-body { padding: 16px; }
.modal-body .input { margin-bottom: 10px; }

/* ========== 通用输入框 ========== */
.input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text); font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--tech-cyan); box-shadow: 0 0 0 2px rgba(34,211,238,0.15); }

/* ========== Toast ========== */
.toast-wrap {
  position: fixed;
  top: calc(var(--topbar-h) + 20px);
  right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
  max-width: calc(100vw - 40px);
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tech-cyan);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: toastIn 0.2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   底部 —— 认证标识 + 版权 + TG 客服
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #0F212E 0%, #0B1520 100%);
  padding: 40px 20px 32px;
  margin-top: 40px;
  margin-left: var(--sidebar-w);
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.cert-badge:hover { opacity: 1; }
.cert-svg {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(232,234,237,0.15));
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(47,69,83,0.5);
  width: 100%;
}
.footer-copyright {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.tg-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34,158,217,0.15), rgba(34,158,217,0.05));
  border: 1px solid rgba(34,158,217,0.4);
  color: #7DD3FC;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
}
.tg-support:hover {
  background: linear-gradient(180deg, rgba(34,158,217,0.25), rgba(34,158,217,0.1));
  border-color: #229ED9;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,158,217,0.35);
}
.tg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.tg-label { white-space: nowrap; }

/* ==========================================================================
   钱包 Tab 栏 —— 4 列等宽，全平台自适应
   ========================================================================== */
.wallet-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}
.wallet-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.wallet-tab.active {
  background: linear-gradient(180deg, #4FA8F0, #1A73E8 70%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 10px rgba(26,115,232,0.4);
}

/* ==========================================================================
   其他页面通用样式
   ========================================================================== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.game-card, .slot-card, .live-card, .promo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px; text-align: center;
  transition: 0.15s;
  cursor: pointer; min-width: 0;
}
.game-card:hover, .slot-card:hover, .live-card:hover, .promo-card:hover {
  border-color: var(--tech-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 16px rgba(34,211,238,0.2);
}
.game-card-icon { font-size: 36px; margin-bottom: 8px; }
.game-card-name { font-size: 13px; font-weight: 700; }
.slot-thumb, .live-thumb { font-size: 40px; margin-bottom: 8px; }
.slot-name, .live-name { font-size: 13px; font-weight: 700; }
.slot-provider { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.promo-icon { font-size: 36px; margin-bottom: 8px; }
.promo-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.promo-desc { font-size: 12px; color: var(--text-dim); }

.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
select.input {
  width: auto; min-width: 140px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.filters .input { width: auto; min-width: 160px; }
.filters input.input { flex: 1; min-width: 200px; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(47,69,83,0.5), rgba(26,44,56,0.7));
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  transition: 0.15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.tab:hover { color: var(--text); transform: translateY(-1px); }
.tab.active {
  background: linear-gradient(180deg, #4FA8F0 0%, #1A73E8 60%, #0D4E9F 100%);
  color: #fff;
  border-color: #0A3E7E;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -2px 0 rgba(0,0,0,0.2), 0 4px 12px rgba(26,115,232,0.5);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.sports-toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47,69,83,0.5), rgba(26,44,56,0.7));
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  transition: 0.15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.chip:hover, .chip.active {
  background: linear-gradient(180deg, rgba(34,211,238,0.2), rgba(34,211,238,0.05));
  color: var(--tech-cyan);
  border-color: var(--tech-cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 12px rgba(34,211,238,0.3);
}
.sports-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.sports-events { display: flex; flex-direction: column; gap: 10px; }
.event-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.event-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
.event-teams { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; gap: 8px; }
.event-odds { display: flex; gap: 8px; }
.odd-btn {
  flex: 1; min-width: 0;
  padding: 8px;
  background: linear-gradient(180deg, rgba(47,69,83,0.4), rgba(26,44,56,0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  transition: 0.15s;
  color: var(--text);
}
.odd-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.odd-btn.selected {
  background: linear-gradient(180deg, #4FA8F0 0%, #1A73E8 60%, #0D4E9F 100%);
  color: #fff;
  border-color: #0A3E7E;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 12px rgba(26,115,232,0.5);
}
.odd-label { font-size: 10px; color: var(--text-dim); display: block; }
.odd-btn.selected .odd-label { color: rgba(255,255,255,0.85); }

.bet-slip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  height: fit-content;
}
.bet-slip-head {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(34,211,238,0.08), transparent);
}
.bet-slip-body { padding: 12px; min-height: 120px; }
.bet-slip-body .empty { color: var(--text-dim); font-size: 12px; text-align: center; padding: 20px 0; }
.bet-slip-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.bet-slip-item:last-child { border-bottom: none; }
.bet-slip-foot { padding: 12px; border-top: 1px solid var(--border); }
.bet-slip-total { display: flex; justify-content: space-between; margin-bottom: 10px; font-family: var(--mono); font-weight: 700; }

.wallet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.wallet-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.wallet-label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }
.wallet-balance {
  font-family: var(--mono);
  font-size: 28px; font-weight: 800;
  background: linear-gradient(180deg, #FFFFFF 0%, #D8FFE0 60%, #8FE89E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-all;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}
.wallet-currency { font-size: 12px; color: var(--text-dim); }
.wallet-address { font-family: var(--mono); font-size: 12px; word-break: break-all; margin-bottom: 10px; }
.qr-placeholder { font-size: 60px; text-align: center; color: var(--text-dim); }
.currency-row, .fiat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.currency-chip, .fiat-chip {
  padding: 8px 16px;
  background: linear-gradient(180deg, rgba(47,69,83,0.5), rgba(26,44,56,0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
  color: var(--text);
  font-weight: 700;
  transition: 0.15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.currency-chip:hover { border-color: var(--tech-cyan); transform: translateY(-1px); }
.currency-chip.active {
  border-color: var(--tech-cyan);
  background: linear-gradient(180deg, rgba(34,211,238,0.2), rgba(34,211,238,0.05));
  color: var(--tech-cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 12px rgba(34,211,238,0.3);
}
.tx-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.tx-item {
  display: flex; justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  gap: 8px;
  flex-wrap: wrap;
}
.tx-item:last-child { border-bottom: none; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  max-width: 500px;
}
.form-card h3 { font-size: 15px; margin-bottom: 14px; font-weight: 800; }
.form-card .input { margin-bottom: 10px; }

.auth-section { display: flex; justify-content: center; padding-top: 40px; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 900;
  margin-bottom: 22px;
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #22D3EE 50%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6));
}
.auth-card .input { margin-bottom: 12px; }
.auth-switch { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 16px; }
.auth-switch a { color: var(--tech-cyan); font-weight: 700; }
.auth-switch a:hover { text-shadow: 0 0 8px rgba(34,211,238,0.6); }

.game-layout { display: grid; grid-template-columns: 280px 1fr 240px; gap: 16px; }
.game-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.game-panel-title {
  font-size: 12px; font-weight: 800;
  color: var(--tech-cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(34,211,238,0.4);
}
.game-panel .input { margin-bottom: 10px; }
.bet-quick { display: flex; gap: 6px; margin-bottom: 12px; }
.bet-quick .chip { flex: 1; padding: 6px; font-size: 11px; border-radius: var(--radius); min-width: 0; }
.game-stage {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.game-stage canvas { max-width: 100%; height: auto; display: block; }
.game-fair {
  display: flex; gap: 16px;
  margin-top: 12px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  flex-wrap: wrap;
}
.fair-item { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.fair-item span { color: var(--text-dim); }
.fair-item code { word-break: break-all; }
.game-history { margin-top: 16px; }
.history-list {
  max-height: 220px; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.history-item {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; }
.recent-wins { font-size: 12px; }
.recent-win-item { padding: 6px 0; border-bottom: 1px solid var(--border); }

.crash-multiplier {
  position: absolute; top: 24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 52px; font-weight: 900;
  background: linear-gradient(180deg, #FFFFFF, #00E701);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  pointer-events: none;
}
.crash-status {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 18px; font-weight: 800;
  pointer-events: none;
  text-align: center;
}
.range-slider {
  width: 100%; margin: 8px 0;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: var(--border); outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4FA8F0 0%, #1A73E8 100%);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 6px rgba(26,115,232,0.6);
  border: 1px solid #0A3E7E;
}
.dice-stage { flex-direction: column; gap: 20px; padding: 30px; }
.dice-result {
  font-family: var(--mono);
  font-size: 56px; font-weight: 900;
  background: linear-gradient(180deg, #FFFFFF, #1A73E8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.dice-bar { position: relative; width: 80%; height: 10px; background: var(--card); border-radius: 5px; border: 1px solid var(--border); }
.dice-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--primary)); border-radius: 5px; }
.dice-bar-marker {
  position: absolute; top: -6px;
  width: 4px; height: 22px;
  background: linear-gradient(180deg, #22D3EE, #FF4D4D);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255,77,77,0.6);
}
.dice-status { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.dice-mode { display: flex; gap: 6px; margin: 10px 0; }
.dice-mode .chip { flex: 1; }

.plinko-stage { padding: 10px; }
.plinko-status {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 18px; font-weight: 800;
}
.plinko-risk, .plinko-rows, .wheel-risk, .wheel-segments {
  display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap;
}
.plinko-risk .chip, .plinko-rows .chip,
.wheel-risk .chip, .wheel-segments .chip { flex: 1; min-width: 40px; }

.limbo-stage { flex-direction: column; gap: 20px; }
.limbo-result {
  font-family: var(--mono);
  font-size: 64px; font-weight: 900;
  background: linear-gradient(180deg, #FFFFFF, #1A73E8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.limbo-target { font-family: var(--mono); font-size: 16px; color: var(--text-dim); }
.limbo-status { font-family: var(--mono); font-size: 16px; font-weight: 700; }

.mines-stage { flex-direction: column; gap: 20px; padding: 24px; }
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%; max-width: 420px;
}
.mines-cell {
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 28px;
  transition: 0.15s;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mines-cell:hover { border-color: var(--tech-cyan); transform: translateY(-2px); }
.mines-cell.safe { background: linear-gradient(180deg, rgba(0,231,1,0.2), rgba(0,231,1,0.08)); border-color: var(--green); box-shadow: 0 0 12px rgba(0,231,1,0.4); }
.mines-cell.mine { background: linear-gradient(180deg, rgba(255,77,77,0.25), rgba(255,77,77,0.1)); border-color: var(--red); box-shadow: 0 0 12px rgba(255,77,77,0.5); }
.mines-status { font-family: var(--mono); font-size: 16px; font-weight: 700; }

.keno-stage { flex-direction: column; gap: 20px; padding: 20px; }
.keno-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  width: 100%; max-width: 600px;
}
.keno-cell {
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 14px; font-weight: 700;
  transition: 0.15s;
  color: var(--text);
}
.keno-cell:hover { border-color: var(--tech-cyan); transform: translateY(-2px); }
.keno-cell.picked { background: linear-gradient(180deg, rgba(34,211,238,0.3), rgba(34,211,238,0.1)); border-color: var(--tech-cyan); color: var(--tech-cyan); box-shadow: 0 0 12px rgba(34,211,238,0.5); }
.keno-cell.drawn { background: linear-gradient(180deg, rgba(0,231,1,0.25), rgba(0,231,1,0.1)); border-color: var(--green); color: var(--green); box-shadow: 0 0 12px rgba(0,231,1,0.5); }
.keno-selected { font-family: var(--mono); font-size: 14px; color: var(--text-dim); padding: 8px 0; font-weight: 700; }
.keno-status { font-family: var(--mono); font-size: 16px; font-weight: 700; }

.wheel-stage { position: relative; padding: 20px; }
.wheel-result {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 20px; font-weight: 800;
  background: rgba(15,33,46,0.95);
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--tech-cyan);
  box-shadow: 0 0 16px rgba(34,211,238,0.4);
  pointer-events: none;
  white-space: nowrap;
}

.referral-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.referral-link { display: flex; gap: 10px; margin-bottom: 20px; }
.referral-link .input { flex: 1; min-width: 0; }
.referral-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 22px; font-weight: 800;
  background: linear-gradient(180deg, #FFFFFF, #00E701);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}
.stat-label { font-size: 11px; color: var(--text-dim); }

.vip-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.vip-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; gap: 8px; font-weight: 700; }
.vip-badge { padding: 4px 14px; border-radius: 999px; color: #0F212E; font-weight: 900; font-size: 12px; text-shadow: 0 1px 1px rgba(255,255,255,0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.3); }
.vip-progress { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.vip-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--tech-cyan), var(--green)); border-radius: 4px; transition: width 0.3s; box-shadow: 0 0 10px rgba(34,211,238,0.6); }
.vip-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.vip-levels { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.vip-level-row {
  display: grid;
  grid-template-columns: 20px 1fr 80px 120px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.vip-level-row:last-child { border-bottom: none; }
.vip-dot { width: 12px; height: 12px; border-radius: 50%; }
.vip-level-name { font-weight: 700; }
.vip-level-rakeback { font-family: var(--mono); color: var(--green); text-align: right; font-weight: 700; }
.vip-level-wager { font-family: var(--mono); color: var(--text-dim); text-align: right; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 24px; transition: 0.2s; }
.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%; transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.switch input:checked + .switch-slider { background: linear-gradient(180deg, #22D3EE, #38BDF8); box-shadow: 0 0 12px rgba(34,211,238,0.5); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

.chat-page-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); max-width: 720px; }
.chat-page-messages { height: 420px; overflow-y: auto; padding: 16px; }
.chat-page-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }

/* ==========================================================================
   响应式断点
   ========================================================================== */

@media (max-width: 1440px) {
  :root { --sidebar-w: 180px; }
  .chat-dock { width: 260px; }
  .game-layout { grid-template-columns: 240px 1fr 220px; }
  .grid-games-v2 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 160px; }
  .chat-dock { display: none; }
  .chat-dock.mobile-open {
    display: flex;
    position: fixed;
    right: 0; top: var(--topbar-h); bottom: 0;
    z-index: 96;
    width: 280px; max-width: 90vw;
  }
  .chat-fab { display: flex; align-items: center; justify-content: center; }
  .game-layout { grid-template-columns: 240px 1fr; }
  .game-side-panel { display: none; }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .sports-layout { grid-template-columns: 1fr; }
  .bet-slip { position: static; }
  .grid-games-v2 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .site-footer { margin-left: var(--sidebar-w); }
}

@media (max-width: 767px) {
  :root { --sidebar-w: 240px; }
  .sidebar-icons {
    transform: translateX(-100%);
    z-index: 120;
    box-shadow: 4px 0 24px rgba(0,0,0,0.6);
  }
  .sidebar-icons.open { transform: translateX(0); }

  .topbar { left: 0; }
  .app-body { margin-left: 0; }
  .main { padding: 16px 14px 32px; }

  .hamburger { display: flex; }
  .hide-sm { display: none !important; }
  .hide-md { display: none !important; }
  .hide-xs { display: none !important; }

  .topbar-inner { padding: 0 10px; gap: 8px; }
  .topbar-left { gap: 6px; }
  .topbar-right { gap: 5px; }

  .logo { font-size: 14px; gap: 5px; }
  .logo-crown { width: 19px; height: 19px; }

  .lang-globe { width: 30px; height: 30px; }
  .lang-globe svg { width: 15px; height: 15px; }
  .lang-dropdown { top: calc(100% + 6px); min-width: 175px; }
  .lang-option { padding: 10px 12px; font-size: 12.5px; }
  .lang-flag-svg { width: 22px; height: 15px; }

  .balance-chip { padding: 5px 10px 5px 8px; font-size: 12px; gap: 5px; }
  .balance-gem { width: 12px; height: 12px; }
  .balance-value { font-size: 12px; }
  .balance-cur { font-size: 9.5px; letter-spacing: 0.08em; }

  .btn-sm { padding: 6px 10px; font-size: 11.5px; border-radius: 6px; }

  .hero-banner { padding: 40px 20px 44px; min-height: 260px; border-radius: 14px; }
  .hero-content { gap: 10px; }
  .hero-line-1 { letter-spacing: 0.03em; }
  .hero-line-3 { padding: 8px 20px; font-size: 13px; }
  .hero-cta { padding: 12px 32px; font-size: 14px; }

  .deco-dice { width: 52px; height: 52px; left: 2%; bottom: 10%; }
  .deco-chip { width: 40px; height: 40px; left: 4%; top: 12%; }
  .deco-card { width: 44px; height: 62px; right: 3%; top: 10%; }
  .deco-soccer { width: 38px; height: 38px; left: 10%; bottom: 26%; }
  .deco-basketball { width: 40px; height: 40px; right: 10%; bottom: 24%; }
  .deco-tennis { width: 30px; height: 30px; left: 20%; top: 10%; }
  .deco-boxing { width: 32px; height: 32px; right: 20%; top: 12%; }
  .deco-trophy { width: 32px; height: 32px; bottom: 5%; }
  .deco-item { opacity: 0.45; }

  /* 搜索统计栏：移动端保持一行 */
  .search-stats-bar {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 16px;
    align-items: stretch;
  }
  .stat-item {
    flex: 0 1 auto;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 8px;
    min-width: 0;
    min-height: 48px;
  }
  .stat-icon { font-size: 18px; }
  .stat-label { font-size: 10.5px; letter-spacing: 0; }
  .stat-value { font-size: 12px; }
  .stat-body { gap: 0; }
  .search-box {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 8px;
    min-height: 48px;
  }
  .search-icon { font-size: 13px; }
  .search-input { font-size: 12.5px; min-width: 0; }
  .search-shortcut { display: none; }

  .grid-games-v2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-tile-players { font-size: 12px; }
  .game-tile-info { padding: 10px 12px; }
  .game-tile-badge { font-size: 10px; padding: 3px 8px; }

  .grid-sports { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-promos { grid-template-columns: 1fr; }

  .promo-thumb { width: 88px; }
  .promo-thumb-icon { font-size: 34px; }
  .promo-body { padding: 12px; }
  .promo-title-v2 { font-size: 13px; }
  .promo-desc-v2 { font-size: 11px; }

  .sport-thumb { height: 80px; }
  .sport-thumb-icon { font-size: 34px; }

  .page-heading { font-size: 22px; }
  .section-title { font-size: 15px; }
  .auth-section { padding-top: 20px; }
  .auth-card { padding: 24px 18px; }
  .auth-card h1 { font-size: 20px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-stage { min-height: 300px; }
  .wallet-grid { grid-template-columns: 1fr; }
  .vip-level-row { grid-template-columns: 16px 1fr 60px; padding: 10px 12px; }
  .vip-level-wager { display: none; }
  .referral-link { flex-direction: column; }
  .referral-stats { grid-template-columns: repeat(2, 1fr); }
  .dice-result { font-size: 42px; }
  .limbo-result { font-size: 48px; }
  .crash-multiplier { font-size: 40px; }
  .keno-grid { grid-template-columns: repeat(6, 1fr); }
  .form-card { padding: 16px; }
  .chat-page-messages { height: 320px; }
  .modal { max-width: 100%; }
  .toast-wrap { right: 12px; left: 12px; align-items: stretch; }
  .toast { text-align: center; }

  /* Tab 横向滚动 */
  .bets-tabs-wrap {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .bets-tab-group,
  .bets-tabs-wrap > .bets-tab,
  .bets-count { flex-shrink: 0; }
  .bets-count { margin-left: 8px; }

  /* 表格缩小 */
  .live-bets-table,
  .race-table { font-size: 11px; }
  .live-bets-table thead th,
  .race-table thead th { padding: 8px 6px; font-size: 10px; letter-spacing: 0; }
  .live-bets-table tbody td,
  .race-table tbody td { padding: 9px 6px; }
  .lb-avatar,
  .race-avatar { width: 14px; height: 14px; font-size: 9px; margin-right: 4px; }
  .lb-game-icon { display: none; }
  .lb-game-name { max-width: 100%; }
  .lb-player-name { max-width: calc(100% - 18px); }
  .lb-cur { display: none; }
  .race-rank { width: 26px; font-size: 10px; }
  .race-medal-icon { display: none; }
  .race-header { padding: 10px 12px; font-size: 12px; }
  .race-title { font-size: 12px; }
  .race-header-right { font-size: 11px; }

  /* 钱包 Tab */
  .wallet-tabs {
    gap: 3px;
    padding: 3px;
    margin-bottom: 16px;
    border-radius: 10px;
  }
  .wallet-tab {
    padding: 10px 4px;
    font-size: 12px;
    gap: 4px;
    border-radius: 8px;
  }

  /* 底部 */
  .site-footer { margin-left: 0; padding: 32px 16px 24px; }
  .footer-badges { gap: 20px; }
  .cert-svg { height: 30px; }
  .footer-bottom-row {
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
  }
  .footer-copyright { font-size: 12px; text-align: center; }
  .tg-support { font-size: 12.5px; padding: 7px 14px; }
  .tg-icon { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  :root { --sidebar-w: 240px; }
  .topbar-inner { padding: 0 8px; gap: 5px; }
  .topbar-left { gap: 5px; }
  .topbar-right { gap: 4px; }

  .logo { font-size: 13px; gap: 4px; }
  .logo-crown { width: 17px; height: 17px; }
  .logo-text-sub { font-size: 0.72em; }

  .lang-globe { width: 28px; height: 28px; }
  .lang-globe svg { width: 14px; height: 14px; }
  .lang-dropdown { min-width: 160px; }
  .lang-option { padding: 9px 11px; font-size: 12px; }
  .lang-flag-svg { width: 20px; height: 14px; }

  .balance-chip { padding: 4px 8px 4px 6px; font-size: 11px; gap: 4px; }
  .balance-gem { width: 10px; height: 10px; }
  .balance-value { font-size: 11px; }
  .balance-cur { display: none; }

  .btn-sm { padding: 5px 8px; font-size: 11px; border-radius: 5px; }

  .hero-banner { padding: 32px 16px 36px; min-height: 230px; }
  .hero-line-1 { font-size: 24px; }
  .hero-line-2 { font-size: 14px; gap: 5px; }
  .hero-amount { font-size: 1.4em; padding: 0 4px; }
  .hero-line-3 { font-size: 12px; padding: 7px 16px; }
  .hero-cta { padding: 11px 26px; font-size: 13px; }
  .deco-tennis, .deco-boxing { display: none; }
  .deco-soccer { width: 30px; height: 30px; }
  .deco-basketball { width: 32px; height: 32px; }
  .deco-trophy { width: 26px; height: 26px; }

  /* 搜索栏进一步压缩 */
  .search-stats-bar { flex-wrap: nowrap; gap: 5px; margin-bottom: 14px; align-items: stretch; }
  .stat-item { flex: 0 1 auto; padding: 6px 8px; gap: 5px; border-radius: 7px; min-height: 44px; }
  .stat-icon { font-size: 15px; }
  .stat-label { font-size: 9.5px; letter-spacing: 0; }
  .stat-value { font-size: 10.5px; }
  .search-box { flex: 1 1 auto; min-width: 0; padding: 6px 8px; gap: 5px; border-radius: 7px; min-height: 44px; }
  .search-icon { font-size: 12px; }
  .search-input { font-size: 11.5px; }
  .search-input::placeholder { font-size: 11px; }

  .grid-games-v2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-tile-fallback { font-size: 56px; }
  .game-tile-info { padding: 10px 12px; }
  .game-tile-players { font-size: 11.5px; }
  .game-tile-badge { font-size: 9px; padding: 3px 7px; }

  .grid-sports { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sport-thumb { height: 72px; }
  .sport-thumb-icon { font-size: 28px; }

  .bottom-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .tab-btn { flex-shrink: 0; }

  .bets-tab { padding: 7px 12px; font-size: 11.5px; }
  .bets-count { padding: 7px 10px; font-size: 11.5px; }

  .wallet-tabs { gap: 3px; padding: 3px; }
  .wallet-tab { padding: 9px 2px; font-size: 11px; gap: 3px; letter-spacing: -0.2px; }

  .keno-grid { grid-template-columns: repeat(5, 1fr); }
  .mines-cell { font-size: 22px; }
  .referral-stats { grid-template-columns: 1fr; }
  .vip-meta { flex-direction: column; gap: 6px; }

  .live-bets-table,
  .race-table { font-size: 10.5px; }
  .live-bets-table thead th,
  .race-table thead th { padding: 7px 4px; font-size: 9.5px; }
  .live-bets-table tbody td,
  .race-table tbody td { padding: 8px 4px; }
  .lb-avatar,
  .race-avatar { width: 12px; height: 12px; font-size: 8px; margin-right: 3px; }
  .race-rank { width: 22px; font-size: 9px; }

  /* 底部 */
  .cert-svg { height: 26px; }
  .footer-badges { gap: 14px; }
}

@media (max-width: 375px) {
  .topbar-inner { padding: 0 6px; gap: 4px; }
  .logo { font-size: 12px; gap: 4px; }
  .logo-crown { width: 15px; height: 15px; }
  .logo-text-sub { display: none; }
  .logo-dot { display: none; }
  .lang-globe { width: 26px; height: 26px; }
  .lang-globe svg { width: 13px; height: 13px; }
  .balance-chip { padding: 3px 7px 3px 5px; }
  .balance-value { font-size: 10.5px; }
  .btn-sm { padding: 4px 7px; font-size: 10.5px; }
  .hamburger { width: 26px; height: 26px; }
  .hamburger span { width: 15px; }
  .hero-line-1 { font-size: 21px; }

  /* 搜索栏极小屏 */
  .search-stats-bar { gap: 4px; }
  .stat-item { padding: 5px 7px; gap: 4px; min-height: 40px; }
  .stat-icon { font-size: 13px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 10px; }
  .search-box { padding: 5px 7px; min-height: 40px; }
  .search-input { font-size: 11px; }

  /* 钱包 Tab 极小屏上下排布 */
  .wallet-tabs { gap: 2px; padding: 2px; }
  .wallet-tab {
    flex-direction: column;
    gap: 2px;
    padding: 8px 2px;
    font-size: 10px;
    line-height: 1.2;
  }
  .wallet-tab .tab-icon {
    font-size: 14px;
    line-height: 1;
  }
}
/* ==========================================================================
   Hero 轮播容器
   ========================================================================== */
.hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    min-height: 320px;
    isolation: isolate;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}


@keyframes heroBorderShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 单张幻灯片 */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 背景图层 */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: heroBgZoom 20s ease-in-out infinite alternate;
}
@keyframes heroBgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

/* 深色遮罩（保证文字可读） */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15,33,46,0.45) 0%, rgba(15,33,46,0.75) 100%),
        linear-gradient(180deg, rgba(15,33,46,0.35) 0%, rgba(15,33,46,0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 内容区 */
.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 58px 40px 62px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 无背景图时的装饰层（保留原有动效） */
.hero-carousel:not(.has-banner) .hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 12% 20%, rgba(255,197,49,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 55% at 88% 80%, rgba(124,58,237,0.12) 0%, transparent 55%);
    pointer-events: none;
}

/* 底部指示点 */
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
    padding: 6px 12px;
    background: rgba(15,33,46,0.5);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active {
    background: #FFC531;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255,197,49,0.8);
}

/* 左右箭头 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15,33,46,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover {
    background: rgba(34,211,238,0.25);
    border-color: #22D3EE;
    box-shadow: 0 0 16px rgba(34,211,238,0.5);
}
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* 移动端触摸区域更大 */
@media (max-width: 767px) {
    .hero-arrow {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
}

/* 响应式适配 */
@media (max-width: 767px) {
    .hero-carousel {
        min-height: 260px;
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .hero-slide-content {
        padding: 40px 20px 44px;
        gap: 10px;
    }
    .hero-dots { bottom: 12px; gap: 6px; padding: 5px 10px; }
    .hero-dot { width: 7px; height: 7px; }
    .hero-dot.active { width: 20px; }
}

@media (max-width: 480px) {
    .hero-carousel {
        min-height: 230px;
        border-radius: 12px;
    }
    .hero-slide-content {
        padding: 32px 16px 36px;
        gap: 8px;
    }
}
/* ==========================================================================
   钱包二维码图片支持
   ========================================================================== */
.deposit-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
}

/* ==========================================================================
   语言切换 —— 国旗徽章（跨平台）
   ========================================================================== */
.lang-flag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15),
        0 1px 3px rgba(0,0,0,0.5);
}
.lang-flag-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 50%);
    pointer-events: none;
}
.lang-flag-text {
    position: relative;
    z-index: 1;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow:
        0 1px 1px rgba(0,0,0,0.9),
        0 0 3px rgba(0,0,0,0.7);
}
.lang-option .lang-flag-badge {
    transition: transform 0.15s;
}
.lang-option:hover .lang-flag-badge {
    transform: scale(1.08);
}
.lang-option.active .lang-flag-badge {
    box-shadow:
        0 0 0 1px rgba(34,211,238,0.5),
        0 0 8px rgba(34,211,238,0.4),
        0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 767px) {
    .lang-flag-badge { width: 24px; height: 16px; }
    .lang-flag-text { font-size: 7.5px; }
}