/* BR07 - Casino Dourado - 豪华金色主题 */
:root {
  --primary: #f0c159;
  --primary-dark: #d4a84a;
  --primary-light: #f5d080;
  --bg-dark: #0d0d0d;
  --bg-darker: #050505;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;
  --text-white: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --text-gold: #f0c159;
  --border-gold: rgba(240,193,89,0.3);
  --accent-red: #ff6b35;
  --accent-green: #22c55e;
  --shadow-gold: 0 0 30px rgba(240,193,89,0.3);
  --gradient-gold: linear-gradient(135deg, #f0c159 0%, #d4a84a 50%, #f0c159 100%);
  --gradient-dark: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 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, 'Segoe UI', Roboto, 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(13,13,13,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Desktop Navigation */
.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;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(240,193,89,0.1);
}

/* Dropdown */
.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-gold);
  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(--shadow-gold);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-white);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: rgba(240,193,89,0.1);
  color: var(--primary);
}

/* Header Buttons */
.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;
  letter-spacing: 0.5px;
  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);
}

.btn-register {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(240,193,89,0.3);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Mobile Menu */
.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(13,13,13,0.9), rgba(26,26,26,0.9)), url('{image1}') center/cover;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(240,193,89,0.1) 0%, transparent 70%);
}

.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(240,193,89,0.15);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.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;
  color: var(--primary);
}

.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;
  color: var(--text-white);
}

.section-title span {
  color: var(--primary);
}

.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-gold);
  transition: all 0.3s ease;
  position: relative;
}

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

.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-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-content {
  padding: 20px;
}

.game-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-white);
}

.game-card-provider {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ==================== 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-gold);
  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(--shadow-gold);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(240,193,89,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;
  color: var(--text-white);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.cta-section h2 {
  font-size: 2.5rem;
  color: var(--bg-dark);
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(0,0,0,0.7);
  margin-bottom: 30px;
}

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

.btn-cta:hover {
  background: var(--bg-darker);
  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-gold);
  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-gold);
  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;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 8px 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

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

.footer-bottom a {
  color: var(--primary);
}

/* ==================== MOBILE BOTTOM NAV ==================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-gold);
  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;
  padding: 5px 10px;
}

.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; }
  .hero-stats { gap: 30px; }
  .stat-value { font-size: 2rem; }
  
  section { padding: 50px 0; }
  .section-title { font-size: 2rem; }
  
  .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; }
  .game-card-content { padding: 15px; }
  .game-card-title { font-size: 0.95rem; }
}

/* ==================== 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(20,20,20,0.95);
  border: 2px solid rgba(240,193,89,0.5);
  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%;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  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: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 90vw; min-width: 280px; }
  .winner-toast { padding: 12px 16px; }
  .winner-toast-avatar { width: 40px; height: 40px; font-size: 1.5rem; }
  .winner-toast-amount { font-size: 1.2rem; }
}
