/* ========== 全局重置 & 基础 ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #d4a012;
  --gold-600: #b8860b;
  --gold-700: #92700c;
  --gold-800: #78590a;
  --gold-900: #5c4308;
  --gold-shine: linear-gradient(135deg, #fcd34d, #d4a012, #b8860b, #d4a012, #fcd34d);
  --gold-text: linear-gradient(135deg, #fde68a, #d4a012, #b8860b);
  --gold-border: rgba(212, 160, 18, 0.45);

  --bg-dark: #0d0f18;
  --bg-card: rgba(28, 22, 12, 0.75);
  --text-primary: #f5edd8;
  --text-secondary: rgba(245, 237, 216, 0.55);
  --text-gold: #e8b816;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-dark);
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s var(--transition-smooth);
}

img { max-width: 100%; display: block; }

/* ============================================================
   动态背景 - 暖金流光 + 螺纹纹理 + 动态光带
   ============================================================ */
.bg-aurora {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(65, 45, 12, 1) 0%, rgba(30, 20, 6, 1) 45%, rgba(14, 10, 4, 1) 100%);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.aurora-orb-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255, 180, 20, 0.30), rgba(200, 140, 10, 0.12), transparent 70%);
  top: -25%; left: -12%;
  animation: auroraFloat1 18s ease-in-out infinite;
}
.aurora-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 200, 50, 0.25), rgba(220, 160, 20, 0.08), transparent 70%);
  top: -12%; right: -8%;
  animation: auroraFloat2 22s ease-in-out infinite;
}
.aurora-orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 170, 10, 0.18), rgba(180, 120, 10, 0.06), transparent 70%);
  bottom: 0%; left: 10%;
  animation: auroraFloat3 20s ease-in-out infinite;
}
.aurora-orb-4 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255, 190, 30, 0.14), transparent 70%);
  bottom: 15%; right: 3%;
  animation: auroraFloat4 24s ease-in-out infinite;
}

/* 金色螺纹纹理 */
.bg-grid {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    repeating-linear-gradient(-55deg, transparent, transparent 22px, rgba(255, 200, 50, 0.045) 22px, rgba(255, 200, 50, 0.045) 23px),
    repeating-linear-gradient(55deg, transparent, transparent 22px, rgba(255, 200, 50, 0.035) 22px, rgba(255, 200, 50, 0.035) 23px),
    repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(255, 200, 50, 0.015) 44px, rgba(255, 200, 50, 0.015) 45px);
}

/* 动态扫光效果 */
.bg-grid::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 200, 50, 0.04) 60deg, transparent 120deg, rgba(255, 180, 20, 0.03) 200deg, transparent 280deg);
  animation: bgRotateGlow 30s linear infinite;
}

@keyframes bgRotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, 30px) scale(1.12); }
  50% { transform: translate(20px, -40px) scale(0.95); }
  75% { transform: translate(-40px, 20px) scale(1.08); }
}
@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-50px, 40px) scale(1.10); }
  50% { transform: translate(-20px, -30px) scale(0.92); }
  75% { transform: translate(30px, -18px) scale(1.12); }
}
@keyframes auroraFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 22px) scale(0.94); }
}
@keyframes auroraFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-35px, -25px) scale(1.14); }
  66% { transform: translate(25px, 35px) scale(0.90); }
}

/* ============================================================
   头部 - 金色玻璃浮动卡片
   ============================================================ */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 16px 0;
  max-width: 940px;
  margin: 0 auto;
}

.header {
  background: linear-gradient(135deg, rgba(35, 28, 12, 0.80), rgba(20, 16, 8, 0.75));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 160, 18, 0.30);
  box-shadow:
    0 1px 0 0 rgba(255, 215, 0, 0.15) inset,
    0 -0.5px 0 0 rgba(212, 160, 18, 0.08) inset,
    0 8px 40px rgba(0, 0, 0, 0.40);
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.50), rgba(251, 191, 36, 0.65), rgba(255, 215, 0, 0.50), transparent);
  pointer-events: none;
}

.header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.06), transparent);
  pointer-events: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.header.scrolled {
  background: linear-gradient(135deg, rgba(35, 28, 12, 0.92), rgba(20, 16, 8, 0.88));
  box-shadow:
    0 1px 0 0 rgba(255, 215, 0, 0.20) inset,
    0 12px 48px rgba(0, 0, 0, 0.50);
  border-color: rgba(212, 160, 18, 0.40);
}

.header-inner {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--transition-bounce);
}
.logo-link:hover { transform: scale(1.04); }

.logo-img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.25));
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 26px;
  background: linear-gradient(135deg, rgba(212, 160, 18, 0.20), rgba(184, 134, 11, 0.10));
  border: 1px solid rgba(255, 215, 0, 0.40);
  color: var(--gold-300) !important;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.20), transparent);
  transition: left 0.6s;
}
.download-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(212, 160, 18, 0.30), rgba(184, 134, 11, 0.18));
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.60);
}
.download-btn:hover::before { left: 100%; }

/* ============================================================
   轮播图
   ============================================================ */
.carousel-section {
  max-width: 940px;
  margin: 12px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(35, 28, 12, 0.60), rgba(20, 16, 8, 0.50));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 215, 0, 0.12) inset,
    0 8px 30px rgba(0, 0, 0, 0.30);
  padding: 4px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--transition-smooth);
  border-radius: calc(var(--radius-lg) - 4px);
  height: 260px;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(25, 20, 8, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--gold-300);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--transition-smooth);
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.carousel-btn:hover {
  background: rgba(212, 160, 18, 0.18);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 215, 0, 0.60);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 20px;
}

.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.30);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
}
.carousel-dot.active {
  background: var(--gold-400);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
}

/* ============================================================
   公告 - 金色质感高亮横幅
   ============================================================ */
.announcement-section {
  max-width: 940px;
  margin: 10px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.announcement-inner {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-300);
  background: linear-gradient(135deg, rgba(60, 45, 10, 0.75) 0%, rgba(40, 30, 8, 0.65) 50%, rgba(60, 45, 10, 0.75) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 0, 0.30);
  box-shadow:
    0 1px 0 rgba(255, 215, 0, 0.15) inset,
    0 -1px 0 rgba(255, 215, 0, 0.05) inset,
    0 4px 20px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 公告顶部金色光泽线 */
.announcement-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.40), rgba(251, 191, 36, 0.55), rgba(255, 215, 0, 0.40), transparent);
  z-index: 2;
  pointer-events: none;
}

/* 喇叭图标 - 固定不动 */
.horn-icon {
  font-size: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
  position: relative;
  z-index: 3;
  animation: hornPulse 2s ease-in-out infinite;
}
@keyframes hornPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1) rotate(-5deg); }
}

/* 滚动区域 */
.announcement-scroll-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.announcement-scroll {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
}
.announcement-scroll:hover { animation-play-state: paused; }

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

.fire-icon {
  margin-right: 6px;
  font-size: 16px;
  animation: fireFlicker 1.5s ease-in-out infinite alternate;
}
@keyframes fireFlicker {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.15); filter: brightness(1.4); }
}

/* ============================================================
   内容区 - 金色质感背景容器
   ============================================================ */
.content-wrapper {
  max-width: 940px;
  margin: 10px auto 0;
  padding: 0 16px 30px;
  position: relative;
  z-index: 1;
}

.content-box {
  background: linear-gradient(165deg, rgba(45, 35, 12, 0.65) 0%, rgba(30, 22, 8, 0.55) 50%, rgba(40, 30, 10, 0.60) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 215, 0, 0.12) inset,
    0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

/* 容器顶部金色光泽条 */
.content-box::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.35), rgba(251, 191, 36, 0.50), rgba(255, 215, 0, 0.35), transparent);
  pointer-events: none;
}

/* 容器顶部微光 */
.content-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.04), transparent);
  pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* 标签 */
.tabs-container {
  display: flex; gap: 3px;
  background: linear-gradient(135deg, rgba(25, 18, 5, 0.65), rgba(18, 14, 4, 0.55));
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  padding: 4px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.tab-btn {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(252, 211, 77, 0.65);
  background: transparent;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tab-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tab-icon svg { width: 100%; height: 100%; }
.tab-label { white-space: nowrap; }

.tab-btn:hover {
  color: var(--gold-300);
  background: rgba(255, 215, 0, 0.06);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 160, 18, 0.22), rgba(184, 134, 11, 0.12));
  color: #fcd34d;
  border: 1px solid rgba(255, 215, 0, 0.30);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.10);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2.5px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.40);
}

/* 卡片网格 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   平台卡片 - 金色质感螺纹背景
   ============================================================ */
.card-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background:
    linear-gradient(135deg,
      rgba(232,197,90,0.18) 0%,
      rgba(180,140,40,0.12) 25%,
      rgba(120,90,20,0.10) 60%,
      rgba(80,60,10,0.14) 100%);
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow:
    0 1px 0 rgba(255,235,150,0.12) inset,
    0 -1px 0 rgba(120,80,10,0.15) inset,
    0 0 20px rgba(255,255,255,0.03) inset,
    0 6px 20px rgba(0,0,0,0.35);
  cursor: pointer;
  transition:
    transform 0.4s var(--transition-bounce),
    box-shadow 0.35s var(--transition-smooth),
    border-color 0.35s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* 金属纹理叠加层 */
.card-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,235,150,0.04) 0px,
      rgba(255,235,150,0.04) 1px,
      transparent 1px,
      transparent 3px),
    linear-gradient(45deg,
      transparent 46%,
      rgba(255,235,150,0.06) 50%,
      transparent 54%);
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, 100% 100%;
  pointer-events: none;
  transition: background-position 0.8s;
  z-index: 0;
}
.card-item:hover::before {
  background-position: 0 0, 50% 50%;
}

.card-item::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 130%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.06), transparent 55%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--transition-smooth);
  pointer-events: none;
}

.card-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(232,197,90,0.55);
  box-shadow:
    0 1px 0 rgba(255,235,150,0.20) inset,
    0 -1px 0 rgba(120,80,10,0.20) inset,
    0 0 25px rgba(255,255,255,0.05) inset,
    0 16px 40px rgba(0,0,0,0.40),
    0 0 30px rgba(212,175,55,0.08);
}
.card-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.card-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(212,175,55,0.35);
  box-shadow: 0 3px 12px rgba(0,0,0,0.30);
  transition: transform 0.35s var(--transition-bounce);
  position: relative;
  z-index: 1;
}
.card-item:hover .card-icon {
  transform: scale(1.08);
  border-color: rgba(232,197,90,0.55);
}

.card-info {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-rating {
  font-size: 15px;
  font-weight: 800;
  color: #e8c55a;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  margin-left: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.card-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: linear-gradient(180deg, #e8c55a 0%, #c9952a 50%, #a67618 100%);
  color: #3a1e00;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 0 14px 0 8px;
  letter-spacing: 1px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,235,150,0.6) inset,
    0 -1px 0 rgba(120,70,10,0.4) inset;
  text-shadow: 0 1px 1px rgba(255,235,180,0.5);
  z-index: 2;
  border: 1px solid rgba(180,130,30,0.6);
  border-top: none;
  border-right: none;
}

/* 游戏卡片 */
.cards-grid.games-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.card-item.game-card {
  flex-direction: column;
  align-items: center;
  padding: 12px 6px 10px;
  text-align: center;
}
.card-item.game-card .card-icon {
  width: 44px; height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
}
.card-item.game-card .card-info { margin-left: 0; }
.card-item.game-card .card-title {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   页脚 - 纯文字大气风格
   ============================================================ */
.footer {
  padding: 0 16px 28px;
  margin-top: 0;
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.22), rgba(251, 191, 36, 0.35), rgba(255, 215, 0, 0.22), transparent);
  margin-bottom: 22px;
}

.footer-slogan {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--gold-shine);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
  margin: 0 0 8px;
  line-height: 1.4;
}
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-sub {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.footer-copyright {
  font-size: 11px;
  color: rgba(245, 237, 216, 0.18);
  letter-spacing: 0.5px;
  margin: 0;
}

/* 空内容 */
.tab-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  background: rgba(35, 28, 12, 0.45);
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.10);
}

/* ============================================================
   游戏模拟器 iframe 弹窗
   ============================================================ */
.game-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.game-modal.active {
  display: flex;
}

.game-modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(8px);
}

.game-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  background: linear-gradient(145deg, rgba(35, 28, 12, 0.95), rgba(20, 16, 8, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.30);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.50), 0 0 40px rgba(255, 215, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.35s var(--transition-smooth);
  transition: width 0.3s ease, height 0.3s ease;
}
/* 横屏游戏 (默认) */
.game-modal-content.landscape {
  width: 90vw;
  max-width: 960px;
  height: 70vh;
}
/* 竖屏游戏 (手机端老虎机等) */
.game-modal-content.portrait {
  width: min(420px, 90vw);
  height: 88vh;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  flex-shrink: 0;
}

.game-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.5px;
}

.game-modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold-300);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.game-modal-close:hover {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.45);
  transform: rotate(90deg);
}

.game-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.game-loading {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(14, 10, 4, 0.95);
  z-index: 10;
  color: var(--gold-300);
  font-size: 14px;
}
.game-loading.hidden { display: none; }

/* ========== 加拿大28预测页面 ========== */
.prediction-view {
  padding: 0;
}

/* 头部卡片 */
.pred-header-card {
  background: linear-gradient(135deg, rgba(30,20,60,0.9), rgba(20,15,45,0.95));
  border: 1px solid rgba(252,211,77,0.15);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.pred-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pred-logo {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pred-logo svg { width: 24px; height: 24px; stroke: #fff; }
.pred-title-info { flex: 1; }
.pred-main-title {
  font-size: 18px; font-weight: 700; color: var(--gold-200);
  margin: 0 0 2px;
}
.pred-period {
  font-size: 13px; color: var(--gold-400); opacity: 0.8;
}
.pred-countdown-box {
  text-align: center;
  background: rgba(252,211,77,0.08);
  border: 1px solid rgba(252,211,77,0.15);
  border-radius: 12px;
  padding: 8px 16px;
  flex-shrink: 0;
}
.pred-countdown-label {
  font-size: 10px; color: var(--gold-400); opacity: 0.7;
  margin-bottom: 2px;
}
.pred-countdown-value {
  font-size: 22px; font-weight: 800;
  color: #fcd34d;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

/* 未开统计行 */
.pred-miss-row {
  display: flex; gap: 8px;
  justify-content: space-between;
}
.pred-miss-item {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.pred-miss-label {
  display: block; font-size: 11px; color: var(--gold-400); margin-bottom: 2px;
}
.pred-miss-val {
  font-size: 18px; font-weight: 700; color: #fcd34d;
  margin: 0 2px;
}

/* 当期预测卡片 */
.pred-current-card {
  background: linear-gradient(135deg, rgba(25,18,50,0.9), rgba(18,12,40,0.95));
  border: 1px solid rgba(252,211,77,0.12);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  text-align: center;
}
.pred-current-loading {
  color: var(--gold-400); opacity: 0.6; padding: 12px;
}
.pred-current-label {
  font-size: 13px; color: var(--gold-400); margin-bottom: 12px;
}
.pred-current-waiting .pred-current-predict {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 10px;
}
.pred-current-hint {
  font-size: 12px; color: rgba(255,255,255,0.4);
  animation: predPulse 2s infinite;
}
@keyframes predPulse {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* 预测标签 */
.pred-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 1px;
}
.pred-tag-sm {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
}
.pred-tag-xs {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px; font-weight: 600;
}
.pred-tag-da-dan, .pred-tag-da { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.pred-tag-da-shuang { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.pred-tag-xiao-dan { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.pred-tag-xiao-shuang, .pred-tag-xiao { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.pred-tag-dan { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.3); }
.pred-tag-shuang { background: rgba(45,212,191,0.15); color: #2dd4bf; border: 1px solid rgba(45,212,191,0.3); }
.pred-tag-default { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1); }

/* 开奖数字球 */
.pred-current-nums {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 12px;
}
.pred-num-ball {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.pred-num-ball:nth-child(1) { background: linear-gradient(135deg, #f87171, #dc2626); }
.pred-num-ball:nth-child(3) { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.pred-num-ball:nth-child(5) { background: linear-gradient(135deg, #4ade80, #16a34a); }
.pred-num-plus { font-size: 16px; color: rgba(255,255,255,0.3); }
.pred-num-eq { font-size: 18px; color: rgba(255,255,255,0.4); margin: 0 4px; }
.pred-num-total {
  font-size: 24px; font-weight: 900; color: #fff;
  margin-right: 8px;
}
.pred-current-check {
  font-size: 13px; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pred-result-hit {
  color: #4ade80; font-weight: 700; margin-left: 6px;
}
.pred-result-miss {
  color: #f87171; font-weight: 700; margin-left: 6px;
}

/* 预测类型切换 */
.pred-tabs-row {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.pred-tab-btn {
  flex: 1;
  padding: 10px 0;
  border: 1px solid rgba(252,211,77,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--gold-400);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.pred-tab-btn:hover {
  background: rgba(252,211,77,0.08);
  border-color: rgba(252,211,77,0.25);
}
.pred-tab-btn.active {
  background: linear-gradient(135deg, rgba(252,211,77,0.15), rgba(252,211,77,0.08));
  border-color: rgba(252,211,77,0.4);
  color: #fcd34d;
  box-shadow: 0 0 12px rgba(252,211,77,0.15);
}

/* 统计条 */
.pred-stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.pred-stats-text { color: rgba(255,255,255,0.4); }
.pred-stats-item { color: rgba(255,255,255,0.5); }
.pred-stats-correct { color: #4ade80; }
.pred-stats-wrong { color: #f87171; }
.pred-stats-rate { color: var(--gold-300); }
.pred-stats-rate strong { color: #fcd34d; font-size: 15px; }

/* 历史表格 */
.pred-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.pred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pred-table thead {
  background: rgba(252,211,77,0.08);
}
.pred-table th {
  padding: 10px 8px;
  color: var(--gold-300);
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(252,211,77,0.12);
}
.pred-table td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
.pred-table tbody tr:hover {
  background: rgba(252,211,77,0.04);
}
.pred-td-nbr {
  font-size: 11px; color: rgba(255,255,255,0.4); font-family: monospace;
}
.pred-td-time {
  font-size: 11px; color: rgba(255,255,255,0.35); font-family: monospace;
}
.pred-td-kj {
  white-space: nowrap;
  text-align: center;
}
.pred-td-kj-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.pred-mini-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.pred-mini-ball:nth-child(1) { background: linear-gradient(135deg, #f87171, #dc2626); }
.pred-mini-ball:nth-child(2) { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.pred-mini-ball:nth-child(3) { background: linear-gradient(135deg, #4ade80, #16a34a); }
.pred-mini-total {
  font-size: 14px; font-weight: 800; color: #fcd34d;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  min-width: 24px;
  text-align: right;
}
.pred-waiting-text {
  color: rgba(255,255,255,0.3); font-size: 12px; font-style: italic;
}
.pred-hit {
  color: #4ade80; font-weight: 700; font-size: 12px;
}
.pred-miss {
  color: #f87171; font-weight: 700; font-size: 12px;
}
.pred-row-waiting { opacity: 0.6; }
.pred-row-hit td { background: rgba(34,197,94,0.04); }
.pred-row-miss td { background: rgba(239,68,68,0.04); }
.pred-table-loading, .pred-table-empty {
  padding: 30px !important;
  color: rgba(255,255,255,0.3);
}

/* 分页 */
.pred-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pred-page-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 18px;
  border: 1px solid rgba(252,211,77,0.2);
  border-radius: 8px;
  background: rgba(252,211,77,0.06);
  color: var(--gold-300);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pred-page-btn svg { width: 14px; height: 14px; }
.pred-page-btn:not(:disabled):hover {
  background: rgba(252,211,77,0.15);
  border-color: rgba(252,211,77,0.4);
  color: #fcd34d;
}
.pred-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pred-page-info {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-family: monospace;
}

/* 响应式 */
@media (max-width: 480px) {
  .pred-title-row { flex-wrap: wrap; gap: 10px; }
  .pred-countdown-box { width: 100%; }
  .pred-main-title { font-size: 16px; }
  .pred-miss-row { flex-wrap: wrap; }
  .pred-miss-item { min-width: calc(50% - 4px); }
  .pred-num-ball { width: 34px; height: 34px; font-size: 15px; }
  .pred-table { font-size: 11px; }
  .pred-mini-ball { width: 20px; height: 20px; font-size: 10px; }
  .pred-stats-bar { flex-wrap: wrap; gap: 8px; }
}

/* iframe内广告覆盖层 - 遮挡高爆率平台等按钮 */
.iframe-cover {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 220px;
  height: 80px;
  z-index: 20;
  background: linear-gradient(135deg, #1a0e2e, #120a20);
  border-radius: 24px;
  pointer-events: all;
  box-shadow: 0 2px 12px rgba(0,0,0,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(252,211,77,0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}
.iframe-cover:hover {
  background: linear-gradient(135deg, #2a1640, #1a1030);
  color: #fcd34d;
  box-shadow: 0 4px 18px rgba(0,0,0,0.8);
}
.iframe-cover svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.game-loading-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255, 215, 0, 0.15);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}
@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* ============================================================
   游戏列表弹窗
   ============================================================ */
.game-list-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10001;
  align-items: center;
  justify-content: center;
}
.game-list-modal.active {
  display: flex;
}
.game-list-modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(8px);
}
.game-list-modal-content {
  position: relative;
  width: 92%;
  max-width: 680px;
  max-height: 88vh;
  background: linear-gradient(165deg, rgba(45,35,12,0.97), rgba(25,18,6,0.97));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,215,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.50), 0 0 40px rgba(255,215,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.35s var(--transition-smooth);
}
.game-list-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,215,0,0.15);
  flex-shrink: 0;
  gap: 12px;
}
.game-list-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.game-list-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}
.game-list-search-box {
  position: relative;
  max-width: 220px;
  flex: 1;
}
.game-list-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: rgba(252,211,77,0.4);
  pointer-events: none;
}
.game-list-search-input {
  width: 100%;
  padding: 7px 12px 7px 30px;
  border: 1.5px solid rgba(252,211,77,0.18);
  border-radius: 16px;
  background: rgba(40,30,10,0.6);
  color: #fcd34d;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s;
}
.game-list-search-input::placeholder { color: rgba(252,211,77,0.3); }
.game-list-search-input:focus { border-color: rgba(252,211,77,0.5); }
.game-list-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
}
.game-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.game-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 10px;
  border-radius: 12px;
  background: rgba(55,42,14,0.65);
  border: 1px solid rgba(252,211,77,0.1);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}
.game-list-item:hover {
  border-color: rgba(252,211,77,0.35);
  background: rgba(65,50,18,0.85);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.game-list-item-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  flex-shrink: 0;
  background: rgba(40,30,10,0.5);
}
.game-list-item-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.game-list-item-letter {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fcd34d;
  background: linear-gradient(135deg, rgba(212,160,18,0.25), rgba(184,134,11,0.15));
  border-radius: 14px;
}
.game-list-item-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(252,211,77,0.9);
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-list-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: var(--gold-300);
  font-size: 14px;
}

@media (max-width: 768px) {
  .game-list-modal-content { width: 96%; max-height: 92vh; }
  .game-list-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .game-list-item-icon { width: 54px; height: 54px; }
  .game-list-modal-header { padding: 12px 14px; }
  .game-list-modal-body { padding: 12px 14px 16px; }
  .game-list-search-box { max-width: 160px; }
}
@media (max-width: 480px) {
  .game-list-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .game-list-item { padding: 10px 6px 8px; }
  .game-list-item-icon { width: 46px; height: 46px; }
  .game-list-item-name { font-size: 11px; }
  .game-list-modal-title { font-size: 14px; }
}

/* ========== 模拟器视图 ========== */
.simulator-view {
  width: 100%;
}
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
/* 搜索框 */
.sim-search-box {
  position: relative;
  min-width: 180px;
  max-width: 240px;
}
.sim-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: rgba(252,211,77,0.4);
  pointer-events: none;
}
.sim-search-input {
  width: 100%;
  padding: 8px 30px 8px 32px;
  border: 1.5px solid rgba(252,211,77,0.2);
  border-radius: 18px;
  background: rgba(40,30,10,0.6);
  color: #fcd34d;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s;
}
.sim-search-input::placeholder { color: rgba(252,211,77,0.3); }
.sim-search-input:focus { border-color: rgba(252,211,77,0.5); }
.sim-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(252,211,77,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
/* 平台网格 */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 12px;
  border-radius: 14px;
  background: rgba(55,42,14,0.65);
  border: 1px solid rgba(252,211,77,0.1);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  text-decoration: none;
}
.platform-card:hover {
  border-color: rgba(252,211,77,0.35);
  background: rgba(65,50,18,0.85);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.platform-card-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  flex-shrink: 0;
  background: rgba(40,30,10,0.5);
}
.platform-card-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.platform-card-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fcd34d;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 16px;
}
.platform-card-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(252,211,77,0.9);
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   入场动画
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card-item { animation: fadeInUp 0.5s var(--transition-smooth) both; }
.cards-grid .card-item:nth-child(1) { animation-delay: 0.03s; }
.cards-grid .card-item:nth-child(2) { animation-delay: 0.06s; }
.cards-grid .card-item:nth-child(3) { animation-delay: 0.09s; }
.cards-grid .card-item:nth-child(4) { animation-delay: 0.12s; }
.cards-grid .card-item:nth-child(5) { animation-delay: 0.15s; }
.cards-grid .card-item:nth-child(6) { animation-delay: 0.18s; }
.cards-grid .card-item:nth-child(7) { animation-delay: 0.21s; }
.cards-grid .card-item:nth-child(8) { animation-delay: 0.24s; }
.cards-grid .card-item:nth-child(9) { animation-delay: 0.27s; }
.cards-grid .card-item:nth-child(10) { animation-delay: 0.30s; }
.cards-grid .card-item:nth-child(11) { animation-delay: 0.33s; }
.cards-grid .card-item:nth-child(12) { animation-delay: 0.36s; }
.cards-grid .card-item:nth-child(n+13) { animation-delay: 0.39s; }

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.header-wrapper { animation: sectionFadeIn 0.5s 0.05s var(--transition-smooth) both; }
.carousel-section { animation: sectionFadeIn 0.6s 0.12s var(--transition-smooth) both; }
.announcement-section { animation: sectionFadeIn 0.6s 0.2s var(--transition-smooth) both; }
.content-wrapper { animation: sectionFadeIn 0.6s 0.26s var(--transition-smooth) both; }
.footer { animation: sectionFadeIn 0.7s 0.35s var(--transition-smooth) both; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cards-grid.games-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .header-wrapper { padding: 10px 12px 0; }
  .header-inner { padding: 10px 16px; }
  .logo-img { height: 30px; }
  .download-btn { padding: 7px 18px; font-size: 12px; }
  .carousel-section { margin-top: 10px; }
  .carousel-container { padding: 3px; border-radius: var(--radius-md); }
    .carousel-track { height: 160px; }
  .carousel-btn { width: 30px; height: 30px; font-size: 10px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .announcement-inner { font-size: 12px; padding: 10px 14px; }
  .content-box { padding: 10px; border-radius: var(--radius-md); }
  .tab-btn { font-size: 12px; padding: 8px 0; gap: 3px; }
  .tab-icon { width: 12px; height: 12px; }
  .card-item { padding: 10px 10px; }
  .card-icon { width: 36px; height: 36px; }
  .card-title { font-size: 12px; }
  .card-desc { font-size: 10px; }
  .card-item.game-card .card-icon { width: 38px; height: 38px; }
  .cards-grid.simulator-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cards-grid.simulator-grid .card-icon { width: 50px; height: 50px; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .platform-card-icon { width: 60px; height: 60px; }
  .sim-header { flex-direction: column; align-items: flex-start; }
  .sim-search-box { min-width: 100%; max-width: 100%; }
  .game-modal-content { max-width: 98vw; }
    .game-modal-content.landscape { width: 98vw; height: 65vh; }
    .game-modal-content.portrait { width: min(380px, 96vw); height: 85vh; }
  .footer-slogan { font-size: 15px; letter-spacing: 2px; }
  .footer-sub { font-size: 11px; }
  .lottery-grid { max-width: 340px; gap: 6px; }
  .lottery-prize-img { width: 46px; height: 46px; }
  .lottery-btn-text { font-size: 15px; }
  .lottery-top-bar { flex-direction: column; }
  .auth-modal-content { width: 92%; padding: 22px 18px; }
  .profile-modal-content { width: 92%; }
  .tool-cards-grid { grid-template-columns: 1fr; }
  .tool-contact-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-card { padding: 14px 16px; }
  .tool-card-icon-wrap { width: 44px; height: 44px; }
  .tool-contact-subtitle { padding-left: 0; }
  .invite-section { padding: 16px; }
  .invite-data-row { gap: 16px; }
  .invite-data-num { font-size: 18px; }
  .invite-link-row { flex-direction: column; }
  .invite-copy-btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.games-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-dots { bottom: 8px; padding: 3px 6px; }
  .carousel-dot { width: 6px; height: 6px; }
  .carousel-dot.active { width: 18px; }
  .header { border-radius: var(--radius-lg); }
  .cards-grid.simulator-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.simulator-grid .card-icon { width: 44px; height: 44px; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .platform-card-icon { width: 52px; height: 52px; }
  .platform-card-name { font-size: 11px; }
  .footer-slogan { font-size: 14px; letter-spacing: 1.5px; }
  .tab-btn { font-size: 11px; }
  .lottery-grid { max-width: 290px; gap: 5px; }
  .lottery-prize-img { width: 40px; height: 40px; }
  .lottery-prize-name { font-size: 10px; }
  .lottery-btn-text { font-size: 14px; }
  .tool-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-contact-card { padding: 14px 8px 12px; }
  .tool-contact-card-icon { width: 34px; height: 34px; }
  .tool-contact-card-icon svg { width: 17px; height: 17px; }
}

/* ============================================================
   工具/商务栏目
   ============================================================ */
.tool-view {
  width: 100%;
}
.tool-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tool-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  background: var(--gold-shine);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
  letter-spacing: 1px;
}
.tool-section-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,160,18,0.2), rgba(184,134,11,0.1));
  border: 1px solid rgba(255,215,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-section-icon svg {
  width: 18px; height: 18px;
  color: var(--gold-300);
}
.tool-section-icon.contact-icon {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(37,99,235,0.1));
  border-color: rgba(96,165,250,0.25);
}
.tool-section-icon.contact-icon svg { color: #60a5fa; }

/* 工具卡片 */
.tool-cards-section {
  margin-bottom: 28px;
}
.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tool-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background:
    repeating-linear-gradient(-55deg, transparent, transparent 14px, rgba(255,215,0,0.035) 14px, rgba(255,215,0,0.035) 15px),
    linear-gradient(145deg, rgba(55,42,14,0.9), rgba(40,30,10,0.8));
  border-radius: 16px;
  border: 1px solid rgba(255,215,0,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.35s var(--transition-bounce);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255,215,0,0.08);
}
.tool-card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), rgba(251,191,36,0.45), rgba(255,215,0,0.3), transparent);
}
.tool-card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,160,18,0.15), rgba(184,134,11,0.08));
  border: 1px solid rgba(255,215,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tool-card-icon-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.tool-card-letter {
  font-size: 22px;
  font-weight: 800;
  background: var(--gold-shine);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 3px;
}
.tool-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.tool-card-arrow svg {
  width: 14px; height: 14px;
  color: var(--gold-400);
}
.tool-card:hover .tool-card-arrow {
  background: rgba(255,215,0,0.18);
  border-color: rgba(255,215,0,0.4);
  transform: translate(2px, -2px);
}
.tool-card-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: linear-gradient(180deg, #e8c55a 0%, #c9952a 50%, #a67618 100%);
  color: #3a1e00;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 0 14px 0 8px;
  letter-spacing: 1px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,235,150,0.6) inset,
    0 -1px 0 rgba(120,70,10,0.4) inset;
  text-shadow: 0 1px 1px rgba(255,235,180,0.5);
  border: 1px solid rgba(180,130,30,0.6);
  border-top: none;
  border-right: none;
}

/* 商务联系 */
.tool-contact-section {
  padding-top: 24px;
  border-top: 1px solid rgba(255,215,0,0.1);
}
.tool-contact-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -8px 0 18px;
  padding-left: 46px;
  letter-spacing: 0.5px;
}
.tool-contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.tool-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px 16px;
  background: linear-gradient(165deg, rgba(50,38,14,0.85), rgba(35,26,10,0.75));
  border-radius: 16px;
  border: 1px solid rgba(255,215,0,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.tool-contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
}
.tool-contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,215,0,0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 0 20px rgba(255,215,0,0.06);
}
.tool-contact-card.tool-contact-empty {
  opacity: 0.4;
}
.tool-contact-card-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,160,18,0.15), rgba(184,134,11,0.08));
  border: 1px solid rgba(255,215,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.tool-contact-card-icon svg {
  width: 20px; height: 20px;
  color: var(--gold-300);
}
.tool-contact-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 4px;
}
.tool-contact-card-value {
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
  text-align: center;
  margin-bottom: 8px;
  min-height: 16px;
  line-height: 1.4;
}
.tool-contact-copy {
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(212,160,18,0.2), rgba(184,134,11,0.1));
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 12px;
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.tool-contact-copy:hover {
  background: rgba(212,160,18,0.35);
  border-color: rgba(255,215,0,0.5);
}
.tool-contact-copy.copied {
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(22,163,74,0.1));
  border-color: rgba(34,197,94,0.4);
  color: #4ade80;
}
.tool-contact-join {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(102,126,234,0.25), rgba(118,75,162,0.15));
  border: 1px solid rgba(102,126,234,0.4);
  border-radius: 12px;
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-contact-join:hover {
  background: rgba(102,126,234,0.4);
  border-color: rgba(102,126,234,0.6);
  color: #fff;
}

/* ============================================================
   前台Toast提示
   ============================================================ */
.front-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  transition: transform 0.35s var(--transition-smooth), opacity 0.35s;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(40,32,10,0.95), rgba(25,20,6,0.95));
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold-300);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
}
.front-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.front-toast.error {
  border-color: rgba(255,100,100,0.4);
  color: #ff8888;
}

/* ============================================================
   登录/注册弹窗
   ============================================================ */
.auth-modal, .profile-modal, .win-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.auth-modal.active, .profile-modal.active, .win-modal.active {
  display: flex;
}
.auth-modal-overlay, .profile-modal-overlay, .win-modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}
.auth-modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: linear-gradient(165deg, rgba(45,35,12,0.97), rgba(25,18,6,0.97));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,215,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.06);
  padding: 28px 24px;
  animation: modalSlideIn 0.35s var(--transition-smooth);
}
.auth-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,215,0,0.2);
  background: rgba(255,215,0,0.06);
  color: var(--gold-300);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.auth-modal-close:hover {
  background: rgba(255,215,0,0.15);
  transform: rotate(90deg);
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: rgba(20,15,5,0.6);
  border-radius: 12px;
  padding: 3px;
  border: 1px solid rgba(255,215,0,0.12);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(252,211,77,0.5);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.auth-tab.active {
  background: linear-gradient(135deg, rgba(212,160,18,0.2), rgba(184,134,11,0.1));
  color: #fcd34d;
  border: 1px solid rgba(255,215,0,0.25);
}
.auth-form.hidden { display: none; }
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 12px;
  color: rgba(252,211,77,0.6);
  margin-bottom: 5px;
  font-weight: 600;
}
.auth-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(255,215,0,0.18);
  border-radius: 10px;
  background: rgba(30,22,8,0.8);
  color: #fcd34d;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s;
}
.auth-field input:focus {
  border-color: rgba(255,215,0,0.45);
}
.auth-field input::placeholder { color: rgba(252,211,77,0.25); }
.auth-code-row {
  display: flex;
  gap: 8px;
}
.auth-code-row input { flex: 1; }
.auth-code-btn {
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(212,160,18,0.25), rgba(184,134,11,0.12));
  border: 1.5px solid rgba(255,215,0,0.3);
  border-radius: 10px;
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
}
.auth-code-btn:hover { background: rgba(212,160,18,0.35); border-color: rgba(255,215,0,0.5); }
.auth-code-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-submit {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(212,160,18,0.25);
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212,160,18,0.4);
}

/* ============================================================
   个人中心弹窗
   ============================================================ */
.profile-modal-content {
  position: relative;
  width: 90%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(45,35,12,0.97), rgba(25,18,6,0.97));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,215,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 24px;
  animation: modalSlideIn 0.35s var(--transition-smooth);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,215,0,0.12);
}
.profile-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-300);
}
.profile-email {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.profile-section {
  margin-bottom: 18px;
}
.profile-section h4 {
  font-size: 13px;
  color: var(--gold-300);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,215,0,0.1);
}
.profile-records {
  max-height: 200px;
  overflow-y: auto;
}
.record-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(40,30,10,0.5);
  border-radius: 8px;
  margin-bottom: 6px;
}
.record-item img {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.record-info { display: flex; flex-direction: column; }
.record-name { font-size: 13px; color: var(--gold-300); font-weight: 600; }
.record-time { font-size: 11px; color: var(--text-secondary); }
.profile-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 16px;
}
.profile-pwd-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-pwd-form input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(255,215,0,0.15);
  border-radius: 8px;
  background: rgba(30,22,8,0.8);
  color: #fcd34d;
  font-size: 13px;
  outline: none;
}
.profile-pwd-form input::placeholder { color: rgba(252,211,77,0.25); }
.profile-pwd-form input:focus { border-color: rgba(255,215,0,0.4); }
.profile-contact {
  padding: 12px;
  background: rgba(40,30,10,0.5);
  border-radius: 8px;
  color: var(--gold-300);
  font-size: 13px;
}
.profile-invite-stats {
  padding: 12px;
  background: rgba(40,30,10,0.5);
  border-radius: 10px;
}
.profile-invite-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
}
.profile-invite-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.profile-invite-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-300);
  line-height: 1.2;
}
.profile-invite-label {
  font-size: 11px;
  color: var(--text-secondary);
}
.profile-invite-rule {
  text-align: center;
  font-size: 11px;
  color: rgba(252,211,77,0.5);
  margin-bottom: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,215,0,0.08);
  border-bottom: 1px solid rgba(255,215,0,0.08);
}
.profile-invite-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.profile-invite-link strong {
  color: var(--gold-300);
  letter-spacing: 1px;
}
.profile-invite-friends {
  margin-top: 10px;
  border-top: 1px solid rgba(255,215,0,0.08);
  padding-top: 8px;
}

/* ============================================================
   积分展示
   ============================================================ */
.points-display {
  padding: 14px;
  background: rgba(40,30,10,0.5);
  border-radius: 10px;
}
.points-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.points-number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.points-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.points-hint {
  font-size: 11px;
  color: rgba(252,211,77,0.4);
  margin-bottom: 10px;
}
.points-history-btn {
  background: none;
  border: 1px solid rgba(255,215,0,0.15);
  color: var(--gold-300);
  padding: 4px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.points-history-btn:hover {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.3);
}
.points-history {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
}
.point-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,215,0,0.05);
  font-size: 12px;
  gap: 8px;
}
.point-record-desc {
  flex: 1;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.point-record-amount {
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}
.point-record-amount.positive { color: #4ade80; }
.point-record-amount.negative { color: #f87171; }
.point-record-time {
  color: rgba(252,211,77,0.3);
  font-size: 11px;
  min-width: 80px;
  text-align: right;
}

/* ============================================================
   积分商城
   ============================================================ */
.shop-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(40,30,10,0.5);
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.1);
  transition: all 0.25s;
}
.shop-item:hover {
  border-color: rgba(255,215,0,0.25);
  background: rgba(50,38,14,0.7);
}
.shop-item-disabled {
  opacity: 0.55;
}
.shop-item-icon {
  font-size: 28px;
  min-width: 40px;
  text-align: center;
}
.shop-item-body {
  flex: 1;
  min-width: 0;
}
.shop-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 2px;
}
.shop-item-desc {
  font-size: 11px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.shop-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
}
.shop-item-stock {
  font-size: 10px;
  color: rgba(252,211,77,0.4);
  background: rgba(255,215,0,0.06);
  padding: 1px 6px;
  border-radius: 4px;
}
.shop-item-btn {
  padding: 6px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1207;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.shop-item-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: scale(1.05);
}
.shop-item-btn.disabled {
  background: rgba(120,120,120,0.3);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
}

/* ============================================================
   兑换记录
   ============================================================ */
.exchange-record-item {
  padding: 10px 12px;
  background: rgba(40,30,10,0.4);
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,215,0,0.06);
}
.exchange-record-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.exchange-record-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-300);
}
.exchange-record-cost {
  font-size: 12px;
  color: #f87171;
  font-weight: 600;
}
.exchange-record-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exchange-record-time {
  font-size: 11px;
  color: rgba(252,211,77,0.35);
}
.exchange-record-status {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
}
.status-pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-claimed { background: rgba(74,222,128,0.15); color: #4ade80; }
.status-expired { background: rgba(248,113,113,0.15); color: #f87171; }
.exchange-record-contact {
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(251,191,36,0.06);
  border-radius: 6px;
  font-size: 11px;
  color: #fbbf24;
  border-left: 2px solid rgba(251,191,36,0.3);
}
.profile-logout {
  width: 100%;
  padding: 10px;
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.25);
  border-radius: 10px;
  color: #ff8888;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 6px;
}
.profile-logout:hover {
  background: rgba(255,80,80,0.2);
  border-color: rgba(255,80,80,0.4);
}

/* ============================================================
   抽奖页面
   ============================================================ */
.lottery-view {
  width: 100%;
}
.lottery-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.lottery-winners-marquee {
  flex: 1;
  overflow: hidden;
  background: rgba(40,30,10,0.6);
  border-radius: 20px;
  padding: 8px 16px;
  border: 1px solid rgba(255,215,0,0.15);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.winners-scroll {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: winnersScroll 120s linear infinite;
}
.winner-item {
  font-size: 12px;
  color: rgba(252,211,77,0.6);
  flex-shrink: 0;
}
.winner-item em {
  color: var(--gold-300);
  font-style: normal;
  font-weight: 600;
}
.winner-item strong {
  color: #ff6b6b;
  font-weight: 700;
}
@keyframes winnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.lottery-login-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(212,160,18,0.25);
}
.lottery-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212,160,18,0.4);
}
.lottery-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(40,30,10,0.7);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 20px;
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.lottery-user-btn:hover {
  border-color: rgba(255,215,0,0.4);
  background: rgba(50,38,14,0.8);
}
.lottery-user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.lottery-main {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}
.lottery-cell {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.lottery-prize {
  background: linear-gradient(145deg, rgba(55,42,14,0.9), rgba(40,30,10,0.8));
  border: 2px solid rgba(255,215,0,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.lottery-prize.lottery-active {
  border-color: #fcd34d;
  background: linear-gradient(145deg, rgba(100,80,20,0.95), rgba(70,55,15,0.95));
  box-shadow: 0 0 25px rgba(255,215,0,0.4), 0 0 50px rgba(255,215,0,0.15);
  transform: scale(1.03);
}
.lottery-prize-img {
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lottery-prize-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.lottery-prize-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(252,211,77,0.8);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lottery-btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600), var(--gold-700));
  border: 2px solid rgba(255,215,0,0.5);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212,160,18,0.3);
}
.lottery-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 30px rgba(212,160,18,0.5);
}
.lottery-btn-inner {
  position: relative;
  z-index: 1;
}
.lottery-btn-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  letter-spacing: 2px;
  line-height: 1.3;
}
.lottery-btn-glow {
  position: absolute;
  top: -30px; left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  background: radial-gradient(circle, rgba(255,215,0,0.2), transparent 60%);
  animation: lotteryGlow 2s ease-in-out infinite;
}
@keyframes lotteryGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.lottery-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,215,0,0.12);
}
.lottery-my-records {
  max-height: 200px;
  overflow-y: auto;
}
.lottery-record-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(40,30,10,0.5);
  border-radius: 8px;
  margin-bottom: 6px;
}
.lottery-record-item img {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.lottery-record-name {
  flex: 1;
  font-size: 13px;
  color: var(--gold-300);
  font-weight: 600;
}
.lottery-record-time {
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ============================================================
   邀请好友区域
   ============================================================ */
.invite-section {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(165deg, rgba(55,42,14,0.85), rgba(35,26,10,0.75));
  border-radius: 16px;
  border: 1px solid rgba(255,215,0,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.invite-section::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
}
.invite-guest { text-align: center; }
.invite-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.invite-guest .invite-header { justify-content: center; }
.invite-header-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(212,160,18,0.1));
  border: 1px solid rgba(255,215,0,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.invite-header-icon svg {
  width: 20px; height: 20px;
  color: var(--gold-300);
}
.invite-title {
  font-size: 15px;
  font-weight: 700;
  background: var(--gold-shine);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
  margin: 0;
}
.invite-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 2px 0 0;
}
.invite-login-btn {
  padding: 10px 30px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(212,160,18,0.25);
  margin-top: 4px;
}
.invite-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212,160,18,0.4);
}
.invite-stat-loading {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 10px;
}
.invite-rule-card {
  background: rgba(40,30,10,0.5);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,215,0,0.1);
}
.invite-rule-text {
  font-size: 13px;
  color: rgba(252,211,77,0.7);
  margin-bottom: 12px;
  text-align: center;
}
.invite-rule-text strong {
  color: #fcd34d;
  font-size: 16px;
}
.invite-data-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.invite-data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.invite-data-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-300);
  line-height: 1.2;
}
.invite-data-num.invite-bonus {
  background: linear-gradient(135deg, #ff6b6b, #ffa502);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.invite-data-label {
  font-size: 11px;
  color: var(--text-secondary);
}
.invite-progress-wrap {
  margin-top: 12px;
  text-align: center;
}
.invite-progress-bar {
  height: 6px;
  background: rgba(255,215,0,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.invite-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 3px;
  transition: width 0.5s;
  box-shadow: 0 0 8px rgba(255,215,0,0.3);
}
.invite-progress-text {
  font-size: 11px;
  color: rgba(252,211,77,0.5);
}
.invite-link-area {
  margin-bottom: 12px;
}
.invite-link-label {
  font-size: 12px;
  color: rgba(252,211,77,0.6);
  margin-bottom: 6px;
  font-weight: 600;
}
.invite-link-row {
  display: flex;
  gap: 8px;
}
.invite-link-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid rgba(255,215,0,0.18);
  border-radius: 10px;
  background: rgba(30,22,8,0.8);
  color: #fcd34d;
  font-size: 12px;
  outline: none;
  min-width: 0;
}
.invite-link-input:focus {
  border-color: rgba(255,215,0,0.4);
}
.invite-copy-btn {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(212,160,18,0.2);
}
.invite-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,160,18,0.35);
}
.invite-code-display {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.invite-code-display strong {
  color: var(--gold-300);
  font-size: 14px;
  letter-spacing: 1.5px;
}
.invite-friends-list {
  border-top: 1px solid rgba(255,215,0,0.1);
  padding-top: 12px;
}
.invite-friends-title {
  font-size: 12px;
  color: rgba(252,211,77,0.6);
  margin-bottom: 8px;
  font-weight: 600;
}
.invite-friend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(40,30,10,0.4);
  border-radius: 6px;
  margin-bottom: 4px;
}
.invite-friend-name {
  font-size: 12px;
  color: var(--gold-300);
  font-weight: 600;
}
.invite-friend-time {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ============================================================
   中奖结果弹窗
   ============================================================ */
.win-modal-content {
  position: relative;
  width: 85%;
  max-width: 360px;
  background: linear-gradient(165deg, rgba(55,42,14,0.98), rgba(30,22,8,0.98));
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255,215,0,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(255,215,0,0.12);
  padding: 36px 24px 28px;
  text-align: center;
  animation: winPopIn 0.5s var(--transition-bounce);
  overflow: hidden;
}
@keyframes winPopIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.win-fireworks {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,215,0,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,150,50,0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255,215,0,0.1) 0%, transparent 40%);
  animation: fireworksPulse 1.5s ease-in-out infinite;
}
@keyframes fireworksPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.win-title {
  font-size: 22px;
  font-weight: 800;
  background: var(--gold-shine);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 2s ease-in-out infinite;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.win-prize-img {
  margin: 0 auto 12px;
  width: 80px; height: 80px;
  position: relative;
  z-index: 1;
}
.win-prize-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255,215,0,0.3);
}
.win-prize-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.win-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.win-close-btn {
  padding: 10px 36px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(212,160,18,0.3);
}
.win-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212,160,18,0.5);
}

/* ============================================================
   滚动条 & 选中
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212, 160, 18, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 160, 18, 0.30); }
::selection { background: rgba(255, 215, 0, 0.22); color: var(--text-primary); }
