/* ============================================
   港式茶餐廳懷舊風 - 全站樣式
   好運茶餐廳 六合彩 資訊站
   ============================================ */

/* --- Google Fonts 引入 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+HK:wght@400;700;900&family=LXGW+WenKai:wght@300;400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --milk-tea: #c8a679;
  --egg-tart: #ffeb99;
  --pineapple-green: #3c6e47;
  --newspaper-grey: #e0e0e0;
  --dark-wood: #4a3728;
  --neon-pink: #ff6b9d;
  --neon-blue: #00d4ff;
  --deep-bg: #1a1a2e;
  --text-dark: #2c2c2c;
  --text-light: #f5f0e8;
  --border-line: #8B7355;
  --shadow-warm: rgba(139, 115, 85, 0.3);
  --font-title: 'Noto Serif HK', 'PMingLiU', serif;
  --font-body: 'LXGW WenKai', 'KaiTi', cursive;
}

/* --- 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-body);
  background-color: var(--milk-tea);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  background-image: url('../images/mosaic-tile.webp');
  background-repeat: repeat;
  background-size: 200px;
}

/* --- 干擾標籤隱藏 --- */
.jammer-block {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--dark-wood);
  line-height: 1.4;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; font-weight: 900; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
h5 { font-size: 1.1rem; font-weight: 400; }
h6 { font-size: 1rem; font-weight: 400; }

p {
  margin-bottom: 1em;
  font-size: 1rem;
}

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

a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink), 0 0 16px var(--neon-pink);
}

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

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- 霓虹閃爍動畫 --- */
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 4px var(--neon-pink), 0 0 11px var(--neon-pink), 0 0 19px var(--neon-pink), 0 0 40px #ff2d95, 0 0 80px #ff2d95;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

@keyframes neonGlow {
  0%, 100% {
    text-shadow: 0 0 5px var(--egg-tart), 0 0 10px var(--egg-tart);
  }
  50% {
    text-shadow: 0 0 20px var(--egg-tart), 0 0 40px var(--egg-tart), 0 0 60px #ffcc00;
  }
}

/* --- 蒸汽升騰動畫 --- */
@keyframes steamRise {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-80px) scaleX(1.5);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-160px) scaleX(2);
    opacity: 0;
  }
}

/* --- 翻頁效果 --- */
@keyframes pageFlip {
  0% {
    transform: perspective(1200px) rotateY(0deg);
    opacity: 1;
  }
  100% {
    transform: perspective(1200px) rotateY(-15deg);
    opacity: 0.95;
  }
}

/* --- 淡入動畫 --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* ============================================
   導航欄 (非Sticky)
   ============================================ */
#yaumati-nav {
  background: linear-gradient(135deg, var(--dark-wood), #2c1810);
  border-bottom: 3px solid var(--egg-tart);
  padding: 0;
  position: relative;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  justify-content: space-between;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand .brand-text {
  font-family: var(--font-title);
  color: var(--egg-tart);
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

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

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  padding: 0;
  margin: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text-light);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  border-right: 1px solid rgba(255,235,153,0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-menu li a:hover {
  background: var(--pineapple-green);
  color: var(--egg-tart);
  animation: neonGlow 1.5s ease-in-out infinite;
}

.nav-menu li:last-child a {
  border-right: none;
}

/* --- 麵包屑導航 --- */
.breadcrumb-bar {
  background: var(--newspaper-grey);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-line);
}

.breadcrumb-bar ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.breadcrumb-bar ol li::after {
  content: " › ";
  margin: 0 0.4rem;
  color: #999;
}

.breadcrumb-bar ol li:last-child::after {
  content: "";
}

.breadcrumb-bar ol li a {
  color: var(--pineapple-green);
}

.breadcrumb-bar ol li.active {
  color: var(--dark-wood);
  font-weight: 700;
}

/* ============================================
   模塊1：全屏視頻Hero
   ============================================ */
#mongkok-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: var(--deep-bg);
}

#mongkok-hero video,
#mongkok-hero .hero-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26,26,46,0.4) 0%, rgba(26,26,46,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-slogan {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--egg-tart);
  text-shadow: 0 0 20px rgba(255,235,153,0.5), 2px 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
  max-width: 700px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  background: var(--egg-tart);
  color: var(--dark-wood);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: 3px solid var(--dark-wood);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--neon-pink);
  color: #fff;
  border-color: var(--neon-pink);
  animation: neonFlicker 1.5s infinite alternate;
  transform: scale(1.05);
}

.hero-play-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.2);
  border: 2px solid #fff;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.hero-play-btn:hover {
  background: rgba(255,255,255,0.4);
}

/* ============================================
   模塊2：品牌介紹（舊相冊）
   ============================================ */
#sham-shui-po-story {
  background: var(--newspaper-grey);
  background-image: url('../images/newspaper-texture.webp');
  background-size: 400px;
  padding: 4rem 0;
  border-top: 4px double var(--border-line);
  border-bottom: 4px double var(--border-line);
}

.album-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  background: #f5efe0;
  border: 8px solid var(--dark-wood);
  border-radius: 4px;
  box-shadow: 8px 8px 24px var(--shadow-warm), inset 0 0 40px rgba(139,115,85,0.1);
  overflow: hidden;
}

.album-left {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8dcc8;
  position: relative;
}

.album-left::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid var(--border-line);
  pointer-events: none;
}

.album-left img {
  filter: grayscale(100%) sepia(30%);
  border: 4px solid #fff;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
  transform: rotate(-2deg);
}

.album-right {
  padding: 2.5rem 2rem;
  position: relative;
}

.album-right h2 {
  font-size: 1.6rem;
  color: var(--dark-wood);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--egg-tart);
  padding-bottom: 0.5rem;
}

.album-right .story-text {
  font-size: 0.95rem;
  line-height: 2;
  color: #3a3a3a;
  column-count: 1;
}

.story-timeline {
  margin-top: 1.5rem;
  border-left: 3px solid var(--pineapple-green);
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--egg-tart);
  border: 2px solid var(--pineapple-green);
  border-radius: 50%;
}

.timeline-item h4 {
  color: var(--pineapple-green);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.timeline-item p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================
   模塊3：茶餐廳公告板開獎
   ============================================ */
#announcement-board {
  background: var(--pineapple-green);
  background-image: url('../images/corkboard-bg.webp');
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  position: relative;
}

.board-frame {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(90,114,71,0.9);
  border: 12px solid #6B4226;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3), 8px 8px 20px rgba(0,0,0,0.4);
  position: relative;
}

.board-title {
  text-align: center;
  margin-bottom: 2rem;
}

.board-title h2 {
  color: var(--egg-tart);
  font-size: 1.8rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.board-title p {
  color: #ddd;
  font-size: 0.95rem;
}

.main-result-note {
  background: var(--egg-tart);
  max-width: 500px;
  margin: 0 auto 2rem;
  padding: 2rem;
  transform: rotate(-1deg);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
  position: relative;
  border-radius: 2px;
}

.main-result-note::before {
  content: '📌';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
}

.result-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0;
}

.result-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.ball-red { background: #cc3333; }
.ball-blue { background: #3366cc; }
.ball-green { background: #3c6e47; }

.result-ball.special {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  border: 3px solid var(--egg-tart);
  position: relative;
}

.result-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-wood);
  display: flex;
  align-items: center;
}

.result-zodiac {
  text-align: center;
  font-size: 1rem;
  color: var(--dark-wood);
  font-weight: 700;
  margin-top: 0.5rem;
}

.history-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.history-note {
  background: #fff;
  padding: 1rem;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  transform: rotate(1deg);
  font-size: 0.85rem;
}

.history-note:nth-child(even) {
  transform: rotate(-1deg);
}

.history-note .note-period {
  font-weight: 700;
  color: var(--pineapple-green);
  margin-bottom: 0.3rem;
}

.board-link {
  text-align: center;
  margin-top: 2rem;
}

.board-link a {
  color: var(--egg-tart);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px dashed var(--egg-tart);
  padding-bottom: 2px;
}

/* ============================================
   模塊4：茶客圍爐評論
   ============================================ */
#tea-lounge-comments {
  background: var(--milk-tea);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.steam-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.steam-particle {
  position: absolute;
  bottom: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: steamRise 4s ease-in infinite;
}

.steam-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 4s; }
.steam-particle:nth-child(2) { left: 30%; animation-delay: 1s; animation-duration: 5s; }
.steam-particle:nth-child(3) { left: 50%; animation-delay: 2s; animation-duration: 4.5s; }
.steam-particle:nth-child(4) { left: 70%; animation-delay: 0.5s; animation-duration: 5.5s; }
.steam-particle:nth-child(5) { left: 90%; animation-delay: 1.5s; animation-duration: 4s; }

.comments-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.comments-title h2 {
  color: var(--dark-wood);
}

.comments-grid {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.comment-bubble {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
  gap: 1rem;
}

.comment-bubble.right {
  flex-direction: row-reverse;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--pineapple-green);
  image-rendering: pixelated;
}

.comment-content {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  position: relative;
  max-width: 70%;
}

.comment-bubble.right .comment-content {
  background: #e8f5e9;
}

.comment-content::before {
  content: '';
  position: absolute;
  top: 12px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.comment-bubble:not(.right) .comment-content::before {
  left: -16px;
  border-right-color: #fff;
}

.comment-bubble.right .comment-content::before {
  right: -16px;
  border-left-color: #e8f5e9;
}

.comment-name {
  font-weight: 700;
  color: var(--pineapple-green);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.comment-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   模塊5：今日特餐（波色攻略）
   ============================================ */
#daily-special-bose {
  background: #2a2a2a;
  padding: 4rem 0;
  position: relative;
}

.blackboard {
  max-width: 800px;
  margin: 0 auto;
  background: #1a3320;
  border: 12px solid #6B4226;
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 8px 8px 20px rgba(0,0,0,0.5);
  position: relative;
}

.blackboard::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 8px;
  background: #8B7355;
  border-radius: 4px;
}

.blackboard h2 {
  color: #fff;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.blackboard .subtitle {
  text-align: center;
  color: var(--egg-tart);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.wave-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wave-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  border: 2px dashed rgba(255,255,255,0.3);
}

.wave-card.red { background: rgba(204,51,51,0.3); }
.wave-card.blue { background: rgba(51,102,204,0.3); }
.wave-card.green { background: rgba(60,110,71,0.3); }

.wave-card .wave-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.wave-card h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.wave-card p {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.6;
}

.daily-pick {
  background: rgba(255,235,153,0.15);
  border: 2px solid var(--egg-tart);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.daily-pick h3 {
  color: var(--egg-tart);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.daily-pick p {
  color: #ddd;
  font-size: 0.95rem;
}

/* ============================================
   模塊6：馬經專欄文章
   ============================================ */
#kowloon-daily-column {
  background: var(--newspaper-grey);
  background-image: url('../images/newspaper-texture.webp');
  background-size: 400px;
  padding: 4rem 0;
  border-top: 3px solid var(--border-line);
  border-bottom: 3px solid var(--border-line);
}

.column-header {
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 3px double var(--dark-wood);
  padding-bottom: 1rem;
}

.column-header h2 {
  font-size: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  column-gap: 1.5rem;
}

.article-block {
  background: #fff;
  border: 1px solid var(--border-line);
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-block:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 16px rgba(0,0,0,0.2);
}

.article-block img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: grayscale(60%) sepia(20%);
  transition: filter 0.3s;
}

.article-block:hover img {
  filter: grayscale(0%) sepia(0%);
}

.article-block .article-body {
  padding: 1rem;
}

.article-block h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-block h3 a {
  color: var(--dark-wood);
}

.article-block .article-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-block .article-meta {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* --- 作者信息 --- */
.author-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.author-card img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  filter: grayscale(100%);
}

.author-card span {
  font-size: 0.8rem;
  color: #666;
}

/* ============================================
   模塊7：下單註冊
   ============================================ */
#order-slip-register {
  background: var(--milk-tea);
  padding: 4rem 0;
}

.order-slip {
  max-width: 600px;
  margin: 0 auto;
  background: #f5e6c8;
  background-image: url('../images/order-slip-bg.webp');
  background-size: cover;
  border: 2px solid var(--dark-wood);
  padding: 2.5rem;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.2);
  position: relative;
}

.order-slip::before {
  content: '好運茶餐廳';
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--border-line);
  opacity: 0.5;
}

.order-slip h2 {
  text-align: center;
  color: var(--dark-wood);
  border-bottom: 2px dashed var(--border-line);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.order-slip .promo-text {
  text-align: center;
  color: var(--pineapple-green);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.order-form .form-group {
  margin-bottom: 1.2rem;
}

.order-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--dark-wood);
  font-size: 0.9rem;
}

.order-form input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255,255,255,0.8);
}

.order-form input:focus {
  outline: none;
  border-color: var(--pineapple-green);
  box-shadow: 0 0 8px rgba(60,110,71,0.3);
}

.order-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--egg-tart);
  color: var(--dark-wood);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  border: 3px solid var(--dark-wood);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.order-btn:hover {
  background: var(--pineapple-green);
  color: var(--egg-tart);
  border-color: var(--pineapple-green);
}

/* ============================================
   模塊8：負責任博彩聲明
   ============================================ */
#responsible-gaming {
  background: #f5f0e8;
  padding: 4rem 0;
  border-top: 2px solid var(--border-line);
}

.acrylic-sign {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border: 3px solid var(--pineapple-green);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

.sign-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--newspaper-grey);
}

.sign-header img {
  width: 60px;
  height: 60px;
}

.sign-header h2 {
  color: var(--pineapple-green);
  font-size: 1.5rem;
}

.sign-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.sign-content ul {
  list-style: none;
  padding: 0;
}

.sign-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px dashed var(--newspaper-grey);
}

.sign-content ul li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: var(--pineapple-green);
}

.helpline-box {
  margin-top: 1.5rem;
  background: var(--newspaper-grey);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.helpline-box p {
  margin-bottom: 0.3rem;
}

/* ============================================
   模塊9：GRA牌照展示
   ============================================ */
#gra-license {
  background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
  padding: 4rem 0;
  text-align: center;
}

.license-plaque {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #5a3a1a, #3a2510);
  border: 4px solid #DAA520;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 0 30px rgba(218,165,32,0.3), inset 0 0 20px rgba(0,0,0,0.3);
}

.license-plaque .badge-img {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 3px solid #DAA520;
}

.license-plaque h2 {
  color: #DAA520;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.license-number {
  background: #DAA520;
  color: #1a2a3a;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.license-text {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   模塊10：FAQ你問我答
   ============================================ */
#faq-yam-cha {
  background: var(--newspaper-grey);
  padding: 4rem 0;
}

.faq-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-line);
  padding-bottom: 1.5rem;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-left: 2rem;
}

.faq-question img,
.faq-answer img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-question .q-text {
  font-weight: 700;
  color: var(--dark-wood);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-answer .a-text {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.8;
  background: #fff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
}

/* ============================================
   頁腳
   ============================================ */
#tst-footer {
  background: linear-gradient(135deg, var(--dark-wood), #1a0e08);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--egg-tart);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--egg-tart);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,235,153,0.3);
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

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

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

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

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

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

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-payments img {
  height: 30px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 2px 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}

.footer-bottom .age-badge {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.footer-legal-links {
  margin-top: 0.5rem;
}

.footer-legal-links a {
  color: #999;
  margin: 0 0.5rem;
  font-size: 0.75rem;
}

.footer-legal-links a:hover {
  color: var(--egg-tart);
}

/* ============================================
   內頁通用樣式
   ============================================ */
.inner-page-hero {
  background: linear-gradient(135deg, var(--dark-wood), var(--pineapple-green));
  padding: 3rem 0;
  text-align: center;
}

.inner-page-hero h1 {
  color: var(--egg-tart);
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.inner-page-hero p {
  color: #ddd;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.inner-content {
  background: var(--newspaper-grey);
  background-image: url('../images/newspaper-texture.webp');
  background-size: 400px;
  padding: 3rem 0;
}

.inner-article {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border: 1px solid var(--border-line);
  box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
  column-count: 2;
  column-gap: 2rem;
  column-rule: 1px solid var(--border-line);
}

.inner-article h2,
.inner-article h3 {
  column-span: all;
  margin-top: 1.5rem;
}

.inner-article img {
  margin: 1rem 0;
  border: 2px solid var(--border-line);
  break-inside: avoid;
}

.inner-article p {
  text-indent: 2em;
  text-align: justify;
}

.inner-article .data-table {
  column-span: all;
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.inner-article .data-table th {
  background: var(--pineapple-green);
  color: #fff;
  padding: 0.6rem;
  text-align: center;
}

.inner-article .data-table td {
  padding: 0.5rem;
  border: 1px solid var(--border-line);
  text-align: center;
}

.inner-article .data-table tr:nth-child(even) {
  background: #f9f6f0;
}

/* ============================================
   APP下載頁
   ============================================ */
.app-download-page {
  background: linear-gradient(135deg, #cc3333, #fff, #3366cc);
  min-height: 100vh;
}

.rwb-bag-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.rwb-bag {
  background: #fff;
  border: 4px solid #cc3333;
  border-radius: 0;
  padding: 2.5rem;
  position: relative;
}

.rwb-bag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #cc3333 0, #cc3333 33%, #fff 33%, #fff 66%, #3366cc 66%, #3366cc 100%);
}

.rwb-bag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #cc3333 0, #cc3333 33%, #fff 33%, #fff 66%, #3366cc 66%, #3366cc 100%);
}

.qr-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.qr-box {
  padding: 1.5rem;
  border: 2px dashed var(--border-line);
  border-radius: 8px;
}

.qr-box img {
  margin: 0 auto 1rem;
}

.qr-box h4 {
  margin-bottom: 0.5rem;
}

.app-steps {
  margin: 2rem 0;
}

.app-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--egg-tart);
  border-radius: 8px;
}

.app-step img {
  width: 120px;
  border-radius: 4px;
}

.app-step .step-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: var(--pineapple-green);
  flex-shrink: 0;
}

.app-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.advantage-card {
  text-align: center;
  padding: 1.5rem;
  background: #f5f0e8;
  border: 2px solid var(--pineapple-green);
  border-radius: 8px;
}

.advantage-card .adv-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   響應式設計 - 移動端優先
   ============================================ */
@media (max-width: 768px) {
  html { font-size: 14px; }

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
  }

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

  .nav-menu li a {
    border-right: none;
    border-bottom: 1px solid rgba(255,235,153,0.2);
    text-align: center;
  }

  .hero-slogan { font-size: 1.6rem; }

  .album-spread {
    grid-template-columns: 1fr;
  }

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

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

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

  .inner-article {
    column-count: 1;
    padding: 1.5rem;
  }

  .qr-section {
    grid-template-columns: 1fr;
  }

  .app-advantages {
    grid-template-columns: 1fr;
  }

  .app-step {
    flex-direction: column;
    text-align: center;
  }

  .result-numbers {
    gap: 0.5rem;
  }

  .result-ball {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .result-ball.special {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .comment-content {
    max-width: 85%;
  }

  .history-notes {
    grid-template-columns: 1fr;
  }
}

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

  .hero-slogan { font-size: 1.3rem; }

  .hero-cta { font-size: 1rem; padding: 0.8rem 1.5rem; }

  .board-frame { padding: 1.5rem; }

  .blackboard { padding: 1.5rem; }

  .order-slip { padding: 1.5rem; }
}

/* --- Print styles --- */
@media print {
  .jammer-block,
  #yaumati-nav,
  .hero-play-btn,
  .steam-container { display: none !important; }
}
