/* ============================================
   澳门新葡京 - 博彩娱乐平台样式表
   独特设计: 暗夜皇家主题 + 渐变金色系
   ============================================ */

/* === CSS Variables === */
:root {
  --primary-gold: #d4a017;
  --primary-gold-light: #f0d060;
  --primary-gold-dark: #a07810;
  --bg-dark: #0a0612;
  --bg-card: #130d24;
  --bg-section-alt: #0e0820;
  --bg-surface: #1a1230;
  --text-primary: #f0ece0;
  --text-secondary: #b0a8c0;
  --text-muted: #706880;
  --accent-red: #e63946;
  --accent-blue: #457b9d;
  --accent-green: #2a9d8f;
  --accent-purple: #7b2d8e;
  --border-subtle: rgba(212, 160, 23, 0.15);
  --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Noto Serif SC', Georgia, serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 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(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  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: var(--primary-gold-light);
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

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

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

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

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

.section-title p {
  margin-top: 10px;
  font-size: 0.95rem;
}

/* === Header / Navigation === */
.site-header {
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.98), rgba(10, 6, 18, 0.92));
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-gold);
  background: rgba(212, 160, 23, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-red), #c0392b) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

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

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

.breadcrumb span {
  color: var(--text-muted);
  margin: 0 8px;
}

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

/* === Hero Section === */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.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, 6, 18, 0.5), rgba(10, 6, 18, 0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}

.hero-content h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

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

.hero-content .hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-red), #c0392b);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-gold);
  padding: 12px 30px;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  border: 2px solid var(--primary-gold);
  transition: var(--transition);
  cursor: pointer;
}

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

/* === Video Section === */
.video-section {
  padding: 50px 0;
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.video-wrapper img {
  width: 100%;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(230, 57, 70, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-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;
}

.video-wrapper:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(230, 57, 70, 1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === Game Cards Grid === */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

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

.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.05);
}

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

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

.game-card-body p {
  font-size: 0.88rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-footer .btn-sm {
  background: linear-gradient(135deg, var(--accent-red), #c0392b);
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
}

.game-rtp {
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* === Articles Section === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

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

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

.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.article-card-body .article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-card-body p {
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Download Section === */
.download-section {
  text-align: center;
}

.download-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.download-qr {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.download-qr img {
  width: 200px;
  height: 200px;
}

.download-qr p {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.download-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-badges a {
  display: block;
  transition: var(--transition);
}

.download-badges a:hover {
  transform: scale(1.05);
}

.download-badges img {
  height: 60px;
  width: auto;
}

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

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

.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-gold);
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

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

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

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

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

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.review-stars {
  color: var(--primary-gold);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

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

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: right;
}

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

.payment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.payment-item:hover {
  border-color: var(--primary-gold);
}

.payment-item img {
  height: 40px;
  width: auto;
}

.payment-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* === License Section === */
.license-section {
  text-align: center;
}

.license-badge {
  max-width: 400px;
  margin: 20px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.license-info {
  max-width: 700px;
  margin: 20px auto;
}

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

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

.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
}

.support-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
}

.support-card h4 {
  margin-bottom: 8px;
}

/* === About Section === */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-box .author-info h4 {
  margin-bottom: 4px;
}

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

.author-box .author-info p {
  font-size: 0.9rem;
  text-indent: 0;
}

/* === Promo / Recharge Section === */
.promo-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 20px 0;
}

.promo-banner img {
  width: 100%;
}

/* === Responsible Gaming === */
.responsible-gaming {
  background: var(--bg-card);
  border: 2px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 30px 0;
}

.responsible-gaming h3 {
  color: var(--accent-red);
}

/* === Inner Page Content === */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content h1 {
  margin-bottom: 20px;
}

.page-content h2 {
  margin-top: 30px;
}

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

.page-content img {
  border-radius: var(--radius-md);
  margin: 20px 0;
  box-shadow: var(--shadow-card);
}

.content-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.content-image-grid img {
  margin: 0;
}

/* === App Download Page === */
.app-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--bg-dark), var(--accent-purple));
}

.app-screenshots {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.app-screenshots img {
  max-width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

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

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, var(--bg-section-alt), #050310);
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

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

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

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

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

.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

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

.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 20px 0;
}

.footer-payment img {
  height: 35px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-payment img:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

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

.footer-age-badge {
  display: inline-block;
  margin: 10px 0;
}

.footer-age-badge img {
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 10px auto;
  line-height: 1.6;
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

.gold-shimmer {
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light), var(--primary-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* === Responsive === */
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg-dark);
    padding: 10px 0;
    border-top: 1px solid var(--border-subtle);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav a {
    padding: 12px 20px;
    width: 100%;
    text-align: left;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .download-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .content-image-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* === Print === */
@media print {
  .site-header, .site-footer, .video-section, .download-section {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
}
