/* ============================================================
   天使投融 — Design System
   參考風格：深墨黑 + 科技綠 / 虛線邊框 / 等寬字標籤 / 大留白
   ============================================================ */

:root {
  /* Colors */
  --c-bg: #141010;
  --c-surface: #1B1514;
  --c-text: #F7F7F7;
  --c-accent: #D2A06E;
  --c-light: #F7F7F7;
  --c-dark: #1B1514;

  /* Border colors */
  --line-on-dark: rgba(247, 247, 247, 0.22);
  --line-on-light: rgba(27, 21, 20, 0.28);

  /* Spacing */
  --pad: clamp(20px, calc(20px + 40 * (100vw - 402px) / 1518), 60px);
  --pad-lg: clamp(48px, calc(48px + 92 * (100vw - 402px) / 1518), 140px);

  /* Type */
  --sans: 'Noto Sans TC', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --text-h1: clamp(34px, 6.2vw, 84px);
  --text-h2: clamp(28px, 4.4vw, 60px);
  --text-h3: clamp(19px, 2vw, 26px);
  --text-body: 16px;

  /* Motion */
  --ease-power4: cubic-bezier(.215, .61, .355, 1);
  --ease-snappy: cubic-bezier(.694, .048, .335, 1);

  /* Z */
  --z-nav: 90;
  --z-loader: 100;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
em { font-style: normal; }

.t-mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.accent-dot { color: var(--c-accent); }
.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: inline; } }

/* Sections */
section { position: relative; padding: var(--pad-lg) var(--pad); }
.section--dark { background-color: var(--c-bg); color: var(--c-text); }
.section--light { background-color: var(--c-light); color: var(--c-dark); }

.section-head { margin-bottom: clamp(40px, 6vw, 90px); }
.section-head--split {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 24px;
}
.section-head--center { text-align: center; }

.section-label {
  display: inline-block;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.section--light .section-label { color: #A9764A; }

.section-title {
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
}

.section-desc {
  margin-top: 20px;
  max-width: 520px;
  opacity: .72;
  font-weight: 300;
}
.section-head--split .section-desc { margin-top: 0; text-align: right; }
.section-head--center .section-desc { margin-inline: auto; }

/* Corner handles（設計工具選取手柄） */
.handle {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--c-accent);
  z-index: 3;
  transition: transform .3s var(--ease-power4);
}
.handle--tl { top: -4px; left: -4px; }
.handle--tr { top: -4px; right: -4px; }
.handle--bl { bottom: -4px; left: -4px; }
.handle--br { bottom: -4px; right: -4px; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0;
  z-index: var(--z-loader);
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
}
.loader__logo { width: clamp(90px, 14vw, 150px); height: auto; }
.loader__text {
  position: absolute; left: 50%; transform: translateX(-50%);
  color: var(--c-text); opacity: .8; white-space: nowrap;
}
.loader__text--top { top: calc(var(--pad) + 6px); }
.loader__text--bottom { bottom: calc(var(--pad) + 6px); }
.loader__corner {
  position: absolute; width: 6px; height: 6px; background: var(--c-accent);
}
.loader__corner--tl { top: var(--pad); left: var(--pad); }
.loader__corner--tr { top: var(--pad); right: var(--pad); }
.loader__corner--bl { bottom: var(--pad); left: var(--pad); }
.loader__corner--br { bottom: var(--pad); right: var(--pad); }

/* ============ Navbar ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
  transition: background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px dashed transparent;
}
.nav.is-scrolled {
  background: rgba(20, 16, 16, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-on-dark);
}

.nav__brand { display: flex; align-items: baseline; gap: 10px; }
.nav__mark { width: 26px; height: 26px; align-self: center; }
.nav__brand-text { font-size: 18px; font-weight: 500; letter-spacing: .06em; white-space: nowrap; }
.nav__brand-sub { opacity: .5; font-size: 10px; }

/* 桌面：面板不產生盒子，子元素直接參與 header 的 flex 排版 */
.nav__panel { display: contents; }
.nav__toggle { display: none; }
.nav__link-num { display: none; }

.nav__links { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: 15px;
  opacity: .85;
  transition: opacity .25s, color .25s;
  padding: 4px 0;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-power4);
}
.nav__link:hover { opacity: 1; color: var(--c-accent); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 精英俱樂部下拉子選單 ---------- */
.nav__group { position: relative; display: flex; align-items: center; gap: 6px; }

.nav__sub-toggle {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  color: var(--c-accent);
  opacity: .65;
  transition: opacity .25s, transform .3s var(--ease-power4);
}
.nav__sub-toggle svg { width: 10px; height: 10px; }
.nav__group:hover .nav__sub-toggle,
.nav__group:focus-within .nav__sub-toggle { opacity: 1; }
.nav__group:hover .nav__sub-toggle,
.nav__group.is-open .nav__sub-toggle { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 16px);
  left: -14px;
  z-index: 2;
  min-width: 268px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(20, 16, 16, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px dashed var(--line-on-dark);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease-power4), transform .3s var(--ease-power4), visibility .3s;
}
/* 連結與面板之間的空隙補上感應區，滑過去時不會中斷 hover */
.nav__sub::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -18px;
  height: 18px;
}
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub,
.nav__group.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 4px;
  transition: background-color .25s, color .25s;
}
.nav__sub-link span { color: var(--c-accent); opacity: .65; font-size: 10px; }
.nav__sub-link b { font-size: 14px; font-weight: 500; opacity: .9; }
.nav__sub-link em {
  grid-column: 2;
  font-size: 11.5px;
  font-weight: 300;
  opacity: .45;
  line-height: 1.5;
}
.nav__sub-link:hover { background: rgba(210, 160, 110, .1); }
.nav__sub-link:hover b { color: var(--c-accent); opacity: 1; }
.nav__sub-link.is-current { background: rgba(210, 160, 110, .08); }
.nav__sub-link.is-current b { color: var(--c-accent); opacity: 1; }
.nav__sub-link.is-current span { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.nav__lang { letter-spacing: .1em; opacity: .8; transition: opacity .25s; }
.nav__lang:hover { opacity: 1; }
.nav__lang-divider { opacity: .4; }
.nav__lang-en { opacity: .45; }
.nav__login { opacity: .85; transition: color .25s, opacity .25s; }
.nav__login:hover { opacity: 1; color: var(--c-accent); }

/* ============ 登入狀態導航 ============ */
/* 登入後：連結置中，右側為 [語言][視角 CTA][通知][頭像] */
.nav.is-authed .nav__links { margin-inline: auto; }
.nav.is-authed .nav__actions > :not(.nav__lang):not(.nav__cta) { display: none; }

.nav__cta .btn__icon svg { width: 12px; height: 12px; }
.nav__cta.is-current { border-style: solid; border-color: rgba(210, 160, 110, .6); background: rgba(210, 160, 110, .1); }

.nav__me { display: flex; align-items: center; gap: 10px; }
.nav__me-item { position: relative; }

.nav__iconbtn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px dashed var(--line-on-dark);
  border-radius: 50%;
  color: rgba(247, 247, 247, .8);
  transition: border-color .25s, color .25s, background-color .25s;
}
.nav__iconbtn:hover,
.nav__iconbtn[aria-expanded="true"] { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); background: rgba(210, 160, 110, .08); }
.nav__iconbtn svg { width: 16px; height: 16px; }
.nav__badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--c-accent);
  color: #16120F;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--c-bg);
}
.nav__badge[hidden] { display: none; }

/* 頭像：等級識別環（金 = 高級、藍 = 中級、銀 = 基礎） */
.nav__avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  transition: box-shadow .25s, transform .3s var(--ease-power4);
}
.nav__avatar--silver { color: #F7F7F7; border: 1px solid rgba(247, 247, 247, .35); background: linear-gradient(150deg, rgba(247, 247, 247, .16), rgba(247, 247, 247, .04)); }
.nav__avatar--blue { color: #9DB8CB; border: 1px solid rgba(140, 169, 191, .6); background: linear-gradient(150deg, rgba(140, 169, 191, .22), rgba(140, 169, 191, .05)); }
.nav__avatar--gold { color: var(--c-accent); border: 1px solid rgba(210, 160, 110, .7); background: linear-gradient(150deg, rgba(210, 160, 110, .24), rgba(210, 160, 110, .05)); }
button.nav__avatar:hover,
button.nav__avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(210, 160, 110, .25); }
.nav__avatar--lg { width: 46px; height: 46px; font-size: 17px; flex: none; }

/* 彈出面板（頭像選單 / 通知） */
.nav__pop {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 5;
  width: 300px;
  display: flex; flex-direction: column;
  background: rgba(20, 16, 16, .98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  animation: popIn .26s var(--ease-power4);
}
.nav__pop[hidden] { display: none; }
.nav__pop--notif { width: 360px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 頭像選單 */
.um__head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; }
.um__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.um__name { font-size: 15px; font-weight: 500; }
.um__addr { font-size: 10.5px; opacity: .5; text-transform: none; letter-spacing: .04em; }

.um__switch {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 14px 12px;
  padding: 4px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 999px;
}
.um__switch button {
  padding: 7px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(247, 247, 247, .6);
  transition: background-color .25s, color .25s;
}
.um__switch button:hover { color: var(--c-text); }
.um__switch button[aria-checked="true"] { background: var(--c-accent); color: #16120F; font-weight: 500; }

.um__member {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 14px 8px;
  padding: 12px 14px;
  border: 1px dashed rgba(210, 160, 110, .35);
  border-radius: 6px;
  background: rgba(210, 160, 110, .05);
  transition: border-color .25s, background-color .25s;
}
.um__member:hover { border-color: rgba(210, 160, 110, .65); background: rgba(210, 160, 110, .09); }
.um__member-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.um__member-lv { font-size: 13px; font-weight: 500; }
.um__member-lv b { color: var(--c-accent); font-family: var(--mono); font-weight: 700; font-size: 11px; margin-right: 6px; }
.um__member-up { font-family: var(--mono); font-size: 10.5px; color: var(--c-accent); }
.um__member .progress__bar { height: 3px; }
.um__member-gap { font-size: 11px; opacity: .5; }

.um__list { display: flex; flex-direction: column; padding: 4px 8px 8px; border-top: 1px dashed var(--line-on-dark); }
.um__item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 4px;
  font-size: 13.5px;
  color: rgba(247, 247, 247, .82);
  text-align: left;
  transition: background-color .2s, color .2s;
}
.um__item:hover, .um__item:focus-visible { background: rgba(210, 160, 110, .1); color: var(--c-text); outline: none; }
.um__item svg { width: 15px; height: 15px; flex: none; opacity: .65; }
.um__meta { margin-left: auto; font-family: var(--mono); font-size: 10.5px; opacity: .45; }
.um__count {
  margin-left: auto;
  min-width: 18px; padding: 1px 6px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #16120F;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.um__count[hidden] { display: none; }
.um__item--out { color: #D9A08C; }
.um__item--out:hover { background: rgba(217, 160, 140, .1); color: #E8B5A2; }
.um__sep { height: 1px; margin: 6px 4px; border-top: 1px dashed var(--line-on-dark); }

/* 通知面板 */
.nt__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px dashed var(--line-on-dark);
}
.nt__title { font-size: 15px; font-weight: 500; }
.nt__title small { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--c-accent); }
.nt__readall { font-size: 11.5px; color: rgba(247, 247, 247, .55); transition: color .25s; }
.nt__readall:hover { color: var(--c-accent); }
.nt__readall:disabled { opacity: .35; cursor: default; color: rgba(247, 247, 247, .55); }
.nt__list { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.nt__item {
  position: relative;
  display: grid; grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 6px;
  text-align: left;
  transition: background-color .2s;
}
.nt__item:hover, .nt__item:focus-visible { background: rgba(247, 247, 247, .04); outline: none; }
.nt__icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px dashed var(--line-on-dark);
  color: rgba(247, 247, 247, .6);
}
.nt__icon svg { width: 13px; height: 13px; }
.nt__icon--match { color: var(--c-accent); border-color: rgba(210, 160, 110, .45); }
.nt__icon--event { color: #9DB8CB; border-color: rgba(140, 169, 191, .45); }
.nt__icon--community { color: #A9C497; border-color: rgba(157, 185, 140, .45); }
.nt__icon--project { color: var(--c-accent); border-color: rgba(210, 160, 110, .45); }
.nt__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 12px; }
.nt__t { font-size: 13px; font-weight: 500; line-height: 1.5; color: rgba(247, 247, 247, .7); }
.nt__d { font-size: 12px; font-weight: 300; opacity: .55; line-height: 1.6; }
.nt__time { font-family: var(--mono); font-size: 10px; opacity: .4; }
.nt__item.is-unread .nt__t { color: var(--c-text); }
.nt__item.is-unread::after {
  content: '';
  position: absolute; top: 18px; right: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}
.nt__empty, .nt__loading { padding: 32px 18px; text-align: center; font-size: 12.5px; opacity: .5; }
.nt__foot { padding: 10px 14px 12px; border-top: 1px dashed var(--line-on-dark); }
.nt__foot button, .nt__foot a { display: block; text-align: center; width: 100%; padding: 9px; border-radius: 4px; font-size: 12.5px; color: var(--c-accent); transition: background-color .2s; }
.nt__foot button:hover, .nt__foot a:hover { background: rgba(210, 160, 110, .08); }

/* 輕提示 */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 120;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 1px solid rgba(210, 160, 110, .55);
  border-radius: 999px;
  background: rgba(20, 16, 16, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--c-text);
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-power4), transform .3s var(--ease-power4);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--c-accent); font-weight: 500; }

/* 手機：通知與頭像固定在頂列（漢堡鈕左側），面板改為貼齊螢幕寬 */
@media (max-width: 860px) {
  .nav__me { margin-left: auto; gap: 8px; order: 1; }
  .nav__toggle { order: 2; }
  .nav__iconbtn, .nav__avatar { width: 34px; height: 34px; }
  .nav__pop, .nav__pop--notif {
    position: fixed;
    top: 62px; left: 12px; right: 12px;
    width: auto;
  }
  .nav__pop .handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__pop { animation: none; }
  .toast { transition: none; }
}

/* 投資人視角預覽條（?preview= 時由 auth.js 插入，任何頁面皆可能出現） */
.preview-bar {
  position: fixed; left: 50%; top: 70px;
  z-index: 95;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(210, 160, 110, .6);
  border-radius: 999px;
  background: rgba(20, 16, 16, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  max-width: calc(100vw - 24px);
}
.preview-bar b { color: var(--c-accent); font-weight: 500; }
.preview-bar button { padding: 4px 12px; border-radius: 999px; background: var(--c-accent); color: #16120F; font-size: 12px; font-weight: 500; }

/* ============ 進度條（共用） ============ */
.progress__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(247, 247, 247, .09);
  overflow: hidden;
}
.progress__bar i {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210, 160, 110, .55), var(--c-accent));
}

/* ============ Button ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 15px 24px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 5px;
  background: transparent;
  color: var(--c-text);
  transition: border-color .3s;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(90deg, rgba(210, 160, 110, .05), rgba(210, 160, 110, .2));
  border-radius: 5px;
  transition: opacity .3s;
  pointer-events: none;
}
.btn:hover { border-color: rgba(210, 160, 110, .6); }
.btn:hover::before { opacity: 1; }

.btn__text {
  position: relative; z-index: 2;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}
.btn__icon {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 4px;
  background: var(--c-accent);
  color: var(--c-bg);
  overflow: hidden;
  flex: none;
}
.btn__icon svg { width: 13px; height: 13px; }
.btn__icon-front,
.btn__icon-back {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  transition: transform .42s var(--ease-power4);
}
.btn__icon-back { position: absolute; inset: 0; transform: translateX(-100%); }
.btn:hover .btn__icon-front { transform: translateX(100%); }
.btn:hover .btn__icon-back { transform: translateX(0); }

.btn--sm { padding: 9px 16px; gap: 12px; }
.btn--sm .btn__icon { width: 24px; height: 24px; }
.btn--sm .btn__icon svg { width: 11px; height: 11px; }

.btn--ghost .btn__icon { background: rgba(247, 247, 247, .12); color: var(--c-text); }

.btn--dark {
  color: var(--c-dark);
  border-color: var(--line-on-light);
}
.btn--dark:hover { border-color: rgba(169, 118, 74, .7); }

/* ============ 1. Hero ============ */
/* Curtain：Hero 釘在視口底層，後面的區段像簾幕一樣蓋上來 */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px;
  position: sticky;
  top: 0;
  z-index: 0;
}
main > section:not(.hero) { z-index: 1; }

/* 手機：文案靠上，下半部留給軌道動畫 */
@media (max-width: 767px) {
  .hero {
    justify-content: flex-start;
    padding-top: 104px;
  }
  .hero__sub { margin-top: 22px; }
  .hero__ctas { margin-top: 30px; }
}

/* 簾幕上緣的陰影，讓深色疊深色時邊界讀得出來 */
.tracks { box-shadow: 0 -50px 110px rgba(0, 0, 0, 0.65); }
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 1100px; }
.hero__label { color: var(--c-accent); margin-bottom: 26px; display: inline-block; }
.hero__title {
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: .01em;
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title em { color: var(--c-accent); }
.hero__dot { color: var(--c-accent); }
.hero__sub {
  margin-top: 30px;
  max-width: 560px;
  opacity: .75;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.hero__scroll {
  position: absolute;
  right: var(--pad); bottom: 28px;
  z-index: 2;
  opacity: .6;
}
.hero__scroll-arrow { display: inline-block; animation: scrollBounce 1.8s infinite var(--ease-power4); }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============ 2. 三大賽道 ============ */
.tracks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .tracks__grid { grid-template-columns: 1fr; gap: 36px; } }

.track-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
  border: 1px dashed var(--line-on-dark);
  background: var(--c-bg);
  transition: border-color .35s;
}
.track-card::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(160deg, rgba(210, 160, 110, .03), rgba(210, 160, 110, .12));
  transition: opacity .35s;
  pointer-events: none;
}
.track-card:hover { border-color: rgba(210, 160, 110, .55); }
.track-card:hover::before { opacity: 1; }
.track-card:hover .handle { transform: scale(1.35); }
.track-card > *:not(.handle) { position: relative; z-index: 1; }

.track-card__media {
  position: relative;
  border: 1px dashed var(--line-on-dark);
  border-radius: 4px;
  background: #15110E;
  aspect-ratio: 15 / 8;
  overflow: hidden;
}
.track-card__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* 靜止時壓暗，hover 播放時回復全亮，暗示可互動 */
  opacity: .55;
  filter: saturate(.75);
  transition: opacity .5s var(--ease-power4), filter .5s var(--ease-power4);
}
.track-card.is-playing .track-card__media video {
  opacity: 1;
  filter: none;
}
/* 線稿 SVG 留作 reduced-motion 後備 */
.track-card__media svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 22px 18px;
  box-sizing: border-box;
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .track-card__media video { display: none; }
  .track-card__media svg { display: block; }
}
.track-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.track-card__title { font-size: var(--text-h3); font-weight: 500; letter-spacing: .02em; }
.track-card__num { color: var(--c-accent); }
.track-card__desc { opacity: .7; font-weight: 300; font-size: 15px; }
.track-card__more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--c-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .35s, transform .35s var(--ease-power4);
}
.track-card:hover .track-card__more { opacity: 1; transform: translateX(0); }

/* ============ 3. 精選項目 ============ */
.proj-list { border-top: 1px dashed var(--line-on-light); }
.proj-list li { border-bottom: 1px dashed var(--line-on-light); }

.proj-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto 44px;
  align-items: center;
  gap: clamp(14px, 2.5vw, 40px);
  padding: 26px 10px;
  transition: background-color .28s, padding .28s;
}
.proj-row__idx { opacity: .5; }
.proj-row__name {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  opacity: .8;
  transition: opacity .28s;
}
.proj-row__year, .proj-row__tag { opacity: .55; white-space: nowrap; }
.proj-row__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 4px;
  background: rgba(210, 160, 110, .18);
  color: #A9764A;
  transition: background-color .28s, color .28s, transform .28s var(--ease-power4);
}
.proj-row__arrow svg { width: 13px; height: 13px; }

.proj-row:hover { background: var(--c-accent); padding-inline: 22px; }
.proj-row:hover .proj-row__name,
.proj-row:hover .proj-row__idx,
.proj-row:hover .proj-row__year,
.proj-row:hover .proj-row__tag { opacity: 1; color: var(--c-dark); }
.proj-row:hover .proj-row__arrow {
  background: var(--c-dark);
  color: var(--c-accent);
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .proj-row { grid-template-columns: 40px 1fr 36px; }
  .proj-row__year { display: none; }
  .proj-row__tag { grid-column: 2; grid-row: 2; justify-self: start; }
}

.projects__foot { margin-top: 48px; display: flex; justify-content: center; }

/* ============ 4. 平台優勢 ============ */
.edge { padding-block: var(--pad-lg); }
.edge__statement {
  max-width: 1050px;
  font-size: clamp(24px, 3.6vw, 50px);
  font-weight: 300;
  line-height: 1.4;
  margin: 26px 0 clamp(50px, 7vw, 110px);
}
.edge__statement .w { color: rgba(247, 247, 247, .18); }
.edge__statement .w--em { color: rgba(210, 160, 110, .25); }

.edge__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .edge__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .edge__grid { grid-template-columns: 1fr; } }

.edge-item {
  position: relative;
  padding: 26px 22px;
  border: 1px dashed var(--line-on-dark);
  background: var(--c-surface);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .35s;
}
.edge-item:hover { border-color: rgba(210, 160, 110, .5); }
.edge-item:hover .handle { transform: scale(1.35); }
.edge-item__num { color: var(--c-accent); }
.edge-item__title { font-size: 18px; font-weight: 500; }
.edge-item__desc { opacity: .65; font-weight: 300; font-size: 14.5px; }

.edge__stats {
  margin-top: clamp(50px, 7vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed var(--line-on-dark);
}
@media (max-width: 760px) { .edge__stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 30px 20px 6px;
  border-right: 1px dashed var(--line-on-dark);
}
.stat:last-child { border-right: none; }
@media (max-width: 760px) { .stat:nth-child(2n) { border-right: none; } }
.stat__value {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0;
  text-transform: none;
}
.stat__label { margin-top: 6px; opacity: .6; font-size: 14px; }

/* ============ 5. 會員機制（深色玻璃定價卡） ============ */
.membership__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
  padding-top: 16px;
}
@media (max-width: 980px) {
  .membership__cards { grid-template-columns: 1fr; justify-items: center; }
  .membership__cards > * { width: min(100%, 420px); }
}

.tier-card {
  position: relative;
  width: 100%;
  padding: 12px 12px 26px;
  border-radius: 22px;
  background: #16120F;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--c-text);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 50px rgba(27, 21, 20, 0.22);
  transition: transform .4s var(--ease-power4), box-shadow .4s, border-color .4s;
}
.tier-card:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 160, 110, 0.35);
  box-shadow: 0 32px 64px rgba(27, 21, 20, 0.3);
}

/* 頂部玻璃面板 */
.tier-card__panel {
  border-radius: 14px;
  padding: 20px 20px 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 16px;
}
.tier-card__badge {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(247, 247, 247, 0.85);
  font-size: 11px;
}
.tier-card__badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(247, 247, 247, 0.5);
}
.tier-card--2 .tier-card__badge i { background: #E9C589; }
.tier-card--3 .tier-card__badge i { background: var(--c-accent); }

.tier-card__name {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: .01em;
}

.tier-card__tag {
  margin: 16px 10px 0;
  font-size: 13px;
  color: rgba(247, 247, 247, 0.55);
}

/* 權益清單：✓ 擁有、✕ 未含 */
.tier-card__list {
  display: flex; flex-direction: column; gap: 13px;
  margin: 22px 10px 0;
}
.tier-card__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.tier-card__list li::before {
  flex: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10.5px;
  line-height: 1;
}
.tier-card__list li.is-on::before {
  content: '✓';
  background: #F7F7F7;
  color: #16120F;
}
.tier-card__list li.is-off { color: rgba(247, 247, 247, 0.35); }
.tier-card__list li.is-off::before {
  content: '✕';
  background: rgba(255, 255, 255, 0.1);
  color: rgba(247, 247, 247, 0.45);
}

/* 精英卡：金色內光暈明顯亮於另外兩張、略高一級 */
.tier-card.is-elite {
  background: linear-gradient(165deg, #16120F 45%, #3A2614 130%);
  border-color: rgba(210, 160, 110, 0.45);
  box-shadow:
    inset 0 0 52px rgba(224, 179, 132, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 30px 70px rgba(169, 118, 74, 0.38);
  padding-bottom: 34px;
}
.tier-card.is-elite .tier-card__panel {
  background: linear-gradient(170deg, rgba(210, 160, 110, 0.2), rgba(210, 160, 110, 0.04) 70%);
  border-color: rgba(210, 160, 110, 0.2);
}
.tier-card.is-elite:hover {
  border-color: rgba(210, 160, 110, 0.65);
  box-shadow:
    inset 0 0 60px rgba(224, 179, 132, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 36px 80px rgba(169, 118, 74, 0.46);
}
@media (min-width: 981px) {
  .tier-card--1, .tier-card--2 { margin-block: 22px; }
  .tier-card.is-elite { padding-top: 18px; }
}

/* ============ 合作機構（黑底無限跑馬燈） ============ */
.partners__marquee {
  overflow: hidden;
  margin-inline: calc(-1 * var(--pad));
  border-top: 1px dashed var(--line-on-dark);
  border-bottom: 1px dashed var(--line-on-dark);
  padding-block: clamp(28px, 4vw, 48px);
}
.partners__track {
  display: flex;
  width: max-content;
  animation: partnersMarquee 26s linear infinite;
}
/* 懸停暫停，移出繼續 */
.partners__marquee:hover .partners__track { animation-play-state: paused; }

.partners__group {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
  padding-right: clamp(44px, 6vw, 96px);
}
.partner__logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
  color: rgba(247, 247, 247, .4);
  transition: color .3s;
  cursor: default;
}
.partner__logo:hover { color: var(--c-accent); }

@keyframes partnersMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; }
}

/* ============ 7. CTA ============ */
.cta { text-align: center; overflow: hidden; }
.cta__rings { position: absolute; inset: 0; pointer-events: none; }
.cta__rings i {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(210, 160, 110, .14);
  border-radius: 50%;
}
.cta__rings i:nth-child(1) { width: 480px; height: 480px; }
.cta__rings i:nth-child(2) { width: 760px; height: 760px; border-color: rgba(210, 160, 110, .1); }
.cta__rings i:nth-child(3) { width: 1080px; height: 1080px; border-color: rgba(210, 160, 110, .07); }
.cta__rings i:nth-child(4) { width: 1440px; height: 1440px; border-color: rgba(210, 160, 110, .045); }

.cta__title {
  position: relative;
  font-size: var(--text-h2);
  font-weight: 300;
}
.cta__sub { position: relative; margin: 20px auto 0; max-width: 620px; opacity: .72; font-weight: 300; }

.cta__panels {
  position: relative;
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  gap: 28px;
  text-align: left;
}
@media (max-width: 820px) { .cta__panels { grid-template-columns: 1fr; } }

.cta-panel {
  position: relative;
  padding: 34px 30px;
  border: 1px dashed var(--line-on-dark);
  background: rgba(27, 21, 20, .72);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .35s;
}
.cta-panel:hover { border-color: rgba(210, 160, 110, .55); }
.cta-panel:hover .handle { transform: scale(1.35); }
.cta-panel__num { color: var(--c-accent); }
.cta-panel__title { font-size: 24px; font-weight: 500; }
.cta-panel__desc { opacity: .7; font-weight: 300; font-size: 15px; }
.cta-panel .btn { margin-top: 14px; align-self: flex-start; }

/* ============ 8. Footer ============ */
.footer {
  position: relative;
  padding: 0 var(--pad) 30px;
  overflow: hidden;
  border-top: 1px dashed var(--line-on-dark);
}

.footer__marquee {
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0;
  margin-inline: calc(-1 * var(--pad));
}
.footer__marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}
.footer__marquee-item {
  display: flex; align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 300;
  white-space: nowrap;
  line-height: 1.1;
}
.px-arrow { width: clamp(32px, 5vw, 64px); height: auto; flex: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer__grid-floor {
  position: absolute;
  left: -40%; right: -40%; bottom: 0;
  height: 56%;
  background-image:
    linear-gradient(rgba(210, 160, 110, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 160, 110, .16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%);
  mask-image: linear-gradient(180deg, transparent, #000 32%);
  pointer-events: none;
}

.footer__top {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(44px, 7vw, 104px) 0 clamp(36px, 5vw, 72px);
}
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr; } }

/* 品牌區 */
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.footer__brand-top { display: flex; align-items: center; gap: 11px; }
.footer__brand-mark { width: 28px; height: 28px; flex: none; }
.footer__brand-name { font-size: 19px; font-weight: 500; letter-spacing: .06em; }
.footer__brand-sub { opacity: .4; font-size: 10px; }
.footer__tagline { font-size: 14px; font-weight: 300; opacity: .58; line-height: 1.85; }

.footer__contact {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-on-dark);
}
.footer__contact div { display: flex; align-items: baseline; gap: 14px; }
.footer__contact dt { flex: none; width: 76px; opacity: .42; }
.footer__heading { color: var(--c-text); opacity: .9; margin-bottom: 14px; }
.footer__link { display: block; opacity: .75; transition: color .25s, opacity .25s; }
.footer__link:hover { opacity: 1; color: var(--c-accent); }
.footer__text { opacity: .5; font-size: 14px; margin-top: 6px; }

/* 站點地圖 */
.footer__sitemap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
@media (max-width: 620px) { .footer__sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.footer__col { display: flex; flex-direction: column; gap: 13px; }
.footer__col-head {
  color: var(--c-accent);
  opacity: .8;
  font-size: 10.5px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-on-dark);
}
.footer__sitelink {
  display: flex; align-items: center; gap: 0;
  font-size: 14px;
  opacity: .62;
  transition: opacity .25s, color .25s, gap .3s var(--ease-power4);
}
.footer__sitelink::before {
  content: '';
  width: 0; height: 1px;
  background: var(--c-accent);
  transition: width .3s var(--ease-power4);
}
.footer__sitelink:hover { opacity: 1; color: var(--c-accent); gap: 8px; }
.footer__sitelink:hover::before { width: 10px; }
.footer__sitelink.is-current { color: var(--c-accent); opacity: .95; gap: 8px; }
.footer__sitelink.is-current::before { width: 10px; }

.footer__legal {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-on-dark);
}
.footer__legal-links { display: flex; gap: 10px; opacity: .55; }
.footer__legal-links a { transition: color .25s; }
.footer__legal-links a:hover { color: var(--c-accent); }
.footer__legal-links span { opacity: .5; }
.footer__credits { opacity: .45; }

/* ============ Reveal 初始狀態（JS 啟用後） ============ */
html.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html.js-anim [data-reveal] { opacity: 1; transform: none; }
  .footer__marquee-track, .hero__scroll-arrow { animation: none; }
}

/* ============ 小螢幕導航：抽屜選單 ============ */
@media (max-width: 860px) {
  .nav { padding-block: 12px; }
  .nav__brand-sub { display: none; }
  .nav__brand { gap: 8px; }
  .nav__brand-text { font-size: 16px; }
  .nav__mark { width: 23px; height: 23px; }

  /* 漢堡按鈕 */
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px dashed var(--line-on-dark);
    border-radius: 5px;
    color: var(--c-text);
    transition: border-color .3s;
  }
  .nav__toggle:hover { border-color: rgba(210, 160, 110, .6); }
  .nav__toggle-label { font-size: 11px; }
  .nav__toggle-bars {
    position: relative;
    width: 16px; height: 11px;
    flex: none;
  }
  .nav__toggle-bars i {
    position: absolute; left: 0;
    width: 100%; height: 1.5px;
    background: var(--c-accent);
    transition: transform .34s var(--ease-power4), opacity .2s;
  }
  .nav__toggle-bars i:first-child { top: 1px; }
  .nav__toggle-bars i:last-child { bottom: 1px; }
  /* 開啟時兩條線交叉成 × */
  .nav.is-menu-open .nav__toggle-bars i:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle-bars i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  /* 抽屜面板 */
  .nav__panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100svh;
    padding: calc(68px + var(--pad)) var(--pad) calc(var(--pad) + 16px);
    background: rgba(20, 16, 16, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px dashed var(--line-on-dark);
    z-index: -1; /* 襯在 header 列之下，logo 與按鈕仍可點 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .42s var(--ease-power4), transform .42s var(--ease-power4), visibility .42s;
    overflow-y: auto;
  }
  .nav.is-menu-open .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* 編號式大連結 */
  .nav__links {
    flex-direction: column;
    gap: 4px;
    border-top: 1px dashed var(--line-on-dark);
  }
  .nav__link {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 20px 2px;
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 300;
    border-bottom: 1px dashed var(--line-on-dark);
    /* 逐項錯開進場 */
    translate: 0 16px;
    opacity: 0;
    transition: translate .5s var(--ease-power4), opacity .5s var(--ease-power4), color .25s;
  }
  .nav.is-menu-open .nav__link { translate: 0 0; opacity: .9; }
  .nav.is-menu-open .nav__links > .nav__link:nth-child(1) { transition-delay: .08s; }
  .nav.is-menu-open .nav__links > .nav__link:nth-child(2) { transition-delay: .14s; }
  .nav.is-menu-open .nav__group > .nav__link { transition-delay: .2s; }
  .nav.is-menu-open .nav__links > .nav__link:nth-child(4) { transition-delay: .26s; }
  .nav__link::after { display: none; }
  .nav__link-num {
    display: inline-block;
    color: var(--c-accent);
    opacity: .75;
    font-size: 12px;
  }

  /* 子選單：在抽屜內改為縮排的展開清單 */
  .nav__group {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px dashed var(--line-on-dark);
  }
  .nav__group > .nav__link { flex: 1; border-bottom: none; }
  .nav__sub-toggle {
    width: 44px;
    align-self: center;
    height: 44px;
    border: 1px dashed var(--line-on-dark);
    border-radius: 5px;
    opacity: .8;
  }
  .nav__sub-toggle svg { width: 12px; height: 12px; }

  .nav__sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 16px 32px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none;
  }
  .nav__sub::before { display: none; }
  .nav__sub .handle { display: none; }
  /* 抽屜內只由 is-open 控制展開，hover / focus 不介入 */
  .nav__group.is-open .nav__sub { display: flex; }
  .nav__sub-link { padding: 9px 10px; }
  .nav__sub-link b { font-size: 15px; }

  /* 面板底部動作列 */
  .nav__actions {
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px dashed var(--line-on-dark);
    translate: 0 16px;
    opacity: 0;
    transition: translate .5s var(--ease-power4) .26s, opacity .5s var(--ease-power4) .26s;
  }
  .nav.is-menu-open .nav__actions { translate: 0 0; opacity: 1; }
  .nav__lang, .nav__login { display: inline-flex; font-size: 13px; }
  .nav__actions .btn { margin-left: auto; }
}

/* 選單開啟時鎖住背景捲動 */
body.is-menu-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav__panel, .nav__link, .nav__actions, .nav__toggle-bars i { transition-duration: .01ms; }
}

/* ============================================================
   手機抽屜選單 v2（≤ 860px）
   實心暖黑面板＋淡金網格；編號大連結貼齊頁面邊距，目前頁以金色細線標示；
   登入後在底部加帳號區塊，視角按鈕整寬。
   ============================================================ */
.nav__acct { display: none; }
@media (max-width: 860px) {
  .nav__panel {
    gap: 28px;
    padding: calc(64px + 20px) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(to right, rgba(210, 160, 110, .06) 1px, transparent 1px) 0 0 / 72px 72px,
      linear-gradient(to bottom, rgba(210, 160, 110, .06) 1px, transparent 1px) 0 0 / 72px 72px,
      #141010;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  /* 網格只留在上半部，向下淡出 */
  .nav__panel::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(20, 16, 16, 0) 0%, #141010 62%);
  }
  .nav__panel > * { position: relative; }

  /* 登入狀態的「連結置中」只屬於桌面頂列 */
  .nav.is-authed .nav__links { margin-inline: 0; }

  .nav__links { gap: 0; }
  .nav__links > .nav__link, .nav__group > .nav__link {
    position: relative;
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 0;
    min-height: 72px; padding: 14px 4px 14px 0;
    font-size: clamp(26px, 7.4vw, 34px); font-weight: 300; letter-spacing: .01em; line-height: 1.15;
  }
  .nav__links > .nav__link::after {
    content: '→'; display: block; position: static; width: auto; height: auto; background: none; transform: none;
    font-family: var(--mono); font-size: 14px; color: rgba(247, 247, 247, .3);
    transition: transform .35s var(--ease-power4), color .25s;
  }
  .nav__link-num { font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: 1; color: rgba(210, 160, 110, .8); }
  .nav__link-num::before { content: '['; opacity: .6; }
  .nav__link-num::after { content: ']'; opacity: .6; }
  .nav.is-menu-open .nav__link { opacity: 1; }
  .nav__link:active { color: var(--c-accent); }
  .nav__links > .nav__link:active::after { transform: translateX(4px); color: var(--c-accent); }
  /* 目前頁：金色字＋左側 2px 金線 */
  .nav__link.is-current { color: var(--c-accent); }
  .nav__link.is-current::before { content: ''; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 2px; background: var(--c-accent); }
  .nav__link.is-current .nav__link-num { color: var(--c-accent); }

  /* 精英俱樂部：右側展開鈕，子頁以 2×2 小格展開 */
  .nav__group > .nav__link { grid-template-columns: 44px minmax(0, 1fr); padding-right: 12px; }
  .nav__sub-toggle { width: 48px; height: 48px; border-radius: 4px; opacity: 1; color: var(--c-accent); }
  .nav__sub-toggle[aria-expanded="true"] { border-style: solid; border-color: rgba(210, 160, 110, .6); background: rgba(210, 160, 110, .08); }
  .nav__sub { padding: 0 0 18px 44px; }
  .nav__group.is-open .nav__sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav__sub-link { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border: 1px dashed var(--line-on-dark); border-radius: 4px; }
  .nav__sub-link span { font-size: 10px; opacity: .8; }
  .nav__sub-link b { font-size: 15px; font-weight: 500; }
  .nav__sub-link em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.5; white-space: normal; }
  .nav__sub-link.is-current { border-style: solid; border-color: rgba(210, 160, 110, .55); }
  @media (max-width: 360px) { .nav__group.is-open .nav__sub { grid-template-columns: minmax(0, 1fr); } }

  /* 帳號區塊（登入後） */
  .nav__acct {
    display: flex; flex-direction: column; gap: 0; margin-top: auto;
    border: 1px dashed var(--line-on-dark); border-radius: 6px; background: #1B1514;
    translate: 0 16px; opacity: 0;
    transition: translate .5s var(--ease-power4) .3s, opacity .5s var(--ease-power4) .3s;
  }
  .nav.is-menu-open .nav__acct { translate: 0 0; opacity: 1; }
  .nav__acct-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; }
  .nav__acct-who b { display: block; font-size: 17px; font-weight: 500; }
  .nav__acct-who small { display: block; margin-top: 3px; font-size: 12px; color: rgba(247, 247, 247, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav__acct-who em { margin-right: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--c-accent); }
  .nav__acct-id i { font-style: normal; font-family: var(--mono); color: rgba(247, 247, 247, .4); }
  .nav__acct-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px dashed var(--line-on-dark); }
  .nav__acct-links a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; font-size: 13.5px; color: rgba(247, 247, 247, .8); transition: color .25s, background-color .25s; }
  .nav__acct-links a + a { border-left: 1px dashed var(--line-on-dark); }
  .nav__acct-links a:active { color: var(--c-accent); background: rgba(210, 160, 110, .06); }
  .nav__acct-n { min-width: 18px; padding: 1px 6px; border-radius: 3px; background: var(--c-accent); color: #16120F; font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-align: center; }
  .nav__acct-n.is-mute { background: rgba(247, 247, 247, .1); color: rgba(247, 247, 247, .75); }

  /* 底部動作列：語言在左；訪客為登入＋加入，登入後視角按鈕整寬 */
  .nav__actions { flex-wrap: wrap; gap: 12px 16px; padding-top: 18px; }
  .nav.is-authed .nav__acct + .nav__actions { border-top: 0; padding-top: 0; }
  .nav.is-authed .nav__actions .nav__cta { flex: 1 1 100%; order: -1; justify-content: space-between; margin: 0; padding-block: 12px; }
  .nav__login { padding: 12px 18px; border: 1px dashed var(--line-on-dark); border-radius: 5px; }
  .nav:not(.is-authed) .nav__actions .btn { flex: 1; justify-content: space-between; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .nav__acct { transition-duration: .01ms; }
}

/* 註冊完成回到原頁：剛解鎖的門控區塊金色閃一次 */
.is-flash { animation: gateFlash 2.2s var(--ease-power4); border-radius: 8px; }
@keyframes gateFlash { 0%, 40% { box-shadow: 0 0 0 2px rgba(210, 160, 110, .85), 0 0 40px rgba(210, 160, 110, .35); } 100% { box-shadow: 0 0 0 0 rgba(210, 160, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .is-flash { animation: none; outline: 2px solid var(--c-accent); outline-offset: 4px; } }
