/* 台股里長伯 落地頁 v3 — 深色電影感：炭黑底、暖白襯線、細金線、極少色。 */
:root {
  --bg: #0b0d11;
  --bg-2: #10131a;
  --bg-3: #171b23;
  --ink: #f3efe6;
  --ink-2: rgb(243 239 230 / 0.68);
  --ink-3: rgb(243 239 230 / 0.42);
  --hair: rgb(243 239 230 / 0.12);
  --gold: #d2b77f;
  --gold-2: #b89a5e;
  --gold-ink: #15120a;
  --line-green: #06c755;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", -apple-system, "PingFang TC", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--gold-ink); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 99; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #e3cb95; }
.btn-gold svg { color: #0a7a3a; }
.btn-ghost { border: 1px solid rgb(243 239 230 / 0.28); color: var(--ink); background: rgb(11 13 17 / 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost svg { color: var(--line-green); }
.btn-line { color: var(--ink); padding-inline: 10px; }
.btn-line:hover { color: var(--gold); }
.btn-line svg { width: 14px; height: 14px; }
.btn.big { height: 60px; padding: 0 34px; font-size: 17px; }

/* 導覽 */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); transition: background 0.4s, padding 0.4s; }
.nav.solid { background: rgb(11 13 17 / 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--ink-2); }
.nav-links a { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; transition: opacity 1.2s var(--ease); }
.hero-media video.out { opacity: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 13 17 / 0.55) 0%, rgb(11 13 17 / 0.15) 35%, rgb(11 13 17 / 0.78) 70%, var(--bg) 100%), linear-gradient(90deg, rgb(11 13 17 / 0.82) 0%, rgb(11 13 17 / 0.3) 45%, rgb(11 13 17 / 0) 70%); }
.hero-inner { position: relative; z-index: 1; padding: 140px var(--gutter) clamp(96px, 12vh, 140px); max-width: 860px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 26px; }
.rule { width: 40px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7.2vw, 108px); line-height: 1.08; letter-spacing: -0.01em; }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.hero-now { position: absolute; right: var(--gutter); bottom: 36px; z-index: 1; display: grid; justify-items: end; gap: 6px; text-align: right; }
.now-label { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); }
.now-title { font-family: var(--serif); font-size: 16px; transition: opacity 0.4s; }
.now-title.out { opacity: 0; }
.now-dots { display: flex; gap: 6px; margin-top: 4px; }
.now-dots i { width: 18px; height: 2px; background: var(--hair); transition: background 0.4s; }
.now-dots i.on { background: var(--gold); }

/* 數字列 */
.stats { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats-row > div { padding: 28px 0; display: grid; gap: 2px; }
.stats-row > div + div { border-left: 1px solid var(--hair); padding-left: 28px; }
.stats-row strong { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 44px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats-row span { font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; }

/* 區塊標題 */
section { padding: clamp(80px, 10vw, 140px) 0 0; }
.sec-head { margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -0.01em; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 18px); max-width: 36em; }

/* 試看：橫向片帶 */
.reel-sec { padding-bottom: 0; }
.reel-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.reel-track::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.reel-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.reel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; }
.reel:hover .reel-media img { transform: scale(1.04); }
.reel-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity 0.3s; background: rgb(11 13 17 / 0.3); }
.reel-play svg { width: 48px; height: 48px; padding: 14px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.6); backdrop-filter: blur(6px); }
.reel:hover .reel-play, .reel:focus-visible .reel-play { opacity: 1; }
.reel-time { position: absolute; right: 10px; bottom: 10px; font-size: 11px; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: rgb(11 13 17 / 0.7); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reel-no { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: 0.12em; margin-top: 6px; }
.reel-title { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3; }
.reel-hook { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* 五個系列 */
.series-list { border-top: 1px solid var(--hair); }
.series { border-bottom: 1px solid var(--hair); }
.series summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto 32px; align-items: center; gap: 20px; padding: 28px 0; transition: color 0.25s; }
.series summary::-webkit-details-marker { display: none; }
.series summary:hover .s-name { color: var(--gold); }
.s-no { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); color: var(--gold); line-height: 1; }
.s-main { display: grid; gap: 4px; }
.s-name { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; transition: color 0.25s; }
.s-blurb { font-size: 14px; color: var(--ink-2); }
.s-count { font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-chev { color: var(--ink-3); display: grid; place-items: center; transition: transform 0.4s var(--ease), color 0.25s; }
.s-chev svg { width: 20px; height: 20px; }
.series[open] .s-chev { transform: rotate(90deg); color: var(--gold); }
.s-body { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; padding: 4px 0 40px 84px; }
.s-cover { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-3); position: sticky; top: 96px; }
.s-cover img { width: 100%; height: 100%; object-fit: cover; }
.eps { display: grid; }
.ep { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: 16px; transition: color 0.2s; }
.ep:hover { color: var(--gold); }
.ep-no { font-family: var(--serif); font-size: 13px; color: var(--ink-3); letter-spacing: 0.1em; }
.ep-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.06em; color: var(--gold); white-space: nowrap; }
.ep.lock .ep-tag { color: var(--ink-3); }
.ep.lock:hover .ep-tag { color: var(--gold); }
.ep-tag svg { width: 13px; height: 13px; }

/* 教學筆記 */
.notes-list { border-top: 1px solid var(--hair); }
.note { border-bottom: 1px solid var(--hair); }
.note summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 32px; align-items: center; gap: 20px; padding: 24px 0; }
.note summary::-webkit-details-marker { display: none; }
.note-no { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); color: var(--gold); line-height: 1; }
.note-title { font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2vw, 26px); line-height: 1.3; transition: color 0.25s; }
.note summary:hover .note-title { color: var(--gold); }
.note[open] .s-chev { transform: rotate(90deg); color: var(--gold); }
.note-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 0 0 36px 76px; }
.note-text p { color: var(--ink-2); font-size: 16px; line-height: 1.85; max-width: 40em; }
.note-text p + p { margin-top: 14px; }
.note-side { display: grid; gap: 12px; align-content: start; }
.note-side img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.note-side p { font-size: 13px; color: var(--ink-3); }
.note-side .btn-line { justify-self: start; }

/* 關於 */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.about-text p { color: var(--ink-2); font-size: 16px; line-height: 1.85; max-width: 40em; }
.about-text p + p { margin-top: 14px; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; border-top: 1px solid var(--hair); padding-top: 20px; }
.about-facts li { font-size: 13px; color: var(--ink-3); display: grid; gap: 2px; }
.about-facts strong { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--gold); line-height: 1; }

/* 鎖定集說明卡 */
.p-lock { position: absolute; inset: 0; z-index: 2; background: var(--bg-2); }
.p-lock[hidden] { display: none; }
.p-lock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; filter: blur(2px); }
.p-lock-text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.p-lock-text strong { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.35; max-width: 18em; margin-bottom: 6px; }
.ep.lock { cursor: pointer; }

/* 隱私權頁 */
.legal-body { padding: 130px 0 80px; }
.legal-body h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; }
.legal-date { color: var(--ink-3); font-size: 13px; margin: 10px 0 36px; }
.legal-body h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 32px 0 10px; }
.legal-body p { color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.legal-body p + p { margin-top: 10px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--gold); }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.steps li { padding: 36px 32px 36px 0; display: grid; gap: 12px; align-content: start; }
.steps li + li { border-left: 1px solid var(--hair); padding-left: 32px; }
.step-no { font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }
.steps strong { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.steps p { color: var(--ink-2); font-size: 15px; }
.how-cta { margin-top: 48px; }

/* 原則 */
.creed { padding-top: clamp(96px, 12vw, 160px); }
.creed-text { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 44px); line-height: 1.5; letter-spacing: -0.005em; text-align: center; color: var(--ink); max-width: 20em; margin-inline: auto; }

/* FAQ */
.faq-list { border-top: 1px solid var(--hair); }
.faq { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq-plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--gold); translate: -50% -50%; transition: rotate 0.35s var(--ease); }
.faq-plus::after { rotate: 90deg; }
.faq[open] .faq-plus::after { rotate: 0deg; }
.faq p { color: var(--ink-2); font-size: 16px; padding: 0 0 24px; max-width: 42em; }

/* 收尾 */
.final { padding: clamp(120px, 16vw, 220px) 0; text-align: center; background: radial-gradient(60% 50% at 50% 100%, rgb(210 183 127 / 0.12), rgb(210 183 127 / 0) 70%); }
.final h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 8vw, 120px); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 40px; }
.foot { border-top: 1px solid var(--hair); padding: 36px 0 120px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { font-size: 12px; color: var(--ink-3); max-width: 46em; }

/* dock */
.dock { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30; transform: translate(-50%, 150%); transition: transform 0.6s var(--ease); }
.dock.on { transform: translate(-50%, 0); }
.dock .btn { box-shadow: 0 20px 50px -10px rgb(0 0 0 / 0.7); }

/* 播放器 */
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.player[hidden], .p-end[hidden] { display: none; }
.player-scrim { position: absolute; inset: 0; background: rgb(5 6 8 / 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.35s; }
.player-card { position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg-2); border: 1px solid var(--hair); border-radius: 12px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); opacity: 0; transform: translateY(20px) scale(0.985); transition: opacity 0.4s var(--ease), transform 0.55s var(--ease); }
.player.on .player-scrim { opacity: 1; }
.player.on .player-card { opacity: 1; transform: none; }
.p-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(11 13 17 / 0.7); color: var(--ink); border: 1px solid var(--hair); }
.p-close svg { width: 18px; height: 18px; }
.p-video { position: relative; background: #000; aspect-ratio: 16 / 9; align-self: center; }
.p-video video { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-end { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: rgb(11 13 17 / 0.9); padding: 24px; }
.p-end-k { font-size: 12px; letter-spacing: 0.2em; color: var(--ink-3); }
.p-end strong { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.again { font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 4px; }
.p-body { padding: 36px 32px 32px; display: grid; gap: 14px; align-content: start; }
.p-ep { font-size: 12px; letter-spacing: 0.16em; color: var(--gold); }
.p-body h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.p-hook { color: var(--ink-2); font-size: 15px; }
.p-points { display: grid; gap: 10px; border-top: 1px solid var(--hair); padding-top: 16px; }
.p-points li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; font-size: 14px; color: var(--ink-2); }
.p-points li::before { content: ""; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
.p-cta { margin-top: 10px; justify-self: start; }

/* 進場 */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
  .js [data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
  .js .reel-track[data-reveal] .reel { opacity: 0; transform: translateX(28px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i) * 80ms + 100ms); }
  .js .reel-track[data-reveal].in .reel { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* 平板／手機 */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .stats-row { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .stats-row > div + div { padding-left: 18px; }
  .s-body { grid-template-columns: 1fr; padding-left: 0; gap: 24px; }
  .s-cover { position: static; }
  .steps { grid-template-columns: 1fr; }
  .note-body { grid-template-columns: 1fr; padding-left: 0; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; }
  .player-card { grid-template-columns: 1fr; }
  .p-video { align-self: start; }
}
@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero-inner { padding-top: 120px; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-actions .btn-gold { width: 100%; }
  .hero-now { left: var(--gutter); right: var(--gutter); bottom: 24px; justify-items: start; text-align: left; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stats-row > div { padding: 18px 0; }
  .stats-row > div + div { border-left: 0; padding-left: 0; }
  .stats-row > div:nth-child(n+4) { border-top: 1px solid var(--hair); }
  .stats-row strong { font-size: 28px; }
  .series summary { grid-template-columns: 40px 1fr 24px; }
  .s-count { grid-column: 2; }
  .s-chev { grid-column: 3; grid-row: 1; }
  .series summary .s-no { align-self: start; }
  .ep { grid-template-columns: 32px 1fr auto; font-size: 15px; }
  .note summary { grid-template-columns: 36px 1fr 24px; gap: 12px; }
  .foot { padding-bottom: 110px; }
  .dock .btn { height: 54px; }
  .p-body { padding: 24px 20px 28px; }
  .p-cta { width: 100%; }
}
