/* Open Bell 首頁（2026-10 改版）：紫色星空＋琉金，現代無襯線內文（Noto Sans TC／Inter），標題用 Noto Serif TC。 */
@font-face { font-family: "LXGW WenKai TC"; src: url("fonts/lxgw-wenkai-tc-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LXGW WenKai TC"; src: url("fonts/lxgw-wenkai-tc-medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
:root {
  --bg: #0a0714;
  --bg-2: #120c22;
  --panel: rgba(28, 20, 52, 0.62);
  --panel-solid: #1a1330;
  --line: rgba(190, 160, 255, 0.16);
  --line-strong: rgba(230, 196, 120, 0.42);
  --text: #f2eefb;
  --muted: #a79fbf;
  --gold-1: #fff1c7;
  --gold-2: #f2c86b;
  --gold-3: #c48d2f;
  --violet: #8e74ff;
  --green: #38d39f;
  --red: #ff6b7d;
  --radius: 18px;
  --sans: "Inter", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "LXGW WenKai TC", "Noto Serif TC", "Noto Serif JP", Georgia, serif;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* 背景：星空（canvas）＋兩團霧光 */
.sky { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.haze { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 78% 12%, rgba(120, 72, 230, 0.32), transparent 70%),
    radial-gradient(50vw 50vh at 8% 88%, rgba(196, 120, 60, 0.16), transparent 70%); }

.gild {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 12px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }

/* 頁首 */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 7, 20, 0.6); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
.logo img { width: 28px; height: 28px; }
.logo small { color: var(--muted); font-weight: 500; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.top nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { color: #2a1a05; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); box-shadow: 0 8px 30px rgba(242, 200, 107, 0.25); }
.btn-gold:hover { box-shadow: 0 10px 40px rgba(242, 200, 107, 0.4); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--line-strong); }
.top .btn { padding: 8px 16px; font-size: 14px; }

/* 主視覺 */
.hero { position: relative; padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; }
.hero .wrap > *, .features > *, .watch > *, .modes > *, .shots > * { min-width: 0; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; letter-spacing: 0.02em; }
.hero h1 span { display: block; }
.hero .lead { margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-meta b { color: var(--text); font-weight: 600; }
.hero-art { position: relative; justify-self: center; height: min(78vh, 760px); aspect-ratio: 636 / 924; }
.hero-art .hero-live { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(120, 70, 230, 0.35); background: #0d0d10; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(120, 70, 230, 0.35)); animation: float 6s ease-in-out infinite; }
.hero-art::before { content: ""; position: absolute; left: 50%; bottom: 2%; width: 100%; height: 40px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242, 200, 107, 0.35), transparent); filter: blur(6px); }
.hero-art figcaption { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 12px; font-size: 13px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 區塊 */
section { padding: 88px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; }

/* 特色卡 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.card .body { padding: 18px 20px 22px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* 角色 */
.cast { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 16px; overflow-x: auto; padding: 4px 4px 18px;
  scroll-snap-type: x mandatory; scrollbar-color: rgba(190,160,255,.3) transparent; }
.person { scroll-snap-align: start; background: linear-gradient(180deg, rgba(40, 28, 74, 0.7), rgba(18, 12, 34, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 18px; display: grid; gap: 6px; }
.person img { height: 260px; width: 100%; object-fit: contain; object-position: bottom; transition: transform .35s; }
.person:hover img { transform: translateY(-6px) scale(1.03); }
.person h3 { font-family: var(--serif); font-size: 20px; }
.person .role { color: var(--gold-2); font-size: 13px; }
.person p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* 實機 */
.watch { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.watch video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; cursor: zoom-in; }
.shots figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* 模式 */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mode { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.mode b { display: block; color: var(--gold-2); font-size: 13px; letter-spacing: .12em; margin-bottom: 8px; }
.mode h3 { font-size: 20px; margin-bottom: 8px; }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }

/* 下載 */
.download { text-align: center; padding: 64px 28px; border-radius: 28px; border: 1px solid var(--line-strong);
  background: radial-gradient(80% 120% at 50% 0%, rgba(142, 116, 255, 0.25), transparent 70%), var(--panel); }
.download h2 { margin-bottom: 12px; }
.download p { color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.download .fine { font-size: 14px; margin-top: 22px; }
.download .fine a { color: var(--gold-2); }

footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* 捲動出現 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 圖片放大 */
.lightbox { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(5, 3, 12, 0.88); padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 12px; border: 1px solid var(--line); }

/* 開場動畫：星空中畫出一段 K 線，K 線收束成鐘聲的光環，Open Bell 琉金字浮現，然後整片淡出。 */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .7s ease, visibility .7s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro svg { width: min(560px, 82vw); overflow: visible; }
.intro .k-line { fill: none; stroke: url(#introGold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.1s cubic-bezier(.6,.1,.3,1) .15s forwards; }
.intro .candle { opacity: 0; transform-origin: center bottom; animation: rise .45s ease forwards; }
.intro .ring { fill: none; stroke: var(--gold-2); stroke-width: 1.5; opacity: 0; transform-origin: 280px 110px; animation: ring 1.2s ease-out 1.1s forwards; }
.intro .ring.r2 { animation-delay: 1.3s; }
.intro .word { font-family: var(--serif); font-size: 64px; font-weight: 700; letter-spacing: 0.04em; opacity: 0; animation: word .8s ease 1.15s forwards; }
.intro .tag { font-size: 15px; letter-spacing: .3em; fill: var(--muted); opacity: 0; animation: word .8s ease 1.45s forwards; }
.intro .skip { position: absolute; bottom: 28px; right: 28px; background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: scaleY(0.2); } to { opacity: 1; transform: scaleY(1); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes word { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .hero-art img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { height: auto; width: min(64vw, 340px); order: -1; }
  .hero-art figcaption { right: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .watch { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav, .logo small, .hero-art figcaption { display: none; }
  .hero-art { width: 56vw; }
  .hero { padding-top: 32px; }
  .top .btn { margin-left: auto; }
  section { padding: 64px 0; }
  .features, .modes { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .cast { grid-auto-columns: 72%; }
}

/* 角色故事視窗 */
.person:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.person::after { content: "點開看故事 ↗"; display: block; margin-top: 6px; font-size: 12px; color: var(--gold-2); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.person:hover::after, .person:focus-visible::after { opacity: 1; transform: none; }
.story-dialog { border: 1px solid var(--line-strong); border-radius: 22px; padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: linear-gradient(180deg, #1d1538, #0f0a1f); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); overflow: auto; }
.story-dialog::backdrop { background: rgba(6, 4, 14, 0.72); backdrop-filter: blur(6px); }
.story-dialog[open] { animation: storyIn .28s ease; }
@keyframes storyIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.story-close { position: absolute; right: 14px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 22px; cursor: pointer; }
.story-close:hover { border-color: var(--gold-2); color: var(--gold-1); }
.story-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; padding: 28px; }
.story-grid figure { margin: 0; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse at 50% 80%, rgba(142, 116, 255, 0.28), transparent 70%); border-radius: 16px; }
.story-grid img { width: 100%; max-height: 520px; object-fit: contain; object-position: bottom; }
.story-body h3 { font-family: var(--serif); font-size: 32px; margin: 0; }
.story-role { color: var(--gold-2); font-size: 14px; margin: 4px 0 14px; }
.story-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
.story-body dt { color: var(--muted); }
.story-body dd { margin: 0; }
.story-bio { line-height: 1.85; color: #d9d2ee; font-size: 15px; margin: 0 0 16px; }
.story-teaser { border-left: 2px solid var(--gold-3); padding: 4px 0 4px 14px; margin: 0 0 16px; font-size: 14px; color: #cfc6e6; }
.story-teaser b, .story-chapters b { display: block; color: var(--gold-1); font-size: 13px; margin-bottom: 6px; letter-spacing: .04em; }
.story-teaser p { margin: 0 0 6px; line-height: 1.7; }
.story-chapters ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; font-size: 13.5px; }
.story-chapters li { color: #cfc6e6; }
.story-chapters li span { color: var(--gold-3); font-variant-numeric: tabular-nums; margin-right: 8px; }
.story-note { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 720px) {
  .story-grid { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .story-grid img { max-height: 300px; }
  .story-chapters ol { grid-template-columns: 1fr; }
}

.story-bio, .story-teaser p, .hero p.lead { font-family: var(--serif); }
