/* BR08 - Neon Casino - 霓虹紫蓝主题 */
:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --secondary: #06b6d4;
  --accent-pink: #f472b6;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-white: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --border-color: rgba(139,92,246,0.3);
  --glow-purple: 0 0 30px rgba(139,92,246,0.5);
  --glow-cyan: 0 0 30px rgba(6,182,212,0.5);
  --gradient-neon: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-pink: linear-gradient(135deg, #f472b6 0%, #8b5cf6 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 45px; width: auto; }
.logo-text { font-size: 1.5rem; font-weight: 700; background: var(--gradient-neon); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-desktop { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-white); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500; transition: all 0.3s ease; }
.nav-link:hover { color: var(--primary); background: rgba(139,92,246,0.1); }

.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 10px 0; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease; box-shadow: var(--glow-purple);
}
.dropdown-menu a { display: block; padding: 10px 20px; color: var(--text-white); }
.dropdown-menu a:hover { background: rgba(139,92,246,0.1); color: var(--primary); }

.header-buttons { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem; text-transform: uppercase;
  transition: all 0.3s ease; cursor: pointer; border: none;
}

.btn-login { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-login:hover { background: var(--primary); color: var(--bg-dark); box-shadow: var(--glow-purple); }

.btn-register { background: var(--gradient-neon); color: white; box-shadow: 0 4px 15px rgba(139,92,246,0.3); }
.btn-register:hover { transform: translateY(-2px); box-shadow: var(--glow-purple); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger span { width: 25px; height: 2px; background: var(--primary); transition: all 0.3s ease; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.9));
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 50%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139,92,246,0.2); color: var(--primary-light);
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 16px 40px; font-size: 1rem; }

.hero-stats { display: flex; justify-content: center; gap: 50px; margin-top: 50px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 700; background: var(--gradient-neon); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* Sections */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; }
.section-title span { background: var(--gradient-neon); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Game Cards */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--glow-purple);
}

.game-card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.game-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-card:hover .game-card-image img { transform: scale(1.1); }

.game-card-badge {
  position: absolute; top: 15px; right: 15px;
  background: var(--gradient-pink); color: white;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}

.game-card-content { padding: 20px; }
.game-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.game-card-provider { font-size: 0.85rem; color: var(--text-muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--glow-purple);
}

.feature-icon {
  width: 70px; height: 70px;
  background: rgba(139,92,246,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.feature-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 15px; }
.feature-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* CTA */
.cta-section {
  background: var(--gradient-neon);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { font-size: 2.5rem; color: white; margin-bottom: 15px; }
.cta-section p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; }

.btn-cta {
  background: white;
  color: var(--primary);
  padding: 18px 50px;
  font-size: 1.1rem;
}

.btn-cta:hover { background: var(--bg-dark); color: white; transform: translateY(-3px); }

/* FAQ */
.faq-section { padding: 80px 0; background: var(--bg-darker); }
.faq-container { max-width: 800px; margin: 0 auto; }

details.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

details.faq-item summary {
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-answer { padding: 0 25px 20px; color: var(--text-muted); line-height: 1.7; }

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 20px; }
.footer-col a { display: block; color: var(--text-muted); padding: 8px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 10px 0;
  z-index: 1000;
}

.mobile-nav-inner { display: flex; justify-content: space-around; }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-muted); font-size: 0.75rem; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); }
.mobile-nav-icon { font-size: 1.3rem; }

/* Responsive */
@media (max-width: 992px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .header-buttons { display: none; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  section { padding: 50px 0; }
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
}

@media (max-width: 576px) {
  .hero-buttons { flex-direction: column; }
  .btn-hero { width: 100%; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* ==================== WINNER TOAST / 英雄播报 ==================== */
.winner-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  min-width: 320px;
  pointer-events: none;
}

.winner-toast {
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideIn 0.4s ease forwards, toastFadeOut 0.4s ease 5s forwards;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.winner-toast:hover { opacity: 0.9; }

.winner-toast-close {
  position: absolute;
  top: 3px;
  right: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.winner-toast-close:hover { color: rgba(255,255,255,0.8); }

.winner-toast-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.winner-toast-content { flex: 1; min-width: 0; }
.winner-toast-name { font-size: 1rem; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winner-toast-amount { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.winner-toast-game { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(-15px); }
}

@media (max-width: 768px) {
  .winner-toast-container { left: 10px; max-width: 200px; bottom: 80px; }
  .winner-toast { padding: 7px 8px; }
  .winner-toast-avatar { width: 24px; height: 24px; font-size: 0.7rem; }
  .winner-toast-amount { font-size: 0.75rem; }
}
