/* 银河体育首页 - V9 风格 */
:root {
  --color-body: #F4F6FA;
  --color-paper: #fff;
  --color-primary: #E60013;
  --color-text: #1F2734;
  --color-text-sub: rgba(21, 29, 52, 0.5);
  --color-text-50: rgba(31, 39, 52, 0.5);
  --header-bg: #202936;
  --header-gradient: linear-gradient(to bottom, #1e2734 0%, #242D3A 70%, transparent 100%);
  --tab-inactive: #EAEDF2;
  --bottom-nav-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body.home-v9 {
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-body);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 60px);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* 顶部渐变背景 */
.home-bg-gradient {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 275px;
  background: var(--header-gradient);
  z-index: 0;
  pointer-events: none;
}

/* 固定顶栏 */
.home-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: var(--header-bg);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  min-height: 55px;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo {
  height: 23px;
  width: auto;
  object-fit: contain;
}

.header-brand {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.header-brand-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.header-brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.53);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-pill {
  display: flex;
  align-items: center;
  height: 35px;
  padding: 3px 4px 3px 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}

.wallet-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

.wallet-amount {
  margin: 0 8px;
  font-size: 14px;
  font-weight: 600;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-btn {
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 15px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.header-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  font-size: 14px;
}

.header-icon-btn .badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF0200;
}

/* 公告滚动 */
.notice-row {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 16px 10px;
  position: relative;
}

.notice-row-inner {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.notice-bar-v9 {
  display: flex;
  align-items: center;
  height: 20px;
  padding-left: 4px;
}

.notice-bar-v9 img,
.notice-bar-v9 i {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.8);
  font-size: 10px;
}

.notice-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  font-size: 10px;
}

.notice-marquee-track {
  display: inline-flex;
  animation: noticeScroll 30s linear infinite;
}

.notice-marquee-track span {
  padding-right: 40px;
}

@keyframes noticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.notice-fade-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to left, var(--header-bg), transparent);
  pointer-events: none;
}

/* 主内容区偏移 */
.home-page {
  position: relative;
  padding-top: 85px;
  z-index: 1;
}

/* 轮播 - 对齐 V9 目标站 var-swipe */
.banner-swipe {
  position: relative;
  padding-bottom: 10px;
}

.banner-swipe-viewport {
  width: 100%;
  overflow: hidden;
}

.banner-swipe-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 300ms ease;
  will-change: transform;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.banner-slide-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 430 / 220;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
}

.banner-slide-img-wrap img.banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.banner-slide-caption {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  padding: 26px 0 0 36px;
  box-sizing: border-box;
}

.banner-slide-title {
  max-width: 72%;
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.banner-slide-subtitle {
  max-width: 72%;
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.banner-slide-tagline {
  position: absolute;
  left: 36px;
  bottom: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
}

.banner-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 5;
}

.banner-dot-v9 {
  width: 4px;
  height: 4px;
  margin: 0 2.5px;
  border-radius: 50%;
  background: #797979;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.banner-dot-v9.active {
  background: #fff;
}

.banner-loading {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 20px);
  margin: 0 10px;
  aspect-ratio: 430 / 220;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.2);
}

/* 分类标签 sticky */
.category-sticky {
  position: sticky;
  top: 85px;
  z-index: 900;
  background: var(--color-paper);
  border-radius: 15px 15px 0 0;
  margin-top: 10px;
  overflow: hidden;
}

.category-bar {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.category-scroll {
  flex: 1;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 0 10px 0 10px;
  scrollbar-width: none;
}

.category-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  background: var(--tab-inactive);
  color: var(--color-text);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-tab.active {
  background: var(--color-primary);
  color: #fff;
}

.category-tab .tab-icon {
  font-size: 16px;
  line-height: 1;
}

.category-search {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--color-body);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.category-search::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to left, var(--color-paper), transparent);
  pointer-events: none;
}

/* 白色内容区 */
.home-content {
  background: var(--color-paper);
  min-height: 50vh;
  padding-bottom: 20px;
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: center;
  padding: 10px 10px 10px 10px;
}

.section-head-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-head-title {
  font-size: 14px;
  font-weight: 600;
}

.section-head-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-text-50);
  border: 1px solid rgba(31,39,52,0.1);
  border-radius: 25px;
  padding: 4px 12px;
  cursor: pointer;
  text-decoration: none;
}

.section-head-accent {
  padding-left: 14px;
  position: relative;
}

.section-head-accent::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-primary);
}

.section-head-tag {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FF003A, #E60013);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.section-head-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* 热门快捷入口 */
.hot-entry-section {
  margin-bottom: 4px;
}

.hot-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 10px 16px;
}

.hot-entry-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 39, 52, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.hot-entry-item:active {
  transform: scale(0.96);
}

.hot-entry-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 2, 0, 0.85);
  padding: 1px 5px;
  border-radius: 6px;
}

.hot-entry-item.has-img {
  background: #EAEDF2;
  padding: 0;
  justify-content: flex-end;
}

.hot-entry-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hot-entry-item.has-img .hot-entry-name {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6px 4px;
  margin-top: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  color: #fff;
  font-size: 10px;
}

.hot-entry-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hot-entry-name {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 实时爆奖 */
.jackpot-scroll {
  display: flex;
  overflow-x: auto;
  padding: 0 10px 15px;
  gap: 0;
  justify-content: flex-end;
}

.jackpot-card {
  flex-shrink: 0;
  width: 48%;
  max-width: 200px;
  position: relative;
  display: flex;
  padding-top: 8px;
  padding-left: 10px;
}

.jackpot-card-img {
  width: 45px;
  height: 68px;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  background: var(--color-body);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jackpot-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jackpot-card-emoji {
  font-size: 22px;
  line-height: 1;
}

.jackpot-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jackpot-card-info {
  flex: 1;
  padding: 5px 6px 3px 5px;
  background: linear-gradient(to left, #F5F5FA, transparent);
  border-radius: 0 10px 10px 0;
}

.jackpot-card-name {
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jackpot-card-amount {
  font-size: 20px;
  font-weight: bold;
  color: #FF0200;
  line-height: 1.2;
  margin-top: 4px;
}

.jackpot-card-amount small {
  font-size: 10px;
  font-weight: normal;
}

.jackpot-card-user {
  font-size: 9px;
  color: var(--color-text-sub);
}

.jackpot-multiply {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 10px 2px 4px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(to right, #FF003A 50%, transparent 90%);
  border-radius: 7px 0 0 0;
}

/* 大横幅 */
.feature-banner {
  padding: 0 10px 15px;
  cursor: pointer;
}

.feature-banner-pro .feature-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e2734 0%, #2a3544 40%, #E60013 100%);
  box-shadow: 0 8px 24px rgba(230, 0, 19, 0.25);
  overflow: hidden;
  position: relative;
}

.feature-banner-pro .feature-banner-inner::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.feature-banner-kicker {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.feature-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.feature-banner-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

.feature-banner-deco {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  flex-shrink: 0;
  margin-left: 12px;
}

.feature-banner img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* 横向游戏卡片 */
.h-scroll-games {
  display: flex;
  overflow-x: auto;
  padding: 0 10px 15px 0;
  gap: 10px;
  scroll-snap-type: x mandatory;
}

.game-h-card {
  flex-shrink: 0;
  width: 88px;
  cursor: pointer;
  position: relative;
  margin-left: 0;
  scroll-snap-align: start;
  transition: transform 0.15s ease;
}

.game-h-card:first-child { margin-left: 10px; }

.game-h-card:active {
  transform: scale(0.96);
}

.game-card-cover {
  width: 88px;
  height: 110px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(31, 39, 52, 0.15);
  overflow: hidden;
  background: #EAEDF2;
}

.game-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.game-card-emoji-fallback {
  position: relative;
  z-index: 0;
}

.game-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.game-card-emoji {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  position: relative;
  z-index: 1;
}

.game-card-name {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}

.game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.game-badge.hot {
  background: linear-gradient(135deg, #FF003A, #E60013);
}

.game-badge.new {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.sub-game-card .game-card-cover {
  background: #EAEDF2;
}

/* 加载骨架 */
.game-card-skeleton {
  flex-shrink: 0;
  width: 88px;
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(90deg, #EAEDF2 25%, #f5f6fa 50%, #EAEDF2 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
  margin-left: 5px;
}

.game-card-skeleton:first-child { margin-left: 10px; }

.hot-entry-skeleton {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(90deg, #EAEDF2 25%, #f5f6fa 50%, #EAEDF2 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}

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

.section-empty-tip {
  padding: 20px 16px;
  font-size: 12px;
  color: rgba(31,39,52,.45);
}

.game-h-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-h-card-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* 游戏分区 */
.game-section {
  margin-bottom: 15px;
}

/* 供应商 */
.provider-scroll {
  display: flex;
  overflow-x: auto;
  padding: 10px;
  gap: 5px;
}

.provider-item {
  flex-shrink: 0;
  width: 100px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(31, 39, 52, 0.1);
  position: relative;
  background: #EAEDF2;
}

.provider-item.has-img {
  background: #EAEDF2;
}

.provider-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-item-name {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.provider-item:not(.has-img) .provider-item-name {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.provider-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 排行榜 */
.rank-podium {
  display: flex;
  align-items: flex-end;
  padding: 8px 10px 0;
  overflow: hidden;
}

.rank-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.rank-item.center { flex: 1.1; }

.rank-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  height: 19px;
}

.rank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 23px 8px 8px;
  border-radius: 10px 10px 0 0;
  background: var(--color-body);
  min-height: 100px;
}

.rank-item.center .rank-card { min-height: 130px; padding-top: 30px; }

.rank-game-name {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 80%;
}

.rank-amount {
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rank-enter {
  margin-top: 8px;
  padding: 4px 16px;
  border-radius: 20px;
  background: rgba(230,0,19,0.1);
  color: var(--color-primary);
  font-size: 12px;
  cursor: pointer;
  border: none;
}

/* 利润列表 */
.profit-header {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  color: var(--color-text-50);
}

.profit-list {
  margin: 10px 10px 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-paper);
  max-height: 360px;
  overflow-y: hidden;
}

.profit-row {
  display: flex;
  align-items: center;
  height: 45px;
  padding: 0 10px;
  white-space: nowrap;
}

.profit-row:nth-child(even) {
  background: #F7FAFF;
}

.profit-row img {
  width: 15px;
  height: 15px;
  margin-right: 9px;
  opacity: 0.5;
}

.profit-game {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  max-width: calc(50% - 25px);
}

.profit-value {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profit-value.positive { color: #FF0200; }
.profit-value.negative { color: var(--color-text-50); }

/* 折叠菜单 */
.accordion-wrap {
  padding: 15px 10px;
}

.accordion-item {
  background: var(--color-paper);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.accordion-head i {
  transition: transform 0.2s;
  color: var(--color-text-50);
}

.accordion-item.open .accordion-head i {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  border-top: 1px solid rgba(31,39,52,0.1);
  padding: 8px 0;
}

.accordion-item.open .accordion-body { display: block; }

.accordion-link {
  display: block;
  padding: 10px 15px;
  font-size: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.accordion-link:active { background: var(--color-body); }

/* 18+ 免责声明 */
.disclaimer {
  padding: 25px 15px;
  text-align: center;
}

.disclaimer-icon {
  width: 35px;
  height: 35px;
  margin: 0 auto 15px;
  border: 2px solid var(--color-text-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-50);
}

.disclaimer-text {
  text-align: left;
  font-size: 10px;
  color: var(--color-text-50);
  line-height: 1.5;
}

.disclaimer-text p { margin-bottom: 15px; }

/* APP 下载条 */
.app-download-bar {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(7px);
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.08);
}

.app-download-bar.hidden { display: none; }

.app-download-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

.app-download-info { flex: 1; min-width: 0; }

.app-download-title {
  font-size: 15px;
  font-weight: bold;
}

.app-download-sub {
  font-size: 10px;
  color: var(--color-text-50);
  margin-top: 2px;
}

.app-download-sub em {
  color: var(--color-primary);
  font-style: normal;
}

.app-download-btn {
  height: 35px;
  padding: 0 18px;
  border: none;
  border-radius: 18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
}

.app-download-close {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--color-text-50);
  font-size: 16px;
  cursor: pointer;
  margin-left: 4px;
}

/* 浮动按钮 */
.float-task {
  position: fixed;
  left: 0;
  bottom: 200px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.float-task img,
.float-task-icon {
  width: 70px;
  height: 60px;
  object-fit: contain;
}

.float-task-progress {
  width: 45px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(286deg, #C70700 -31%, #FF7236 73%);
  padding: 2px;
  margin-top: -4px;
}

.float-task-progress-inner {
  height: 100%;
  border-radius: 6px;
  background: #4D0603;
  overflow: hidden;
}

.float-task-progress-bar {
  height: 100%;
  width: 75%;
  background: #FFC400;
  border-radius: 6px;
}

/* V9 底部导航 */
.v9-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: var(--color-paper);
  box-shadow: 0 -1px 8px rgba(0,0,0,0.15);
  padding-bottom: var(--safe-bottom);
}

.v9-tabbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bottom-nav-height);
}

.v9-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-50);
  text-decoration: none;
  font-size: 9px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 0;
}

.v9-tab-item.active { color: var(--color-text); }

.v9-tab-item i,
.v9-tab-item svg {
  font-size: 22px;
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
}

.v9-tab-item.center .tab-icon-wrap {
  width: 32px;
  height: 32px;
}

.v9-tab-item.center svg {
  width: 32px;
  height: 32px;
}

/* 转账弹窗 */
.transfer-popup { border-radius: 16px !important; }
.transfer-popup .swal2-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
}
.transfer-popup .swal2-confirm {
  background: linear-gradient(135deg, #ff6b6b 0%, #e60012 100%) !important;
  border-radius: 25px !important;
}
.transfer-content { text-align: left; padding-top: 16px; }
.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #eee;
}
.balance-row .value.game { color: #4CAF50; font-weight: 600; }
.balance-row .value.main { color: #FF9800; font-weight: 600; }
.quick-amount-btns { display: flex; gap: 8px; margin: 16px 0 12px; }
.quick-amount-btn {
  flex: 1;
  padding: 10px 0;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.quick-amount-btn.primary {
  background: linear-gradient(135deg, #ff6b6b, #e60012);
  color: #fff;
  border: none;
}
.transfer-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
}
.transfer-input:focus { border-color: #e60012; }
