/* Mandala Hub 官網｜放映廳
   網站是一間暗下來的放映廳，光來自 3D 實機畫面；場刊與報告是亮的。
   色彩取自實機場景：夜空藍墨（第一章）、琉璃金（第六章琉璃窗）、星河藍（第一章夜空）。
   ○ 開始前 #8a96a3、● 結束後 #0f766e、★ 過程中最佳 #b45309 與報表範本一致。 */

:root {
  --night: #101822;
  --night-2: #16212d;
  --night-3: #1f2c3a;
  --star: #eef0ec;
  --star-2: #c3cacb;
  --stone: #9aa3a6;
  --glass: #e3c886;
  --glass-2: #c9a95e;
  --porcelain: #eef1f1;
  --porcelain-2: #e3e8e8;
  --ink: #142130;
  --ink-2: #3f4c58;
  --ink-3: #56616a;
  --pre-ink: #6f7c88;
  --river: #2b4a72;
  --river-2: #1d3656;
  --line: #cfd7d9;
  --line-dark: rgba(238, 240, 236, .14);
  --pre: #8a96a3;
  --post: #0f766e;
  --best: #b45309;
  --todo-bg: #fff1b8;
  --todo-ink: #6b4b00;
  --display: "Cactus Classical Serif", "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --header: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 17px/1.85 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: break-word;
}
::selection { background: var(--glass); color: var(--night); }
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--river); text-decoration-thickness: 1px; text-underline-offset: .28em; }
a:hover { color: var(--river-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .screening :focus-visible, .section.dark :focus-visible, .section.night :focus-visible, .cta-band :focus-visible, .guide-panel.pro :focus-visible { outline-color: var(--glass); }
.nw { display: inline-block; }

h1, h2, h3, h4 { margin: 0 0 .5em; color: inherit; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 2rem + 3.6vw, 5.4rem); line-height: 1.18; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 3.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
h4 { font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .3em 0; }
strong { font-weight: 700; }
small { font-size: .82em; }
table, .num-tab { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--star); color: var(--night); padding: 10px 16px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 920px; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }

html { scrollbar-color: #7d8a92 var(--porcelain-2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--porcelain-2); }
::-webkit-scrollbar-thumb { background: #8e9aa1; border-radius: 6px; border: 3px solid var(--porcelain-2); }

/* ── 頁首：疊在放映畫面上，捲動後轉為實底 ───────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--star);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(10, 16, 23, .7), rgba(10, 16, 23, 0));
  transition: opacity .35s var(--ease-out);
}
.site-header.scrolled { background: rgba(16, 24, 34, .94); box-shadow: 0 1px 0 var(--line-dark), 0 12px 32px rgba(5, 9, 14, .25); backdrop-filter: saturate(140%) blur(12px); }
.site-header.scrolled::before { opacity: 0; }
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--display); font-size: 1.28rem; line-height: 1.1; letter-spacing: .02em; white-space: nowrap; }
.brand small { display: block; white-space: nowrap; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; color: var(--stone); margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .dd > button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 12px; color: var(--star-2); text-decoration: none;
  font: 500 .95rem/1.4 var(--sans); background: none; border: 0; cursor: pointer;
  border-radius: 4px; transition: color .15s ease;
}
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { color: var(--star); }
/* 1181–1360px：導覽項目變多，縮小間距，避免品牌名稱換行 */
@media (min-width: 1181px) and (max-width: 1360px) { .nav > a, .nav .dd > button { padding: 8px 8px; font-size: .9rem; } .nav .btn { margin-left: 8px; } .nav > a.nav-login { padding-left: 12px; } }
.nav > a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--glass); }
.dd { position: relative; }
.dd > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease-out); }
.dd.open > button::after { transform: translateY(1px) rotate(225deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 300px;
  background: var(--night-2); border: 1px solid var(--line-dark); border-radius: 6px;
  box-shadow: 0 24px 48px rgba(3, 7, 12, .45); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .25s var(--ease-out), visibility 0s linear .25s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd-menu a { display: block; padding: 9px 12px; color: var(--star); text-decoration: none; border-radius: 4px; font-size: .95rem; line-height: 1.5; }
.dd-menu a small { display: block; color: var(--stone); font-size: .8rem; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--night-3); }
.nav .btn { margin-left: 12px; white-space: nowrap; }
/* 機構登入：與網站導覽分開，前面加一條細分隔線 */
.nav > a.nav-login { margin-left: 8px; padding-left: 18px; border-left: 1px solid var(--line-dark); border-radius: 0; }
/* 語言切換：以該語言自己的名稱顯示，不用國旗 */
.nav > a.nav-lang { font-size: .9rem; }
/* 語言下拉在頁首最右側，清單靠右展開，避免超出畫面 */
.dd-lang .dd-menu { left: auto; right: 0; min-width: 9em; }

/* ── 英文版：拉丁字體、行高與斷行 ─────────────────────────
   EB Garamond 對應中文版的古典明體角色；內文用 Noto Sans。英文行高較中文低。 */
:root:lang(en) {
  --display: "EB Garamond", "Cactus Classical Serif", Georgia, serif;
  --sans: "Noto Sans", "Noto Sans TC", system-ui, sans-serif;
}
html:lang(en) body { line-height: 1.65; line-break: auto; hyphens: manual; }
html:lang(en) h1, html:lang(en) h2 { letter-spacing: 0; line-height: 1.15; }
html:lang(en) .screening h1 { line-height: 1.02; }
html:lang(en) .lead { max-width: 40em; }
html:lang(en) .brand small { letter-spacing: .04em; }
/* ── 日文版：明朝體標題＋黑體內文；行長與行高沿用中文版 ───── */
:root:lang(ja) {
  --display: "Shippori Mincho", "Cactus Classical Serif", serif;
  --sans: "Noto Sans JP", "Noto Sans TC", system-ui, sans-serif;
}
html:lang(ja) body { line-break: strict; word-break: normal; }
/* 標題依詞組換行（Chrome 的 auto-phrase），避免片假名詞被切開 */
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .lead { word-break: auto-phrase; }
/* 手機寬度下，片假名長詞放不進一行時允許在詞組之間換行 */
@media (max-width: 640px) { html:lang(ja) .nw { display: inline; } }
/* 首頁大標題：片假名長詞（リラクゼーション）在手機上要能放進一行 */
html:lang(ja) .screening h1 { font-size: clamp(2rem, .5rem + 8vw, 7rem); }
html:lang(ja) .brand small { letter-spacing: .04em; }
.nav-toggle { display: none; margin-left: auto; background: none; color: var(--star); border: 1px solid var(--line-dark); border-radius: 4px; padding: 7px 14px; font: 500 .95rem var(--sans); cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: calc(var(--header) + env(safe-area-inset-top, 0px)) 0 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--night); padding: 12px var(--gutter) 32px;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav > a[aria-current="page"] { box-shadow: none; color: var(--glass); }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: none; padding: 4px 0 12px 12px; min-width: 0; }
  .dd.open .dd-menu { display: block; }
  .nav > a.nav-login { margin-left: 0; padding-left: 0; border-left: 0; }
  .nav .btn { margin: 20px 0 0; }
}

html:lang(en) .nav > a, html:lang(en) .nav .dd > button { padding: 8px 9px; font-size: .92rem; }
html:lang(en) .nav > a.nav-login { margin-left: 4px; padding-left: 13px; }
html:lang(en) .nav .btn { margin-left: 8px; }
/* 英文導覽字較長，1400px 以下就收合成選單（與上方 1180px 區塊相同的規則） */
@media (max-width: 1400px) {
  html:lang(en) .nav-toggle { display: inline-block; }
  html:lang(en) .nav {
    position: fixed; inset: calc(var(--header) + env(safe-area-inset-top, 0px)) 0 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--night); padding: 12px var(--gutter) 32px;
  }
  html:lang(en) .nav.open { display: flex; }
  html:lang(en) .nav > a, html:lang(en) .nav .dd > button { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  html:lang(en) .nav > a[aria-current="page"] { box-shadow: none; color: var(--glass); }
  html:lang(en) .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: none; padding: 4px 0 12px 12px; min-width: 0; }
  html:lang(en) .dd.open .dd-menu { display: block; }
  html:lang(en) .nav > a.nav-login { margin-left: 0; padding-left: 0; border-left: 0; }
  html:lang(en) .nav .btn { margin: 20px 0 0; }
}

/* ── 按鈕 ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 2px;
  font: 500 1rem/1.3 var(--sans); letter-spacing: .04em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--river); color: #fff; }
.btn-primary:hover { background: var(--river-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--river); border-color: currentColor; }
.btn-ghost:hover { background: rgba(43, 74, 114, .08); color: var(--river-2); }
.btn-light { background: var(--glass); color: var(--night); }
.btn-light:hover { background: #ecd7a1; color: var(--night); }
.btn-outline-light { background: transparent; color: var(--star); border-color: rgba(238, 240, 236, .5); }
.btn-outline-light:hover { background: rgba(238, 240, 236, .08); border-color: var(--star); color: #fff; }
.nav .btn-primary { background: var(--glass); color: var(--night); min-height: 40px; padding: 8px 18px; }
.nav .btn-primary:hover { background: #ecd7a1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

/* ── 頁面主視覺：放映畫面 ───────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--star); }
.hero .container { position: relative; padding-top: calc(var(--header) + clamp(64px, 9vw, 128px)); padding-bottom: clamp(64px, 8vw, 112px); }
.hero.compact .container { padding-top: calc(var(--header) + clamp(48px, 7vw, 104px)); padding-bottom: clamp(48px, 6vw, 88px); }
.hero h1 { color: #fff; max-width: 15em; margin-bottom: .45em; }
.hero.compact h1 { font-size: clamp(2.2rem, 1.7rem + 2.6vw, 4.2rem); }
.hero .lead { color: var(--star-2); max-width: 34em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.hero a:not(.btn) { color: var(--glass); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 16, 23, .92) 0%, rgba(10, 16, 23, .72) 42%, rgba(10, 16, 23, .25) 100%),
              linear-gradient(0deg, rgba(10, 16, 23, .55), rgba(10, 16, 23, 0) 45%); }
.hero-cap { position: absolute; right: var(--gutter); bottom: 18px; z-index: 1; margin: 0; font-size: .82rem; letter-spacing: .04em; color: var(--star); background: rgba(10, 16, 23, .62); padding: 3px 10px; border-radius: 2px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 10px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .9rem; color: var(--stone); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "／"; margin-right: 10px; color: rgba(238, 240, 236, .35); }
.crumbs a { color: var(--star-2); text-decoration: none; }
.crumbs a:hover { color: var(--star); text-decoration: underline; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 40px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-dark); max-width: 960px; }
.anchor-nav li { margin: 0; }
.anchor-nav a { color: var(--star-2); text-decoration: none; font-size: .95rem; }
.anchor-nav a:hover { color: var(--glass); }

/* ── 首頁第一屏：放映中 ───────────────────────── */
.screening { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: end; background: var(--night); color: var(--star); overflow: hidden; }
.screening .reel { position: absolute; inset: 0; z-index: -2; }
.screening .reel figure { position: absolute; inset: 0; margin: 0; opacity: 0; animation: reel 36s infinite; }
.screening .reel figure:nth-child(1) { animation-delay: -1.5s; }
.screening .reel figure:nth-child(2) { animation-delay: 7.5s; }
.screening .reel figure:nth-child(3) { animation-delay: 16.5s; }
.screening .reel figure:nth-child(4) { animation-delay: 25.5s; }
.screening .reel img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; animation: drift 36s infinite linear; animation-delay: inherit; }
.screening .reel figcaption { position: absolute; z-index: 1; right: var(--gutter); bottom: 22px; font-size: .82rem; letter-spacing: .04em; color: var(--star); background: rgba(10, 16, 23, .62); padding: 3px 10px; border-radius: 2px; }
@keyframes reel { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes drift { 0% { transform: scale(1.08) translateX(0); } 30% { transform: scale(1.02) translateX(-1.5%); } 100% { transform: scale(1.02) translateX(-1.5%); } }
/* 漸層放在每張畫面內、說明文字之下，讓「實機畫面」標示不被壓暗 */
.screening .reel figure::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 23, .6) 0, rgba(10, 16, 23, 0) 20%),
              radial-gradient(ellipse 30% 55% at 82% 62%, rgba(10, 16, 23, .62), rgba(10, 16, 23, 0)),
              linear-gradient(90deg, rgba(10, 16, 23, .88) 0%, rgba(10, 16, 23, .55) 45%, rgba(10, 16, 23, .1) 75%),
              linear-gradient(0deg, rgba(10, 16, 23, .8) 0%, rgba(10, 16, 23, 0) 50%); }
.screening .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(32px, 5vw, 96px); align-items: end; padding-top: calc(var(--header) + 48px); padding-bottom: clamp(56px, 8vh, 104px); }
.screening h1 { color: #fff; font-size: clamp(3rem, 2rem + 5.4vw, 7rem); line-height: 1.08; margin-bottom: .35em; }
.screening .lead { color: var(--star-2); font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); max-width: 26em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; padding: 0; margin: 28px 0 0; font-size: .88rem; color: var(--stone); }
.facts li { margin: 0; }
@media (max-width: 900px) {
  .screening { min-height: 0; }
  .screening .container { grid-template-columns: 1fr; gap: 40px; padding-top: calc(var(--header) + 28vh); }
  .screening .breath { justify-self: start; width: min(100%, 320px); }
  .screening .breath-ring { width: 180px; }
  .screening .breath-note { text-align: left; }
}

/* 呼吸光環與示意心率變異線 */
.breath { justify-self: end; width: min(100%, 360px); }
.breath-ring { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.breath-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.breath-ring .halo { transform-origin: 50% 50%; transform-box: fill-box; animation: breathe 10s var(--ease-out) infinite; }
.breath-ring .halo-fill { fill: rgba(227, 200, 134, .08); stroke: var(--glass); stroke-width: 1.2; }
.breath-ring .track { fill: none; stroke: rgba(238, 240, 236, .18); stroke-width: 1; stroke-dasharray: 2 6; }
@keyframes breathe { 0% { transform: scale(.62); } 40% { transform: scale(1); } 100% { transform: scale(.62); } }
.breath-cue { position: relative; display: grid; text-align: center; font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); color: var(--star); }
.breath-cue span { grid-area: 1 / 1; animation: cue 10s linear infinite; }
.breath-cue span + span { animation-name: cue-out; }
@keyframes cue { 0%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes cue-out { 0%, 36% { opacity: 0; } 42%, 96% { opacity: 1; } 100% { opacity: 0; } }
.breath-note { margin: 14px 0 0; text-align: center; font-size: .82rem; color: var(--stone); }
.trace { margin-top: 26px; }
.trace svg { width: 100%; height: auto; overflow: visible; }
.trace .line { fill: none; stroke: var(--star); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 4.5s var(--ease-out) .6s forwards; }
.trace .base { stroke: rgba(238, 240, 236, .16); stroke-width: 1; }
.trace .dot-pre { fill: var(--night); stroke: var(--pre); stroke-width: 2; }
.trace .dot-post { fill: #34b3a4; }
.trace .lbl { fill: var(--star-2); font: 500 15px var(--sans); }
@media (max-width: 900px) { .trace .lbl { font-size: 18px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.trace figcaption { font-size: .8rem; color: var(--stone); margin-top: 8px; }

/* ── 區塊與語域 ───────────────────────── */
.section { padding: clamp(80px, 10vw, 152px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt { background: var(--porcelain-2); }
.section.dark, .section.night { background: var(--night); color: var(--star-2); }
.section.dark h2, .section.dark h3, .section.night h2, .section.night h3 { color: var(--star); }
.section.dark a:not(.btn), .section.night a:not(.btn) { color: var(--glass); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head h2 { margin-bottom: .4em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 38em; }
.section.dark .lead, .section.night .lead { color: var(--star-2); }

/* 內容欄：取代卡片格，以留白與細線分組 */
.grid { display: grid; gap: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 56px); }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.42rem; line-height: 1.4; margin-bottom: .45em; }
.card h4 { margin-bottom: .3em; }
.card p { color: var(--ink-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.section.dark .card, .section.night .card { border-top-color: var(--line-dark); }
.section.dark .card p, .section.night .card p { color: var(--star-2); }
.card .num { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--ink-3); margin-bottom: 6px; }
.card.link { display: block; color: inherit; text-decoration: none; }
.card.link:hover h3 { color: var(--river); }
.card .more, .segment .more { display: inline-flex; margin-top: 14px; font-weight: 500; color: var(--river); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.card .more:hover, .segment .more:hover { color: var(--river-2); }
.card .tags { color: var(--ink-3); font-size: .9rem; }
.pillar { border-top-width: 2px; border-top-color: var(--river); }
.pillar.gold { border-top-color: var(--glass-2); }
.pillar.indigo { border-top-color: var(--night-3); }

/* ── 流程 ───────────────────────── */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 0 clamp(24px, 3vw, 48px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: s; margin: 0; padding: 22px 0 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 8px; }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--river); }
.steps li strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.steps li span { color: var(--ink-2); font-size: .97rem; }
.section.dark .steps li, .section.night .steps li { border-top-color: var(--line-dark); }
.section.dark .steps li::before, .section.night .steps li::before { color: var(--glass); }
.section.dark .steps li span, .section.night .steps li span { color: var(--star-2); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* 服務流程線：節點連成一條線 */
.flow { list-style: none; padding: 0; margin: 8px 0 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.flow li { margin: 0; display: inline-flex; align-items: center; font-size: .97rem; color: var(--ink-2); padding: 6px 0; }
.flow li.arrow { width: clamp(20px, 3vw, 44px); height: 1px; background: var(--line); font-size: 0; margin: 0 10px; padding: 0; }
/* 窄螢幕改直排，連接線轉為直線，不會留在行首或行尾 */
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: flex-start; gap: 0; }
  .flow li.arrow { width: 1px; height: 18px; margin: 2px 0 2px 14px; }
}
.flow li.us { color: var(--ink); font-weight: 700; padding: 6px 14px; background: rgba(43, 74, 114, .1); border-radius: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; font-size: 1.05rem; }
.section.dark .chips li, .section.night .chips li { color: var(--star); }

/* ── 表格 ───────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-top: 2px solid var(--ink); }
@media (max-width: 640px) {
  .table-wrap { background: radial-gradient(farthest-side at 100% 50%, rgba(20, 33, 48, .16), transparent) right / 12px 100% no-repeat; }
  .table-wrap table:not(.scope table) { min-width: 560px; }
}
table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.7; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .88rem; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody th small { display: block; font-weight: 400; color: var(--ink-3); white-space: normal; }
.section.dark .table-wrap, .section.night .table-wrap { border-top-color: var(--star); }
.section.dark th, .section.dark td { border-bottom-color: var(--line-dark); }
.section.dark tbody th { color: var(--star); }
.scope table { table-layout: fixed; }
.scope th { width: 50%; }
.scope thead th:first-child { color: var(--post); }
.scope td { vertical-align: top; }
.scope ul { margin: 0; padding-left: 1.2em; }
.scope li { margin: 0 0 .4em; }

/* ── 說明與標示 ───────────────────────── */
.note { font-size: .9rem; color: var(--ink-3); margin: 18px 0; max-width: 46em; }
.section.dark .note, .section.night .note { color: var(--stone); }
.callout { background: var(--porcelain); padding: 22px 24px; margin: 24px 0; border-radius: 2px; }
.section.alt .callout { background: var(--porcelain); }
.section:not(.alt):not(.dark):not(.night) .callout { background: var(--porcelain-2); }
.callout.warn { background: #f6ecd8; }
.callout h4 { margin-bottom: 8px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 2px; padding: 0 4px; font-size: .9em; }
.demo-badge { display: inline-block; font-size: .75rem; font-weight: 700; color: #9a3412; border: 1px solid #9a3412; border-radius: 2px; padding: 0 6px; vertical-align: middle; }
.lab-badge { display: inline-block; font-size: .72rem; font-weight: 700; color: #6d28d9; border: 1px solid #6d28d9; border-radius: 2px; padding: 0 5px; vertical-align: middle; }
blockquote { margin: 0 0 1em; padding: 0 0 0 20px; border-left: 1px solid var(--ink-3); font-family: var(--display); font-size: 1.2rem; }
.sym { font-weight: 700; }
.sym.pre { color: var(--pre-ink); } .sym.post { color: var(--post); } .sym.best { color: var(--best); }
.section.dark .sym.pre, .section.night .sym.pre, .screening .sym.pre { color: var(--pre); }
.section.dark .sym.post, .section.night .sym.post { color: #34b3a4; }

/* ── 圖版：實機畫面與情境示意 ───────────────────────── */
.plate { margin: 0; }
.plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--night-2); }
.hero-media picture, .reel picture, .cta-media picture, .voyage-track picture { height: 100%; }
.plate figcaption, .shot-cap { margin-top: 10px; font-size: .84rem; color: var(--ink-3); }
.section.dark .plate figcaption, .section.night .plate figcaption { color: var(--stone); }
.plate.wide img { aspect-ratio: 16 / 9; }
.plate.tall img { aspect-ratio: 4 / 5; }
.plate.cine img { aspect-ratio: 21 / 9; }
.plate.natural img { aspect-ratio: auto; height: auto; }
.plate.doc { margin: 28px 0 36px; }
.plate.doc img { aspect-ratio: auto; height: auto; object-fit: contain; background: #fff; }
.plate-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.plate-row > .plate:first-child img { aspect-ratio: 16 / 9; }
.plate-row > .plate + .plate img { aspect-ratio: 1.27; }
@media (max-width: 760px) { .plate-row { grid-template-columns: 1fr; } }
.bleed { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.shot { aspect-ratio: 16 / 10; border: 1px dashed var(--line); background: var(--porcelain-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink-3); font-size: .9rem; padding: 16px; }
.shot.phone { aspect-ratio: 9 / 16; max-width: 240px; margin: 0 auto; }

/* ── 兩款體驗 ───────────────────────── */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.duo article { display: flex; flex-direction: column; }
.duo h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); margin: 22px 0 6px; color: var(--star); }
.duo h3 small { display: block; font-family: var(--sans); font-size: .9rem; color: var(--glass); letter-spacing: .08em; margin-top: 4px; }
.duo p { color: var(--star-2); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ── 六章航線：橫向捲動，光線依章節改變 ───────────────────────── */
.voyage { position: relative; overflow-x: clip; }
.voyage-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.voyage-controls { display: flex; align-items: center; gap: 10px; }
.voyage-controls button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--star); cursor: pointer; display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease; }
.voyage-controls button:hover { border-color: var(--glass); background: rgba(227, 200, 134, .1); }
.voyage-controls button:disabled { opacity: .35; cursor: default; background: none; border-color: var(--line-dark); }
.voyage-controls svg { width: 18px; height: 18px; }
.voyage-count { min-width: 4.5em; text-align: center; font-family: var(--display); font-size: 1.2rem; color: var(--star); font-variant-numeric: tabular-nums; }
.voyage-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 980px); gap: clamp(16px, 2vw, 28px);
  /* 軌道延伸到視窗邊緣；--edge 等於內容欄左緣到視窗的距離，padding 與吸附位置共用同一個值 */
  --edge: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 24px; margin: 0 calc(50% - 50vw);
  list-style: none; scrollbar-width: none; overscroll-behavior-x: contain;
}
.voyage-track::-webkit-scrollbar { display: none; }
.voyage-track:focus-visible { outline-offset: -2px; }
.voyage-track > li { scroll-snap-align: start; margin: 0; position: relative; }
.voyage-track figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.voyage-track img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out), filter .6s ease; filter: saturate(.75) brightness(.8); }
.voyage-track li.is-active img { transform: scale(1); filter: none; }
.voyage-track .stop { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding-top: 20px; }
.voyage-track .stop b { grid-row: span 3; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--glass); }
.voyage-track .stop h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.9rem); color: var(--star); margin: 0 0 4px; }
.voyage-track .stop .when { font-size: .85rem; color: var(--stone); margin: 0 0 8px; }
.voyage-track .stop p:last-child { color: var(--star-2); margin: 0; max-width: 38em; }
.light-arc { position: relative; height: 2px; margin: 8px 0 0; background: linear-gradient(90deg, #27446b 0%, #27446b 30%, #b8a77a 45%, #c48a4f 62%, #3a3550 80%, #101822 100%); }
.light-arc i { position: absolute; top: 50%; left: var(--arc, 0%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--star); box-shadow: 0 0 0 4px rgba(238, 240, 236, .18); transition: left .6s var(--ease-out); }
.light-arc-labels { position: relative; height: 1.6em; font-size: .8rem; color: var(--stone); margin-top: 10px; }
.light-arc-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.light-arc-labels span:first-child { transform: none; }
.light-arc-labels span:last-child { transform: translateX(-100%); }

/* ── 章節（沉浸體驗頁）：圖文交錯 ───────────────────────── */
.chapters { display: grid; gap: clamp(48px, 6vw, 96px); }
.chapter { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.chapter-media figcaption { margin-top: 8px; font-size: .82rem; color: var(--ink-3); }
.chapter .no { font-family: var(--display); color: var(--ink-3); font-size: 1rem; margin-bottom: 6px; }
.chapter .no b { font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--river); margin-right: 10px; vertical-align: -6px; }
.chapter h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); }
.chapter .beats { font-size: .9rem; color: var(--ink-3); }
.section.dark .chapter .no, .section.night .chapter .no { color: var(--stone); }
.section.dark .chapter .no b, .section.night .chapter .no b { color: var(--glass); }
.section.dark .chapter .beats, .section.night .chapter .beats, .section.dark .chapter-media figcaption, .section.night .chapter-media figcaption { color: var(--stone); }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } .chapter:nth-child(even) .chapter-media { order: 0; } }

/* ── 一場體驗的時間線 ───────────────────────── */
.session { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.session::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--line); }
.session li { margin: 0; padding-right: 20px; position: relative; }
.session .node { display: block; width: 27px; height: 27px; border-radius: 50%; background: var(--porcelain-2); border: 1px solid var(--ink-3); margin-bottom: 18px; position: relative; }
.session .node.pre { border: 3px solid var(--pre-ink); background: var(--porcelain); }
.session .node.post { border: 0; background: var(--post); }
.session .node.journey { border: 0; background: var(--river); }
.session strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-bottom: 4px; }
.session span { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .session { grid-template-columns: 1fr; gap: 22px; }
  .session::before { left: 13px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .session li { display: grid; grid-template-columns: 27px 1fr; column-gap: 18px; padding: 0; }
  .session .node { grid-row: span 2; margin: 0; }
}

/* 設計意圖（文字清單） */
.intents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 112px); margin: 0; }
.intents > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.intents dt { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .5vw, 1.6rem); line-height: 1.3; color: var(--ink); }
.intents dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .intents { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .intents > div { grid-template-columns: 1fr; gap: 4px; } }

/* ── 首頁組織引導區 ───────────────────────── */
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.guide-panel { display: flex; flex-direction: column; background: var(--porcelain); }
.guide-panel .plate img { aspect-ratio: 16 / 9; }
.guide-panel .plate figcaption { margin: 0; padding: 8px 28px 0; }
.guide-body { padding: 22px clamp(22px, 2.4vw, 36px) 32px; display: flex; flex-direction: column; flex: 1; }
.guide-panel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + .9vw, 2.1rem); margin: 4px 0 10px; }
.guide-panel p { color: var(--ink-2); }
.guide-panel ul { margin: 0 0 22px; padding-left: 1.2em; color: var(--ink-2); }
.guide-panel .btn-row { margin-top: auto; }
.guide-panel.pro { background: var(--night); color: var(--star-2); }
.guide-panel.pro h3 { color: var(--star); }
.guide-panel.pro p { color: var(--star-2); }
.guide-panel.pro .plate figcaption { color: var(--stone); }
.guide-panel.pro a:not(.btn) { color: var(--glass); }
.guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; list-style: none; padding: 0 !important; }
.guide-links li { margin: 0; }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .guide-links { grid-template-columns: 1fr; } }
.use-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); margin-top: clamp(20px, 2vw, 32px); }
.use-case { display: flex; flex-direction: column; background: var(--porcelain); padding-bottom: 30px; }
.use-case .plate { margin: 0; }
.use-case .plate img { aspect-ratio: 16 / 9; }
.use-case .plate figcaption { margin: 0; padding: 8px clamp(22px, 2.4vw, 36px) 0; }
.use-case > :not(.plate) { margin-left: clamp(22px, 2.4vw, 36px); margin-right: clamp(22px, 2.4vw, 36px); }
.use-case h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 1.15rem + .6vw, 1.75rem); margin-top: 16px; margin-bottom: 8px; }
.use-case p { color: var(--ink-2); }
.use-case .more { align-self: flex-start; margin-top: auto; }
@media (max-width: 640px) { .use-cases { grid-template-columns: 1fr; } }

/* 場域卡（專業機構總覽） */
.segments { display: grid; gap: 0; border-top: 1px solid var(--line); }
.segments .segment { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; padding: 28px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.segments .segment .plate { margin: 0; }
.segments .segment h3 { margin: 0 0 6px; }
.segments .segment dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 0; }
.segments .segment dt { margin: 0; }
.segments .segment .more { margin: 0; align-self: center; }
@media (max-width: 760px) { .segments .segment { grid-template-columns: 1fr; } }
.segment { display: flex; flex-direction: column; }
.segment dl { margin: 0 0 14px; }
.segment dt { font-size: .82rem; color: var(--ink-3); margin-top: 10px; }
.segment dd { margin: 0; }
.segment .more { margin-top: auto; align-self: flex-start; }
.segment .plate { margin: -22px 0 18px; }
.segment .plate img { aspect-ratio: 3 / 2; }

/* ── 報表 ───────────────────────── */
.report-card { display: flex; flex-direction: column; }
.report-card .meta { font-size: .84rem; color: var(--ink-3); margin: -4px 0 8px; }
.report-grid .report-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(18px, 2vw, 28px); align-content: start; }
.report-grid .report-thumb { grid-row: span 3; margin: 0; }
@media (max-width: 1000px) { .report-grid .report-card { grid-template-columns: 1fr; } .report-grid .report-thumb { grid-row: auto; margin-bottom: 18px; } }
.report-card .actions { margin-top: auto; padding-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.report-card .actions a { font-weight: 500; }
.report-thumb { display: block; margin: 0 0 18px; background: #fff; box-shadow: 0 1px 2px rgba(20, 33, 48, .08), 0 18px 40px rgba(20, 33, 48, .12); }
.report-thumb img { width: 100%; aspect-ratio: 210 / 148; object-fit: cover; object-position: top; }

/* 金字塔 */
.pyramid { display: grid; gap: 4px; max-width: 640px; margin: 0 auto 12px; }
.pyramid div { margin: 0 auto; padding: 10px 14px; text-align: center; background: var(--porcelain); color: var(--ink-2); font-size: .95rem; }
.pyramid div.us { background: var(--river); color: #fff; font-weight: 500; }

/* 支援裝置照片 */
.devices { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; }
.devices figure { margin: 0; text-align: center; }
.devices picture { display: block; width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.devices img { width: 100%; height: 100%; object-fit: cover; }
.devices figcaption { font-size: .9rem; line-height: 1.4; color: var(--ink); }
.devices figcaption small { display: block; color: var(--ink-3); font-size: .86em; }
.credit { font-size: .78rem; line-height: 1.6; color: var(--ink-3); margin: 0 0 28px; }

/* App 下載與政策頁 */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.store-btn { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; padding: 10px 20px; border-radius: 10px; background: var(--night); color: var(--star); font-size: 1.1rem; font-weight: 500; line-height: 1.25; text-decoration: none; }
.store-btn small { font-size: .72rem; font-weight: 400; letter-spacing: .04em; color: var(--star-2); }
a.store-btn:hover { background: var(--night-3); color: #fff; }
.store-btn[aria-disabled="true"] { opacity: .72; cursor: default; }
.store-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; line-height: 0; }
.store-badge img { display: block; height: 64px; width: auto; }
.store-badge small { line-height: 1.4; font-size: .78rem; color: var(--ink-3); }
a.store-badge:hover img { opacity: .88; }
.hero-meta { margin: -4px 0 0; font-size: .9rem; letter-spacing: .03em; color: var(--star-2); }

/* FAQ */
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 6px; top: 28px; width: 12px; height: 12px; border-right: 1.5px solid var(--river); border-bottom: 1.5px solid var(--river); transform: rotate(45deg); transition: transform .25s var(--ease-out); }
details.faq[open] summary::after { transform: translateY(6px) rotate(225deg); }
details.faq > div { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq-q { font-family: var(--display); font-weight: 400; }

/* ── 表單 ───────────────────────── */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.form label .req { color: #a61b3c; margin-left: 2px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #b7c2c5; border-radius: 2px; font: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px rgba(43, 74, 114, .18); }
.form input:invalid:not(:placeholder-shown) { border-color: #a61b3c; }
.form textarea { min-height: 130px; }
.form fieldset { border: 1px solid var(--line); padding: 14px 18px; }
.form legend { font-weight: 500; font-size: .95rem; padding: 0 6px; }
.form .checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.form .checks label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--river); }
.form-result { background: var(--porcelain-2); }
.contact-grid { grid-template-columns: 1.4fr .9fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── 版型工具 ───────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { font-weight: 700; color: var(--ink); padding-right: 24px; }
.section.dark .kv, .section.dark .kv dt, .section.dark .kv dd { border-color: var(--line-dark); }
.section.dark .kv dt { color: var(--star); }

/* 收尾：滿版實機畫面 */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--star-2); padding: clamp(48px, 7vw, 104px) clamp(24px, 5vw, 80px); background: var(--night-2); }
.cta-band .cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 16, 23, .9), rgba(10, 16, 23, .45)); }
.cta-band h2 { color: var(--star); max-width: 16em; }
.cta-band p { max-width: 34em; }
.section .cta-band { margin: 0; }
section.cta-band { padding: clamp(88px, 11vw, 168px) 0; }
.site-header.menu-open { background: var(--night); }

/* ── YouTube（點擊才載入） ───────────────────────── */
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--night-2); overflow: hidden; }
.yt iframe, .yt .yt-btn, .yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .yt-btn { padding: 0; margin: 0; cursor: pointer; background: none; display: block; color: #fff; text-decoration: none; }
.yt img { object-fit: cover; transition: transform .8s var(--ease-out), filter .4s ease; filter: brightness(.82); }
.yt .yt-btn:hover img, .yt .yt-btn:focus-visible img { transform: scale(1.03); filter: brightness(.95); }
.yt .yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); background: rgba(10, 16, 23, .35); backdrop-filter: blur(4px); transition: background-color .2s ease, transform .2s var(--ease-out); }
.yt .yt-play::after { content: ""; position: absolute; left: 31px; top: 25px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff; }
.yt .yt-btn:hover .yt-play, .yt .yt-btn:focus-visible .yt-play { background: var(--glass); transform: scale(1.06); }
.yt .yt-btn:hover .yt-play::after, .yt .yt-btn:focus-visible .yt-play::after { border-left-color: var(--night); }
.yt .yt-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(10, 16, 23, .85)); font-size: .95rem; text-align: left; }
.yt.yt-pending { display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(154, 163, 166, .5); }
.yt .yt-label { color: var(--stone); text-align: center; font-size: .9rem; padding: 16px; }
.yt .yt-label strong { display: block; color: var(--star-2); margin-bottom: 4px; font-weight: 500; }

/* ── 頁尾 ───────────────────────── */
.site-footer { background: var(--night); color: var(--stone); padding: clamp(64px, 8vw, 112px) 0 40px; font-size: .92rem; }
.site-footer a { color: var(--star-2); text-decoration: none; }
.site-footer a:hover { color: var(--star); text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--star); font-size: .95rem; font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer .brand { color: var(--star); }
.site-footer .disclaimer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .84rem; line-height: 1.8; max-width: 72em; }
.site-footer .test-flag { display: inline-block; margin-top: 10px; color: var(--glass); font-size: .82rem; }

/* ── 減少動態：全部靜止，保留第一個畫面 ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .screening .reel figure { animation: none; opacity: 0; }
  .screening .reel figure:first-child { opacity: 1; }
  .screening .reel img { animation: none; transform: none; }
  .breath-ring .halo { animation: none; transform: scale(.85); }
  .breath-cue span { animation: none; }
  .breath-cue span + span { opacity: 0; }
  .trace .line { animation: none; stroke-dashoffset: 0; }
  .voyage-track img { transform: none; filter: none; }
}

/* ── 知識專區：文章、引用、文獻清單、名詞速查 ───────────────────────── */
.article .container > h2 { margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: calc(var(--header) + 16px); }
.article .container > h2:first-of-type { margin-top: 32px; }
.article .table-wrap { margin-top: 8px; }
.article td { vertical-align: top; }
.cite { font-size: .86em; color: var(--ink-3); white-space: normal; }
.cite a { color: var(--river); text-decoration: none; border-bottom: 1px solid rgba(43, 74, 114, .3); }
.cite a:hover { border-bottom-color: currentColor; }
.next-read { margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.3rem; }
.next-read a { text-decoration: none; }
.refs { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: ref; }
.refs > li { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 16px); }
.refs > li:target { background: linear-gradient(90deg, rgba(227, 200, 134, .25), transparent 70%); }
.refs .ref-cite { margin: 0 0 6px; overflow-wrap: anywhere; }
.refs .ref-cite a { font-size: .9em; }
.refs .ref-type { display: inline-block; margin: 0 0 8px; font-size: .84rem; color: var(--ink-3); }
.refs .ref-sum { margin: 0; color: var(--ink-2); }
.glossary { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.glossary dt, .glossary dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 700; padding-right: 24px; scroll-margin-top: calc(var(--header) + 16px); }
@media (max-width: 640px) { .glossary { grid-template-columns: 1fr; } .glossary dt { border-bottom: 0; padding-bottom: 2px; } .glossary dd { padding-top: 0; } }
.segment p { color: var(--ink-2); margin: 0; }

/* ── 手機截圖 ───────────────────── */
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.phone { margin: 0; scroll-snap-align: start; }
.phone picture, .phone img { display: block; width: 100%; height: auto; }
.phone img { aspect-ratio: 1440 / 2900; border: 6px solid #05070b; border-radius: 26px; background: #151318; box-shadow: 0 16px 36px rgba(4, 8, 16, .35); }
.phone figcaption { margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.phone figcaption strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--ink); }
.section.night .phone figcaption { color: var(--star-2); }
.section.night .phone figcaption strong { color: var(--star); }
@media (max-width: 860px) { .phones { grid-auto-columns: 58%; } }
.phones-3 { max-width: 820px; margin: clamp(32px, 4vw, 56px) auto 0; }
.more-link { text-align: center; margin-top: 20px; }
.host-duo { position: relative; padding-right: 8%; padding-bottom: 28px; }
.host-duo .plate figcaption { max-width: 72%; }
.host-duo .phone { position: absolute; right: 0; bottom: 0; width: clamp(92px, 15%, 200px); }
.host-duo .phone img { border-width: 4px; border-radius: 16px; }
#group .host-duo { margin-top: clamp(32px, 4vw, 56px); }

/* ── 行動推車 ───────────────────── */
.cart-block { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.cart-block .plate img { background: #fff; }
.cart-block h3 { margin-top: 0; }
@media (max-width: 640px) { .cart-block { grid-template-columns: 1fr; } .cart-block .plate { max-width: 220px; } }

/* 表單的防機器人欄位：畫面與輔助技術都看不到 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── 公司標誌（Big Heart）：原圖為白底設計，放在白色底板上 ───── */
.company-logo { display: inline-block; margin-top: 18px; padding: 10px 14px; background: #fff; border-radius: 10px; line-height: 0; }
.company-logo img { display: block; width: 140px; height: auto; }
.company-mark { display: inline-block; margin-bottom: 28px; padding: 20px 26px; background: #fff; border-radius: 12px; line-height: 0; }
.company-mark img { display: block; width: 260px; max-width: 100%; height: auto; }

/* ── 線條圖示、語言選單 ── */
.ic { width: 1em; height: 1em; flex: none; }
.dd-lang > button { gap: 6px; }
.ic-globe { width: 17px; height: 17px; }
.dd-lang .dd-menu a[aria-current="true"] { color: var(--glass); }
.dd-lang .dd-menu a[aria-current="true"]::after { content: "・目前"; color: var(--stone); font-size: .8rem; }
html:lang(en) .dd-lang .dd-menu a[aria-current="true"]::after { content: " · current"; }
html:lang(ja) .dd-lang .dd-menu a[aria-current="true"]::after { content: "・現在"; }

/* ── 四步流程：沿用 .session 的節點與連線 ── */
.session.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.session.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .session.four, .session.six { grid-template-columns: 1fr; } }
.session .node.us { border: 0; background: var(--river); }

/* ── 分工對照：左右兩欄短詞清單 ── */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 80px); margin: 0 0 28px; }
.ledger > div { border-top: 2px solid var(--ink); }
.ledger > div:first-child { border-top-color: var(--river); }
.ledger h3 { font-size: 1.15rem; margin: 18px 0 6px; }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ledger li b { color: var(--ink); font-weight: 700; margin-right: .6em; }
@media (max-width: 640px) { .ledger { grid-template-columns: 1fr; gap: 28px; } }

/* ── 圖示清單：硬體、協助項目 ── */
.kit { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.kit li { margin: 0; padding: 20px 0 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-content: start; }
.kit .ic { width: 30px; height: 30px; color: var(--river); grid-row: span 3; margin-top: 2px; }
.kit b { font-family: var(--display); font-weight: 400; font-size: 1.18rem; color: var(--ink); line-height: 1.35; }
.kit span { font-size: .93rem; color: var(--ink-2); line-height: 1.6; }
.kit em { font-style: normal; font-size: .8rem; letter-spacing: .04em; color: var(--ink-3); margin-top: 6px; justify-self: start; border: 1px solid var(--line); padding: 1px 8px; border-radius: 2px; }
.kit em.ours { color: var(--river); border-color: rgba(43, 74, 114, .45); }
.kit.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kit, .kit.three, .kit.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kit, .kit.three, .kit.two { grid-template-columns: 1fr; } }

/* ── 短詞標籤 ── */
.chips { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: .95rem; color: var(--ink); background: rgba(255, 255, 255, .5); }

/* ── 收合的細節 ── */
details.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 0; }
details.more > summary { cursor: pointer; padding: 16px 32px 16px 0; color: var(--river); list-style: none; position: relative; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 10px; height: 10px; border-right: 1.5px solid var(--river); border-bottom: 1.5px solid var(--river); transform: rotate(45deg); transition: transform .25s var(--ease-out); }
details.more[open] > summary::after { transform: translateY(5px) rotate(225deg); }
details.more > div { padding: 0 0 20px; }
.split.top { align-items: start; }
.nav .dd-lang > button { justify-content: flex-start; }
.nav .dd-lang > button::after { margin-left: auto; }
@media (min-width: 1181px) { .nav .dd-lang > button::after { margin-left: 4px; } }
