/* 
 * 澳门娱乐城旅游攻略网站 - 主样式表
 * 独特的紫金配色方案，现代卡片式布局
 */

/* CSS变量定义 */
:root {
  --primary-gold: #D4AF37;
  --primary-purple: #5B2C6F;
  --secondary-purple: #7D3C98;
  --dark-bg: #1A1A2E;
  --card-bg: #16213E;
  --text-light: #EAECEE;
  --text-muted: #AEB6BF;
  --accent-red: #C0392B;
  --accent-green: #27AE60;
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);
  --gradient-purple: linear-gradient(135deg, #5B2C6F 0%, #7D3C98 100%);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.8;
  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: #F4D03F;
}

/* 顶部导航 */
.site-header {
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.95) 100%);
  padding: 1rem 0;
  border-bottom: 2px solid var(--primary-gold);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 主导航 */
.main-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.nav-link.active {
  background: var(--gradient-gold);
  color: var(--dark-bg);
  font-weight: 600;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

/* Hero区域 */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(2px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.7) 0%, rgba(91, 44, 111, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--dark-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gradient-gold);
  color: var(--dark-bg);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  color: var(--dark-bg);
}

/* 面包屑导航 */
.breadcrumb {
  background: rgba(22, 33, 62, 0.8);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item::after {
  content: '›';
  color: var(--text-muted);
}

.breadcrumb-item:last-child::after {
  content: '';
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--primary-gold);
}

.breadcrumb-item.active {
  color: var(--primary-gold);
}

/* 主内容区域 */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* 区块标题 */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary-gold);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section-title .gold {
  color: var(--primary-gold);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 游戏卡片 */
.game-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .card-image {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gradient-gold);
  color: var(--dark-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-rtp {
  font-size: 0.9rem;
  color: var(--accent-green);
  font-weight: 600;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover {
  gap: 0.75rem;
}

/* 特色区块 */
.feature-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(91, 44, 111, 0.1) 50%, transparent 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: rgba(22, 33, 62, 0.6);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--primary-gold);
  background: rgba(22, 33, 62, 0.9);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 内容文章区 */
.article-content {
  max-width: 900px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem;
  color: var(--primary-gold);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-light);
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.article-content strong {
  color: var(--text-light);
  font-weight: 600;
}

/* 信息框 */
.info-box {
  background: rgba(212, 175, 55, 0.1);
  border-left: 4px solid var(--primary-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
}

.info-box p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* 评论区 */
.reviews-section {
  padding: 4rem 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--primary-gold);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.review-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.review-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: var(--primary-gold);
  font-size: 1.1rem;
}

.star.empty {
  color: var(--text-muted);
}

.review-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* FAQ区域 */
.faq-section {
  padding: 4rem 0;
  background: rgba(22, 33, 62, 0.5);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-gold);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 支付方式 */
.payment-section {
  padding: 3rem 0;
  text-align: center;
}

.payment-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.payment-icon {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.payment-icon:hover {
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.1);
}

/* 页脚 */
.site-footer {
  background: linear-gradient(180deg, var(--card-bg) 0%, #0D1321 100%);
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--primary-gold);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 0.5rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-gold);
  color: var(--dark-bg);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--primary-gold);
}

.age-restriction {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-red);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 标签页面 */
.tags-section {
  padding: 3rem 0;
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tag-item {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-size: 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}

.tag-item:hover {
  background: var(--primary-gold);
  color: var(--dark-bg);
}

/* 作者信息 */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 3rem 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.author-title {
  font-size: 0.9rem;
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
}

.author-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.data-table th {
  background: rgba(212, 175, 55, 0.2);
  color: var(--primary-gold);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

/* 图片画廊 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .review-grid {
    grid-template-columns: 1fr;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .author-avatar {
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .main-content {
    padding: 2rem 1rem;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* 懒加载占位 */
.lazy-placeholder {
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(212, 175, 55, 0.1) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 打印样式 */
@media print {
  .site-header,
  .site-footer,
  .hero-cta {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .main-content {
    max-width: 100%;
  }
}
