/* ============================================
   澳门博彩网站 - 全站样式
   配色方案：深紫 + 金色 + 暗红
   布局方式：CSS Grid + Flexbox 混合
   ============================================ */

/* === CSS Variables === */
:root {
  --primary-dark: #0d0b1e;
  --primary-mid: #1a1535;
  --primary-light: #2d2555;
  --accent-gold: #d4af37;
  --accent-gold-light: #f0d060;
  --accent-red: #8b1a1a;
  --accent-red-light: #c0392b;
  --text-white: #f5f5f5;
  --text-gray: #b0aec0;
  --text-muted: #7a7890;
  --card-bg: rgba(30, 25, 55, 0.85);
  --card-border: rgba(212, 175, 55, 0.25);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Noto Serif SC', 'STSong', serif;
  --max-width: 1200px;
  --gap: 1.5rem;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

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

ul, ol {
  list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  line-height: 1.4;
  margin-bottom: 0.8em;
}

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

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

/* === Layout Container === */
.site-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* === Header === */
.site-header {
  background: linear-gradient(180deg, var(--primary-mid) 0%, var(--primary-dark) 100%);
  border-bottom: 2px solid var(--card-border);
  padding: 0.8rem 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo img {
  height: 48px;
  width: auto;
}

/* === Desktop Navigation === */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.6rem 1rem;
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* === Mobile Menu Toggle === */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-gold);
  transition: transform 0.3s ease;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 0.8rem 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--accent-gold);
}

/* === Hero Section === */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 2rem;
}

.hero-section img {
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 11, 30, 0.7) 0%, rgba(139, 26, 26, 0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-overlay h1 {
  color: var(--accent-gold-light);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5em;
}

.hero-overlay p {
  color: var(--text-white);
  font-size: 1.1rem;
  max-width: 600px;
}

/* === CTA Button === */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49b20 100%);
  color: var(--primary-dark) !important;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
  opacity: 1;
}

/* === Section Styles === */
.section {
  padding: 2.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.card-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Casino Grid (different from card grid) === */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.casino-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.casino-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.casino-item:hover img {
  transform: scale(1.05);
}

.casino-item .casino-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(13, 11, 30, 0.9));
  padding: 1.5rem 1rem 0.8rem;
  text-align: center;
}

.casino-item .casino-label h4 {
  color: var(--accent-gold-light);
  margin-bottom: 0;
}

/* === Game Cards (small) === */
.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.game-card .game-name {
  padding: 0.8rem 0.5rem;
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.95rem;
}

/* === Video Section === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--card-border);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover img {
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* === Travel Guide === */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.travel-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.travel-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.travel-card .travel-body {
  padding: 1.2rem;
}

.travel-card .travel-body h4 {
  margin-bottom: 0.5em;
}

/* === License Section === */
.license-section {
  background: linear-gradient(135deg, var(--primary-mid) 0%, rgba(139, 26, 26, 0.15) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.license-section .license-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.license-section .license-badges img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

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

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

.faq-question {
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-white);
  transition: background 0.3s ease;
}

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

.faq-question .faq-icon {
  color: var(--accent-gold);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.2rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.2rem 1.2rem;
}

/* === Reviews Section === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.review-meta .review-name {
  font-weight: 600;
  color: var(--text-white);
}

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

.review-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
}

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

/* === Payment Section === */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.payment-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 140px;
}

.payment-item img {
  width: 80px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
}

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

/* === Support Section === */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
  text-align: center;
}

.support-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.support-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

/* === About Section === */
.about-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  line-height: 2;
}

.about-content h3 {
  margin-top: 1.5rem;
}

/* === Disclaimer Section === */
.disclaimer-section {
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.15) 0%, var(--primary-mid) 100%);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.disclaimer-section h3 {
  color: var(--accent-red-light);
}

/* === Author Box === */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

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

.author-info h4 {
  margin-bottom: 0.3em;
}

.author-info p {
  font-size: 0.9rem;
}

/* === Inner Page Content === */
.page-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.page-content h2 {
  border-left: 4px solid var(--accent-gold);
  padding-left: 1rem;
  margin: 2rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.content-image {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--card-border);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.image-row img {
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

/* === App Download Page === */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}

.app-info h2 {
  margin-bottom: 1rem;
}

.app-features {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.app-feature {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.app-feature .feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.5rem;
  color: var(--text-white);
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.app-screenshot-wrap {
  text-align: center;
}

.app-screenshot-wrap img {
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, var(--primary-mid) 0%, #080612 100%);
  border-top: 2px solid var(--card-border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

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

.footer-col h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

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

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.15);
}

.footer-payment {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.footer-payment img {
  height: 32px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-age {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.footer-age img {
  width: 40px;
  height: 40px;
}

/* === Table Styles (for inner pages) === */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.info-table th,
.info-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.info-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  font-weight: 600;
}

.info-table td {
  color: var(--text-gray);
}

.info-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

/* === RTP Bar === */
.rtp-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  height: 24px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* === Responsive Design === */
@media (max-width: 768px) {
  :root {
    --gap: 1rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-mid);
    border-bottom: 2px solid var(--card-border);
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.8rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .main-nav a:hover,
  .main-nav a.active {
    border-left-color: var(--accent-gold);
    border-bottom-color: transparent;
  }

  .menu-toggle {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-screenshot-wrap {
    order: -1;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .page-content {
    padding: 1.2rem;
  }

  .about-content {
    padding: 1.2rem;
  }

  .license-section {
    padding: 1.2rem;
  }

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

  .image-row {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .travel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .casino-grid {
    grid-template-columns: 1fr;
  }

  .game-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
  }

  .payment-grid {
    gap: 0.5rem;
  }

  .payment-item {
    min-width: 100px;
    padding: 0.8rem;
  }
}

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

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

/* === Print Styles === */
@media print {
  .site-header,
  .site-footer,
  .cta-btn,
  .menu-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
