/* ============================================
   澳門賭場指南 - 主樣式表
   配色：金沙金 #C9A96E / 深棕 #3E2723 / 葡萄牙藍 #1A237E
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

:root {
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --gold-dark: #A68B4B;
  --brown: #3E2723;
  --brown-light: #5D4037;
  --blue: #1A237E;
  --blue-light: #283593;
  --white: #FAFAFA;
  --black: #1A1A1A;
  --gray: #757575;
  --bg-dark: #1C1410;
  --bg-card: rgba(30, 20, 14, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Serif TC', 'Source Han Serif TC', serif;
  color: var(--white);
  background-color: var(--bg-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel Decorative', 'Noto Serif TC', serif;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: #D4C5A9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 導航欄 ============ */
.site-nav {
  background: linear-gradient(180deg, rgba(28,20,16,0.98) 0%, rgba(28,20,16,0.92) 100%);
  border-bottom: 2px solid var(--gold);
  padding: 0;
  position: relative;
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

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

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-logo span {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  padding: 24px 16px;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(201,169,110,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* ============ 英雄區塊 ============ */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(28,20,16,0.3) 0%, rgba(28,20,16,0.7) 60%, rgba(28,20,16,0.95) 100%);
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 0; right: 0;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gold-light);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-markers {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
}

.marker {
  position: absolute;
  width: 20px; height: 20px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  animation: markerPulse 2s ease-in-out infinite;
  transition: transform 0.3s;
}

.marker:hover {
  transform: scale(1.5);
}

.marker .marker-label {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--bg-card);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.marker:hover .marker-label {
  opacity: 1;
}

@keyframes markerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,110,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(201,169,110,0); }
}

/* ============ 通用區塊 ============ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.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: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title p {
  margin-top: 15px;
  color: var(--gray);
  font-size: 1rem;
}

/* ============ 卡片網格 ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.card-body {
  padding: 20px;
}

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

.card-body p {
  font-size: 0.9rem;
  color: #B8A88A;
}

.card-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--gold-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 10px;
}

/* ============ 美食地圖表格 ============ */
.food-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.food-table th {
  background: var(--brown);
  color: var(--gold);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

.food-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(201,169,110,0.15);
  color: #D4C5A9;
}

.food-table tr:hover td {
  background: rgba(201,169,110,0.05);
}

/* ============ 活動日曆 ============ */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.3s;
}

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

.event-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  background: var(--blue);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-date .month {
  font-size: 0.8rem;
  color: var(--gold-light);
  text-transform: uppercase;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.event-info h4 {
  color: var(--gold);
  margin-bottom: 5px;
}

.event-info p {
  font-size: 0.9rem;
  color: #B8A88A;
}

.event-venue {
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin-top: 5px;
}

/* ============ 歷史長廊入口 ============ */
.history-entrance {
  position: relative;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
}

.history-entrance .bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenBurns 25s ease-in-out infinite alternate;
}

.history-entrance .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(28,20,16,0.4) 0%, rgba(28,20,16,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.history-entrance h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.history-entrance p {
  max-width: 500px;
  margin-bottom: 20px;
}

/* ============ 按鈕 ============ */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--brown);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--brown);
  box-shadow: 0 8px 25px rgba(201,169,110,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--brown);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--gold-light);
}

.btn-blue:hover {
  box-shadow: 0 8px 25px rgba(26,35,126,0.5);
}

/* ============ 實用攻略 ============ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.tip-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.tip-card h4 {
  margin-bottom: 10px;
}

/* ============ 區域瀏覽 ============ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.area-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
}

.area-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

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

.area-card .area-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(28,20,16,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
}

.area-card h3 {
  font-size: 1.4rem;
}

.area-card p {
  font-size: 0.9rem;
}

/* ============ 麵包屑 ============ */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.85rem;
}

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

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

/* ============ 頁腳 ============ */
.site-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0D0A08 100%);
  border-top: 2px solid var(--gold);
  padding: 60px 0 30px;
}

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

.footer-col h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: 'Noto Serif TC', serif;
}

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

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

.footer-col ul li a {
  color: #B8A88A;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-col p {
  font-size: 0.9rem;
  color: #B8A88A;
}

.footer-bottom {
  border-top: 1px solid rgba(201,169,110,0.2);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--brown);
}

/* ============ 內頁通用 ============ */
.page-hero {
  position: relative;
  height: 45vh;
  min-height: 350px;
  overflow: hidden;
}

.page-hero .hero-bg {
  animation: kenBurns 25s ease-in-out infinite alternate;
}

.page-hero .hero-content {
  bottom: 10%;
}

.page-hero h1 {
  font-size: 2.2rem;
}

.content-section {
  padding: 60px 0;
}

.content-section .article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2;
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-body h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-body p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

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

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

.info-table th,
.info-table td {
  padding: 12px 16px;
  border: 1px solid rgba(201,169,110,0.2);
  text-align: left;
}

.info-table th {
  background: var(--brown);
  color: var(--gold);
  font-weight: 600;
}

.info-table td {
  color: #D4C5A9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ============ APP下載頁 ============ */
.app-hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--bg-dark) 50%, var(--blue) 100%);
}

.app-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

.app-feature {
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.app-feature .icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

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

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  padding: 15px 30px;
  border-radius: 12px;
  color: var(--gold);
  font-size: 1rem;
  transition: all 0.3s;
}

.download-btn:hover {
  background: var(--gold);
  color: var(--brown);
}

.download-btn .icon {
  font-size: 1.8rem;
}

/* ============ 響應式 ============ */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: rgba(28,20,16,0.98);
    flex-direction: column;
    border-top: 1px solid var(--gold);
    padding: 10px 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li a {
    padding: 14px 20px;
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 50px 0;
  }

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

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

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

  .page-hero {
    height: 35vh;
    min-height: 280px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .event-item {
    flex-direction: column;
  }

  .event-date {
    width: 100%;
    flex-direction: row;
    gap: 10px;
  }

  .food-table {
    font-size: 0.85rem;
  }

  .food-table th,
  .food-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .download-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ============ 懶加載 ============ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ============ 滾動動畫 ============ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
