/* ══════════════════════════════════════════════════════════════
   熊旺娛樂城 SEO 引流站（xw178.com）
   樣式移植自 apptw「編輯風奢華」皮膚：
   米白 #f9f7f2 · 炭黑 #1a1a1a · 深綠 #2d3e40 · 古金 #a68b6a
   Playfair Display(serif italic 標題) + Plus Jakarta Sans(內文)
   銳角(無圓角)、細邊框、單一亮色主題。斷點 1024px 比照 apptw lg。
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #f9f7f2;
  --fg: #1a1a1a;
  --fg-muted: #4a4a4a;
  --surface-1: #ffffff;
  --surface-2: #f5f3eb;
  --surface-3: #f0eee6;
  --surface-game: #b6adaa;
  --primary: #1a1a1a;
  --primary-fg: #f9f7f2;
  --deep-green: #2d3e40;
  --gold: #a68b6a;
  --gold-dim: #8a7152;
  --border: rgba(26, 26, 26, 0.1);
  --font-serif: 'Playfair Display', 'Noto Serif TC', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 64px; } }

/* ── 通用元件 ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 12px 28px; transition: all 0.2s;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--deep-green); }
.btn-green {
  background: var(--deep-green); color: #f9f7f2;
  border-color: rgba(166, 139, 106, 0.55);
}
.btn-green:hover { background: var(--primary); }
.btn-outline {
  background: transparent; color: var(--gold);
  border-color: rgba(166, 139, 106, 0.4);
}
.btn-outline:hover { background: var(--primary); color: var(--primary-fg); }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* 區塊標題（比照 HomePage：serif italic 大標 + 古金寬字距副標） */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 34px; letter-spacing: -0.01em; margin-bottom: 6px;
}
.section-head .eyebrow {
  display: block; font-size: 12px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 14px;
}
.section-head p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--fg-muted); max-width: 640px; margin: 0 auto;
}
@media (max-width: 1023px) { .section-head h2 { font-size: 26px; } }

/* LOGO 品牌字：古金流光（移植 apptw brand-shimmer） */
.brand-shimmer {
  background: linear-gradient(100deg, #8a7152, #a68b6a 30%, #f3e2b8 48%, #fff8e6, #f3e2b8 52%, #a68b6a 70%, #8a7152);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: brand-shine 3.2s linear infinite;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}
@keyframes brand-shine {
  0% { background-position: 200% center; }
  100% { background-position: -20% center; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-shimmer { animation: none; background-position: 50% center; }
}

/* ── Header ───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; }

/* 桌機上列工具列 */
.topbar { background: var(--surface-3); border-bottom: 1px solid var(--border); font-size: 12px; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
}
.topbar-note { display: flex; align-items: center; gap: 8px; color: var(--fg-muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.topbar-note .dot { width: 6px; height: 6px; background: var(--gold); flex: none; }
.topbar-actions { display: flex; gap: 8px; }

/* 主 header：LOGO + 導覽 */
.mainbar { background: var(--bg); border-bottom: 1px solid var(--border); }
.mainbar-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 5px; }
.brand-name {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 24px; letter-spacing: -0.01em; line-height: 1.2;
}
.brand-sub {
  display: block; font-size: 12px; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em; margin-top: -2px;
}
.main-nav { display: flex; align-items: center; gap: 12px; height: 100%; }
.main-nav a {
  padding: 8px 12px; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-muted); border-bottom: 2px solid transparent; transition: all 0.2s;
}
.main-nav a:hover { color: var(--fg); border-bottom-color: var(--border); }

/* 手機 header：淡金漸層 bar（移植 mobile-gold-bar） */
.mobile-bar {
  display: none;
  background-image: linear-gradient(to right, #dfceb4, #e8dac1, rgba(204, 167, 124, 0.8));
  border-bottom: 1px solid var(--border);
  padding: 0 12px; height: 56px;
  justify-content: space-between; align-items: center;
}
.mobile-bar .brand img { width: 36px; height: 36px; }
.mobile-bar .brand-name { font-size: 16px; font-weight: 700; }
.mobile-bar .brand-sub { font-size: 11px; letter-spacing: 0.2em; }
.mobile-bar-actions { display: flex; gap: 6px; flex: none; }

@media (max-width: 1023px) {
  .topbar, .mainbar { display: none; }
  .mobile-bar { display: flex; }
}

/* ── Hero 輪播 ────────────────────────────────────── */
.hero { position: relative; background: var(--deep-green); border-bottom: 1px solid var(--border); }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; }
/* 比照部署版 apptw：aspect-[27/10] 等比容器（桌機/手機同），寬螢幕不裁切 */
.hero-slide img {
  width: 100%; aspect-ratio: 27 / 10; height: auto; object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5;
  display: flex; justify-content: center; gap: 8px;
}
.hero-dots button {
  width: 8px; height: 8px; border: 0; border-radius: 0; padding: 0;
  background: #f9f7f2; opacity: 0.4; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.hero-dots button.active { opacity: 1; transform: scale(1.25); }

/* Hero 下方標題帶 */
.hero-intro { background: var(--surface-3); border-bottom: 1px solid var(--border); text-align: center; padding: 44px 16px; }
.hero-intro .eyebrow {
  display: block; font-size: 12px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 12px;
}
.hero-intro h1 {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 40px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 14px;
}
.hero-intro p { font-size: 15px; color: var(--fg-muted); max-width: 680px; margin: 0 auto 26px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1023px) {
  .hero-intro { padding: 32px 16px; }
  .hero-intro h1 { font-size: 26px; }
}

/* ── 遊戲館 ───────────────────────────────────────── */
.section { padding: 72px 0; }
@media (max-width: 1023px) { .section { padding: 48px 0; } }

.hall-tabs {
  display: flex; gap: 4px; overflow-x: auto; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 8px; margin-bottom: 36px; scrollbar-width: none;
}
.hall-tabs::-webkit-scrollbar { display: none; }
.hall-tabs button {
  flex: none; border: 0; background: transparent; cursor: pointer;
  padding: 12px 20px; font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-muted);
  border-radius: 0; transition: all 0.2s;
}
.hall-tabs button:hover { color: var(--fg); background: rgba(26, 26, 26, 0.05); }
.hall-tabs button.active { background: var(--primary); color: var(--primary-fg); font-weight: 700; }
@media (max-width: 1023px) {
  .hall-tabs { background: transparent; border: 0; padding: 0 0 4px; gap: 8px; }
  .hall-tabs button {
    background: var(--surface-1); border: 1px solid var(--border); border-radius: 999px;
    font-size: 12px; font-weight: 700; padding: 7px 15px;
  }
  .hall-tabs button.active { border-color: var(--primary); }
}

.hall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .hall-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.hall-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 0;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}
.hall-card:hover {
  border-color: var(--fg); transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.18);
}
.hall-card.hidden { display: none; }
.hall-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-game); overflow: hidden; }
.hall-thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
  transition: transform 0.5s;
}
.hall-card:hover .hall-thumb img { transform: scale(1.05); }
.hall-overlay {
  position: absolute; inset: 0; background: rgba(45, 62, 64, 0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.hall-card:hover .hall-overlay { opacity: 1; }
.hall-overlay span {
  background: var(--primary); color: var(--primary-fg); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em;
  padding: 12px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hall-overlay span::before { content: '▶'; font-size: 18px; letter-spacing: 0; }
.hall-body { padding: 12px; text-align: center; border-top: 1px solid var(--border); }
.hall-body h3 {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 16px; letter-spacing: -0.01em; transition: color 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hall-card:hover .hall-body h3 { color: var(--gold); }
.hall-body p {
  font-size: 11px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.2em; margin-top: 2px;
}

/* ── 平台特色 ─────────────────────────────────────── */
.features { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: var(--surface-1); border: 1px solid var(--border); padding: 24px;
  display: flex; align-items: center; gap: 16px; transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--fg); }
.feature-icon {
  width: 48px; height: 48px; flex: none; font-size: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: rotate(-12deg); }
.feature-card h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.feature-card p { font-size: 12.5px; color: var(--fg-muted); line-height: 1.55; }

/* ── 優惠活動 ─────────────────────────────────────── */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-card {
  background: var(--surface-1); border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.promo-card:hover { border-color: var(--fg); transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.18); }
.promo-card img { aspect-ratio: 1280 / 460; object-fit: cover; width: 100%; }
.promo-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-body h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 19px; }
.promo-body .promo-tag {
  font-size: 11px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.25em;
}
.promo-body p { font-size: 13.5px; color: var(--fg-muted); flex: 1; }
.promo-body .btn { align-self: flex-start; margin-top: 8px; }
.promo-note { text-align: center; font-size: 12px; color: var(--fg-muted); margin-top: 28px; letter-spacing: 0.05em; }

/* ── 品牌介紹 ─────────────────────────────────────── */
.about { background: var(--deep-green); color: #f0eee6; border-top: 1px solid var(--border); }
.about .section-head h2 { color: #f9f7f2; }
.about .section-head .eyebrow { color: #c9ab7d; }
.about-cols { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 1024px) { .about-cols { grid-template-columns: repeat(3, 1fr); } }
.about-col { border-top: 1px solid rgba(201, 171, 125, 0.35); padding-top: 20px; }
.about-col h3 {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 18px; color: #c9ab7d; margin-bottom: 10px;
}
.about-col p { font-size: 13.5px; line-height: 1.8; color: rgba(240, 238, 230, 0.85); }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--surface-1); border: 1px solid var(--border); transition: border-color 0.2s; }
.faq-list details:hover { border-color: var(--fg); }
.faq-list details[open] { border-color: var(--gold); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--font-sans); font-style: normal; font-weight: 400; font-size: 20px; color: var(--gold); flex: none; transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 20px 18px; font-size: 14px; color: var(--fg-muted); border-top: 1px solid var(--border); padding-top: 14px; }

/* ── 尾段 CTA ─────────────────────────────────────── */
.cta-final { background: var(--surface-3); border-top: 1px solid var(--border); text-align: center; }
.cta-final h2 {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 32px; margin-bottom: 10px;
}
.cta-final p { font-size: 14px; color: var(--fg-muted); margin-bottom: 26px; }
@media (max-width: 1023px) { .cta-final h2 { font-size: 24px; } }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: var(--primary); color: rgba(249, 247, 242, 0.75); font-size: 13px; }
.footer-inner { padding-top: 48px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.footer-brand { max-width: 380px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-name { color: #f9f7f2; }
.footer-brand p { line-height: 1.8; }
.footer-links h3 {
  font-size: 12px; font-weight: 700; color: #c9ab7d;
  text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: #f9f7f2; }
.footer-bottom {
  border-top: 1px solid rgba(249, 247, 242, 0.12); padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 12px; color: rgba(249, 247, 242, 0.5);
}
.footer-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid rgba(249, 247, 242, 0.4); font-weight: 800; font-size: 12px; color: #f9f7f2;
}

/* ── 手機底部固定 CTA（呼應 apptw 底部導覽）───────── */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background-image: linear-gradient(to top, #c4b59d, #dfd3bc, #eae0cd);
  border-top: 1px solid var(--border); border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 24px -5px rgba(0, 0, 0, 0.14);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: center; gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 12px 8px; font-size: 13px; letter-spacing: 0.15em; }
.mobile-cta-logo {
  width: 52px; height: 52px; flex: none; margin-top: -30px;
  background: linear-gradient(135deg, #dfceb4, #eedebf, #bdae93);
  border: 4px solid rgba(255, 255, 255, 0.95); border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mobile-cta-logo img { width: 44px; height: 44px; object-fit: contain; }
@media (max-width: 1023px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }
}
