/* ========================================
   赏金女王 - 主样式表
   配色方案：深青色 + 琥珀金 + 暗夜蓝
   ======================================== */

/* CSS Variables */
:root {
  --primary-dark: #0a1628;
  --primary-mid: #132240;
  --primary-light: #1b3a5c;
  --accent-gold: #d4a017;
  --accent-amber: #f0b429;
  --accent-copper: #c87533;
  --text-white: #f5f5f0;
  --text-light: #c8cdd5;
  --text-muted: #8892a0;
  --border-color: #2a3f5f;
  --card-bg: rgba(19, 34, 64, 0.85);
  --overlay: rgba(10, 22, 40, 0.92);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #1b3a5c 50%, #132240 100%);
  --gradient-gold: linear-gradient(135deg, #d4a017 0%, #f0b429 50%, #c87533 100%);
  --gradient-card: linear-gradient(180deg, rgba(19,34,64,0.9) 0%, rgba(10,22,40,0.95) 100%);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.2);
  --shadow-gold: 0 4px 20px rgba(212,160,23,0.3);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Noto Serif SC', 'STSong', serif;
  --transition: all 0.35s 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-white);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--accent-gold); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

p { margin-bottom: 1em; color: var(--text-light); }

/* Container */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--primary-mid);
  border-bottom: 2px solid var(--accent-gold);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

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

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

.site-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.site-logo span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

.desktop-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-light);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-amber);
  background: rgba(212,160,23,0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--accent-amber);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-mid);
  border-bottom: 2px solid var(--accent-gold);
  z-index: 99;
  padding: 16px;
}

.mobile-nav.active { display: block; }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(212,160,23,0.15);
  color: var(--accent-amber);
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 16px;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content h1 em {
  font-style: normal;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 24px;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gradient-gold);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212,160,23,0.5);
  color: var(--primary-dark);
}

.cta-btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--accent-gold);
  color: var(--accent-amber);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.cta-btn-outline:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
  background: rgba(19, 34, 64, 0.6);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-bar ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 0.85rem;
}

.breadcrumb-bar li::after {
  content: '>';
  margin-left: 6px;
  color: var(--text-muted);
}

.breadcrumb-bar li:last-child::after { display: none; }
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--accent-amber); }
.breadcrumb-bar .current { color: var(--accent-amber); }

/* ========== SECTION STYLES ========== */
.content-section {
  padding: 50px 0;
}

.content-section:nth-child(even) {
  background: rgba(19, 34, 64, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== GAME CARDS GRID ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

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

.game-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-img img {
  transform: scale(1.08);
}

.game-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gradient-gold);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.game-card-body {
  padding: 18px;
}

.game-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.game-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-rtp {
  background: rgba(212,160,23,0.15);
  color: var(--accent-amber);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* ========== VIDEO MODULE ========== */
.video-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  cursor: pointer;
}

.video-showcase img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.play-btn-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: var(--transition);
}

.play-btn-overlay:hover {
  background: rgba(0,0,0,0.2);
}

.play-btn-circle {
  width: 72px;
  height: 72px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.play-btn-circle:hover {
  transform: scale(1.1);
}

.play-btn-circle::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--primary-dark);
  margin-left: 4px;
}

/* ========== LICENSE MODULE ========== */
.license-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.license-badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.license-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-info h3 {
  color: var(--accent-amber);
}

/* ========== ABOUT / TEXT CONTENT ========== */
.text-content {
  max-width: 900px;
  margin: 0 auto;
}

.text-content p {
  text-indent: 2em;
  margin-bottom: 1.2em;
  line-height: 2;
}

.text-content h3 {
  margin-top: 1.5em;
  padding-left: 14px;
  border-left: 4px solid var(--accent-gold);
}

/* ========== AUTHOR BIO ========== */
.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent-gold);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--accent-amber);
  margin-bottom: 4px;
}

.author-info .author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ========== PAYMENT MODULE ========== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.payment-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.payment-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.payment-item .pay-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.payment-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.payment-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-highlight {
  border-color: var(--accent-gold);
  background: rgba(212,160,23,0.08);
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-white);
  padding: 18px 20px;
  font-size: 1rem;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(212,160,23,0.08);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-left: 12px;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--accent-gold);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.reviewer-name {
  font-weight: 700;
  color: var(--text-white);
}

.reviewer-city {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--accent-amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 10px;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== SUPPORT MODULE ========== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.support-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.support-item:hover {
  border-color: var(--accent-gold);
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ========== RESPONSIBLE GAMING ========== */
.responsible-banner {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.responsible-banner img {
  max-width: 300px;
  border-radius: var(--radius-md);
}

/* ========== INNER PAGE CONTENT ========== */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .hero-bg img {
  filter: brightness(0.5);
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px;
}

.article-content h2 {
  margin-top: 2em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.article-content figure {
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px;
  background: var(--card-bg);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-content th {
  background: var(--primary-mid);
  color: var(--accent-amber);
}

.article-content td {
  background: var(--card-bg);
}

.info-box {
  background: rgba(212,160,23,0.08);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.info-box h4 {
  color: var(--accent-amber);
  margin-bottom: 6px;
}

/* ========== APP DOWNLOAD PAGE ========== */
.app-hero {
  text-align: center;
  padding: 60px 16px;
}

.app-phones {
  max-width: 600px;
  margin: 30px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.dl-btn-ios {
  background: #333;
  color: #fff;
}

.dl-btn-android {
  background: #1b5e20;
  color: #fff;
}

.dl-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.app-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.app-feature-card .feat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary-mid);
  border-top: 2px solid var(--accent-gold);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 30px;
}

.footer-col h4 {
  color: var(--accent-amber);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-amber);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212,160,23,0.1);
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 16px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

.footer-payment-icons span {
  background: rgba(212,160,23,0.1);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #e53935;
  color: #e53935;
  font-weight: 900;
  font-size: 1rem;
  margin: 10px auto;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .desktop-nav { display: block; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }

  .hero-section { min-height: 560px; }
  .hero-content { padding: 80px 16px; }

  .license-module {
    flex-direction: row;
    text-align: left;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .author-card {
    flex-direction: row;
  }

  .responsible-banner {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.text-gold { color: var(--accent-amber); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
