/* 旅行團 TourChip 官網：沿用城市低語夜光設計系統（深夜藍、極光紫藍） */
:root {
  color-scheme: dark;
  --night-900: #070b1f; --night-800: #0e1433; --night-700: #1a1f4a; --night-600: #2a2f66;
  --glass-fill: rgba(26, 31, 74, 0.72); --glass-line: rgba(196, 170, 255, 0.38);
  --ink: #f3f0ff; --ink-muted: #b9b6d6; --ink-faint: #8c89b0;
  --aurora-violet: #b44cff; --aurora-blue: #4fc3f7; --deep-violet: #8e2de2; --deep-blue: #2a63d4;
  --flag: #ffb547; --help: #ff6b8b;
  --sans: "Noto Sans TC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; background: var(--night-900); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
/* 非繁中語言用各自的系統字型（日文漢字、簡體字形才正確） */
html:lang(zh-Hans) body { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(ja) body { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif; }
html:lang(ko) body { font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
html:lang(th) body { font-family: "Thonburi", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif; }
html:lang(en) body, html:lang(ms) body, html:lang(id) body, html:lang(vi) body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
a { color: var(--aurora-blue); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--aurora-violet); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.grad { background: linear-gradient(90deg, var(--aurora-violet), var(--aurora-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 頂部導覽 ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 11, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 170, 255, .14); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand small { font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.top nav { display: none; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink-muted); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--ink); }
.lang { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 13px; }
.lang select { appearance: none; -webkit-appearance: none; background: var(--glass-fill); color: var(--ink); border: 1px solid var(--glass-line);
  border-radius: 999px; padding: 6px 28px 6px 12px; font: inherit; font-size: 13px; max-width: 150px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.top nav + .lang { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/img/hero.webp) center bottom / cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,11,31,.35) 0%, rgba(7,11,31,.55) 45%, var(--night-900) 100%),
              radial-gradient(60% 50% at 50% 0%, rgba(180,76,255,.28), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding-block: 48px 56px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--glass-fill); border: 1px solid var(--glass-line); color: var(--ink-muted); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--flag); box-shadow: 0 0 10px var(--flag); }
h1 { margin: 0; font-size: clamp(34px, 7.5vw, 60px); line-height: 1.18; letter-spacing: 2px; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--aurora-violet), var(--aurora-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule { width: 128px; height: 2px; margin: 22px 0; border-radius: 2px; background: linear-gradient(90deg, var(--aurora-violet), var(--aurora-blue)); }
.lead { margin: 0; font-size: 17px; line-height: 1.85; color: var(--ink-muted); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px 8px 16px; border-radius: 16px;
  background: var(--glass-fill); border: 1px solid var(--glass-line); color: var(--ink); text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.25; }
.store b { font-size: 17px; font-weight: 500; }
.store small { font-size: 12px; color: var(--ink-faint); letter-spacing: .5px; }
.store:hover, .store:focus-visible { border-color: var(--aurora-violet); box-shadow: 0 0 18px rgba(157, 92, 255, 0.35); }
.free { margin: 16px 0 0; font-size: 14px; color: var(--ink-faint); }
.free.play { margin-top: 14px; color: var(--ink-muted); }
.free.play::before { content: "✓"; margin-right: 6px; color: var(--aurora-blue); }
.phone { width: 100%; max-width: 330px; margin: 0 auto; border-radius: 34px; overflow: hidden; border: 1px solid var(--glass-line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 70px rgba(180,76,255,.3); background: var(--night-800); }
.phone img { display: block; width: 100%; height: auto; }

/* ---------- 區塊 ---------- */
section { padding-block: 44px; }
h2 { margin: 0 0 10px; font-size: clamp(24px, 4.2vw, 32px); letter-spacing: 1.5px; line-height: 1.3; text-wrap: balance; }
.sub { margin: 0 0 28px; color: var(--ink-muted); line-height: 1.8; max-width: 44em; }
.glass { background: var(--glass-fill); border: 1px solid var(--glass-line); border-radius: 20px; }

.steps { display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: step; }
.steps div { position: relative; padding: 20px 20px 20px 70px; }
.steps div::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--deep-violet), var(--deep-blue)); box-shadow: 0 0 16px rgba(142,45,226,.5); }
.steps b, .cards b, .who b, .safe b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 4px; color: var(--ink); }
.steps span, .cards span, .who span, .safe span { color: var(--ink-muted); font-size: 14.5px; line-height: 1.75; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; margin: 0; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; object-position: top; border-radius: 22px; border: 1px solid var(--glass-line); background: var(--night-800); }
.shot figcaption { margin-top: 12px; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.shot figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; margin-bottom: 2px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cards div { padding: 18px 20px; }
.cards i { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; font-style: normal; font-size: 20px;
  background: rgba(142, 45, 226, .22); border: 1px solid rgba(196,170,255,.25); }
.cards .new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; vertical-align: 2px;
  color: #1b1030; background: var(--flag); }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who div { padding: 16px 18px; }

.prices { display: grid; grid-template-columns: 1fr; gap: 12px; }
.price { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.price h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--ink-muted); letter-spacing: 1px; }
.price .amt { margin: 8px 0 10px; font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.price .amt small { font-size: 14px; font-weight: 400; color: var(--ink-faint); margin-left: 4px; }
.price p { margin: 0; color: var(--ink-muted); font-size: 14.5px; line-height: 1.8; }
.price ul { margin: 0; padding-left: 1.2em; color: var(--ink-muted); font-size: 14.5px; line-height: 1.9; }
.price.hl { border-color: var(--aurora-violet); box-shadow: 0 0 28px rgba(157, 92, 255, 0.25); }
.note { margin: 16px 0 0; color: var(--ink-faint); font-size: 13px; line-height: 1.8; }

.safe { display: grid; grid-template-columns: 1fr; gap: 12px; }
.safe div { padding: 18px 20px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-weight: 500; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--aurora-blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-muted); line-height: 1.85; font-size: 15px; }

.cta { text-align: center; padding: 40px 22px; background: radial-gradient(80% 120% at 50% 0%, rgba(180,76,255,.28), transparent 70%), var(--glass-fill); }
.cta h2 { margin-bottom: 8px; }
.cta .sub { margin: 0 auto 4px; }
.cta .stores { justify-content: center; }

footer { margin-top: 24px; padding-block: 36px calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--night-600); color: var(--ink-faint); font-size: 13px; line-height: 2; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--ink); text-decoration: underline; }

@media (min-width: 600px) {
  .gallery { grid-auto-columns: 40%; }
  .cards, .safe { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: repeat(4, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .top nav { display: flex; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-block: 80px 88px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .safe { grid-template-columns: repeat(4, 1fr); }
  .prices { grid-template-columns: repeat(4, 1fr); }
  section { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
