/* 觀淵號（2026-11-20 跟 Bathy 軟體、官網同一套）：接近全黑的深海，米白是唯一的強調色，用在「可以按」和「目前深度」；綠只表示完成、通過。
   變數名字沿用（sea、foam），顏色換了 */
:root {
  --sea-0: #050607;
  --sea-1: #0c0d0f;
  --sea-2: #131517;
  --sea-3: #1b1e21;
  --line: #1f2226;
  --line-2: #31353b;
  --ink: #edede9;
  --ink-2: #ababa6;
  --ink-3: #85857f;
  --foam: #ece4d6;
  --foam-ink: #15120b;
  --foam-dim: rgb(236 228 214 / 0.11);
  --coral: #f08d74;
  --ok: #8fd19e;
  --r-lg: 14px;
  --r: 9px;
  --r-sm: 6px;
  --f-text: "Noto Sans TC", system-ui, sans-serif;
  --f-head: "Noto Sans TC", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sea-0);
  background-image: radial-gradient(ellipse 70% 420px at 50% 0, rgb(236 228 214 / .05), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 15.5px/1.75 var(--f-text);
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--foam); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--foam); color: var(--foam-ink); padding: 6px 12px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3, .kw, .btn, .nav a, .tag { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--f-head); font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ── 頁首 ── */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 28px;
  padding: 12px max(16px, calc((100vw - var(--wrap)) / 2));
  background: rgb(5 6 7 / 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 700 18px var(--f-head); letter-spacing: 0.08em; }
.brand-mark { width: 24px; height: 24px; color: var(--foam); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: var(--r-sm); font-size: 14.5px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--sea-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sea-3); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who img { width: 28px; height: 28px; border-radius: 50%; }
.who .tier { font: 500 12px var(--f-mono); color: var(--foam); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; text-decoration: none; transition: border-color .15s; }
.who .tier:hover { border-color: rgb(236 228 214 / .5); }
.who .tier .crew { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line-2); color: var(--ink-2, inherit); opacity: .8; }

main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 40px 16px 72px; }
main:focus { outline: none; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px max(16px, calc((100vw - var(--wrap)) / 2)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ── 按鈕 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--sea-2); color: var(--ink);
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--sea-3); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--foam); border-color: var(--foam); color: var(--foam-ink); }
.btn.primary:hover { background: #f7f1e6; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link:hover { color: var(--ink); }

/* ── 首頁 ── */
.hero { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; padding: 24px 0 56px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; margin: 0 0 18px; }
.hero p.lead { color: var(--ink-2); font-size: 17px; max-width: 32em; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .cta small { color: var(--ink-3); font-size: 13px; }
.sonar { position: relative; aspect-ratio: 1; max-width: 340px; width: 100%; justify-self: center; }
.sonar svg { width: 100%; height: 100%; }
.sonar .sweep { transform-origin: 50% 50%; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sonar .sweep { animation: none; } }

.notice { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border: 1px solid rgb(236 228 214 / .28); border-radius: var(--r); background: var(--foam-dim); margin-bottom: 28px; }
.notice .cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notice.warn { border-color: rgb(240 141 116 / .32); background: rgb(240 141 116 / .08); }

.decks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.deck { background: var(--sea-1); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: background .15s; }
.deck:hover { background: var(--sea-2); }
.deck .lvl { font: 500 12px var(--f-mono); color: var(--ink-3); letter-spacing: 0.06em; }
.deck h3 { margin: 0; font-size: 19px; }
.deck p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.deck .go { margin-top: auto; padding-top: 8px; color: var(--foam); font-size: 14px; }

.mission { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--sea-1); padding: 22px 24px; margin: 0 0 36px; }
.mission-h { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.mission-h h2 { margin: 0; font-size: 19px; }
.mission-h span { color: var(--ink-2); font-size: 14px; }
.mission-h b { color: var(--foam); font-weight: 500; }
.mission ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.mission li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mission li:last-child { border-bottom: 0; }
.mission .ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font: 500 12px var(--f-mono); color: var(--ink-3); }
.mission li.done .ck { background: var(--foam); border-color: var(--foam); color: var(--foam-ink); }
.mission li a { text-decoration: none; }
.mission li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mission li.done a { color: var(--ink-2); }
.mission .num { font-size: 13px; color: var(--ink-3); }
.mission.compact { padding: 16px 20px; margin-bottom: 28px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 56px 0 18px; }
.section-h h2 { margin: 0; font-size: 22px; }
.section-h a { color: var(--ink-2); font-size: 14px; }
/* 首頁：為什麼用 Bathy */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why-item { background: var(--sea-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; }
.why-item b { display: block; font-size: 15px; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ── 入門課：深度表 ── */
.page-h { margin-bottom: 32px; }
.page-h h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; line-height: 1.3; }
.page-h p { margin: 0; color: var(--ink-2); max-width: 40em; }
.depth-now { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 16px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.depth-now b { font: 500 15px var(--f-mono); color: var(--foam); }

.dive { list-style: none; margin: 0; padding: 0; position: relative; }
.dive::before { content: ""; position: absolute; left: 92px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--line-2), var(--line) 70%, transparent); }
.dive li { position: relative; display: grid; grid-template-columns: 80px 26px 1fr; gap: 0 16px; align-items: start; }
.dive .m { font: 500 13px var(--f-mono); color: var(--ink-3); text-align: right; padding-top: 22px; white-space: nowrap; }
.dive .dot { width: 14px; height: 14px; margin: 24px 0 0 6px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--sea-0); position: relative; z-index: 1; }
.dive li.done .dot { background: var(--foam); border-color: var(--foam); }
.dive li.done .m { color: var(--foam); }
.unit-card { display: block; text-decoration: none; padding: 16px 20px; margin: 6px 0; border-radius: var(--r); border: 1px solid transparent; transition: background .15s, border-color .15s; }
.unit-card:hover { background: var(--sea-1); border-color: var(--line); }
.unit-card .t { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.unit-card h3 { margin: 0; font-size: 18px; }
.unit-card .meta { font: 400 12.5px var(--f-mono); color: var(--ink-3); }
.unit-card p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.unit-card.locked h3 { color: var(--ink-2); }
.tag { font: 500 11.5px var(--f-mono); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3); }
.tag.foam { color: var(--foam); border-color: rgb(236 228 214 / .35); }
.tag.coral { color: var(--coral); border-color: rgb(240 141 116 / .35); }

/* ── 單元內容 ── */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; }
.crumb { font: 500 13px var(--f-mono); color: var(--ink-3); margin-bottom: 10px; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.prose { max-width: 38em; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--foam); }
.video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--sea-1); border: 1px solid var(--line); margin-bottom: 28px; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }
.video.tall { aspect-ratio: 9 / 16; width: auto; height: min(70vh, 676px); max-width: 100%; margin-inline: auto; }
.guide-v { margin-bottom: 36px; }
.guide-v h2 { font-size: 20px; margin: 0 0 6px; }
.guide-v p { color: var(--ink-2); margin: 0 0 16px; }
.video.empty { display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }
.side { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.side .box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--sea-1); }
.side .box h4 { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* 練習題 */
.quiz { margin-top: 48px; }
.quiz > h2 { font-size: 22px; margin: 0 0 4px; }
.quiz > p { color: var(--ink-2); margin: 0 0 20px; font-size: 14.5px; }
.q { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 14px; background: var(--sea-1); }
.q .qn { font: 500 12px var(--f-mono); color: var(--ink-3); }
.q h3 { font-size: 16.5px; margin: 4px 0 14px; font-family: var(--f-text); font-weight: 500; line-height: 1.6; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); cursor: pointer; line-height: 1.6; transition: border-color .15s, background .15s; }
.opt:hover:not([disabled]) { border-color: var(--ink-3); background: var(--sea-2); }
.opt .k { font: 500 13px var(--f-mono); color: var(--ink-3); padding-top: 1px; }
.opt.right { border-color: var(--ok); background: rgb(143 209 158 / .08); }
.opt.wrong { border-color: var(--coral); background: rgb(240 141 116 / .07); }
.opt[disabled] { cursor: default; }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--sea-2); font-size: 14.5px; color: var(--ink-2); }
.explain b { color: var(--ink); }

/* ── 表單、列表 ── */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sea-1); padding: 22px; }
.panel h2 { font-size: 19px; margin: 0 0 4px; }
.panel > p.sub { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .lbl { font-size: 13.5px; color: var(--ink-2); }
.field input[type=text], .field input[type=datetime-local], .field textarea { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--foam); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 14px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--sea-3); color: var(--ink); }
.file { position: relative; display: inline-flex; width: fit-content; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file:focus-within { outline: 2px solid var(--foam); outline-offset: 2px; border-radius: var(--r); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.err { color: var(--coral); font-size: 14px; margin: 0 0 12px; }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 4px; text-decoration: none; }
.list .s { white-space: nowrap; }
.list a:hover { background: var(--sea-1); }
.list .t { font-weight: 500; }
.list .d { font: 400 12.5px var(--f-mono); color: var(--ink-3); grid-column: 1; }
.list .s { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.empty-note { color: var(--ink-3); padding: 28px 4px; font-size: 14.5px; }

.thread { max-width: 760px; }
.msg { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 14px; background: var(--sea-1); }
.msg.staff { border-color: rgb(236 228 214 / .3); }
.msg .h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.msg .h b { color: var(--ink); font-weight: 500; font-size: 14px; }
.msg .b { white-space: pre-wrap; overflow-wrap: anywhere; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.shots a img { border-radius: var(--r); border: 1px solid var(--line-2); }
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 18px; }

/* ── 方案 ── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sea-1); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.main { border-color: rgb(236 228 214 / .45); background: linear-gradient(180deg, var(--foam-dim), var(--sea-1) 45%); }
.plan .depth { font: 500 12px var(--f-mono); color: var(--ink-3); letter-spacing: .06em; }
.plan h3 { margin: 6px 0 2px; font: 700 22px var(--f-head); }
.plan .price { margin: 10px 0 2px; font: 500 26px var(--f-mono); }
.plan .price small { font-size: 13px; color: var(--ink-3); }
.plan .note { color: var(--ink-3); font-size: 13px; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: 14.5px; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--foam); }
.plan .btn { margin-top: auto; }
.routes { margin-top: 48px; }
.routes table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.routes th, .routes td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.routes th { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.fineprint { color: var(--ink-3); font-size: 13px; margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--sea-3); border: 1px solid var(--line-2); padding: 10px 18px; border-radius: var(--r); font-size: 14px; z-index: 20; box-shadow: 0 8px 30px rgb(0 0 0 / .4); }
.skeleton { color: var(--ink-3); padding: 40px 0; }

/* ── 手機 ── */
@media (max-width: 1080px) and (min-width: 861px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .bar { gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -6px; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
  .who .name { display: none; }
  main { padding-top: 28px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 4px; }
  .sonar { max-width: 200px; order: -1; justify-self: start; }
  .decks, .plans { grid-template-columns: 1fr; }
  .reader, .cols { grid-template-columns: 1fr; gap: 28px; }
  .side { position: static; }
  .dive::before { left: 66px; }
  .dive li { grid-template-columns: 54px 26px minmax(0, 1fr); gap: 0 8px; }
  .dive .m { font-size: 11px; }
  .unit-card { padding: 14px 8px; }
  .routes table, .routes tbody, .routes tr, .routes td { display: block; }
  .routes thead { display: none; }
  .routes tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .routes td { border: 0; padding: 2px 0; }
  .routes td:first-child { font-weight: 500; }
}

/* ── 上船、艦長室設定 ── */
.board { max-width: 640px; }
.rules { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sea-1); }
.rules li::before { content: counter(r); font: 500 13px var(--f-mono); color: var(--foam); padding-top: 2px; }
.board-act { display: grid; gap: 10px; justify-items: start; }
.sub-lead { color: var(--ink-2); margin: -8px 0 18px; }
.seg.tabs { display: inline-flex; }
.segl { padding: 7px 14px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.segl + .segl { border-left: 1px solid var(--line-2); }
.segl[aria-current="page"] { background: var(--sea-3); color: var(--ink); }
.checks { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 12px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.checks .tag { min-width: 44px; text-align: center; }
.setup-act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.setup-more { display: grid; gap: 12px; padding: 16px 0; border-top: 1px dashed var(--line-2); }
.setup-more > div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.setup-log { white-space: pre-wrap; background: var(--sea-0); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font: 13px/1.7 var(--f-mono); color: var(--ink-2); max-height: 320px; overflow: auto; }
.secret { display: flex; gap: 8px; align-items: center; }
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12.5px var(--f-mono); background: var(--sea-0); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px; }
.rule-sec { margin: 0 0 18px; }
.rule-sec h2 { font-size: 16px; margin: 0 0 4px; font-family: var(--f-text); font-weight: 700; }
.rule-sec p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.board-act { margin-top: 28px; }
.board-act .pick { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; width: 100%; }
.board-act .pick legend { padding: 0; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.board-act .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.board-act .chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--sea-1); color: var(--ink-2); font: inherit; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.board-act .chip:hover { border-color: var(--foam); color: var(--ink); }
.board-act .chip[aria-pressed="true"] { border-color: var(--foam); background: color-mix(in srgb, var(--foam) 16%, var(--sea-1)); color: var(--ink); }
.board-act #stuck-more { box-sizing: border-box; margin-top: 10px; width: min(100%, 420px); padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); color: var(--ink); font: inherit; }
.perm { margin-top: 48px; }
.perm-group { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.perm-group li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); }
.perm-group li:first-child { border-top: 0; }
.perm-group li.cat { background: var(--sea-2); font-weight: 500; }
.perm-group li.child .nm { padding-left: 14px; color: var(--ink-2); }
.perm-group .nm { display: flex; gap: 8px; align-items: center; min-width: 0; }
.perm-group .mk { color: var(--ink-3); font-family: var(--f-mono); width: 1.2em; }
.perm-group select { background: var(--sea-0); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 8px; font-size: 14px; max-width: 52%; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 10px 2px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.4em; color: var(--foam); font-family: var(--f-mono); }
.faq details[open] summary::before { content: "−"; }
.faq p { margin: 0 0 12px 1.4em; color: var(--ink-2); font-size: 14.5px; }
.sel { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); }

/* ───── 付款 ───── */
.pay-btns { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pay-btns .btn { margin-top: 0; }
.pay-test { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sub-box { border: 1px solid rgb(236 228 214 / .35); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--foam-dim), var(--sea-1) 60%); padding: 24px; max-width: 620px; }
.sub-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-top h2 { margin: 0; font-size: 22px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 20px 0 6px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.sub-box .sub { color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }
.cancel-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.danger { border-color: rgb(240 141 116 / .6); color: var(--coral); }
.sub-hist li { padding: 14px 4px; }
.sub-hist .meta { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table.subs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.subs th, table.subs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.subs th { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.dim { color: var(--ink-3); }
.field input[inputmode=numeric] { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); font-family: var(--f-mono); }
.nowrap { white-space: nowrap; }

/* ───── 報單 ───── */
.call-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; }
.call-stats > div { background: var(--sea-1); padding: 16px 18px; display: grid; gap: 4px; }
.call-stats span { color: var(--ink-3); font-size: 13px; }
.call-stats b { font: 500 24px var(--f-mono); }
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.call { min-width: 0; }
.call { border: 1px solid var(--line); border-radius: var(--r); background: var(--sea-1); padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.call.long .side { color: var(--foam); }
.call.short .side { color: var(--coral); }
.call header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.call header b { font: 600 18px var(--f-mono); }
.call .side { font-size: 13.5px; color: var(--ink-2); }
.call header > :last-child { margin-left: auto; }
.call-res { font: 600 18px var(--f-mono); }
.call-res small { font-size: 12px; margin-left: 6px; color: var(--ink-3); font-weight: 500; }
.call-res.up { color: var(--foam); }
.call-res.down { color: var(--coral); }
.call-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.call-kv dt { color: var(--ink-3); font-family: var(--f-body, inherit); }
.call-kv dd { margin: 0; }
.call-note { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.call-ev { list-style: none; padding: 10px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; }
.call-ev li { display: flex; gap: 10px; }
.call footer { font-size: 12.5px; }
.call-act { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.call-row { display: flex; gap: 6px; flex-wrap: wrap; }
.call-row input { flex: 1 1 90px; min-width: 0; padding: 7px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); }
.field.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.field.two > div { display: grid; gap: 6px; }
.field input[inputmode=decimal], .field #c-sym { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); font-family: var(--f-mono); }
.field textarea#c-note { min-height: 90px; }
@media (max-width: 860px) { .call-stats { grid-template-columns: repeat(2, 1fr); } }
.drafts { margin-bottom: 32px; }
.call.draft { border-color: rgb(236 228 214 / .45); background: linear-gradient(180deg, var(--foam-dim), var(--sea-1) 70%); }
.call.draft.focus { box-shadow: 0 0 0 2px rgb(236 228 214 / .5); }
.draft-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.draft-f label { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-3); }
.draft-f label:last-child { grid-column: 1 / -1; }
.draft-f input { width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); font-family: var(--f-mono); color: var(--ink); }
.draft-hist li { padding: 10px 4px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.sync-list { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.sync-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.sync-row select { background: var(--sea-0); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); padding: 4px 6px; }

/* ───── 一對一、交易量解鎖 ───── */
.plan-alt { margin-top: 12px; font-size: 13px; color: var(--ink-2); text-align: center; }
.acct-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.oo-form { display: grid; gap: 28px; max-width: 720px; }
.oo-day { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.oo-dl { min-width: 96px; color: var(--ink-2); font-size: 14px; }
.oo-times { display: flex; gap: 8px; flex-wrap: wrap; }
.oo-slot input { position: absolute; opacity: 0; pointer-events: none; }
.oo-slot span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 14px; }
.oo-slot input:checked + span { border-color: var(--foam); background: var(--foam-dim); color: var(--foam); }
.oo-slot input:focus-visible + span { outline: 2px solid var(--foam); outline-offset: 2px; }
.oo-mine { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.oo-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--sea-1); padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.oo-card header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.oo-card p { margin: 0; }
.oo-notes { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; line-height: 1.7; }
.oo-notes .lbl { display: block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 4px; }
.oo-imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.oo-imgs img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.oo-card textarea, .field textarea#u-note, .field textarea#oo-topic, .field textarea#p-u { width: 100%; min-height: 80px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); color: var(--ink); line-height: 1.6; }
.field input[type=date], .field #s-times, .field #u-ex, .field #u-uid { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); color: var(--ink); }
.gift-row { display: flex; gap: 6px; flex-wrap: wrap; }
.gift-row input { flex: 1 1 100px; min-width: 0; padding: 7px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); color: var(--ink); }
.unlock-list li { padding: 12px 4px; display: grid; gap: 6px; }
.unlock-list .meta { color: var(--ink-3); font-size: 13px; }
.call-row .days-in { flex: 0 0 64px; }
.ai-mode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.ai-mode .lbl { font-size: 13.5px; color: var(--ink-2); }

/* ───── 指標庫 ───── */
.tools { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.tool { border: 1px solid var(--line); border-radius: var(--r); background: var(--sea-1); padding: 18px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tool header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tool-shot { display: block; margin: -18px -20px 2px; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: #08131b; }
.tool-shot img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.tool-shot:hover img { transform: scale(1.025); }
.tool { overflow: hidden; }
.tool header b { font-size: 17px; }
.tool-notes { font-size: 14px; }
.tool footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.tool-hist summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.tool-hist ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.tool-hist .meta { color: var(--ink-3); font-size: 12.5px; }
.linkish { background: none; border: 0; color: var(--foam); cursor: pointer; font: inherit; font-size: 13px; padding: 0; text-decoration: underline; }
.field select#t-plat, .field #t-name, .field #t-ver { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); color: var(--ink); }
.field textarea#t-notes { width: 100%; min-height: 90px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); color: var(--ink); line-height: 1.6; }

/* 方案：創始價、劃掉的正式價 */
.plan .founding { color: var(--foam); font-weight: 600; }
.panel .pay-h { font: 600 13px var(--f-head); color: var(--ink-2); margin: 18px 0 6px; letter-spacing: .04em; }
.panel .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 綁定交易所的三步 */
.bind-steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 28px; display: grid; gap: 14px; max-width: 640px; }
.bind-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 4px; align-items: start; }
.bind-steps li::before { content: counter(s); grid-row: span 3; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 500 13px var(--f-mono); color: var(--foam); }
.bind-steps b { font-size: 15px; }
.bind-steps span { color: var(--ink-3); font-size: 14px; }
.bind-steps .btn { justify-self: start; margin-top: 4px; }

/* 交易量進度（自動審核） */
.vol { margin-bottom: 12px; }
.vol-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; margin-bottom: 8px; }
.vol-top > span { white-space: nowrap; }
.vol-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.vol-bar i { display: block; height: 100%; width: 100%; background: var(--foam); border-radius: inherit; transform-origin: left; transition: transform .4s ease; }
.field-err { margin: 8px 0 0; color: var(--coral); font-size: 14px; line-height: 1.6; }

/* ── 動態：主軸是「聲納接觸」和「往下潛」。只有首頁開場是編排過的，其他都是回饋和連續性 ── */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
::selection { background: rgb(236 228 214 / .28); color: var(--ink); }
html { scrollbar-color: var(--line-2) var(--sea-0); }
input, textarea { caret-color: var(--foam); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--foam); }

/* 換頁：內容從水裡浮上來（本來就看得到，只是從 20% 開始） */
main.enter > * { animation: surface .42s var(--ease-out) both; }
main.enter > *:nth-child(2) { animation-delay: .04s; }
main.enter > *:nth-child(n+3) { animation-delay: .08s; }
@keyframes surface { from { opacity: .2; transform: translateY(10px); filter: blur(3px); } }

/* 首頁開場：標題一行一行對焦浮出 */
.hero { position: relative; isolation: isolate; }
.hero h1 .ln { display: inline-block; }
.hero.intro h1 .ln { animation: focus-in .8s var(--ease-out) both; }
.hero.intro h1 .ln + br + .ln { animation-delay: .14s; }
.hero.intro .lead { animation: surface .7s var(--ease-out) .28s both; }
.hero.intro .cta, .hero.intro .depth-now { animation: surface .7s var(--ease-out) .4s both; }
@keyframes focus-in {
  from { opacity: 0; transform: translateY(.35em); filter: blur(8px); clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 -10% 0); }
}

/* 海雪：很慢往上飄的小光點，只在首頁那一塊 */
.snow { position: absolute; inset: -40px 0 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 45%, transparent); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 45%, transparent); }
.snow::before, .snow::after { content: ""; position: absolute; inset: 0 0 -320px; opacity: .5;
  background-image: radial-gradient(1.2px 1.2px at 20px 40px, #e0dccf, transparent), radial-gradient(1px 1px at 140px 120px, #a8a8a0, transparent), radial-gradient(1.4px 1.4px at 90px 230px, #e0dccf, transparent), radial-gradient(1px 1px at 200px 300px, #a8a8a0, transparent);
  background-size: 240px 320px; animation: drift 48s linear infinite; }
.snow::after { background-size: 380px 320px; opacity: .3; animation-duration: 72s; transform: translateX(60px); }
@keyframes drift { to { transform: translateY(-320px); } }

/* 聲納：掃過光點的那一刻，光點亮一下、擴出一圈 */
.sonar .blip { transform-box: fill-box; transform-origin: center; animation: blip 6s linear infinite; }
.sonar .ping { transform-box: fill-box; transform-origin: center; fill: none; stroke-width: 1; opacity: 0; animation: ping 6s var(--ease-out) infinite; }
@keyframes blip { 0% { opacity: 1; } 2% { opacity: 1; transform: scale(1.6); } 30% { transform: scale(1); } 60%, 100% { opacity: .35; } }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 28% { opacity: 0; transform: scale(5); } 100% { opacity: 0; } }

/* 入門課：深度線從水面畫到你現在的深度，數字跟著往下數 */
.dive-fill { position: absolute; left: 92px; top: 12px; width: 2px; background: var(--foam); transform-origin: top; animation: descend 1.1s var(--ease-out) .15s both; z-index: 0; }
@keyframes descend { from { transform: scaleY(0); } }
.dive li.done .dot { animation: lit .5s var(--ease-out) both; }
.dive li.done:nth-child(2) .dot { animation-delay: .2s; } .dive li.done:nth-child(3) .dot { animation-delay: .35s; } .dive li.done:nth-child(4) .dot { animation-delay: .5s; }
.dive li.done:nth-child(5) .dot { animation-delay: .65s; } .dive li.done:nth-child(6) .dot { animation-delay: .8s; } .dive li.done:nth-child(7) .dot { animation-delay: .95s; }
@keyframes lit { from { background: var(--sea-0); border-color: var(--line-2); transform: scale(.6); } }
.dive li:hover .dot { border-color: var(--foam); }
.dot { transition: border-color .2s; }

/* 首頁三張卡：箭頭往前推一點 */
.deck .go { transition: transform .2s var(--ease-out); }
.deck:hover .go { transform: translateX(4px); }

/* 深潛者方案卡：一道很淡的光從水面斜斜掃過 */
.plan.main { position: relative; overflow: hidden; }
.plan.main::before { content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgb(236 228 214 / .07) 50%, transparent 58%);
  transform: translateX(-60%); animation: shaft 2.6s ease-in-out .9s both; }
@keyframes shaft { to { transform: translateX(60%); } }
.plan { transition: border-color .2s, transform .25s var(--ease-out); }
.plan:hover { border-color: var(--line-2); }
.plan.main:hover { border-color: rgb(236 228 214 / .7); }

/* 練習題：答對亮一下，答錯輕輕搖 */
.opt.just.right { animation: right-flash .7s var(--ease-out); }
.opt.just.wrong { animation: shake .32s ease-in-out; }
@keyframes right-flash { from { background: rgb(143 209 158 / .3); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* 進度條：從 0 長到現在的量 */
.vol-bar i { animation: grow .9s var(--ease-out) .1s backwards; }
@keyframes grow { from { transform: scaleX(0); } }

/* 提示訊息：從下面浮上來 */
.toast { opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .3s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 讀取中：聲納點一閃一閃 */
.skeleton::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--foam); vertical-align: middle; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* 捲到才浮出來：一排裡一個接一個 */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .in > .rv { opacity: 1; transform: none; }
}
/* 滑上去：卡片抬一下、邊框亮一下 */
.tile, .why-item, .deck, .plan { will-change: transform; }
.tile { transition: transform .22s var(--ease-out), border-color .2s, background .15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tile.hot:hover { box-shadow: 0 8px 24px rgb(236 228 214 / .18); }
.why-item { transition: transform .22s var(--ease-out), border-color .2s, box-shadow .25s; }
.why-item:hover { transform: translateY(-3px); border-color: rgb(236 228 214 / .55); box-shadow: 0 10px 28px rgb(0 0 0 / .25); }
.deck { transition: background .15s, transform .22s var(--ease-out); }
.deck:hover { transform: translateY(-2px); }
.btn { transition: background .15s, border-color .15s, transform .12s var(--ease-out), box-shadow .2s; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(236 228 214 / .25); }
.btn:active { transform: translateY(0) scale(.98); }
/* 完整版那顆：剛載入時呼吸一下，提醒有東西可以按 */
.tile.hot, .bathy-box:has(.btn.big) { animation: breathe 2.4s ease-in-out 1.2s 2; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgb(236 228 214 / .14); } }
/* 標題底下的短線畫出來 */
.page-h h1 { position: relative; display: inline-block; }
.page-h h1::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 10px; background: var(--foam); transform-origin: left; animation: draw-in .6s var(--ease-out) .2s both; }
@keyframes draw-in { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .tile.hot, .bathy-box:has(.btn.big), .page-h h1::after { animation: none; }
  .tile:hover, .why-item:hover, .deck:hover, .btn.primary:hover { transform: none; }
  main.enter > *, .hero.intro h1 .ln, .hero.intro .lead, .hero.intro .cta, .hero.intro .depth-now { animation: fade .2s both; }
  @keyframes fade { from { opacity: .4; } }
  .snow, .plan.main::before { display: none; }
  .sonar .blip, .sonar .ping, .dive-fill, .dive li.done .dot, .opt.just.wrong, .vol-bar i, .skeleton::before { animation: none; }
  .toast { transition: opacity .2s; transform: translateX(-50%); }
}

/* ── 交易所活動 ── */
.nav a.has-new { position: relative; }
.nav a.has-new::after { content: ""; position: absolute; top: 5px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.evs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.evs.admin { grid-template-columns: 1fr; }
.ev-h { margin-top: 8px; }
#home-events:not(:empty) { margin-bottom: 40px; }
.ev { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sea-1); overflow: hidden; transition: border-color .2s, transform .3s var(--ease-out); }
.ev:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ev.pinned { border-color: rgb(236 228 214 / .45); }
.ev.over { opacity: .55; }
.ev-img { aspect-ratio: 2 / 1; background: var(--sea-2); overflow: hidden; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.ev:hover .ev-img img { transform: scale(1.03); }
.ev-blank { display: grid; place-items: center; background: linear-gradient(160deg, #1a1c1f, var(--sea-1) 70%); }
.ev-blank span { font: 600 22px var(--f-head); color: var(--ink-2); letter-spacing: .04em; }
.ev-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev-body h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.ev-body p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.ev-more { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-more a { display: block; width: 64px; height: 44px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.ev-more img { width: 100%; height: 100%; object-fit: cover; }
.post-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.post-thumbs:empty { display: none; }
.post-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--sea-2); }
.post-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.post-log li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.post-log li .num { color: var(--ink-3); flex: none; }
.post-log li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-body .btn { align-self: flex-start; margin-top: auto; }
.ev-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-left { font-size: 12.5px; color: var(--foam); }
.ev-left.urgent { color: var(--coral); }
.ev-left.soon { color: var(--ink-3); }
.ev-when { font-size: 12.5px; color: var(--ink-3); }
.empty-sea { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; }
.empty-sea p { margin: 0; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; margin: 0 0 10px; cursor: pointer; }
.field input[type=datetime-local] { min-height: 44px; color-scheme: dark; font-family: var(--f-mono); font-size: 14px; }
.field input[type=file] { font-size: 14px; color: var(--ink-2); }
.field input[type=file]::file-selector-button { font: inherit; color: var(--ink); background: var(--sea-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.evs.admin .ev { flex-direction: row; }
.evs.admin .ev-img { aspect-ratio: auto; width: 180px; flex: none; }
.ev-blank.slim { aspect-ratio: 4 / 1; }
@media (max-width: 860px) { .evs.admin .ev { flex-direction: column; } .evs.admin .ev-img { width: auto; aspect-ratio: 2 / 1; } }

/* ── 新手任務：步驟條＋獎勵＋一顆大按鈕 ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn.block { display: flex; width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
.stepper { position: relative; list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.stepper::before, .stepper::after { content: ""; position: absolute; left: var(--edge, 12.5%); right: var(--edge, 12.5%); top: 34px; height: 2px; background: var(--line-2); }
.stepper::after { background: var(--foam); transform-origin: left; transform: scaleX(var(--k, 0)); animation: grow .9s var(--ease-out) .15s backwards; }
.mission .stepper li { position: relative; z-index: 1; display: block; text-align: center; padding: 0; border: 0; }
.mission .stepper .st-v { font-size: 12px; white-space: nowrap; }
.stepper a { height: 100%; }
.st-n { line-height: 20px; }
.stepper a { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink-3); }
.st-n { font-size: 13.5px; white-space: nowrap; }
.st-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sea-1); border: 2px solid var(--line-2); box-sizing: content-box; }
.st-v { font-size: 12px; color: var(--ink-3); }
.stepper li.done .st-dot { background: var(--foam); border-color: var(--foam); }
.stepper li.done .st-n { color: var(--ink-2); }
.stepper li.now .st-n { color: var(--foam); font-weight: 500; }
.stepper li.now .st-dot { width: 14px; height: 14px; margin-top: -1px; border-color: var(--foam); background: var(--sea-1); outline: 4px solid rgb(236 228 214 / .18); }
.stepper li.now .st-v { color: var(--ink-2); }
.reward { display: grid; grid-template-columns: auto 1fr; border-radius: var(--r-lg); background: var(--sea-2); margin-bottom: 14px; overflow: hidden; }
.reward-v { display: grid; justify-items: center; align-content: center; padding: 14px 22px; background: var(--sea-0); border-radius: var(--r-lg); margin: 4px; min-width: 120px; }
.mission .reward-v b { font-size: 34px; line-height: 1; color: var(--foam); font-weight: 500; }
.reward-v small { color: var(--foam); font-size: 13px; }
.reward-v small { margin-left: 4px; }
.reward-v span { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.reward-t { display: grid; align-content: center; gap: 4px; padding: 12px 18px; min-width: 0; }
.reward-t b { font-size: 16px; font-weight: 600; }
.reward-t span { font-size: 13.5px; color: var(--ink-2); }
.reward-t em { font-style: normal; color: var(--foam); }
.mission.compact .reward { display: none; }

/* ── 常用功能 ── */
.quick { margin-bottom: 40px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 104px; padding: 16px 8px; border-radius: var(--r-lg); background: var(--sea-1); border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; transition: border-color .2s, transform .25s var(--ease-out), background .2s; }
.tile:hover { border-color: var(--line-2); background: var(--sea-2); transform: translateY(-2px); }
.tile:active { transform: scale(.97); }
.tile-ico { width: 30px; height: 30px; color: var(--foam); }
.tile-ico svg { width: 100%; height: 100%; }
.tile-t { font-size: 14px; }
.tile-badge { position: absolute; top: 0; right: 0; padding: 3px 9px; font-size: 11.5px; border-radius: 0 var(--r-lg) 0 var(--r); background: var(--coral); color: #2a0f08; font-weight: 500; white-space: nowrap; }

/* ── 我的 ── */
.me-card { display: flex; align-items: center; gap: 14px; padding: 4px 0 24px; }
.me-card img, .me-av { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.me-av { display: grid; place-items: center; background: var(--sea-2); color: var(--ink-2); }
.me-av svg { width: 28px; height: 28px; }
.me-card div { display: grid; gap: 6px; justify-items: start; }
.me-card b { font-size: 19px; }

/* ── 手機：底部分頁，像交易所 app 一樣用拇指切 ── */
.tabbar { display: none; }
@media (max-width: 860px) {
  .bar .nav { display: none; }
  .bar { padding-bottom: 10px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgb(5 6 7 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 0; text-decoration: none; color: var(--ink-3); font-size: 11.5px; transition: color .15s; }
  .tabbar a svg { width: 24px; height: 24px; transition: transform .25s var(--ease-out); }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { color: var(--foam); transform: translateY(-1px); }
  .tabbar a:active svg { transform: scale(.9); }
  .tabbar a.has-new::after { content: ""; position: absolute; top: 3px; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; background: var(--coral); border: 2px solid var(--sea-0); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tiles.four { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 92px; }
  .st-n { font-size: 12.5px; }
  .reward-v { min-width: 96px; padding: 12px 14px; }
  .mission .reward-v b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .stepper::after { animation: none; } .tile, .tabbar a svg { transition: none; } }

/* ── 版本通知、更新紀錄 ── */
.updbar { position: fixed; left: 50%; top: 12px; z-index: 50; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--sea-2); box-shadow: 0 12px 32px rgb(0 0 0 / .4); transform: translateX(-50%); font-size: 14px; animation: upd-in .35s var(--ease-out); }
.updbar span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--foam); vertical-align: middle; }
.updbar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upd-x { border: 0; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; padding: 4px 8px; cursor: pointer; }
@keyframes upd-in { from { opacity: 0; transform: translate(-50%, -10px); } }
dialog.news { width: min(460px, calc(100vw - 32px)); max-height: 80vh; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--sea-1); color: var(--ink); }
dialog.news::backdrop { background: rgb(4 10 14 / .6); }
dialog.news[open] { animation: surface .35s var(--ease-out); }
dialog.news h2 { margin: 0 0 16px; font-size: 20px; }
dialog.news section { margin-bottom: 18px; }
dialog.news h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 15.5px; }
dialog.news h3 span { font-size: 12.5px; color: var(--ink-3); }
dialog.news ul, .log ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.log { display: grid; gap: 0; max-width: 760px; }
.log-e { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.log-e:first-child { border-top: 0; padding-top: 4px; }
.log-d { color: var(--foam); font-size: 13px; padding-top: 4px; }
.log-e h2 { margin: 0 0 10px; font-size: 18px; }
.log-e .btn { margin-top: 12px; }
.foot a { color: inherit; }
@media (max-width: 860px) { .log-e { grid-template-columns: 1fr; gap: 6px; } .updbar { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .updbar, dialog.news[open] { animation: none; } }
.updbar[hidden] { display: none; }

/* ── 回覆範本、待回清單 ── */
.tpls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tpls:empty { display: none; }
.tpl { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.tpl button { border: 0; background: var(--sea-2); color: var(--ink-2); font-size: 13px; padding: 5px 10px; cursor: pointer; transition: background .15s, color .15s; }
.tpl button:hover { background: var(--sea-3); color: var(--ink); }
.tpl .tpl-x { padding: 5px 8px 5px 2px; color: var(--ink-3); }
.wait { color: var(--ink-3); }
.wait.late { color: var(--coral); }

/* ── 體驗期：等級頁、試用 Bathy ── */
.levels .plan .note { margin-bottom: 14px; }
.try-bathy { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 36px; padding: 26px 28px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(120deg, #1a1c1f, var(--sea-1) 60%); }
.try-bathy h2 { margin: 0 0 6px; font-size: 20px; }
.try-bathy p { margin: 0; color: var(--ink-2); max-width: 520px; }

/* ── 綁定頁：好處和利益揭露 ── */
.bind-why { max-width: 680px; margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sea-1); }
.bind-why h2 { margin: 0 0 8px; font-size: 16px; }
.bind-why ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); line-height: 1.8; }
.disclose { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }
.disclose b { color: var(--ink); font-weight: 500; }

/* ── Bathy 授權碼 ── */
.bathy-box { margin: 20px 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sea-1); }
.bathy-box:empty { display: none; }
.bathy-box h2 { margin: 0; font-size: 17px; }
.bathy-box .sub { margin: 8px 0 12px; }
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.key-row code { font-size: 15px; letter-spacing: .04em; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--sea-0); user-select: all; overflow-wrap: anywhere; }

/* 授權碼：一鍵為主，手動貼收在 details 裡 */
.key-more { margin-top: 10px; }
.key-more summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }
.dev-rows { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.dev-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.dev-rows .sub { font-size: 12px; }
.key-more .key-row { margin-top: 8px; }

/* Bathy 完整版：框亮一點、按鈕大一點，不會被漏看 */
.bathy-box:has(.btn.big) { border-color: var(--foam); box-shadow: 0 0 0 3px rgb(236 228 214 / .12); }
.btn.big { padding: 12px 22px; font-size: 16px; }
.tile.hot { border-color: var(--foam); }
.tile.hot .tile-badge { background: var(--foam); color: var(--sea-0); }

.foot-social { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-social a { color: var(--ink-2); text-decoration: none; }
.foot-social a:hover { color: var(--foam); }

/* 更新紀錄：Bathy 重大更新影片 */
.rel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin: 8px 0 28px; padding: 18px; background: var(--sea-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rel-v video { width: 100%; border-radius: 8px; display: block; background: #0b1016; aspect-ratio: 16 / 9; }
.rel-t .num { color: var(--foam); font-size: 13px; letter-spacing: .06em; }
.rel-t h2 { margin: 6px 0 10px; }
.rel-t ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.rel-more { margin: 0 0 28px; }
.rel-more summary { cursor: pointer; color: var(--ink-2); margin-bottom: 12px; }
.log-h { font-size: 18px; margin: 8px 0 14px; }
@media (max-width: 760px) { .rel { grid-template-columns: 1fr; } }

/* 用 Bathy 的第一天 */
.start { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.start li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px; background: var(--sea-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.start-n { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--foam); color: var(--foam); display: grid; place-items: center; font-size: 15px; }
.start h2 { font-size: 18px; margin: 4px 0 8px; }
.start p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.start-go { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 選擇權價位 ── */
.opt-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-bottom: 28px; }
.opt-mini { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sea-1); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.opt-mini:hover { border-color: var(--line-2); transform: translateY(-1px); }
.opt-mini p { margin: 8px 0 0; font: 13px var(--f-mono); color: var(--ink-2); }
.opt-mini p.sub { font: 13px var(--f-text); color: var(--ink-3); margin-top: 4px; }
.om-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.om-h b, .om-h h2 { font: 600 15px var(--f-mono); margin: 0; letter-spacing: .02em; }
.om-h span { font: 13px var(--f-mono); color: var(--ink-2); }
.om-h span b { font-size: 15px; color: var(--ink); }
.opt-ruler { position: relative; height: 46px; margin: 12px 0 2px; }
.opt-ruler .track { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line-2); border-radius: 1px; }
.opt-ruler .m { position: absolute; top: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.opt-ruler .m::before { content: ""; width: 2px; height: 14px; border-radius: 1px; background: currentColor; }
.opt-ruler .m b { font: 600 10.5px var(--f-mono); white-space: nowrap; }
.opt-ruler .m.low b { margin-top: 13px; }
.opt-ruler .cw { color: var(--ok); }
.opt-ruler .pw { color: var(--coral); }
.opt-ruler .fl { color: #e0ab48; }
.opt-ruler .mp { color: var(--ink-3); }
.opt-ruler .spot { color: var(--foam); top: 0; }
.opt-ruler .spot::before { width: 10px; height: 10px; border-radius: 50%; margin-top: 2px; box-shadow: 0 0 0 3px var(--foam-dim); }
.opt-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.opt-card h2 { margin: 0; }
.opt-levels { margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.opt-levels .ol { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding-left: 10px; border-left: 2px solid var(--line-2); }
.opt-levels .ol.cw { border-color: var(--ok); }
.opt-levels .ol.pw { border-color: var(--coral); }
.opt-levels .ol.fl { border-color: #e0ab48; }
.opt-levels dt { color: var(--ink-2); font-size: 14px; }
.opt-levels dd { margin: 0; display: flex; gap: 10px; align-items: baseline; font: 14px var(--f-mono); }
.opt-levels dd b { font-weight: 600; color: var(--ink); }
.opt-levels dd small { color: var(--ink-3); min-width: 52px; text-align: right; font-size: 12px; }
.opt-levels .ol p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.opt-notes { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.opt-grid + .cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0 8px; }
.opt-how { margin-top: 32px; }
.opt-how .why-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .opt-how .why-grid { grid-template-columns: 1fr; } }

/* 自返 */
.rebate { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.rebate h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.rebate h3 .num { color: var(--foam); }
.reb-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.reb-table th, .reb-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.reb-table th { font-weight: 500; color: var(--ink-3); }
.reb-table td.num, .reb-table th:nth-child(n+3) { text-align: right; }
#reb-out { overflow-x: auto; }

/* 指標庫：回測數據 */
.bt { border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; max-width: 100%; overflow: hidden; }
.bt > * + * { margin-top: 8px; }
.bt summary { cursor: pointer; font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.bt[open] summary { margin-bottom: 4px; }
.bt-sum { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.bt-wrap { overflow-x: auto; max-width: 100%; }
.bt-table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
.bt-table th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 4px 10px 4px 0; border-bottom: 1px solid var(--line); }
.bt-table th:last-child, .bt-table td:last-child { padding-right: 0; }
.bt-table td { padding: 5px 10px 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.bt-table td.num { font-variant-numeric: tabular-nums; }
.bt-table td.neg { color: #e0796b; }
.bt-curve { margin: 4px 0 0; }
.bt-curve svg { display: block; width: 100%; height: 84px; }
.bt-curve path { fill: none; stroke: var(--foam); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bt-curve .bt-split { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.bt-curve .bt-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bt-curve figcaption { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.bt-fine { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.bt-note { font-size: 13px; color: var(--ink-2); margin: 0; padding: 8px 10px; background: color-mix(in srgb, var(--sea-1) 60%, #000); border-radius: 6px; }

/* 量化訊號說明頁 */
.quant-doc .bt-wrap { margin: 6px 0 10px; }
.quant-doc .bt-table { max-width: 34em; }
.quant-doc .bt-note { margin: 20px 0; }
.quant-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.quant-figs a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.quant-figs a:hover { border-color: var(--foam); transform: translateY(-1px); }
.quant-figs img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .quant-figs { grid-template-columns: 1fr; } }
.quant-doc h2:first-child { margin-top: 0; }
.quant-doc .doc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.quant-doc .arb-kinds { white-space: normal; max-width: none; }
.quant-doc .arb-kinds td:first-child { white-space: nowrap; }
.quant-doc ol { margin: 0 0 18px; padding-left: 1.4em; }
.quant-doc ol li { margin: 6px 0; }

/* ── 抽獎 ── */
#home-draws:not(:empty) { margin-bottom: 40px; }
.draws { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.draw { display: flex; flex-direction: column; gap: 8px; }
.draw h3 { margin: 0; font: 600 19px/1.35 var(--f-head); }
.draw-h { display: flex; align-items: center; gap: 10px; }
.draw-prize { margin: 0; color: var(--foam); font-weight: 600; }
.draw-win { margin: 2px 0 0; }
.draw-win b { color: var(--foam); }
.draw-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.draw .pill.ok { font-size: 13px; color: var(--ok); border: 1px solid rgb(143 209 158 / .35); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.draw-proof { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.draw-proof summary { cursor: pointer; color: var(--ink-3); }
.draw-proof ol { padding-left: 20px; margin: 8px 0; }
.draw-proof .mono { font: 12px/1.6 var(--f-mono); word-break: break-all; color: var(--ink-3); }
.draw-admin { margin-bottom: 18px; }
.draw-admin .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.draw-admin .small { font-size: 13px; }

/* 首頁：船上昨天發了什麼（還沒上船的人看的） */
.show { margin: 28px 0; }
.show-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.show-list li { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.show-list .t { color: var(--ink-3); white-space: nowrap; }
.show-list .d { min-width: 0; }
@media (max-width: 520px) { .show-list li { grid-template-columns: 1fr; gap: 2px; } }
/* 艦長室：互動 */
.rank { list-style: decimal; margin: 8px 0 12px 1.6em; padding: 0; }
.rank li { padding: 4px 0; }
.rank li b { float: right; }
.wq-opts { list-style: none; margin: 10px 0; padding: 0; }
.wq-opts li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.wq-opts li.right { font-weight: 600; }
#wqf input[type=url], #wqf select { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); color: var(--ink); }
#wqf textarea { min-height: 84px; }
.wq-opts li.right { color: var(--foam); }
/* 艦長室分頁變多了：手機上排不下就左右滑，字不折行 */
.seg.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg.tabs::-webkit-scrollbar { display: none; }
.seg.tabs .segl { white-space: nowrap; flex: none; }
.mission-extra { margin: -4px 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.mission-extra a { color: var(--foam); }
.mission.compact .mission-extra { display: none; }

/* 活躍等級：自己的進度條＋福利表 */
.lv-sec { margin-top: 44px; }
.lv-me { margin: 18px 0 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sea-1); }
.lv-now { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14.5px; }
.lv-now b { font: 500 28px var(--f-mono); color: var(--foam); }
.lv-bar { height: 6px; margin: 14px 0 10px; border-radius: 3px; background: var(--sea-3); overflow: hidden; }
.lv-bar i { display: block; height: 100%; min-width: 3px; border-radius: 3px; background: var(--foam); }
.lv-me .hint { margin: 0; }
.perks { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.perks th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.perks td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.perks td:first-child { color: var(--ink); }
.perks tr.got td:first-child { color: var(--foam); }
.plan .paid-off { margin-top: 12px; }
.rank-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-size: 14.5px; }
.rank-list li { display: grid; grid-template-columns: 1fr max-content max-content; gap: 14px; align-items: baseline; }
@media (min-width: 900px) { .plans.levels { grid-template-columns: repeat(3, 1fr); } }

/* 登入後的首頁：第一眼是下一步，不再重講一次介紹 */
.hero .eyebrow { margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.hero .eyebrow b { font: 500 14px var(--f-mono); color: var(--foam); }
.hero.member h1 { font-size: clamp(28px, 4.2vw, 44px); }
.hero.member h1 .sub-ln { color: var(--foam); }
.hero.member p.lead { margin-bottom: 22px; }
@media (max-width: 760px) {
  .hero.member { padding: 8px 0 28px; }
  .hero.member .sonar { display: none; }
}

/* 大螢幕：內容跟著放寬，左右不留一大片空白 */
@media (min-width: 1700px) { :root { --wrap: 1480px; } }

/* 艦長室：軟體使用 */
.use-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.use-stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.use-stat b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.use-stat span { font-size: 13px; color: var(--ink-3); }
.use-bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.use-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.use-col i { display: block; width: 100%; background: var(--foam); border-radius: 4px 4px 0 0; opacity: .85; }
.use-col:hover i, .use-col:focus-visible i { opacity: 1; }
.use-col b { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; font-weight: 400; font-size: 12.5px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; background: var(--bg-2, #0d1a22); border: 1px solid var(--line); color: var(--ink); pointer-events: none; }
.use-col:hover b, .use-col:focus-visible b { display: block; }
.use-col:first-child b, .use-col:nth-child(2) b { left: 0; transform: none; }
.use-col:last-child b, .use-col:nth-last-child(2) b { left: auto; right: 0; transform: none; }
.use-axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 760px) { .use-stats { grid-template-columns: repeat(2, 1fr); } }

/* 價位提醒頁：外部訊號平台 */
.ext-sig p { margin: 6px 0 12px; }
.ext-notes { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2, var(--ink-3)); }

/* ══ 無邊際：框線收掉，靠深淺分層；整個視窗是一片海，左右兩側有東西在動 ══ */
:root { --line: rgb(140 190 215 / .07); --line-2: rgb(140 190 215 / .2); --dive: 0; }
html { background: var(--sea-0); }
body { background: none; position: relative; isolation: isolate; }
.fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict;
  background: linear-gradient(180deg, #131517 0, #0a0b0d 38%, #050607 100%); }
/* 捲越深越暗 */
.fx::before { content: ""; position: absolute; inset: 0; background: #04090d; opacity: calc(var(--dive) * .55); }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 兩側的光：從海面透下來的，慢慢晃 */
.fx-glow { position: absolute; top: -20%; width: 46vw; height: 110%; opacity: calc(.9 - var(--dive) * .6); filter: blur(8px); animation: fx-sway 19s ease-in-out infinite alternate; }
.fx-glow.l { left: -22vw; background: radial-gradient(ellipse 50% 46% at 50% 30%, rgb(236 228 214 / .13), transparent 70%), linear-gradient(100deg, transparent 42%, rgb(140 200 220 / .05) 50%, transparent 58%); }
.fx-glow.r { right: -22vw; background: radial-gradient(ellipse 50% 46% at 50% 38%, rgb(96 160 210 / .14), transparent 70%), linear-gradient(80deg, transparent 40%, rgb(236 228 214 / .045) 50%, transparent 60%); animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes fx-sway { from { transform: translate3d(-2.5vw, -2%, 0) rotate(-2deg); } to { transform: translate3d(2.5vw, 3%, 0) rotate(2deg); } }
/* 左邊的深度尺、右邊的聲納線：兩側有空位才出現 */
.fx-gauge, .fx-ping { display: none; }
@media (min-width: 1480px) {
  .fx-gauge, .fx-ping { display: block; position: absolute; top: 96px; bottom: 56px; width: 1px; }
  /* 尺身、小刻度、大刻度疊在同一個元素上 */
  .fx-gauge { left: calc((100vw - var(--wrap)) / 4 + 4px); width: 16px; }
  .fx-rule { position: absolute; inset: 0;
    background:
      linear-gradient(rgb(140 190 215 / .22), rgb(140 190 215 / .22)) left / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, rgb(140 190 215 / .3) 0 1px, transparent 1px 24px) left / 9px 100% no-repeat,
      repeating-linear-gradient(180deg, rgb(140 190 215 / .42) 0 1px, transparent 1px 120px) left / 16px 100% no-repeat;
    -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
  .fx-pin { position: absolute; left: -3px; top: calc(11% + var(--dive) * 78%); width: 7px; height: 7px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 0 4px rgb(236 228 214 / .14), 0 0 18px rgb(236 228 214 / .5); transition: top .25s ease-out; }
  .fx-pin b { position: absolute; left: 22px; top: -8px; font-size: 12px; font-weight: 500; color: var(--foam); white-space: nowrap; letter-spacing: .04em; opacity: .85; }
  .fx-ping { right: calc((100vw - var(--wrap)) / 4 + 4px);
    background: linear-gradient(transparent, rgb(140 190 215 / .14) 10%, rgb(140 190 215 / .14) 90%, transparent); }
  .fx-ping::before { content: ""; position: absolute; left: -1px; width: 3px; height: 90px; border-radius: 3px;
    background: linear-gradient(transparent, rgb(236 228 214 / .85)); animation: fx-ping 7s cubic-bezier(.4, 0, .6, 1) infinite; }
  .fx-ping::after { content: ""; position: absolute; left: -14px; bottom: 6%; width: 29px; height: 29px; border-radius: 50%; border: 1px solid rgb(236 228 214 / .5); animation: fx-echo 7s ease-out infinite; }
}
@keyframes fx-ping { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 78% { top: calc(94% - 90px); opacity: 1; } 86%, 100% { top: calc(94% - 90px); opacity: 0; } }
@keyframes fx-echo { 0%, 76% { transform: scale(.2); opacity: 0; } 80% { opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-glow, .fx-ping::before, .fx-ping::after { animation: none; } .fx-ping::before, .fx-ping::after { opacity: 0; } .fx-pin { transition: none; } }

/* 頁首、頁尾不畫線：頁首往下淡掉，內容像從底下滑過去 */
.bar { border-bottom: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar::before { content: ""; position: absolute; inset: 0 0 -22px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(5 6 7 / .9), rgb(5 6 7 / .72) 55%, rgb(5 6 7 / 0));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 58%, transparent); mask-image: linear-gradient(#000 58%, transparent); }
.foot { border-top: 0; }
/* 卡片：不描邊，底色半透明，後面的海看得到一點 */
.panel, .call { border-color: transparent; background: rgb(16 18 20 / .78); }
.decks { gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
.deck { border-radius: var(--r-lg); background: rgb(16 18 20 / .78); }
.deck:hover { background: rgb(26 29 32 / .9); }
@media (max-width: 760px) { .tabbar { border-top: 0; } }
.snow { display: none; }

/* Bathy 封閉測試：不能按的方塊和卡片 */
.tile.off, .deck.off { cursor: default; opacity: .62; }
.tile.off:hover { transform: none; }
.deck.off:hover { background: rgb(16 18 20 / .78); }
.beta-tag { color: var(--ink-2); white-space: nowrap; }

/* 等級頁：還沒開放的訂閱價格（先公布、不能買） */
.plan .price.soon { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); }
.plan .price.soon s { font-size: 15px; color: var(--ink-3); }
.plan .price.soon .tag { font: 500 12px var(--f-text); align-self: center; white-space: nowrap; }

/* ── 下潛（2026-11-16 品牌改版 v2）──────────────────────────────────────────
   一條潛水繩從頁首垂到頁尾。深度寫在繩上（結的旁邊），不寫在標題上面；
   段落之間用細線和越往下越暗的水分開，不用一格一格的卡片。
   唯一的動態：進頁時繩子往下放，捲過一個結，那個結亮起來。 */
body.dvpage main { max-width: none; padding: 0; }
body.dvpage .fx-gauge { display: none !important; }
.dv { overflow-x: clip; --gut: max(104px, calc((100vw - var(--wrap)) / 2 + 64px)); word-break: keep-all; overflow-wrap: anywhere; line-break: strict; font-variant-numeric: tabular-nums; }
.dv .nw { white-space: nowrap; }
.dv .blk { display: block; }
.dv h1, .dv h2, .dv h3 { font-feature-settings: "palt" 1; text-wrap: balance; }

/* 繩子和結 */
.dv-row { display: grid; grid-template-columns: var(--gut) minmax(0, 1fr); position: relative; }
.dv-rope { position: relative; }
.dv-rope::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 1px; background: rgb(236 228 214 / .5); transform-origin: top; }
.dv-rope::after { content: ""; position: absolute; inset: 0 1px 0 auto; width: 9px; background: repeating-linear-gradient(to bottom, rgb(236 228 214 / .22) 0 1px, transparent 1px 24px); }
.dv-rope.deep::before { background: rgb(236 228 214 / .8); }
.dv-rope.branch::before { background: repeating-linear-gradient(to bottom, rgb(236 228 214 / .55) 0 6px, transparent 6px 12px); }
.dv-knot { position: absolute; z-index: 1; right: -5px; top: var(--kt, 92px); width: 11px; height: 11px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 0 5px rgb(236 228 214 / .12); transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.dv-rope.branch .dv-knot { background: var(--sea-0); box-shadow: inset 0 0 0 2px var(--foam); }
.dv-depth { position: absolute; z-index: 1; right: 22px; top: calc(var(--kt, 92px) - 6px); text-align: right; font: 500 13px/1.25 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.dv-depth i { display: block; margin-top: 3px; font: 400 12px var(--f-text); font-style: normal; color: var(--ink-3); letter-spacing: .04em; }
.dv-rope.here .dv-depth, .dv-rope.deep .dv-depth { color: var(--foam); }
/* 有 JS 時：還沒捲到的結是空心的，捲到才亮 */
.dv.armed .dv-knot:not(.lit) { background: var(--sea-0); box-shadow: inset 0 0 0 1.5px #4f6b7d; }
.dv.armed .dv-knot.lit { transform: scale(1.12); }
.dv-rope.here .dv-knot, .dv.armed .dv-rope.here .dv-knot { width: 15px; height: 15px; right: -7px; background: var(--foam); box-shadow: 0 0 0 7px rgb(236 228 214 / .16), 0 0 18px 2px rgb(236 228 214 / .35); }
@media (prefers-reduced-motion: no-preference) {
  .dv.armed .dv-row:first-child .dv-rope::before { animation: dv-lower 1.4s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes dv-lower { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.dv-body { min-width: 0; max-width: calc(var(--wrap) - 64px); padding: 0 48px 0 64px; }
.dv-sec { padding: 72px 0; }
.dv-sec.first { padding-top: 76px; }
.dv-sec.flush { padding: 0; }

/* 字 */
.dv h1 { margin: 0; font: 900 clamp(52px, 6.6vw, 96px)/1.06 var(--f-head); letter-spacing: -.01em; }
.dv h1 .hi, .dv h2 .hi { color: var(--foam); }
.dv h2.big { margin: 0; font: 900 clamp(30px, 4.2vw, 60px)/1.14 var(--f-head); }
/* 大標題一段一行（.blk）：整段不斷開，手機上字自動縮到放得下，標點不會自己掉到下一行 */
.dv h2.big .blk, .dv h1 .blk { white-space: nowrap; }
@media (max-width: 520px) { .dv h2.big { font-size: min(36px, 8.4vw); } }
/* 進階課的階段：收起來的那段點一下展開 */
.dv-fold-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s; }
.dv-fold-btn:hover, .dv-fold-btn:focus-visible { border-color: var(--foam); color: var(--ink); }
.dv-fold-btn .when-closed, .dv-fold-btn .when-open { color: var(--foam); }
.dv-fold-btn[aria-expanded="true"] .when-closed, .dv-fold-btn[aria-expanded="false"] .when-open { display: none; }
/* 等級頁：還沒開的月付縮成一行 */
.dv-later { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.dv-later p { margin: 0; }
.dv h2.mid { margin: 0; font: 900 clamp(30px, 3vw, 42px)/1.2 var(--f-head); }
.dv .lead { margin: 0; max-width: 31em; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.dv .fine { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
.dv .sub { margin: 0 0 10px; font: 700 13px var(--f-text); letter-spacing: .06em; color: var(--ink-3); }
.dv .live { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.dv .live b { font: 700 1.05em var(--f-mono); color: var(--ink); padding: 0 .12em; }
.dv-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.dv-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; text-underline-offset: 6px; }
.dv-ghost:hover { color: var(--foam); text-decoration: underline; text-decoration-thickness: 1px; }
.dv-ghost.foam { color: var(--foam); }
.dv-ghost svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.dv-ghost:hover svg { transform: translateX(3px); }
.dv-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 首頁第一屏 */
.dv-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.dv-hero > .txt { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.dv-hero.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

/* 入門課的潛水繩（首頁右邊）：一條細線，每個單元一個深度，點了展開 */
.dv-panel { min-width: 0; padding-top: 10px; }
.dv-panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 14px; border-bottom: 1px solid var(--line-2); }
.dv-panel-h h2 { margin: 0; font: 700 15px var(--f-text); }
.dv-panel-h p { margin: 0; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.dv-stops { list-style: none; margin: 0; padding: 6px 0 0; background: linear-gradient(var(--line-2), var(--line-2)) no-repeat 10px 30px / 1px calc(100% - 56px); }
.dv-stops li { border-bottom: 1px solid var(--line); }
.dv-stop { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 21px 88px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 50px; cursor: pointer; color: var(--ink-2); transition: color .2s; }
.dv-stop:hover { color: var(--ink); }
.dv-stop:focus-visible { outline: 2px solid var(--foam); outline-offset: 2px; border-radius: 4px; }
.dv-stop .dot { justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--sea-0); box-shadow: inset 0 0 0 1.5px #4f6b7d; transition: all .3s var(--ease-out); }
.dv-stop .m { font: 500 13.5px var(--f-mono); }
.dv-stop .u { font-size: 12.5px; color: var(--ink-3); }
.dv-stop[aria-expanded="true"] { color: var(--ink); }
.dv-stop[aria-expanded="true"] .m { color: var(--foam); }
.dv-stop[aria-expanded="true"] .dot { width: 11px; height: 11px; background: var(--foam); box-shadow: 0 0 0 5px rgb(236 228 214 / .16); }
.dv-stop-d { padding: 0 0 22px 33px; }
.dv-stop-d[hidden] { display: none; }
.dv-stop-d h3 { margin: 0 0 6px; font: 700 21px/1.4 var(--f-head); color: var(--ink); }
.dv-stop-d p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.dv-stop-d .meta { display: flex; gap: 16px; align-items: center; margin: 0; font-size: 13px; color: var(--ink-3); }
.dv-stop-d .meta a { color: var(--foam); text-underline-offset: 4px; }

/* 一段一段的水：越往下越暗，用細線分，不用卡片 */
.dv-layers { border-top: 1px solid var(--line-2); }
.dv-layer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; padding: 44px 0 46px; border-bottom: 1px solid var(--line); position: relative; }
.dv-layer::before { content: ""; position: absolute; inset: 0 -100vw 0 -64px; z-index: -1; background: var(--tint, transparent); }
.dv-layer.l1 { --tint: rgb(14 16 18 / .6); }
.dv-layer.l2 { --tint: rgb(10 11 13 / .75); }
.dv-layer.l3 { --tint: rgb(0 0 0 / .85); border-bottom-color: var(--line-2); }
.dv-layer h3 { margin: 0 0 10px; font: 900 32px/1.25 var(--f-head); }
.dv-layer.l3 h3 { color: var(--foam); }
.dv-layer p { margin: 0; color: var(--ink-2); line-height: 1.8; }
.dv-layer .you { display: inline-block; margin-left: 12px; padding: 1px 10px; vertical-align: 6px; border-radius: 999px; background: rgb(236 228 214 / .14); color: var(--foam); font: 500 12px var(--f-text); }
.dv-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; font-size: 15.5px; }
.dv-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dv-list li:last-child { border-bottom: 0; }
.dv-list li::before { content: ""; width: 7px; height: 7px; margin-top: .62em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--foam); }
.dv-list li.key::before { background: var(--foam); }

/* 三種拿法：橫的一排，用細線分 */
.dv-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-2); }
.dv-way { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 24px; }
.dv-way:first-child { padding-left: 0; }
.dv-way + .dv-way { border-left: 1px solid var(--line); }
.dv-way .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-2); }
.dv-way .v { margin: 0; font: 700 34px/1.15 var(--f-mono); color: var(--ink); }
.dv-way .v.foam { color: var(--foam); }
.dv-way .v small { font-size: .45em; font-weight: 500; color: var(--ink-3); }
.dv-way p:last-child { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.dv-way.off .v { color: var(--ink-3); }
.dv-pill { font: 400 12px var(--f-text); padding: 1px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }

/* 每日一圖 */
.dv-daily { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; align-items: start; }
.dv-daily figure { margin: 0; }
.dv-daily.mini { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; }
.dv-daily figure .frame { border-radius: 10px; overflow: hidden; background: var(--sea-1); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7), 0 0 0 1px var(--line); }
.dv-daily figure img { display: block; width: 100%; height: auto; }
.dv-daily figcaption { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.dv-daily .txt { display: flex; flex-direction: column; gap: 26px; min-width: 0; padding-top: 8px; }
.dv-daily blockquote { margin: 4px 0 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--foam); font: 400 17px/1.95 var(--f-head); color: var(--ink); white-space: pre-line; }
.dv-empty { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ink-3); font-size: 13.5px; text-align: center; padding: 24px; }

/* 入門課清單：每個單元一列，細線分開 */
.dv-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: start; padding: 34px 0 36px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; }
.dv-unit::before { content: ""; position: absolute; inset: 0 -100vw 0 -64px; z-index: -1; background: transparent; transition: background .25s; }
a.dv-unit:hover::before { background: rgb(22 24 27 / .6); }
a.dv-unit:focus-visible { outline: 2px solid var(--foam); outline-offset: 4px; border-radius: 4px; }
.dv-unit h2 { margin: 0 0 8px; font: 900 26px/1.35 var(--f-head); }
.dv-unit p { margin: 0; max-width: 36em; color: var(--ink-2); line-height: 1.8; }
.dv-unit .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.dv-unit .st { padding: 1px 10px; border-radius: 999px; background: rgb(236 228 214 / .12); color: var(--foam); }
.dv-unit .st.mute { background: transparent; color: var(--ink-3); padding: 0; }
.dv-unit .go { align-self: center; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; transition: color .2s; }
.dv-unit .go svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
a.dv-unit:hover .go { color: var(--foam); }
a.dv-unit:hover .go svg { transform: translateX(4px); }
.dv-unit.ok h2 { color: var(--ink-2); }
.dv-unit.now h2 { color: var(--ink); }
.dv-unit.now .go { color: var(--foam); }
.dv-unit.fin { border-bottom: 0; }
.dv-unit.fin h2 { font-size: 32px; color: var(--foam); }

/* 我的：自己那塊牌子 + 潛水日誌 */
.dv-me { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 72px; align-items: center; }
.dv-me .dv-who { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dv-log { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; border-top: 1px solid var(--line-2); }
.dv-log > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dv-log > div:nth-child(odd) { padding-right: 28px; }
.dv-log > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.dv-log dt { font-size: 13.5px; color: var(--ink-3); }
.dv-log dd { margin: 0; font: 500 16px var(--f-mono); color: var(--ink); white-space: nowrap; }
.dv-log dd.foam { color: var(--foam); }
.dv-bar { position: relative; height: 6px; border-radius: 3px; background: var(--sea-2); box-shadow: inset 0 0 0 1px var(--line); }
.dv-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, #a89f8c, var(--foam)); }
.dv-bar b { position: absolute; top: -5px; width: 1px; height: 16px; background: var(--line-2); }
.dv-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line-2); }
.dv-links li { border-bottom: 1px solid var(--line); }
.dv-links a, .dv-links span.off { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.dv-links a:hover b { color: var(--foam); }
.dv-links a:focus-visible { outline: 2px solid var(--foam); outline-offset: 2px; border-radius: 4px; }
.dv-links svg { width: 22px; height: 22px; color: var(--foam); }
.dv-links b { display: block; font-weight: 500; transition: color .2s; }
.dv-links small { display: block; font-size: 13px; color: var(--ink-3); }
.dv-links .tag { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: rgb(236 228 214 / .12); color: var(--foam); white-space: nowrap; }
.dv-links .tag.coral { background: rgb(240 141 116 / .14); color: var(--coral); }
.dv-links span.off { color: var(--ink-3); }
.dv-links span.off svg { color: var(--ink-3); }

/* 登入後的首頁 */
.dv-next { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 64px; align-items: center; }
.dv-next .txt { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.dv-next h1 .t { display: block; margin-top: 10px; font-size: .5em; line-height: 1.3; color: var(--ink-2); }
.dv-today { display: flex; flex-direction: column; gap: 40px; }
.dv-today .section-h { margin-top: 0; }

/* 活躍等級 */
.dv-xp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.dv-xp dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line-2); }
.dv-xp dt, .dv-xp dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dv-xp dd { font-family: var(--f-mono); text-align: right; color: var(--ink); }
.dv-miles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dv-miles > div { padding: 22px 22px 6px; }
.dv-miles > div:first-child { padding-left: 0; }
.dv-miles > div + div { border-left: 1px solid var(--line); }
.dv-miles .l { margin: 0; font: 700 26px var(--f-mono); }
.dv-miles .n { margin: 2px 0 10px; font: 900 20px var(--f-head); }
.dv-miles .x { margin: 0 0 10px; font: 400 12.5px var(--f-mono); color: var(--ink-3); }
.dv-miles p:last-child { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.dv-miles .got .l, .dv-miles .got .n { color: var(--foam); }

/* 實體潛水牌：上船的那顆按鈕 */
.dtag { position: relative; display: inline-flex; margin-left: 34px; text-decoration: none; color: var(--foam-ink); filter: drop-shadow(0 12px 16px rgb(0 0 0 / .45)) drop-shadow(0 2px 2px rgb(0 0 0 / .4)); transform: rotate(-1.5deg); transform-origin: 31px 50%; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.dtag:hover { transform: rotate(1.2deg); color: var(--foam-ink); }
.dtag:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 12px; }
.dt-cord { position: absolute; left: -36px; top: 50%; width: 72px; height: 56px; margin-top: -46px; overflow: visible; pointer-events: none; }
.dt-plate { display: flex; align-items: center; gap: 18px; min-height: 66px; padding: 10px 26px 10px 60px; border-radius: 4px 12px 12px 4px; clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px), 0 20px); -webkit-mask: radial-gradient(circle at 31px 50%, transparent 7px, #000 7.6px); mask: radial-gradient(circle at 31px 50%, transparent 7px, #000 7.6px); background: repeating-linear-gradient(90deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 3px), linear-gradient(180deg, #fbf6ec 0%, #ece4d6 36%, #ddd3c0 70%, #c9bea8 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .75), inset 0 -2px 0 rgb(0 0 0 / .2); }
.dt-ring { position: absolute; left: 19px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle, transparent 0 7px, #56656e 7.4px, #eef3f5 9px, #9fadb5 10.6px, #f7fafb 11.4px, #64747d 12px); }
.dt-no { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--f-mono); }
.dt-no small { font-size: 10px; font-weight: 500; letter-spacing: .16em; opacity: .72; }
.dt-no b { font-size: 22px; font-weight: 700; letter-spacing: .06em; text-shadow: 0 1px 0 rgb(255 255 255 / .55), 0 -1px 0 rgb(0 0 0 / .12); }
.dt-rule { align-self: stretch; width: 2px; margin: 4px 0; background: linear-gradient(90deg, rgb(0 0 0 / .24) 0 1px, rgb(255 255 255 / .6) 1px 2px); }
.dt-go { display: flex; align-items: center; gap: 10px; font: 700 17px var(--f-text); text-shadow: 0 1px 0 rgb(255 255 255 / .45); white-space: nowrap; }

/* 三塊身分牌：白色琺瑯、海沫鋁、黑色陽極 */
.dv-hang { display: flex; justify-content: center; gap: 40px; padding-top: 86px; position: relative; }
.dv-hang::before { content: ""; position: absolute; left: 4%; right: 4%; top: 14px; height: 4px; border-radius: 2px; background: linear-gradient(180deg, #e9eef0, #7d8b93); box-shadow: 0 2px 3px rgb(0 0 0 / .5); }
.ttag { position: relative; flex: none; width: 156px; filter: drop-shadow(0 16px 18px rgb(0 0 0 / .5)) drop-shadow(0 2px 2px rgb(0 0 0 / .4)); transform-origin: 50% -60px; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.ttag:hover { transform: none !important; }
.tt-cord { position: absolute; left: 50%; width: 40px; margin-left: -20px; overflow: visible; }
.tt-plate { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 226px; box-sizing: border-box; padding: 50px 12px 18px; text-align: center; border-radius: 6px 6px 18px 18px; clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 30px); -webkit-mask: radial-gradient(circle at 50% 24px, transparent 8px, #000 8.6px); mask: radial-gradient(circle at 50% 24px, transparent 8px, #000 8.6px); }
.tt-ring { position: absolute; left: 50%; top: 24px; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: radial-gradient(circle, transparent 0 8px, #56656e 8.4px, #eef3f5 10px, #9fadb5 12px, #f7fafb 13px, #64747d 14px); }
.tt-brand { font: 500 10px var(--f-mono); letter-spacing: .24em; opacity: .7; }
.tt-depth { font: 700 25px/1.2 var(--f-mono); margin-top: 6px; }
.tt-name { font: 900 21px/1.3 var(--f-head); margin-top: 2px; }
.tt-line { width: 84%; height: 2px; margin: auto 0 8px; }
.tt-no { font: 500 11px var(--f-mono); letter-spacing: .12em; display: flex; align-items: flex-end; gap: 4px; }
.tt-no i { display: inline-block; width: 62px; border-bottom: 1px dashed currentColor; opacity: .55; font-style: normal; text-align: center; letter-spacing: .06em; }
.tt-no i.has { border: 0; opacity: 1; width: auto; }
.tt-white .tt-plate { color: #183039; background: repeating-linear-gradient(0deg, rgb(0 0 0 / .025) 0 1px, transparent 1px 3px), linear-gradient(180deg, #fdfefe, #e2e8e6 70%, #cfd8d6); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgb(0 0 0 / .12); }
.tt-white .tt-line { background: linear-gradient(180deg, rgb(0 0 0 / .18) 0 1px, rgb(255 255 255 / .9) 1px 2px); }
.tt-white .tt-depth, .tt-white .tt-name { text-shadow: 0 1px 0 #fff; }
.tt-foam .tt-plate { color: var(--foam-ink); background: repeating-linear-gradient(90deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 3px), linear-gradient(180deg, #fbf6ec 0%, #ece4d6 36%, #ddd3c0 70%, #c9bea8 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .75), inset 0 -3px 0 rgb(0 0 0 / .2); }
.tt-foam .tt-line { background: linear-gradient(180deg, rgb(0 0 0 / .24) 0 1px, rgb(255 255 255 / .6) 1px 2px); }
.tt-foam .tt-depth, .tt-foam .tt-name { text-shadow: 0 1px 0 rgb(255 255 255 / .5); }
.tt-black .tt-plate { color: var(--foam); background: repeating-linear-gradient(90deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 3px), linear-gradient(180deg, #26363f, #101b21 55%, #070d11); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), inset 0 -2px 0 rgb(0 0 0 / .6); }
.tt-black .tt-line { background: linear-gradient(180deg, rgb(0 0 0 / .8) 0 1px, rgb(236 228 214 / .35) 1px 2px); }
.tt-black .tt-depth, .tt-black .tt-name { text-shadow: 0 -1px 0 rgb(0 0 0 / .9), 0 1px 0 rgb(236 228 214 / .15); }
.ttag.me .tt-plate { outline: 2px solid var(--foam); outline-offset: -2px; }


.dv-hang { display: flex; justify-content: center; gap: 40px; padding-top: 86px; position: relative; }
.dv-hang::before { content: ""; position: absolute; left: 4%; right: 4%; top: 14px; height: 4px; border-radius: 2px; background: linear-gradient(180deg, #e9eef0, #7d8b93); box-shadow: 0 3px 4px -1px rgb(0 0 0 / .55); }
.dv-hang.solo { padding-top: 92px; gap: 0; }
.dv-hang.solo::before { left: 18%; right: 18%; }

@media (max-width: 1100px) {
  .dv-hero, .dv-hero.half, .dv-xp, .dv-next { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .dv-next .tagbox { display: none; }
  .dv-layer { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .dv-daily { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 760px) {
  .dv { --gut: 40px; }
  .dv .nw, .dv .nowrap { white-space: normal; }
  .dv .lead { font-size: 16.5px; }
  .dv-rope::after { width: 6px; }
  .dv-knot { top: var(--kt, 64px); }
  /* 手機：深度直著寫在繩子左邊 */
  .dv-depth { right: auto; left: 2px; top: calc(var(--kt, 64px) + 20px); writing-mode: vertical-rl; text-align: left; font-size: 11.5px; letter-spacing: .04em; }
  .dv-depth i { display: none; }
  .dv-body { padding: 0 18px 0 22px; }
  .dv-sec { padding: 48px 0; }
  .dv-sec.first { padding-top: 48px; }
  .dv-layer { padding: 34px 0 36px; }
  .dv-layer::before { inset: 0 -100vw 0 -22px; }
  .dv-unit::before { inset: 0 -100vw 0 -22px; }
  .dv-layer h3 { font-size: 28px; }
  .dv-daily, .dv-daily.mini { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .dv-stop { grid-template-columns: 21px 76px minmax(0, 1fr); }
  .dv-stop .u { display: none; }
  .dv-ways, .dv-miles, .dv-links { grid-template-columns: minmax(0, 1fr); }
  .dv-way, .dv-way:first-child { padding: 20px 0; }
  .dv-way + .dv-way { border-left: 0; border-top: 1px solid var(--line); }
  .dv-miles > div, .dv-miles > div:first-child { padding: 18px 0; border-left: 0 !important; border-top: 1px solid var(--line); }
  .dv-unit { grid-template-columns: minmax(0, 1fr); padding: 28px 0 30px; }
  .dv-unit h2 { font-size: 23px; }
  .dv-unit .go { display: none; }
  .dv-me { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: start; }
  .dv-log { grid-template-columns: minmax(0, 1fr); }
  .dv-log > div:nth-child(n) { padding: 12px 0; border-left: 0; }
  .dv-hang { gap: 6px; padding-top: 70px; }
  .dv-hang .ttag { zoom: .64; }
  .dv-hang.solo { zoom: .8; padding-left: 28px; }
  .dtag { margin-left: 30px; }
  .dt-plate { flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding: 10px 20px 12px 54px; }
  .dt-rule { display: none; }
  .dt-no b { font-size: 19px; }
  .dt-go { font-size: 16px; flex-basis: 100%; }
}
.dv .mission { margin: 0; background: rgb(13 15 17 / .6); border-color: var(--line-2); }
@media (max-width: 760px) {
  .dv .mission { padding: 18px 16px; }
  .dv .reward-v { min-width: 82px; padding: 12px 8px; }
  .dv .reward-t { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .dtag, .ttag, .dv-knot { transition: none; } }
.dv-layer h3 .d { margin-left: 14px; font: 500 15px var(--f-mono); color: var(--ink-3); vertical-align: 5px; }
.dv-layer.l3 h3 .d { color: rgb(236 228 214 / .7); }
.dv-next .tagbox { text-decoration: none; justify-self: center; }
.dv-rope.here.deep::before { background: rgb(236 228 214 / .8); }

/* 服務條款、隱私權、退款政策 */
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
/* 合併選單的小分頁：深海版面（.dv）的頁也放得進去 */
.group-tabs { max-width: var(--wrap); margin: 18px auto 0; padding: 0 16px; position: relative; z-index: 2; }
.legal-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.legal-tabs a[aria-current="page"] { border-color: var(--foam); color: var(--foam); background: rgba(127, 216, 200, .08); }
.prose.legal h2 { display: flex; align-items: baseline; gap: 10px; margin-top: 30px; }
.legal-n { font-size: 13px; color: var(--foam); letter-spacing: .06em; }
.agree { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 2px; font-size: 13px; line-height: 1.6; color: var(--ink-2); text-align: left; }
.agree input { margin-top: 4px; flex: none; accent-color: var(--foam); }
.agree a { color: var(--foam); }

/* Bathy 試用回饋 */
.fb { display: grid; gap: 18px; max-width: 680px; }
.fb fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; margin: 0; display: grid; gap: 10px; }
.fb legend { padding: 0 6px; font-weight: 600; }
.fb .req { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--foam); }
.fb textarea, .fb input[type=text] { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sea-0); line-height: 1.7; }
.fb textarea { resize: vertical; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-chip { position: relative; cursor: pointer; }
.fb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fb-chip span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; transition: border-color .15s, color .15s, background .15s; }
.fb-chip input:checked + span { border-color: var(--foam); color: var(--foam); background: rgba(127, 216, 200, .1); }
.fb-chip input:focus-visible + span { outline: 2px solid var(--foam); outline-offset: 2px; }
.fb-nps .fb-chip span { min-width: 38px; text-align: center; padding: 7px 0; }
.fb-list p { margin: 4px 0 0; }

/* 方案與價格 */
.pr-list { padding-left: 1.2em; }
.pr-list li { margin: 6px 0; }
.pr-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.pr-shots figure { margin: 0; }
.pr-shots img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.pr-shots figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.pr-table td:nth-child(2) { white-space: nowrap; }
.pr-note { padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); }
@media (max-width: 640px) { .pr-shots { grid-template-columns: 1fr; } }

/* 我的通知 */
.inbox { margin-bottom: 48px; }
.inbox-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 760px; }
.inbox-list li { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.inbox-list li.new { border-color: var(--foam); background: rgba(127, 216, 200, .06); }
.inbox-list .when { font-size: 12px; color: var(--ink-3); }
.inbox-list p { margin: 4px 0 0; line-height: 1.7; overflow-wrap: anywhere; }

/* 艦長室・看板（轉換漏斗） */
.fn { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.fn-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 132px; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fn-row:first-child { border-top: 0; }
.fn-h { display: grid; gap: 2px; }
.fn-h b { font-weight: 600; }
.fn-h .hint { font-size: 12px; }
.fn-bar { height: 10px; border-radius: 5px; background: var(--sea-3); overflow: hidden; }
.fn-bar span { display: block; height: 100%; border-radius: 5px; background: var(--foam); }
.fn-n { display: grid; justify-items: end; gap: 1px; }
.fn-n b { font-size: 18px; }
.fn-n span { font-size: 12px; color: var(--ink-3); }
.fn-weeks { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 6px; }
.fn-wk { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.fn-wk i { display: block; width: 100%; max-width: 36px; background: var(--foam); border-radius: 4px 4px 0 0; }
.fn-wk span { font-size: 12px; color: var(--ink-2); }
.fn-wk em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.subs small { color: var(--ink-3); font-size: 11px; margin-left: 2px; }
@media (max-width: 640px) {
  .fn-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .fn-bar { grid-column: 1 / -1; grid-row: 2; }
}
.fn-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 20px; }
.fn-cols > .panel { min-width: 0; }
@media (max-width: 860px) { .fn-cols { grid-template-columns: minmax(0, 1fr); } }
.fb fieldset.fb-miss { border-color: var(--coral); }
.fb fieldset.fb-miss legend { color: var(--coral); }
.quant-figs.one { grid-template-columns: 1fr; }

/* ── 2026-11-20 同一套質感：主按鈕米白帶柔光、標題用黑體加一點字距、選取和捲軸跟著配色 ── */
h1, h2 { letter-spacing: .02em; }
.btn.primary { background: linear-gradient(180deg, #f7f1e6, var(--foam)); border-color: transparent; box-shadow: 0 0 0 1px rgb(255 255 255 / .5) inset, 0 8px 26px -10px rgb(236 228 214 / .45); }
::selection { background: rgb(236 228 214 / .28); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.bar { border-bottom-color: rgb(236 228 214 / .14); }

/* ── 返佣試算（綁定頁，2026-11-20）：拉一下交易量，三個數字跟著變 ── */
.calc { margin: 4px 0 16px; padding: 18px 20px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sea-0); }
.calc-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-h b { font-size: 15px; }
.calc-h span { font-size: 13px; color: var(--ink-3); }
.calc-in { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.calc-in output { font-size: 20px; font-weight: 500; color: var(--ink); }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 4px 0 2px; background: transparent; cursor: grab; }
.calc input[type="range"]:active { cursor: grabbing; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--foam) var(--p, 0%), var(--line-2) var(--p, 0%)); }
.calc input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line-2); }
.calc input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--foam); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: var(--foam); border: 0; box-shadow: 0 0 0 5px rgb(236 228 214 / .12), 0 2px 8px rgb(0 0 0 / .6); transition: box-shadow .15s; }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--foam); border: 0; box-shadow: 0 0 0 5px rgb(236 228 214 / .12); }
.calc input[type="range"]:hover::-webkit-slider-thumb, .calc input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgb(236 228 214 / .16), 0 2px 8px rgb(0 0 0 / .6); }
.calc input[type="range"]:focus-visible { outline: none; }
.calc-out { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.calc-out > div { background: var(--sea-1); padding: 10px 12px 12px; }
.calc-out dt { font-size: 12.5px; color: var(--ink-3); }
.calc-out dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 4px; }
.calc-out b { font-size: 24px; font-weight: 500; line-height: 1.2; }
.calc-out b.hot { color: var(--foam); text-shadow: 0 0 18px rgb(236 228 214 / .3); }
.calc-out small { font-size: 12px; color: var(--ink-3); }
.calc .fine { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
@media (max-width: 520px) { .calc-out b { font-size: 19px; } .calc { padding: 16px 14px 12px; } }

/* ── 下潛（首頁，2026-11-20）：往下捲，上面照下來的光越來越弱、浮游微粒越來越少，左下角有一個深度讀數 ── */
body.dvpage::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: calc(1 - var(--depth, 0)); background: radial-gradient(ellipse 90% 60% at 50% -10%, rgb(120 150 170 / .16), transparent 70%), linear-gradient(180deg, rgb(40 60 75 / .22), transparent 55%); }
body.dvpage .snow { opacity: calc(1 - var(--depth, 0) * .85); }
.depth-now { position: fixed; left: 18px; bottom: 16px; z-index: 4; display: none; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgb(5 6 7 / .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 12.5px var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.depth-now b { color: var(--foam); font-weight: 500; }
body.dvpage .depth-now { display: flex; }
@media (max-width: 720px) { .depth-now { left: 10px; bottom: 10px; font-size: 11.5px; } }

/* 2026-11-20 首頁返佣、付費候補 */
.dv-rebate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-top: 44px; padding: 30px 0 22px; border-bottom: 1px solid var(--line-2); }
.dv-rebate .k { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .08em; color: var(--ink-3); }
.dv-rebate h3 { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 600; }
.dv-rebate p { margin: 0; color: var(--ink-2); line-height: 1.8; }
.dv-rebate p b { color: var(--foam); font-weight: 600; }
.dv-rebate .eg .v { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dv-rebate .eg .v b { font-size: clamp(34px, 4.4vw, 48px); line-height: 1; color: var(--foam); font-weight: 600; }
.dv-rebate .eg .v small { font-size: 13.5px; color: var(--ink-2); }
.dv-rebate .fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 760px) { .dv-rebate { grid-template-columns: 1fr; align-items: start; } }
.bind-why li.early b { color: var(--foam); }
.wl { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.wl.slim { margin-top: 12px; align-items: flex-start; }
.wl.slim .btn { background: none; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.wl.slim .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.wl-ok { margin: 0 0 12px; font-size: 14px; color: var(--foam); }
.wl-f label { display: block; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-2); }
.wl-f label small { margin-left: 8px; font-size: 12px; color: var(--ink-3); }
.wl-row { display: flex; align-items: center; gap: 8px; }
.wl-row span { font-size: 13.5px; color: var(--ink-3); }
.wl-row input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sea-0); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.wl-leave { align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.wl-admin { margin-bottom: 26px; }
.wl-list { margin: 10px 0 0; padding: 0; list-style: none; max-height: 240px; overflow: auto; border-top: 1px solid var(--line); }
.wl-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
/* 轉換看板：實戰篇三個關鍵數字 */
.fn-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fn-key > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 10px; }
.fn-key b { font-size: 1.7rem; line-height: 1.1; }
@media (max-width: 720px) { .fn-key { grid-template-columns: 1fr; } }
