:root {
  --primary: #FF4757;
  --primary-dark: #EE3B4A;
  --primary-deep: #E84118;
  --primary-light: #FF6B81;
  --primary-soft: #FFE0E3;
  --primary-bg: #FFF0F1;
  --accent-gold: #FF9F43;
  --accent-gold-hover: #F1902B;
  --accent-violet: #5F27CD;
  --accent-teal: #01CEC7;
  --page-bg: #F4F6FB;
  --card-bg: #FFFFFF;
  --text-primary: #1A1D26;
  --text-secondary: #8B95A8;
  --border-light: #E8ECF4;
  --footer-dark: #1A1D26;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(26, 29, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 29, 38, 0.08);
  --shadow-lg: 0 16px 40px rgba(255, 71, 87, 0.12);
  --gradient-brand: linear-gradient(135deg, #FF6348 0%, #FF4757 48%, #EE5A6F 100%);
  --gradient-gold: linear-gradient(135deg, #FECA57 0%, #FF9F43 100%);
  --gradient-mesh: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 71, 87, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(95, 39, 205, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(1, 206, 199, 0.08), transparent 55%);
  font-family: "PingFang SC", "SF Pro SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { overflow-y: scroll; }
body { margin: 0; background: var(--page-bg); color: var(--text-primary); overflow-x: hidden; }

.phone {
  max-width: 390px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  background: var(--page-bg);
  position: relative;
  padding-bottom: 70px;
  overflow-x: hidden;
}
.phone.nav-hidden { padding-bottom: 12px; }

.sysbar {
  height: 46px;
  background: #fff;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #e9edf5;
}
.sysbar { display: none; }
.shield { color: #38c6a8; font-size: 12px; }
.sys-title { font-size: 13px; font-weight: 700; color: #111827; }
.sys-actions { font-size: 14px; color: #8a93a5; letter-spacing: 2px; }

.profile-strip {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  padding: 14px 12px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(183, 28, 28, 0.25);
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
#topUsername, #meUsername { font-size: 15px; font-weight: 700; line-height: 1.2; }
#meLevel { font-size: 11px; opacity: 0.9; }
.balance-chip {
  min-width: 112px;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.17);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}
.balance-label {
  font-size: 12px;
  opacity: 0.9;
}
#topBalance { font-size: 18px; line-height: 1; }

.page { display: none; padding: 10px; width: 100%; }
.page.active { display: block; }
#page-me.page-me-v2 { padding: 0; }

.banner {
  border-radius: 12px;
  background: linear-gradient(135deg, #E53935 0%, var(--primary-deep) 100%);
  color: #fff;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.28);
}
.banner small { display: block; font-size: 12px; margin-top: 4px; opacity: 0.9; }
.banner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.banner-brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.banner-brand .banner-text { flex: 1; min-width: 0; }
.banner.pink { background: linear-gradient(135deg, var(--primary) 0%, #E57373 100%); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.section-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-bar::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.row-title.section-title-bar::before { display: none; }
.row-title.section-title-bar > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-title.section-title-bar > span::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.link-more { color: var(--text-secondary); text-decoration: none; font-size: 12px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats-row--2 { grid-template-columns: repeat(2, 1fr); }
.stats-row > div { border-right: 1px solid #edf1f8; }
.stats-row > div:last-child { border-right: none; }
.stats-row b { display: block; font-size: 20px; color: var(--text-primary); margin-bottom: 2px; font-weight: 700; }
.stats-row span { font-size: 12px; color: var(--text-secondary); }

.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 4px 0; }
.menu-grid button {
  border: none;
  background: var(--page-bg);
  border-radius: 10px;
  color: var(--text-primary);
  height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  box-shadow: none;
  transition: background 0.15s ease;
}
.menu-grid button:active { background: var(--primary-bg); }
.menu-grid i {
  font-style: normal;
  font-size: 22px;
  margin-bottom: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-bg);
}

.lottery-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.lottery-list.collapsed .lottery-item-extra { display: none; }
.lottery-item {
  border: none;
  border-radius: 8px;
  padding: 8px 4px;
  background: transparent;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.lottery-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 8px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(255, 71, 87, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lottery-item:nth-child(2) .lottery-logo { box-shadow: 0 6px 16px rgba(255, 159, 67, 0.35); }
.lottery-item:nth-child(3) .lottery-logo { box-shadow: 0 6px 16px rgba(95, 39, 205, 0.3); }
.lottery-item:nth-child(4) .lottery-logo { box-shadow: 0 6px 16px rgba(1, 206, 199, 0.3); }
.lottery-item:nth-child(5) .lottery-logo { box-shadow: 0 6px 16px rgba(255, 71, 87, 0.3); }
.lottery-item:nth-child(6) .lottery-logo { box-shadow: 0 6px 16px rgba(255, 165, 2, 0.32); }
.lottery-item:nth-child(7) .lottery-logo { box-shadow: 0 6px 16px rgba(55, 66, 250, 0.3); }
.lottery-item:nth-child(8) .lottery-logo { box-shadow: 0 6px 16px rgba(46, 213, 115, 0.32); }

.lottery-item-clickable { cursor: pointer; transition: transform 0.15s ease; }
.lottery-item-clickable:active { transform: scale(0.95); }
.lottery-item-clickable:active .lottery-logo { transform: scale(0.92); }
.lottery-item b { display: block; font-size: 13px; color: var(--text-primary); margin-bottom: 2px; font-weight: 600; }
.lottery-item small { font-size: 10px; color: var(--text-secondary); line-height: 1.3; }
.lottery-section-card { margin-top: 4px; }

.notice-box {
  background: #FFF5F5;
  border-radius: 10px;
  text-align: center;
  color: #4b5563;
  padding: 14px;
}
.notice-box small { color: #9aa3b5; }

.home-notice-card { overflow: hidden; border-radius: 10px; }
.home-carousel-wrap { margin-top: 4px; }
.home-carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
  background: #FAFAFA;
  width: 100%;
  aspect-ratio: 2 / 1;
}
.home-carousel-track {
  display: flex;
  transition: transform 0.38s ease;
  width: 100%;
  height: 100%;
}
.home-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.home-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.home-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #ddd;
  cursor: pointer;
}
.home-carousel-dot.active {
  background: var(--primary);
  transform: scale(1.15);
}
.home-carousel-empty {
  text-align: center;
  padding: 12px 8px;
  margin: 0;
}

.chip-row { display: flex; gap: 8px; margin-bottom: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  height: 28px;
  border-radius: 16px;
  background: var(--primary-bg);
  color: #6b7280;
  font-size: 12px;
}
.chip-active { background: var(--primary-bg); color: var(--primary); }

.row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
input, select, button {
  border-radius: 10px;
  border: 1px solid #dbe3f2;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
}
input, select { flex: 1; min-width: 120px; background: #fff; color: #1f2937; }
button { border: none; background: var(--primary); color: #fff; font-weight: 700; }
button.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary-soft); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.number-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0; }
.num {
  height: 34px;
  border-radius: 8px;
  border: 1px solid #dbe3f1;
  background: #fff;
  color: #44506a;
  font-weight: 700;
}
.num.active { border-color: var(--primary); background: var(--primary); color: #fff; }

.muted { color: #8d97ab; font-size: 12px; }
.item {
  border-top: 1px solid #edf1f8;
  padding: 10px 0;
  color: #374151;
  font-size: 12px;
  word-break: break-all;
}
.profile-nickname-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-inline-btn {
  margin-left: auto;
  border: none;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.profile-inline-btn:active {
  opacity: 0.85;
}
#nicknameModalInput {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
}
.group-hall-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.empty { text-align: center; padding: 30px 0; color: #9aa3b5; font-size: 13px; }

.order-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; overflow: hidden; }
.tab-mini {
  border: none;
  border-radius: 0;
  height: 40px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tab-mini.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.me-hero { color: #fff; background: var(--primary); }

.menu-line {
  height: 48px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-size: 14px;
  padding: 0 2px;
  cursor: pointer;
}
.menu-line:last-child { border-bottom: none; }
.menu-line-label { flex: 1; }
.menu-chevron { color: #ccc; font-size: 18px; font-weight: 300; }
.logout-btn {
  width: 100%;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-soft);
  margin-bottom: 12px;
  border-radius: 8px;
  height: 44px;
}

.wallet-tab { flex: 1; background: var(--page-bg); color: var(--text-secondary); border: 1px solid var(--border-light); }
.wallet-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 390px;
  max-width: 100%;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-light);
  background: #fff;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: #fff;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
  z-index: 210;
  pointer-events: none;
}
.app-toast.is-error { background: rgba(185, 28, 28, 0.94); }
.app-toast.is-success { background: rgba(22, 101, 52, 0.94); }
.app-toast[hidden] { display: none !important; }
.bottom-nav.hidden { display: none !important; }
.bottom-nav.is-visible {
  display: grid;
  transform: translateX(-50%) translateZ(0);
}
.tab-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  color: #999;
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 0;
}
.tab-btn i { font-style: normal; font-size: 20px; line-height: 1; }
.tab-btn span { font-size: 10px; }
.tab-btn.active { color: var(--primary); }

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 50%, #E57373 100%);
  padding: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}
html.require-login .auth-overlay {
  display: flex !important;
}
/** 未登录：首屏不露出首页内容，仅展示登录层（与 require-login 同步）；勿用 visibility 包住底部导航 */
html.require-login .phone .profile-strip,
html.require-login .phone .page {
  visibility: hidden;
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(32, 41, 79, 0.25);
}
.auth-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 30px;
  text-align: center;
}
.auth-card p { text-align: center; margin-bottom: 12px; }
.auth-card .row { display: grid; grid-template-columns: 1fr 1fr; }
.auth-card input { width: 100%; margin-bottom: 8px; }
.auth-card button { width: 100%; margin-bottom: 8px; }
.auth-card button#loginBtn,
.auth-card button#registerBtn {
  background: var(--primary);
  border-radius: 8px;
  height: 44px;
}
.auth-card-redesign {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 22px 18px 16px;
}
.auth-card-redesign h2 {
  font-size: 42px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: var(--primary);
}
.auth-brand-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
}
.auth-card-redesign .muted {
  font-size: 13px;
  margin-bottom: 14px;
}
#smsRow {
  grid-template-columns: 1fr 118px;
}
#smsRow input {
  margin-bottom: 0;
}
#smsRow button {
  margin-bottom: 0;
}

.hidden-rule-select { display: none !important; }

.lottery-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #edf1f8;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.active-entry { border-color: var(--primary-soft); background: var(--primary-bg); }
.lottery-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.icon-11x5 { background: #EF5350; }
.lottery-meta { flex: 1; }
.lottery-meta b { display: block; font-size: 14px; color: #1f2937; }
.lottery-meta small { color: #9aa3b5; font-size: 11px; }
.entry-arrow { color: #b1bacb; font-size: 18px; }

.bet-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 0;
  margin: -10px -10px 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(183, 28, 28, 0.2);
}
.back-mini {
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  border: none;
}
.bet-head-title {
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.bet-head .secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.bet-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.bet-title-row strong { font-size: 14px; color: #1f2937; }
.single-price {
  color: #d99948;
  background: #fff4e8;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
}

.play-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #d3ddef;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.play-tab {
  border-radius: 0;
  border-right: 1px solid #d3ddef;
  border-bottom: 1px solid #d3ddef;
  background: #fff;
  color: #56637f;
  font-size: 12px;
  height: 38px;
}
.play-tab:nth-child(6n) { border-right: none; }
.play-tab.active { background: var(--primary); color: #fff; }

.bet-number-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.bet-number-grid .num {
  width: 100%;
  max-width: 42px;
  min-width: 0;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto;
  border: none;
  background: #eef1f5;
  color: #4b5563;
  font-size: 12px;
}
.bet-number-grid .num.active { background: var(--primary); color: #fff; }

#numGrid.zone-host {
  display: block;
  margin-top: 8px;
}
.zone-section {
  margin: 6px 0 10px;
}
.zone-title {
  margin: 0 0 6px;
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.bet-summary {
  background: #f6f8fc;
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: 0;
}
.summary-line { color: #4a556f; font-size: 12px; margin-top: 4px; }
.draw-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.draw-row #drawInfo {
  margin: 0;
  flex: 1;
}
.draw-issue {
  display: inline-block;
  margin-right: 8px;
}
.draw-nums {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  vertical-align: middle;
}
.draw-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.35);
}
.draw-history-inline-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--page-bg);
  color: #64748b;
  border: 1px solid #d9e1f1;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.draw-history-more-wrap {
  padding: 10px 0 4px;
  text-align: center;
}
.draw-history-load-more {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d9e1f1;
  background: #f5f8fd;
  color: #475569;
  font-size: 13px;
}
.join-share-input {
  font-size: 16px;
  min-height: 32px;
}
.summary-line.mult {
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-line.shares {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.mult-ctrl {
  display: inline-grid;
  grid-template-columns: 30px 62px 30px;
  border: 1px solid #d2dced;
  border-radius: 8px;
  overflow: hidden;
  height: 30px;
}
.mult-btn {
  border-radius: 0;
  border-right: 1px solid #d2dced;
  background: #f5f8fd;
  color: #55607a;
  height: 30px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
#multPlusBtn { border-right: none; border-left: 1px solid #d2dced; }
.share-ctrl {
  display: inline-grid;
  grid-template-columns: 30px 62px 30px;
  border: 1px solid #d2dced;
  border-radius: 8px;
  overflow: hidden;
  height: 30px;
}
#sharePlusBtn { border-right: none; border-left: 1px solid #d2dced; }
.summary-line.shares input {
  width: 62px;
  min-width: 62px;
  border: none;
  border-radius: 0;
  text-align: center;
  height: 30px;
}
.summary-line.mult input {
  width: 62px;
  min-width: 62px;
  border: none;
  border-radius: 0;
  text-align: center;
  height: 30px;
}
.summary-total {
  margin-top: 0;
  font-size: 13px;
  color: #4a556f;
}
.summary-total strong { color: #111827; font-size: 18px; }

.bet-actions-row .light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  height: 40px;
}
.group-publish-btn {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 184, 0, 0.45);
}
.bet-bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(390px, 100vw);
  background: var(--footer-dark);
  border-top: none;
  border-radius: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  z-index: 60;
}
.compact-info .summary-line,
.compact-info .summary-total,
.compact-info #picked {
  color: #ccc;
}
.compact-info .summary-total strong { color: var(--accent-gold); }
.bottom-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compact-info {
  flex-wrap: wrap;
  row-gap: 4px;
}
.compact-info .summary-line,
.compact-info .summary-total,
.compact-info #picked {
  margin: 0;
}
.compact-info #picked {
  min-width: 88px;
}
.bet-actions-row {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 80px 1fr 96px;
  gap: 8px;
}
.bet-actions-row #resetPickBtn,
.bet-actions-row #betBtn,
.bet-actions-row #publishGroupBtn {
  width: 100%;
}
.bet-actions-row #betBtn {
  height: 40px;
  border-radius: 6px;
  background: var(--accent-gold);
  color: #222;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.4);
}

.bet-history-list {
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #edf1f8;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

.support-page { padding: 0; }
.support-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 58px - 56px);
  border: none;
  border-radius: 0;
  background: #fff;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.confirm-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.confirm-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 36px);
  max-width: 340px;
  max-height: min(88vh, 620px);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.confirm-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #111827;
  flex-shrink: 0;
}
.confirm-lines {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
  margin-right: -4px;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  flex-shrink: 0;
}

.login-announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
}
.login-announcement-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}
.login-announcement-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 360px;
  max-height: min(72vh, 420px);
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.login-announcement-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  flex-shrink: 0;
}
.login-announcement-body {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 2px;
}
.login-announcement-close {
  margin-top: 14px;
  flex-shrink: 0;
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary-soft);
  cursor: pointer;
}
.login-announcement-close:active {
  opacity: 0.92;
}

/* —— 我的页面：参考视频红头 + 居中头像 —— */
.page-me-v2 .me-top-red {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
}
.page-me-v2 .me-panel {
  margin-top: -52px;
  padding: 0 10px 12px;
  position: relative;
  z-index: 1;
}
.page-me-v2 .me-profile-card {
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 0 16px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  border-bottom: none;
}
.page-me-v2 .me-avatar-lg {
  width: 72px;
  height: 72px;
  margin: -36px auto 10px;
  font-size: 28px;
  background: #fff;
  color: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.page-me-v2 .me-name-block #meUsername {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.page-me-v2 .me-balance {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 0;
}
.page-me-v2 .me-balance strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  color: var(--text-primary);
  font-weight: 700;
}
.page-me-v2 .me-quick-stats {
  border-radius: 0;
  margin-bottom: 0;
  border-top: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.page-me-v2 .me-menu-card {
  border-radius: 0 0 12px 12px;
  margin-top: 0;
  border-top: none;
  padding-top: 4px;
}
.page-me-v2 .me-menu-card .section-title-bar { margin-top: 4px; }
.page-me-v2 .logout-btn { margin-top: 12px; }

/* 子页面全宽红头 */
#page-orders,
#page-transactions,
#page-profile,
#page-account-security,
#page-invite,
#page-subordinates,
#page-wallet {
  padding-top: 0;
}

#confirmOkBtn {
  background: var(--primary);
}

/* ========== 主页布局（参照视频大厅） ========== */
.phone:has(#page-home.active) .profile-strip-global,
.phone:has(#page-bet11x5.active) .profile-strip-global,
.phone:has(#page-me.active) .profile-strip-global,
.phone:has(#page-group.active) .profile-strip-global {
  display: none;
}

.page-home-v2 {
  padding: 0;
  background: var(--page-bg);
}

.home-header {
  background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #fff;
  padding: 10px 12px 14px;
  position: relative;
}

.home-header-brand {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 0 10px;
}

.home-header-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-avatar {
  width: 32px;
  height: 32px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.25);
}

#homeTopUsername {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.home-balance-chip {
  min-width: auto;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
}

.home-banner-area {
  background: #fff;
  padding: 0;
}

.page-home-v2 .home-carousel-viewport {
  border-radius: 0;
  aspect-ratio: 16 / 7;
}

.page-home-v2 .home-carousel-dots {
  margin-top: 8px;
  padding-bottom: 8px;
}

.home-notice-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}

.home-notice-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.home-notice-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  margin: 0;
  padding: 12px 0;
  border-bottom: 8px solid var(--page-bg);
}

.home-stats-bar > div {
  border-right: 1px solid var(--border-light);
}

.home-stats-bar > div:last-child {
  border-right: none;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  margin: 0;
  padding: 8px 4px 12px;
  border-bottom: 8px solid var(--page-bg);
}

.home-actions button {
  border: none;
  background: transparent;
  height: 68px;
}

.home-games-section {
  background: #fff;
  padding: 12px 10px 16px;
}

.home-games-head {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.home-games-head.section-title-bar::before {
  display: none;
}

.home-games-head > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-games-head > span::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

/* ========== 购彩页布局（参照视频投注页） ========== */
.page-bet-v2 {
  padding: 0;
  padding-bottom: 168px;
  background: var(--page-bg);
  min-height: 100vh;
}

.bet-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.bet-topbar-back {
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.bet-topbar-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.bet-topbar-balance {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}

.bet-topbar-balance-label {
  font-size: 10px;
  opacity: 0.9;
  line-height: 1;
}

#betTopBalance {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #FFEAA7;
}

.bet-topbar-action {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.bet-info-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #EFEFEF;
  border-bottom: 1px solid #E0E0E0;
}

.bet-info-draw,
.bet-info-countdown {
  padding: 10px 12px;
  min-height: 88px;
}

.bet-info-countdown {
  border-left: 1px solid #E0E0E0;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bet-info-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bet-info-balls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
  min-height: 28px;
}

.bet-info-history-btn {
  display: inline-block;
  margin-top: 0;
}

.bet-countdown-time {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.bet-issue-sub {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  color: var(--text-secondary);
}

.bet-body {
  background: #fff;
}

.bet-playbar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--gradient-brand);
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bet-playbar-label {
  flex-shrink: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
}

.bet-play-select-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.bet-play-select-wrap::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--accent-gold);
  pointer-events: none;
}

.bet-play-select {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 32px 0 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bet-play-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.35);
}

.bet-play-select:disabled {
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.7);
}

.bet-panel {
  padding: 12px;
}

.bet-rule-desc {
  margin: 8px 0 10px;
  padding: 8px 10px;
  background: #FAFAFA;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
}

.page-bet-v2 .zone-section {
  margin: 0 0 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.page-bet-v2 .zone-title {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  background: #FFF8E1;
  color: #8D6E00;
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
}

.page-bet-v2 .bet-number-grid .num {
  width: 36px;
  height: 36px;
  max-width: none;
  font-size: 15px;
  font-weight: 700;
  background: #F5F5F5;
  color: #222;
}

.page-bet-v2 .bet-number-grid .num.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.35);
}

.page-bet-v2 .bet-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--gradient-brand);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 -8px 28px rgba(255, 71, 87, 0.38);
}

.bet-footer-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.bet-footer-picked {
  color: #fff;
  font-weight: 500;
}

.bet-footer-settings .summary-line {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
}

.bet-footer-settings .mult-ctrl {
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
}

.bet-footer-settings .mult-btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.bet-footer-settings .mult-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.bet-footer-settings .mult-ctrl input {
  background: transparent;
  color: #fff;
}

.bet-footer-main {
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.bet-footer-summary {
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.bet-footer-summary .summary-total {
  color: rgba(255, 255, 255, 0.92);
}

.bet-footer-summary .summary-total strong {
  color: #FFEAA7;
  font-size: 18px;
  font-weight: 800;
}

.bet-footer-actions {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.bet-footer-reset {
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  box-shadow: none;
}

.bet-footer-submit {
  height: 44px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gradient-gold);
  color: #1A1D26;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.page-bet-v2 .group-publish-btn {
  width: 100%;
  height: 38px;
  border-radius: var(--radius-sm);
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.bet-history-toggle {
  width: 100%;
  margin-top: 10px;
  height: 40px;
  border-radius: 4px;
  background: var(--page-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-size: 13px;
}

.page-bet-v2 .bet-history-list {
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
}

/* ========== Theme V3 · 时髦全局优化 ========== */
body {
  background: var(--page-bg);
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
}

.phone {
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.profile-strip {
  background: var(--gradient-brand);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.avatar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.balance-chip {
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:active {
  transform: scale(0.995);
}

input, select {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FAFBFE;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.12);
  background: #fff;
}

button {
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.28);
}

button:active:not(:disabled) {
  transform: scale(0.97);
  opacity: 0.92;
}

button.secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

.muted {
  color: var(--text-secondary);
}

/* 底部导航 · 浮动胶囊 */
.bottom-nav {
  width: min(390px, calc(100% - 20px));
  height: 62px;
  bottom: 10px;
  margin-bottom: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(26, 29, 38, 0.12), 0 2px 8px rgba(26, 29, 38, 0.06);
  padding: 0 6px;
}

.tab-btn {
  position: relative;
  height: 62px;
  transition: color 0.2s ease;
}

.tab-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--gradient-brand);
}

.tab-btn i {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.tab-btn.active i {
  transform: translateY(-1px) scale(1.05);
}

.app-toast {
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  bottom: 78px;
}

/* 登录层 · 网格渐变 */
.auth-overlay {
  background: var(--gradient-mesh), var(--gradient-brand);
}

.auth-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
}

.auth-card-redesign h2 {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 主页 */
.home-header {
  background: var(--gradient-brand);
  padding: 14px 14px 18px;
  overflow: hidden;
  position: relative;
}

.home-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
}

.home-header-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.home-banner-area {
  margin: 12px 12px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.page-home-v2 .home-carousel-viewport {
  border-radius: var(--radius-md);
  aspect-ratio: 2 / 1;
}

.home-notice-ticker {
  margin: 10px 12px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.home-stats-bar {
  margin: 10px 12px 0;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.home-stats-bar b {
  font-size: 22px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-actions {
  margin: 10px 12px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  gap: 4px;
  padding: 10px 6px 14px;
}

.home-actions button i {
  background: var(--primary-bg);
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-actions button:active i {
  background: var(--primary-soft);
  transform: scale(0.92);
}

.home-games-section {
  margin: 10px 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* 购彩页 */
.bet-topbar {
  background: var(--gradient-brand);
  height: 48px;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.25);
}

.bet-info-strip {
  background: linear-gradient(180deg, #fff 0%, #F8F9FC 100%);
  border-bottom: 1px solid var(--border-light);
}

.bet-info-countdown {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.06), rgba(255, 159, 67, 0.08));
}

.bet-countdown-time {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 36px;
  font-weight: 800;
}

.bet-playbar {
  background: var(--gradient-brand);
}

.bet-playbar-label {
  background: transparent;
}

.page-bet-v2 .bet-number-grid .num.active {
  background: var(--gradient-brand);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.draw-num {
  background: var(--gradient-brand);
  box-shadow: 0 3px 10px rgba(255, 71, 87, 0.35);
}

.bet-footer-submit {
  background: var(--gradient-gold) !important;
  color: #1A1D26 !important;
  box-shadow: 0 4px 18px rgba(255, 159, 67, 0.5) !important;
  border-radius: var(--radius-sm) !important;
}

.bet-footer-submit:disabled {
  opacity: 0.45;
  box-shadow: none !important;
}

.page-bet-v2 .bet-footer-reset {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: none !important;
}

.page-bet-v2 .group-publish-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
}

.page-bet-v2 .bet-bottom-bar {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: var(--gradient-brand);
  box-shadow: 0 -8px 28px rgba(255, 71, 87, 0.38);
}

/* 子页面统一 */
.page-sub-v2 {
  padding: 0;
  background: transparent;
}

.page-sub-v2 > .bet-head {
  margin: 0;
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-md);
}

.page-sub-v2 > .bet-head .bet-head-title {
  color: #fff;
}

.page-sub-v2 > .bet-head .back-mini {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-sub-v2 > .banner {
  margin: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.page-sub-v2 > .card,
.page-sub-v2 > .order-tabs {
  margin-left: 12px;
  margin-right: 12px;
}

.page-sub-v2 > .card:first-of-type,
.page-sub-v2 > .order-tabs:first-of-type {
  margin-top: 12px;
}

.page-sub-v2 .order-tabs {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #EEF1F8;
  padding: 4px;
  gap: 4px;
  display: flex;
}

.page-sub-v2 .tab-mini {
  flex: 1;
  border-radius: var(--radius-sm);
  height: 36px;
  background: transparent;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-sub-v2 .tab-mini.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border-bottom: none;
  font-weight: 700;
}

.page-sub-v2 .menu-line {
  border-radius: var(--radius-sm);
  padding: 0 4px;
  transition: background 0.15s ease;
}

.page-sub-v2 .menu-line:active {
  background: var(--primary-bg);
}

/* 合买页 */
.page-sub-v2 > .banner.pink {
  background: linear-gradient(135deg, #FF4757 0%, #5F27CD 100%);
  padding: 20px 16px;
  font-size: 20px;
}

.page-sub-v2 > .banner.pink small {
  opacity: 0.75;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 我的页 */
.page-me-v2 .me-top-red {
  height: 140px;
  background: var(--gradient-brand);
  position: relative;
  overflow: hidden;
}

.page-me-v2 .me-top-red::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.page-me-v2 .me-profile-card {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: none;
  box-shadow: var(--shadow-md);
}

.page-me-v2 .me-avatar-lg {
  background: var(--gradient-brand);
  color: #fff;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
}

.page-me-v2 .me-balance strong {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-me-v2 .me-quick-stats b {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-me-v2 .logout-btn {
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  border: none;
  font-weight: 600;
  box-shadow: none;
}

.page-me-v2 .logout-btn:active {
  background: var(--primary-soft);
}

/* 钱包页 */
.wallet-tab.active {
  background: var(--gradient-brand);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.wallet-tab {
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

/* 弹窗 */
.confirm-card,
.login-announcement-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.login-announcement-close,
#confirmOkBtn {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.3);
}

.confirm-mask,
.login-announcement-mask {
  backdrop-filter: blur(4px);
}

/* 列表与空态 */
.empty {
  padding: 40px 16px;
  color: var(--text-secondary);
}

.item {
  border-color: var(--border-light);
}

.single-price {
  background: linear-gradient(135deg, #FFF8E7, #FFE8CC);
  color: #D35400;
  border-radius: 999px;
  font-weight: 600;
}

.chip-active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.home-carousel-dot.active {
  width: 18px;
  border-radius: 999px;
  background: var(--gradient-brand);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
