/* ============================================
   全站样式 - 深紫金奢华风格
   移动端优先响应式设计
   ============================================ */

/* CSS Variables */
:root {
  --primary-gold: #d4a017;
  --primary-dark: #0a0a1e;
  --secondary-dark: #12122e;
  --accent-red: #c41230;
  --accent-blue: #1a6bff;
  --text-light: #e8e8f0;
  --text-muted: #9898b0;
  --border-gold: rgba(212, 160, 23, 0.3);
  --card-bg: rgba(18, 18, 46, 0.85);
  --gradient-hero: linear-gradient(135deg, #0a0a1e 0%, #1a0030 50%, #0a0a1e 100%);
  --gradient-card: linear-gradient(160deg, rgba(30,30,70,0.9) 0%, rgba(15,15,35,0.95) 100%);
  --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-heading: "Noto Serif SC", "STSong", "SimSun", serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: #f0c040; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--primary-gold); line-height: 1.35; }

/* Container */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ============ HEADER ============ */
.site-header {
  background: linear-gradient(180deg, rgba(10,10,30,0.98) 0%, rgba(10,10,30,0.92) 100%);
  border-bottom: 2px solid var(--border-gold);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-logo img { height: 42px; width: auto; }
.nav-toggle {
  display: block; background: none; border: 2px solid var(--primary-gold);
  color: var(--primary-gold); font-size: 22px; padding: 6px 10px;
  border-radius: var(--radius-sm); cursor: pointer;
}
.main-nav { display: none; width: 100%; padding-top: 12px; }
.main-nav.active { display: block; }
.main-nav ul { display: flex; flex-direction: column; gap: 4px; }
.main-nav li a {
  display: block; padding: 10px 14px; color: var(--text-light);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500;
  transition: var(--transition);
}
.main-nav li a:hover, .main-nav li a.active {
  background: rgba(212, 160, 23, 0.12); color: var(--primary-gold);
}

/* ============ HERO ============ */
.hero-section {
  background: var(--gradient-hero);
  padding: 40px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: ""; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(212,160,23,0.05) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}
.hero-banner-img {
  width: 100%; max-width: 900px; margin: 0 auto 24px;
  border-radius: var(--radius-lg); border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.hero-title { font-size: 1.8rem; margin-bottom: 12px; position: relative; z-index: 2; }
.hero-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; position: relative; z-index: 2; }
.cta-btn {
  display: inline-block; padding: 14px 36px; background: var(--accent-red);
  color: #fff; font-size: 1.05rem; font-weight: 700;
  border-radius: 50px; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(196, 18, 48, 0.4);
  transition: var(--transition); position: relative; z-index: 2;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196, 18, 48, 0.6); color: #fff; }
.cta-btn-gold {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #b8860b 100%);
  color: var(--primary-dark);
}
.cta-btn-gold:hover { box-shadow: 0 6px 24px rgba(212, 160, 23, 0.5); color: var(--primary-dark); }

/* ============ SECTION BASE ============ */
.section { padding: 40px 0; }
.section-alt { background: var(--secondary-dark); }
.section-title {
  font-size: 1.5rem; text-align: center; margin-bottom: 10px;
  position: relative; padding-bottom: 14px;
}
.section-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  border-radius: 2px;
}
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }

/* ============ VIDEO MODULE ============ */
.video-module {
  position: relative; max-width: 800px; margin: 0 auto 30px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid var(--border-gold); cursor: pointer;
}
.video-module img { width: 100%; }
.video-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); transition: var(--transition);
}
.video-overlay:hover { background: rgba(0,0,0,0.2); }
.play-btn {
  width: 70px; height: 70px; background: rgba(196, 18, 48, 0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff; transition: var(--transition);
}
.play-btn::after {
  content: ""; width: 0; height: 0;
  border-left: 22px solid #fff; border-top: 14px solid transparent;
  border-bottom: 14px solid transparent; margin-left: 5px;
}
.play-btn:hover { transform: scale(1.1); }

/* ============ GAME CARDS GRID ============ */
.games-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.game-card {
  background: var(--gradient-card); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.game-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.game-card-body { padding: 14px; }
.game-card-title { font-size: 1rem; margin-bottom: 6px; }
.game-card-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.game-card .cta-btn { display: block; text-align: center; padding: 10px; font-size: 0.9rem; }

/* ============ PROMO BANNER ============ */
.promo-banner {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid var(--border-gold); margin-bottom: 20px;
}
.promo-banner img { width: 100%; }

/* ============ ARTICLE CARDS ============ */
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.article-card {
  display: flex; flex-direction: column;
  background: var(--gradient-card); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border-gold);
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card-body { padding: 16px; }
.article-card-title { font-size: 1rem; margin-bottom: 6px; }
.article-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.article-card-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

/* ============ DOWNLOAD MODULE ============ */
.download-module {
  background: var(--gradient-card); border-radius: var(--radius-lg);
  padding: 30px 20px; text-align: center;
  border: 2px solid var(--border-gold);
}
.download-module .qr-img { width: 180px; margin: 16px auto; border-radius: var(--radius-sm); }
.download-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.download-badges img { height: 48px; width: auto; border-radius: var(--radius-sm); }

/* ============ PAYMENT METHODS ============ */
.payment-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; max-width: 500px; margin: 0 auto;
}
.payment-item {
  background: var(--card-bg); border-radius: var(--radius-sm);
  padding: 10px; text-align: center; border: 1px solid var(--border-gold);
}
.payment-item img { width: 80px; margin: 0 auto 6px; border-radius: 6px; }
.payment-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ============ LICENSE MODULE ============ */
.license-module {
  background: var(--gradient-card); border-radius: var(--radius-lg);
  padding: 24px; text-align: center;
  border: 2px solid var(--border-gold);
}
.license-module img { max-width: 350px; margin: 16px auto; border-radius: var(--radius-md); }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--gradient-card); border-radius: var(--radius-md);
  margin-bottom: 12px; border: 1px solid var(--border-gold); overflow: hidden;
}
.faq-question {
  padding: 16px 18px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--primary-gold); font-size: 0.95rem;
}
.faq-question::after { content: "▼"; font-size: 0.75rem; transition: var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(180deg); }
.faq-answer {
  padding: 0 18px; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 18px 16px; }

/* ============ REVIEWS ============ */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card {
  background: var(--gradient-card); border-radius: var(--radius-md);
  padding: 18px; border: 1px solid var(--border-gold);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-gold); }
.review-meta h4 { font-size: 0.9rem; color: var(--text-light); }
.review-meta span { font-size: 0.78rem; color: var(--text-muted); }
.review-stars { color: #f0c040; font-size: 0.9rem; margin-bottom: 8px; }
.review-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.review-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; text-align: right; }

/* ============ AUTHOR INFO ============ */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gradient-card); border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--border-gold); margin: 20px 0;
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--primary-gold); flex-shrink: 0; }
.author-info h4 { font-size: 1rem; color: var(--primary-gold); margin-bottom: 4px; }
.author-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ============ SUPPORT MODULE ============ */
.support-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.support-item {
  background: var(--gradient-card); border-radius: var(--radius-md);
  padding: 18px; text-align: center; border: 1px solid var(--border-gold);
}
.support-item img { width: 50px; margin: 0 auto 10px; }
.support-item h4 { font-size: 0.9rem; color: var(--primary-gold); margin-bottom: 4px; }
.support-item p { font-size: 0.8rem; color: var(--text-muted); }

/* ============ ABOUT MODULE ============ */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { margin-bottom: 16px; text-indent: 2em; font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }
.about-content h3 { font-size: 1.15rem; margin: 24px 0 12px; }

/* ============ RESPONSIBLE GAMBLING ============ */
.responsible-section {
  background: linear-gradient(135deg, rgba(196, 18, 48, 0.08) 0%, rgba(10, 10, 30, 0.95) 100%);
  border-top: 2px solid rgba(196, 18, 48, 0.3);
}
.responsible-content { max-width: 700px; margin: 0 auto; text-align: center; }
.responsible-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.age-badge { display: inline-block; margin: 10px; }
.age-badge img { width: 60px; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding: 12px 0; font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--primary-gold); }
.breadcrumb span { margin: 0 6px; }

/* ============ INNER PAGE ============ */
.inner-hero {
  padding: 30px 0; text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}
.inner-hero img { max-width: 700px; width: 100%; border-radius: var(--radius-lg); margin-bottom: 16px; border: 2px solid var(--border-gold); }
.inner-content { max-width: 800px; margin: 0 auto; }
.inner-content p { margin-bottom: 16px; text-indent: 2em; font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }
.inner-content h2 { font-size: 1.3rem; margin: 28px 0 14px; border-left: 4px solid var(--primary-gold); padding-left: 14px; }
.inner-content h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.inner-content img { border-radius: var(--radius-md); margin: 16px 0; border: 1px solid var(--border-gold); }
.inner-content ul, .inner-content ol { padding-left: 24px; margin-bottom: 16px; }
.inner-content li { margin-bottom: 8px; color: var(--text-muted); font-size: 0.92rem; list-style: disc; }
.inner-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.inner-content th { background: rgba(212, 160, 23, 0.15); color: var(--primary-gold); padding: 10px; text-align: left; border: 1px solid var(--border-gold); }
.inner-content td { padding: 10px; border: 1px solid var(--border-gold); color: var(--text-muted); }

/* ============ FOOTER ============ */
.site-footer {
  background: linear-gradient(180deg, var(--secondary-dark) 0%, #050510 100%);
  border-top: 2px solid var(--border-gold); padding: 36px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.footer-col h4 { font-size: 1rem; color: var(--primary-gold); margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--primary-gold); }
.footer-col p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.footer-social img { width: 36px; height: 36px; border-radius: 50%; }
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.footer-payments img { height: 32px; border-radius: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border-gold); padding-top: 16px;
  text-align: center; font-size: 0.78rem; color: var(--text-muted);
}
.footer-bottom p { margin-bottom: 6px; }
.footer-badges { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.footer-badges img { height: 40px; }

/* ============ APP DOWNLOAD PAGE ============ */
.app-hero { padding: 40px 0; text-align: center; background: var(--gradient-hero); }
.app-hero img { max-width: 300px; margin: 0 auto 20px; }
.app-features { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0; }
.app-feature-item {
  background: var(--gradient-card); border-radius: var(--radius-md);
  padding: 18px; border: 1px solid var(--border-gold); text-align: center;
}
.app-feature-item h4 { font-size: 0.95rem; color: var(--primary-gold); margin-bottom: 6px; }
.app-feature-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ============ RESPONSIVE ============ */
@media (min-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .app-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; width: auto; padding-top: 0; }
  .main-nav ul { flex-direction: row; gap: 2px; }
  .main-nav li a { padding: 8px 12px; font-size: 0.88rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.8rem; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(4, 1fr); }
  .payment-grid { grid-template-columns: repeat(6, 1fr); }
  .app-features { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  .hero-title { font-size: 2.8rem; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none; }
