/* ==========================================================================
   角落桌遊 x 人生交換所 - 溫暖治癒與人生體驗專用樣式表 (style.css)
   Aesthetic: Warm Soul / Cozy Amber & Roasted Wood / Cinematic Life Story
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Noto+Serif+TC:wght@400;500;600;700;900&family=Noto+Sans+TC:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=ZCOOL+KuaiLe&family=Zen+Maru+Gothic:wght@700;900&display=swap');

/* --- CSS 變數系統 (Design Tokens: Warm Soul & Hearth Glow) --- */
:root {
  /* 背景層次：深烘焙暖木黑、暗黑咖啡館、安心庇護感 */
  --bg-space: #130f0d;
  --bg-primary: #181411;
  --bg-secondary: #221b16;
  --bg-card: rgba(34, 27, 22, 0.78);
  --bg-card-hover: rgba(48, 38, 31, 0.92);
  --bg-glass: rgba(255, 246, 238, 0.04);
  
  /* 溫暖主色調：暖陽琥珀金、夕陽焦糖橙、暖心霞光、草木抹茶 */
  --amber: #e59866;
  --amber-light: #f5cba7;
  --amber-glow: rgba(229, 152, 102, 0.45);
  --amber-dim: rgba(229, 152, 102, 0.12);
  
  --gold: #f39c12;
  --gold-glow: rgba(243, 156, 18, 0.35);
  --gold-dim: rgba(243, 156, 18, 0.12);

  --warm-orange: #d97736;
  --warm-orange-glow: rgba(217, 119, 54, 0.4);

  --terracotta: #c06c84;
  --terracotta-glow: rgba(192, 108, 132, 0.35);
  --terracotta-dim: rgba(192, 108, 132, 0.15);

  --sage: #7d9d8b;
  --sage-glow: rgba(125, 157, 139, 0.35);
  --sage-dim: rgba(125, 157, 139, 0.12);

  /* 向下相容別名 (確保舊有類名無縫切換為溫暖調) */
  --cyan: var(--amber);
  --cyan-glow: var(--amber-glow);
  --cyan-dim: var(--amber-dim);
  
  --purple: var(--terracotta);
  --purple-glow: var(--terracotta-glow);
  --purple-dim: var(--terracotta-dim);
  
  --pink: #e07a5f;
  --pink-glow: rgba(224, 122, 95, 0.35);

  /* 文字色系：奶油米白、溫潤羊皮紙白、柔和木質米灰 */
  --text-white: #fcf8f2;
  --text-primary: #eee4d7;
  --text-secondary: #baaba0;
  --text-muted: #8d7e72;

  /* 邊框與陰影規範 */
  --border-subtle: rgba(245, 230, 210, 0.08);
  --border-warm: rgba(229, 152, 102, 0.22);
  --border-warm-hover: rgba(229, 152, 102, 0.65);
  --border-tech: var(--border-warm);
  --border-tech-hover: var(--border-warm-hover);

  --shadow-warm: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 24px -6px rgba(229, 152, 102, 0.12);
  --shadow-glow: 0 0 28px rgba(229, 152, 102, 0.35);

  /* 字型設定：宋體人文標題 + 圓潤無襯線內文 */
  --font-heading: 'Noto Serif TC', 'Cinzel', serif;
  --font-serif: 'Noto Serif TC', serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Cinzel', 'Noto Serif TC', serif;

  --nav-height: 76px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-normal: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 全域重置與基礎樣式 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-space);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.no-smooth-scroll {
  scroll-behavior: auto !important;
}

body.modal-open {
  overflow: hidden !important;
}

/* 溫暖夜間微光星芒與紙質紋理背景 (取代冷冰冰的網格) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 18% 22%, rgba(229, 152, 102, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(192, 108, 132, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(243, 156, 18, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* 溫暖動態光暈球：如冬日壁爐與暖黃燭光的慢速呼吸 */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  transition: transform 12s ease-in-out;
  animation: floatAmbient 22s ease-in-out infinite alternate;
}

.ambient-glow.cyan {
  top: 8%;
  left: 12%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #e59866 0%, #d97736 60%, transparent 80%);
}

.ambient-glow.purple {
  bottom: 12%;
  right: 8%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, #c06c84 0%, #a24b61 50%, transparent 80%);
  animation-delay: -11s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -35px) scale(1.08); }
  100% { transform: translate(-35px, 45px) scale(0.96); }
}

/* --- 排版與通用工具類 --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a,
.btn-tech,
.btn-warm,
.dot,
.btn-arrow,
.filter-btn,
.filter-nav-btn,
[data-open-modal] {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 溫暖琥珀金漸層文字 */
.gradient-text {
  background: linear-gradient(135deg, #fcf8f2 0%, #f5cba7 35%, #e59866 70%, #d97736 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-purple-text {
  background: linear-gradient(135deg, #f5cba7 0%, #c06c84 50%, #d97736 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 章節溫暖標籤 */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(229, 152, 102, 0.28);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: 0 2px 14px rgba(229, 152, 102, 0.12);
}

.section-tag::before {
  content: '✦';
  font-size: 0.75rem;
  opacity: 0.85;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* 溫潤毛玻璃卡片 */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-warm);
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-warm-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(229, 152, 102, 0.2);
}

.glass-card:hover::after {
  opacity: 1;
}

/* ==========================================================================
   圓潤暖陽按鈕組件 (Warm Pill Buttons)
   ========================================================================== */
.btn-tech,
.btn-warm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-tech.primary,
.btn-warm.primary {
  background: linear-gradient(135deg, #e59866 0%, #d97736 100%);
  color: #171310;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(217, 119, 54, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-tech.primary:hover,
.btn-warm.primary:hover {
  box-shadow: 0 8px 28px rgba(217, 119, 54, 0.55), 0 0 20px rgba(229, 152, 102, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.btn-tech.secondary,
.btn-warm.secondary {
  background: rgba(255, 245, 235, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-warm);
  backdrop-filter: blur(10px);
}

.btn-tech.secondary:hover,
.btn-warm.secondary:hover {
  background: var(--amber-dim);
  border-color: var(--amber);
  color: var(--amber-light);
  box-shadow: 0 4px 20px rgba(229, 152, 102, 0.25);
  transform: translateY(-2px);
}

.btn-tech.purple,
.btn-warm.purple {
  background: linear-gradient(135deg, #c06c84 0%, #d97736 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(192, 108, 132, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-tech.purple:hover,
.btn-warm.purple:hover {
  box-shadow: 0 8px 28px rgba(192, 108, 132, 0.55);
  transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   導航列 (Navbar) - 溫暖深木玻璃質感
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(19, 15, 13, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 152, 102, 0.14);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(19, 15, 13, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(229, 152, 102, 0.18);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  width: 100%;
  padding: 0 32px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 2px solid var(--amber);
  box-shadow: 0 0 16px var(--amber-glow);
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
  flex-shrink: 0;
}

.brand-logo:hover .logo-img {
  transform: rotate(6deg) scale(1.06);
  box-shadow: 0 0 24px var(--amber);
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-white);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  white-space: nowrap;
  flex-shrink: 1;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-light);
  background: var(--amber-dim);
}

/* 特殊「桌遊商品」導航按鈕 - 活潑趣味特調字體與琥珀微光質感 */
.nav-link-shop {
  font-family: 'ZCOOL KuaiLe', 'Zen Maru Gothic', 'Noto Sans TC', cursive, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.8px;
  color: var(--amber-light);
  background: rgba(229, 152, 102, 0.08);
  border: 1px solid rgba(229, 152, 102, 0.28);
  box-shadow: 0 0 10px rgba(229, 152, 102, 0.1);
  position: relative;
}

.nav-link-shop:hover {
  color: #fff;
  background: rgba(229, 152, 102, 0.22);
  border-color: var(--amber);
  box-shadow: 0 0 16px var(--amber-glow);
  transform: translateY(-1px);
}

.nav-link-shop.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(229, 152, 102, 0.35), rgba(217, 119, 54, 0.35));
  border-color: var(--amber-light);
  box-shadow: 0 0 18px var(--amber-glow);
}

.mobile-only-cta {
  display: none;
}

.btn-nav-booking {
  padding: 9px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 下拉選單 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(26, 20, 17, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 152, 102, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  color: var(--amber-light);
  background: var(--amber-dim);
  padding-left: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: rgba(255, 245, 235, 0.05);
  border: 1px solid var(--border-warm);
  transition: all var(--transition-fast);
}

.hamburger:hover {
  background: var(--amber-dim);
  border-color: var(--amber);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--text-white);
  transition: all var(--transition-normal);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--amber);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--amber);
}

/* ==========================================================================
   Hero 主視覺區域 (Hero Section) - 溫暖心靈敘事
   ========================================================================== */
.hero-section {
  padding: calc(var(--nav-height) + 64px) 0 84px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-dim);
  border: 1px solid rgba(125, 157, 139, 0.35);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sage);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(125, 157, 139, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(125, 157, 139, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(125, 157, 139, 0); }
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-dim);
  border: 1px solid rgba(229, 152, 102, 0.35);
  color: var(--amber-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.22rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.85;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 溫暖生活手札相框展示 (Hero Visual Card) */
.hero-visual {
  position: relative;
}

.hud-panel,
.cozy-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  background: rgba(28, 22, 18, 0.85);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(229, 152, 102, 0.16);
  padding: 14px;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--amber-light);
  letter-spacing: 0.04em;
}

.hud-dots {
  display: flex;
  gap: 6px;
}

.hud-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.hud-dots span:nth-child(1) { background: #e07a5f; }
.hud-dots span:nth-child(2) { background: #f39c12; }
.hud-dots span:nth-child(3) { background: #7d9d8b; }

.hud-img-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(15, 12, 10, 0.95);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.hud-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hud-panel:hover .hud-img-wrap img,
.cozy-visual-card:hover .hud-img-wrap img {
  transform: scale(1.03);
}

.hud-overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(20, 16, 13, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-warm);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   本月推薦劇本輪播 (Featured Scripts Carousel)
   ========================================================================== */
.carousel-section {
  padding: 96px 0;
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-warm);
}

.slide-cover {
  position: relative;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at center, rgba(45, 35, 28, 0.6) 0%, rgba(18, 14, 12, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.slide-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s ease;
}

.carousel-slide:hover .slide-cover img {
  transform: scale(1.02);
}

.slide-details {
  display: flex;
  flex-direction: column;
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 245, 235, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.meta-chip.highlight {
  background: var(--amber-dim);
  border-color: rgba(229, 152, 102, 0.35);
  color: var(--amber-light);
  font-weight: 600;
}

.slide-title {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 18px;
  line-height: 1.25;
}

.slide-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  width: 32px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
}

.carousel-btns {
  display: flex;
  gap: 12px;
}

.btn-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-warm);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.btn-arrow:hover {
  background: var(--amber);
  color: #171310;
  box-shadow: 0 0 18px var(--amber-glow);
  transform: scale(1.08);
}

/* ==========================================================================
   劇本殺是什麼？(LARP Features) - 心靈故事感
   ========================================================================== */
.larp-section {
  padding: 96px 0;
  position: relative;
}

.quote-box {
  background: rgba(30, 24, 20, 0.65);
  border-left: 4px solid var(--amber);
  padding: 28px 34px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 52px;
  font-size: 1.18rem;
  color: var(--text-primary);
  line-height: 1.9;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.quote-box::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(229, 152, 102, 0.12);
  line-height: 1;
  pointer-events: none;
}

.larp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 52px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-warm);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(229, 152, 102, 0.22);
}

.feature-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.8;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.38rem;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ==========================================================================
   主打劇本深度介紹 (Script Spotlight)
   ========================================================================== */
.spotlight-section {
  padding: 96px 0;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-warm);
}

.spotlight-card.italy {
  border-color: rgba(229, 152, 102, 0.35);
}

.spotlight-card.republic {
  border-color: rgba(243, 156, 18, 0.35);
}

.spotlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 28px rgba(229, 152, 102, 0.22);
  border-color: var(--amber);
}

.spotlight-badge {
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.spotlight-card.italy .spotlight-badge {
  background: var(--amber-dim);
  color: var(--amber-light);
  border: 1px solid rgba(229, 152, 102, 0.3);
}

.spotlight-card.republic .spotlight-badge {
  background: rgba(243, 156, 18, 0.12);
  color: var(--amber-light);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.spotlight-title {
  font-size: 1.95rem;
  margin-bottom: 16px;
}

.spotlight-story {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 28px;
}

/* ==========================================================================
   本月活動與套票 (Events & Promo)
   ========================================================================== */
.events-section {
  padding: 96px 0;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(135deg, rgba(35, 27, 22, 0.88) 0%, rgba(20, 16, 13, 0.95) 100%);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-warm);
}

.promo-poster {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  background: rgba(15, 12, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.promo-poster img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.5s ease;
}

.promo-banner:hover .promo-poster img {
  transform: scale(1.02);
}

.promo-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text-white);
}

.perk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  flex-shrink: 0;
}

/* ==========================================================================
   桌遊推廣 (Board Games Story)
   ========================================================================== */
.boardgames-section {
  padding: 96px 0;
}

.boardgames-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.boardgame-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 28px rgba(229, 152, 102, 0.16);
  position: relative;
  background: rgba(15, 12, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.boardgame-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.boardgame-photo:hover img {
  transform: scale(1.02);
}

.boardgame-story p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 22px;
}

/* ==========================================================================
   劇本目錄分類與極致流暢 Slider (Catalog & Filter Slider)
   ========================================================================== */
.catalog-section {
  padding: 96px 0;
}

/* 篩選列 Slider 外層容器 */
.filter-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 0 8px;
}

/* 左右滑動切換按鈕 */
.filter-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-warm);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.filter-nav-btn:hover {
  background: var(--amber);
  color: #171310;
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--amber-glow);
}

.filter-nav-btn:active {
  transform: scale(0.95);
}

/* 篩選按鈕滑動軌道 (帶有左右平滑淡出漸層遮罩) */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0, black 28px, black calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 28px, black calc(100% - 28px), transparent 100%);
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

/* 膠囊式篩選按鈕 */
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.filter-btn:hover {
  color: var(--amber-light);
  border-color: var(--amber);
  background: var(--amber-dim);
}

.filter-btn.active {
  background: linear-gradient(135deg, #e59866 0%, #d97736 100%);
  color: #171310;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(217, 119, 54, 0.4);
  transform: translateY(-1px);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-warm);
}

.catalog-card.is-hidden {
  display: none !important;
}

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: var(--amber);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 152, 102, 0.2);
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}

/* ==========================================================================
   精選照片畫廊 (Photo Gallery)
   ========================================================================== */
.gallery-section {
  padding: 96px 0;
}

.gallery-grid {
  columns: 3 320px;
  column-gap: 22px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 22px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  background: rgba(26, 20, 17, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: block;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(229, 152, 102, 0.25);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 12, 0.96) 0%, rgba(18, 14, 12, 0.35) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.45;
}

/* ==========================================================================
   方案介紹 (Service Plans)
   ========================================================================== */
.plans-section {
  padding: 96px 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-warm);
}

.plan-card.popular {
  border-color: var(--amber);
  box-shadow: 0 0 32px rgba(229, 152, 102, 0.24);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--amber);
  color: #171310;
  font-weight: 700;
}

.plan-name {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.plan-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
  flex-shrink: 0;
}

/* ==========================================================================
   常見問題 (FAQ Accordion)
   ========================================================================== */
.faq-section {
  padding: 96px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  box-shadow: var(--shadow-warm);
}

.faq-item.active {
  border-color: var(--amber);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.18rem;
  font-weight: 600;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-dim);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: var(--amber);
  color: #171310;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 800px;
  padding-bottom: 26px;
}

/* ==========================================================================
   門市資訊與頁尾 (Footer & Contact)
   ========================================================================== */
.footer {
  background: #0f0c0a;
  border-top: 1px solid rgba(229, 152, 102, 0.18);
  padding: 84px 0 32px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .brand-logo {
  margin-bottom: 18px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

.contact-row a:hover {
  color: var(--amber-light);
}

.footer-links h4,
.footer-hours h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-light);
  padding-left: 6px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   線上預約彈窗 (Booking Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 38px 34px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(229, 152, 102, 0.18);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-normal);
  position: relative;
  margin: auto 0;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 24, 20, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 245, 235, 0.18);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 15;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: block;
}

.modal-close:hover {
  background: var(--amber);
  color: #171310;
  border-color: var(--amber);
  box-shadow: 0 0 14px var(--amber-glow);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 26px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(19, 15, 13, 0.7);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 16px; /* 16px 防止 iOS Safari 聚焦時強制局部放大視窗跑版 */
  min-height: 46px;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 14px var(--amber-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   響應式斷點 (Media Queries - Full Mobile RWD System)
   ========================================================================== */

/* 1. 筆記型電腦 / 窄桌面優化 (1101px - 1280px) */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-container {
    padding: 0 20px;
    gap: 12px;
  }
  .brand-title {
    font-size: 1.08rem;
  }
  .brand-sub {
    display: none;
  }
  .nav-menu {
    gap: 4px;
  }
  .nav-link {
    padding: 7px 12px;
    font-size: 0.9rem;
  }
  .btn-nav-booking {
    padding: 8px 18px;
    font-size: 0.88rem;
  }
}

/* 2. 平板橫向與中型螢幕 (<= 1100px) - 切換為手機版抽屜式導航 */
@media (max-width: 1100px) {
  :root {
    --nav-height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(19, 15, 13, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-warm);
    flex-direction: column;
    padding: 24px 20px;
    gap: 8px;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 999;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  /* 手機端隱藏次級下拉選單，杜絕誤觸 a.dropdown-item 跳轉至其他分頁 */
  .dropdown-menu {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .mobile-only-cta {
    display: block;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-actions .btn-tech,
  .nav-actions .btn-warm {
    display: none;
  }
}

/* 3. 中型平板與桌面過渡 (<= 1024px) */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }
  
  .slide-cover {
    height: 380px;
  }
  
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  
  .promo-banner {
    grid-template-columns: 1fr;
  }
  
  .boardgames-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 4. 直式平板與主流手機螢幕 (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .brand-logo {
    gap: 8px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.02rem;
  }

  .brand-sub {
    display: none;
  }

  .section-header {
    margin-bottom: 38px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 0.98rem;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 50px;
    min-height: auto;
  }

  .hero-badge-group {
    margin-bottom: 16px;
    gap: 8px;
  }

  .hero-title {
    font-size: 2.35rem;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 1.08rem;
    margin-bottom: 28px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 24px;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .carousel-slide {
    padding: 22px 18px;
    gap: 20px;
    border-radius: var(--radius-md);
  }

  .slide-cover {
    height: 280px;
    padding: 10px;
  }

  .slide-title {
    font-size: 1.4rem;
  }

  .slide-desc {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .carousel-nav {
    margin-top: 14px;
  }

  .btn-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* 橫向滑動晶片篩選條 (Mobile Horizontal Scroll Chips) */
  .filter-slider-wrapper {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    max-width: none;
    padding: 0 4px;
  }

  .filter-nav-btn {
    display: none; /* 手機端直接利用原生絲滑觸控拖曳 */
  }

  .filter-bar {
    padding: 6px 16px 14px;
    gap: 8px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-card {
    padding: 22px 20px;
  }

  .promo-banner {
    padding: 26px 20px;
    gap: 24px;
    border-radius: var(--radius-md);
  }

  .promo-perks {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }

  .promo-poster img {
    max-height: 340px;
  }

  .boardgames-section,
  .spotlight-section,
  .events-section,
  .catalog-section,
  .plans-section,
  .faq-section {
    padding: 64px 0;
  }

  .spotlight-card {
    padding: 26px 20px;
  }

  .spotlight-title {
    font-size: 1.38rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .plan-card {
    padding: 30px 22px;
  }

  .gallery-grid {
    columns: 2 160px;
    column-gap: 14px;
  }

  .gallery-item {
    margin-bottom: 14px;
  }

  .faq-list {
    gap: 12px;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question h3 {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .faq-answer {
    padding: 0 20px;
    font-size: 0.98rem;
  }

  .faq-item.active .faq-answer {
    max-height: 800px;
    padding-bottom: 20px;
  }

  .footer {
    padding: 54px 0 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 20px;
  }

  /* 彈窗在手機端的滿意適應 */
  .modal-overlay {
    padding: 16px 12px;
    align-items: flex-start;
  }

  .modal-card {
    padding: 26px 20px;
    margin: auto 0;
    border-radius: var(--radius-md);
  }

  .modal-title {
    font-size: 1.45rem;
    padding-right: 36px;
  }

  .modal-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* 5. 小型手機螢幕優化 (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.22;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-btns .btn-tech,
  .hero-btns .btn-warm {
    width: 100%;
  }

  .slide-cover {
    height: 230px;
  }

  .gallery-grid {
    columns: 1;
  }

  .hero-stats {
    gap: 14px 10px;
  }

  .stat-num {
    font-size: 1.45rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .btn-tech,
  .btn-warm {
    padding: 11px 22px;
    font-size: 0.96rem;
  }

  .carousel-slide .btn-tech,
  .carousel-slide .btn-warm,
  .catalog-card .btn-tech,
  .catalog-card .btn-warm,
  .spotlight-card .btn-tech,
  .spotlight-card .btn-warm,
  .plan-card .btn-tech,
  .plan-card .btn-warm,
  .booking-form .btn-tech,
  .booking-form .btn-warm {
    width: 100%;
  }

  .modal-card {
    padding: 22px 16px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   桌遊商城專用樣式 (Board Game Shop - shop.html)
   ========================================================================== */

.shop-hero-section {
  padding: calc(var(--nav-height) + 50px) 0 36px;
  position: relative;
}

.shop-hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.shop-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.shop-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 16px;
}

.shop-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.shop-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  margin-bottom: 10px;
}

.shop-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.shop-stat-item strong {
  color: var(--amber-light);
  font-size: 1.15rem;
}

.shop-stat-divider {
  width: 1px;
  height: 20px;
  background: var(--border-warm);
}

/* 互動工具列 (搜尋、標籤過濾、排序) */
.shop-toolbar-wrapper {
  background: rgba(24, 20, 17, 0.85);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0 36px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-warm);
}

.shop-toolbar-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.shop-search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.shop-search-icon {
  position: absolute;
  left: 18px;
  color: var(--amber);
  font-size: 1.1rem;
  pointer-events: none;
}

.shop-search-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: rgba(15, 12, 10, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: 0.98rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.shop-search-input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(24, 20, 17, 0.9);
  box-shadow: 0 0 16px var(--amber-glow);
}

.shop-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  padding: 4px 8px;
}

.shop-search-clear.active {
  display: block;
}

.shop-search-clear:hover {
  color: var(--text-white);
}

.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-sort-select {
  padding: 13px 20px;
  background: rgba(15, 12, 10, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-sort-select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
}

.shop-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 245, 235, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-pill:hover {
  border-color: var(--amber);
  color: var(--text-white);
  background: var(--amber-dim);
}

.shop-pill.active {
  background: linear-gradient(135deg, rgba(229, 152, 102, 0.25) 0%, rgba(217, 119, 54, 0.25) 100%);
  border-color: var(--amber);
  color: var(--amber-light);
  font-weight: 600;
  box-shadow: 0 0 14px var(--amber-dim);
}

/* 商品卡片列表 Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-warm-hover);
  box-shadow: var(--shadow-warm);
}

.product-card.out-of-stock {
  opacity: 0.75;
}

.product-card.out-of-stock:hover {
  opacity: 0.95;
}

.product-img-box {
  position: relative;
  width: 100%;
  padding-top: 85%;
  background: rgba(10, 8, 7, 0.6);
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.badge-stock {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.badge-stock.in-stock {
  background: rgba(125, 157, 139, 0.9);
  color: #ffffff;
  border: 1px solid rgba(125, 157, 139, 0.5);
}

.badge-stock.out-of-stock {
  background: rgba(45, 38, 35, 0.9);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-discount-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #e59866 0%, #d97736 100%);
  color: #181411;
  box-shadow: 0 4px 12px rgba(217, 119, 54, 0.4);
}

.product-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing-wrap {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-currency {
  font-size: 0.9rem;
  color: var(--amber);
  font-weight: 600;
}

.price-num {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--amber-light);
  font-family: var(--font-heading);
}

.price-original {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.inventory-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.inventory-hint.low {
  color: var(--pink);
  font-weight: 600;
}

.product-actions-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  margin-top: 12px;
}

.product-actions-wrap .btn-tech,
.product-actions-wrap .btn-warm {
  padding: 10px 14px;
  font-size: 0.92rem;
  justify-content: center;
}

/* 空狀態 */
.shop-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-warm);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}

.shop-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

.shop-empty-title {
  font-size: 1.4rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.shop-empty-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* 商品詳情彈窗專屬樣式 */
.product-modal-card {
  max-width: 860px;
  padding: 32px;
  position: relative;
}

.product-modal-card .modal-detail-content {
  padding-right: 32px;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
}

.modal-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-img-box {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 12, 10, 0.7);
  border: 1px solid var(--border-warm);
}

.modal-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(15, 12, 10, 0.7);
}

.modal-thumb.active {
  border-color: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
}

.modal-detail-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
}

.modal-product-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-white);
  line-height: 1.35;
}

.modal-pricing-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--amber-dim);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
}

.modal-specs-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 245, 235, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.modal-spec-row.out-of-stock {
  opacity: 0.6;
}

.modal-desc-box {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
}

.modal-desc-box p {
  margin-bottom: 10px;
}

.modal-cta-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* RWD for Shop Page */
@media (max-width: 768px) {
  .product-modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal-main-img-box {
    max-height: 280px;
    padding-top: 0;
    height: 280px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .product-body {
    padding: 14px;
  }
  .product-title {
    font-size: 1.05rem;
    min-height: auto;
  }
  .product-snippet {
    display: none;
  }
  .product-actions-wrap {
    grid-template-columns: 1fr;
  }
  .shop-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-stats-bar {
    border-radius: var(--radius-md);
    gap: 14px;
    padding: 14px;
  }
  .shop-stat-divider {
    display: none;
  }
}

