/* ========================================
   PG电子 · 沙漠绿洲赌城风 全站样式
   沙丘波浪起伏布局 (Dune Wave Layout)
   ======================================== */

/* --- Google Fonts 本地化替代 --- */
@font-face {
  font-family: 'Alfa Slab One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Alfa Slab One'), url('../fonts/alfa-slab-one.woff2') format('woff2');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Josefin Sans'), url('../fonts/josefin-sans.woff2') format('woff2');
}

/* --- CSS变量定义 --- */
:root {
  --sand-gold: #C2B280;
  --oasis-green: #228B22;
  --night-sky: #000080;
  --flame-orange: #FF4500;
  --parchment-white: #FDF5E6;
  --dark-bg: #0a0a3a;
  --deep-sand: #8B7355;
  --shadow-blue: #00004d;
  --font-title: 'Alfa Slab One', 'Georgia', serif;
  --font-body: 'Josefin Sans', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: var(--parchment-white);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--sand-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--flame-orange);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--sand-gold);
  line-height: 1.3;
}

/* --- 沙漏加载动画 --- */
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}
.loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.hourglass {
  width: 60px;
  height: 80px;
  position: relative;
  animation: hourglassRotate 2s ease-in-out infinite;
}
.hourglass::before, .hourglass::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}
.hourglass::before {
  top: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 38px solid var(--sand-gold);
}
.hourglass::after {
  bottom: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 38px solid var(--sand-gold);
}
@keyframes hourglassRotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* --- 导航栏（非Sticky） --- */
.desert-nav {
  background: linear-gradient(180deg, rgba(0,0,80,0.95) 0%, rgba(10,10,58,0.9) 100%);
  border-bottom: 2px solid var(--sand-gold);
  padding: 0;
  position: relative;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}
.nav-links li a {
  display: block;
  padding: 12px 14px;
  color: var(--parchment-white);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--sand-gold);
  border-bottom-color: var(--sand-gold);
}
.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--sand-gold);
  color: var(--sand-gold);
  font-size: 24px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* --- 面包屑导航 --- */
.breadcrumb {
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 20px;
  font-size: 14px;
  color: var(--deep-sand);
}
.breadcrumb a {
  color: var(--sand-gold);
}
.breadcrumb span {
  margin: 0 8px;
  color: var(--deep-sand);
}

/* --- 沙丘波浪分隔符 --- */
.dune-wave-separator {
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23C2B280' fill-opacity='0.15' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,20 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
  position: relative;
}
.dune-wave-separator::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
}

/* --- Hero全景模块 --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 60vh;
  overflow: hidden;
}
.hero-section .hero-bg {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(transparent, rgba(10,10,58,0.9));
  text-align: center;
}
.hero-overlay h1 {
  font-size: 2.5rem;
  color: var(--sand-gold);
  text-shadow: 0 0 20px rgba(194,178,128,0.5);
  margin-bottom: 10px;
}
.hero-overlay p {
  font-size: 1.2rem;
  color: var(--parchment-white);
  max-width: 700px;
  margin: 0 auto;
}

/* --- 通用Section --- */
.desert-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
}
.desert-section[data-oasis] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.desert-section[data-oasis].visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--sand-gold);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--oasis-green), var(--sand-gold), var(--oasis-green));
}
.section-title p {
  margin-top: 15px;
  color: var(--deep-sand);
  font-size: 1rem;
}

/* --- 六大游戏帐篷网格 --- */
.oasis-tents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.tent-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(0,0,80,0.8), rgba(10,10,58,0.9));
  border: 1px solid rgba(194,178,128,0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}
.tent-card:hover {
  transform: translateY(-8px);
  border-color: var(--sand-gold);
  box-shadow: 0 15px 40px rgba(194,178,128,0.2);
}
.tent-card .tent-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tent-card:hover .tent-img {
  transform: scale(1.08);
}
.tent-card .tent-info {
  padding: 20px;
}
.tent-card .tent-info h3 {
  font-size: 1.2rem;
  color: var(--sand-gold);
  margin-bottom: 10px;
}
.tent-card .tent-info p {
  font-size: 0.9rem;
  color: var(--parchment-white);
  opacity: 0.85;
}
.tent-card .tent-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--sand-gold), var(--deep-sand));
  color: var(--dark-bg);
  font-weight: 700;
  border-radius: 25px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.tent-card .tent-cta:hover {
  background: linear-gradient(135deg, var(--flame-orange), var(--sand-gold));
  color: #fff;
  box-shadow: 0 0 15px rgba(255,69,0,0.4);
}

/* --- 视频模块 --- */
.video-module {
  background: linear-gradient(135deg, rgba(0,0,80,0.6), rgba(10,10,58,0.8));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(194,178,128,0.2);
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 30px;
}
.video-module .video-frame {
  flex: 1;
  min-width: 0;
}
.video-module .video-frame img {
  width: 100%;
  border-radius: 12px;
  border: 3px solid var(--sand-gold);
}
.video-module .video-desc {
  flex: 1;
}
.video-module .video-desc h3 {
  color: var(--sand-gold);
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.video-list {
  list-style: none;
  padding: 0;
}
.video-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(194,178,128,0.15);
  color: var(--parchment-white);
  cursor: pointer;
  transition: color 0.3s;
}
.video-list li:hover {
  color: var(--flame-orange);
}
.video-list li::before {
  content: '▶ ';
  color: var(--flame-orange);
}

/* --- 攻略古书模块 --- */
.strategy-book {
  display: flex;
  gap: 30px;
  align-items: center;
}
.strategy-book .book-img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
}
.strategy-book .book-img img {
  width: 100%;
  border-radius: 12px;
}
.strategy-book .book-content {
  flex: 1;
}
.strategy-list {
  list-style: none;
  padding: 0;
}
.strategy-list li {
  padding: 12px 15px;
  margin-bottom: 10px;
  background: rgba(194,178,128,0.1);
  border-left: 4px solid var(--sand-gold);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s;
}
.strategy-list li:hover {
  background: rgba(194,178,128,0.2);
  transform: translateX(5px);
}
.strategy-list li a {
  color: var(--parchment-white);
  font-weight: 600;
}

/* --- 品牌故事壁画模块 --- */
.brand-story {
  text-align: center;
}
.brand-story .mural-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 2px solid rgba(194,178,128,0.3);
}
.brand-story .story-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 1rem;
  line-height: 2;
  color: var(--parchment-white);
}

/* --- 返水甘泉模块 --- */
.spring-module {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.spring-module .spring-bg {
  width: 100%;
  border-radius: 16px;
}
.spring-module .spring-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(transparent 30%, rgba(10,10,58,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-radius: 16px;
}
.spring-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin-top: 15px;
}
.spring-table th, .spring-table td {
  padding: 10px 15px;
  text-align: center;
  border: 1px solid rgba(194,178,128,0.3);
}
.spring-table th {
  background: rgba(194,178,128,0.2);
  color: var(--sand-gold);
  font-weight: 700;
}
.spring-table td {
  color: var(--parchment-white);
}

/* --- 牌照石碑模块 --- */
.license-module {
  display: flex;
  gap: 30px;
  align-items: center;
}
.license-module .license-img {
  flex: 1;
}
.license-module .license-img img {
  width: 100%;
  border-radius: 12px;
}
.license-module .license-text {
  flex: 1;
}
.license-module .license-text blockquote {
  border-left: 4px solid var(--sand-gold);
  padding: 20px;
  background: rgba(194,178,128,0.08);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--parchment-white);
  line-height: 1.9;
}

/* --- 负责任博弈模块 --- */
.responsible-module {
  text-align: center;
  background: linear-gradient(135deg, rgba(139,0,0,0.15), rgba(10,10,58,0.9));
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid rgba(255,69,0,0.3);
}
.responsible-module .stop-img {
  max-width: 300px;
  margin: 0 auto 25px;
  border-radius: 12px;
}
.responsible-module .rules-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 20px auto;
  text-align: left;
}
.responsible-module .rules-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(194,178,128,0.15);
  color: var(--parchment-white);
}
.responsible-module .rules-list li::before {
  content: '⚠ ';
  color: var(--flame-orange);
}

/* --- FAQ模块 --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(194,178,128,0.2);
  border-radius: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: rgba(194,178,128,0.1);
  border: none;
  padding: 18px 20px;
  text-align: left;
  color: var(--sand-gold);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
  font-family: var(--font-body);
}
.faq-question:hover {
  background: rgba(194,178,128,0.2);
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--flame-orange);
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  color: var(--parchment-white);
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 15px 20px;
}

/* --- CTA按钮 --- */
.cta-btn {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(135deg, var(--sand-gold), #d4a843);
  color: var(--dark-bg);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover {
  background: linear-gradient(135deg, var(--flame-orange), var(--sand-gold));
  color: #fff;
  box-shadow: 0 0 25px rgba(255,69,0,0.4);
  transform: translateY(-2px);
}
.cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
}
.cta-btn:hover::after {
  left: 100%;
}

/* --- 页脚 --- */
.desert-footer {
  background: linear-gradient(180deg, var(--dark-bg), #050520);
  border-top: 2px solid var(--sand-gold);
  padding: 50px 20px 30px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col h4 {
  color: var(--sand-gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(194,178,128,0.3);
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: var(--parchment-white);
  opacity: 0.8;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.footer-col ul li a:hover {
  color: var(--sand-gold);
  opacity: 1;
  padding-left: 5px;
}
.footer-col .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.footer-col .social-icons a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sand-gold);
  border-radius: 50%;
  color: var(--sand-gold);
  font-size: 18px;
  transition: all 0.3s;
}
.footer-col .social-icons a:hover {
  background: var(--sand-gold);
  color: var(--dark-bg);
}
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(194,178,128,0.2);
  text-align: center;
  font-size: 0.85rem;
  color: var(--deep-sand);
}
.footer-bottom .age-badge {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  background: linear-gradient(135deg, var(--sand-gold), var(--deep-sand));
  color: var(--dark-bg);
  font-weight: 900;
  font-size: 16px;
  border-radius: 50%;
  margin: 10px auto;
  text-align: center;
}
.footer-bottom .payment-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.footer-bottom .payment-icons span {
  padding: 5px 12px;
  border: 1px solid rgba(194,178,128,0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--sand-gold);
}

/* --- 内页通用样式 --- */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  overflow: hidden;
}
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .page-hero-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(10,10,58,0.95));
  text-align: center;
}
.page-hero .page-hero-overlay h1 {
  font-size: 2.2rem;
  color: var(--sand-gold);
}
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}
.page-content h2 {
  font-size: 1.6rem;
  margin: 30px 0 15px;
  color: var(--sand-gold);
}
.page-content h3 {
  font-size: 1.3rem;
  margin: 25px 0 12px;
  color: var(--oasis-green);
}
.page-content p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 2;
}
.page-content .content-img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid rgba(194,178,128,0.2);
}
.page-content .tip-box {
  background: rgba(194,178,128,0.1);
  border-left: 4px solid var(--flame-orange);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}
.page-content .tip-box h4 {
  color: var(--flame-orange);
  margin-bottom: 10px;
}

/* --- APP下载页面 --- */
.app-palace {
  text-align: center;
  padding: 40px 20px;
}
.app-palace .qr-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.app-palace .qr-box {
  background: rgba(194,178,128,0.1);
  border: 2px solid var(--sand-gold);
  border-radius: 16px;
  padding: 25px;
  width: 220px;
  text-align: center;
}
.app-palace .qr-box .qr-placeholder {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  background: var(--parchment-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-bg);
  font-weight: 700;
  font-size: 0.9rem;
}
.app-palace .qr-box h4 {
  color: var(--sand-gold);
}
.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 30px auto;
}
.app-feature-card {
  background: rgba(194,178,128,0.08);
  border: 1px solid rgba(194,178,128,0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}
.app-feature-card:hover {
  border-color: var(--sand-gold);
  transform: translateY(-3px);
}
.app-feature-card h4 {
  color: var(--sand-gold);
  margin-bottom: 8px;
}

/* --- 干扰标签区块（不可见） --- */
.jammer-block {
  opacity: 0.01;
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -9999px;
}

/* --- 热浪文字效果 --- */
.sand-wave-text {
  animation: heatWave 3s ease-in-out infinite;
}
@keyframes heatWave {
  0%, 100% { filter: blur(0px); }
  50% { filter: blur(0.3px); }
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
  .oasis-tents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-module {
    flex-direction: column;
  }
  .strategy-book {
    flex-direction: column;
  }
  .license-module {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0,0,80,0.98);
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 2px solid var(--sand-gold);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(194,178,128,0.1);
  }
  .mobile-toggle {
    display: block;
  }
  .hero-overlay h1 {
    font-size: 1.8rem;
  }
  .oasis-tents-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .app-features {
    grid-template-columns: 1fr;
  }
  .app-palace .qr-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  body {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-section .hero-bg {
    height: 40vh;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .page-hero {
    height: 30vh;
    min-height: 200px;
  }
}
