@font-face { font-family: 'BV Hans'; src: url('/fonts/display-hans.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'BV Hant'; src: url('/fonts/display-hant.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@view-transition { navigation: auto; }

:root {
  --bg: #ffffff;
  --surface: #f6f4ef;
  --ink: #12231e;
  --muted: #5a6a64;
  --line: rgba(18, 35, 30, 0.14);
  --line-strong: rgba(18, 35, 30, 0.32);
  --accent: #a64f26;
  --logo-a: #2f7d68;
  --logo-b: #c4683a;
  --accent-ink: #fff8f1;
  --night: #0e1b17;
  --night-ink: #ece7da;
  --night-muted: #a3b3ac;
  --night-line: rgba(236, 231, 218, 0.18);
  --night-accent: #e8b45a;
  --display: 'BV Hans', 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', STSong, Georgia, serif;
  --sans: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Noto Sans Mono CJK SC', monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: light;
}
:root[lang='zh-Hant'] {
  --display: 'BV Hant', 'Noto Serif TC', 'Songti TC', 'PMingLiU', Georgia, serif;
  --sans: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1b17;
    --surface: #15261f;
    --ink: #ece7da;
    --muted: #a3b3ac;
    --line: rgba(236, 231, 218, 0.15);
    --line-strong: rgba(236, 231, 218, 0.34);
    --accent: #e8b45a;
    --logo-a: #7fd6b4;
    --logo-b: #f0b45f;
    --accent-ink: #10201b;
    --night: #15261f;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1b17;
  --surface: #15261f;
  --ink: #ece7da;
  --muted: #a3b3ac;
  --line: rgba(236, 231, 218, 0.15);
  --line-strong: rgba(236, 231, 218, 0.34);
  --accent: #e8b45a;
  --logo-a: #7fd6b4;
  --logo-b: #f0b45f;
  --accent-ink: #10201b;
  --night: #15261f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.row-title, .card-title { word-break: keep-all; overflow-wrap: anywhere; }
.prose p, .prose li, .lead { text-wrap: pretty; }
.hero h1, .stage h2, .stats b, .section-head h2, .calc-band h2, .page-head h1, .article-head h1, .group-side h2, .related > h2, .invite h2, .row-title, .card-title, .ledger-block > h2, .ledger-split h2 { font-family: var(--display); font-weight: 900; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

/* 地区未确认前，邀请入口和说明都不显示 */
[data-invite]:not(.is-open), [data-invite-closed]:not(.is-open) { display: none !important; }

.shell { width: min(1360px, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 60; padding: 8px 16px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 8px; }
.eyebrow { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; color: var(--muted); }

/* 下划线从左向右填满，呼应“填空” */
.fill-link { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; padding-bottom: 2px; }
.fill-link:hover, .fill-link[aria-current='page'] { background-size: 100% 1.5px; }

/* 页头 */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); view-transition-name: site-head; }
.head-row { display: flex; align-items: center; gap: 8px 40px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 32px; height: 32px; flex: none; transition: transform 0.7s var(--ease); }
.brand:hover .brand-icon { transform: rotate(90deg); }
.brand-word { display: block; width: auto; height: 20px; }
.nav { display: flex; gap: 4px 28px; font-size: 15px; white-space: nowrap; }
.head-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-invite { margin-right: 12px; font-size: 14px; color: var(--accent); white-space: nowrap; }
.head-invite-bar { display: none; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--accent); text-align: center; text-decoration: none; }
.head-tool { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 18px; background: transparent; font-size: 13px; line-height: 1; text-decoration: none; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.head-tool:hover { border-color: var(--accent); color: var(--accent); }

/* 首页首屏 */
.hero { position: relative; padding-block: clamp(28px, 3.6vw, 56px) clamp(48px, 6vw, 88px); }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 6.1vw, 96px); line-height: 1.13; letter-spacing: -0.01em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(28px, 3vw, 44px); }
.hero-quick { display: grid; gap: 0; margin-top: clamp(28px, 3.4vw, 48px); border-top: 1px solid var(--line); max-width: 42em; }
.hero-quick span { padding: 14px 0 6px; font-size: 13px; color: var(--muted); }
.hero-quick a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; text-decoration: none; transition: padding-left 0.35s var(--ease), color 0.2s; }
.hero-quick a::after { content: '→'; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.hero-quick a:hover { padding-left: 10px; color: var(--accent); }
.hero-quick a:hover::after { opacity: 1; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 28px; }
/* 首页小票 */
.bill { width: min(100%, 480px); margin-inline: auto 0; }
.bill-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.bill-tab { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; line-height: 1.4; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.bill-tab:hover { border-color: var(--accent); color: var(--accent); }
.bill-tab[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bill-sheet { padding: 24px 28px 40px; background: var(--surface); -webkit-mask: radial-gradient(9px at 50% 100%, #0000 98%, #000) 50% 100% / 26px 100% repeat-x; mask: radial-gradient(9px at 50% 100%, #0000 98%, #000) 50% 100% / 26px 100% repeat-x; }
.bill-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); font-size: 14px; color: var(--muted); }
.bill-coin { width: 26px; height: 26px; }
.bill-rows { margin: 0; }
.bill-rows div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); animation: rise 0.5s var(--ease) both; }
.bill-rows div:nth-child(2) { animation-delay: 0.08s; }
.bill-rows dt { font-size: 15px; color: var(--muted); }
.bill-rows dd { margin: 0; font: 500 clamp(17px, 1.5vw, 20px) var(--mono); font-variant-numeric: tabular-nums; }
.bill-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding-top: 20px; font-size: 15px; font-weight: 500; }
.bill-blank { position: relative; display: inline-block; min-width: 8.5em; padding: 8px 14px; border-bottom: 2px solid var(--accent); font: 700 clamp(22px, 2.3vw, 30px)/1.2 var(--mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--accent-ink); }
.bill-blank::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: fill-blank 0.65s 0.3s var(--ease) both; }
.bill-blank span { position: relative; animation: rise 0.4s 0.55s var(--ease) both; }
.bill-more { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--accent); }
.bill-note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
@keyframes fill-blank { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn:active { transform: none; }
.text-link { font-size: 15px; color: var(--accent); }

/* 方孔放大过场 */
.stage { position: relative; height: 240vh; view-timeline: --stage block; }
.stage-inner { position: sticky; top: 0; display: grid; align-items: center; height: 100vh; background: var(--night); color: var(--night-ink); clip-path: inset(0); }
.stage h2 { font-size: clamp(36px, 7vw, 112px); line-height: 1.14; }
.stage h2 em { font-style: normal; color: var(--night-accent); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 5vw, 72px); border-top: 1px solid var(--night-line); padding-top: 20px; }
.stats b { display: block; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.1; color: var(--night-accent); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--night-muted); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage-inner { animation: open-hole linear both; animation-timeline: --stage; animation-range: entry 20% contain 50%; }
    @keyframes open-hole { from { clip-path: inset(38% calc(50% - 12vh) round 8px); background: var(--accent); } 70% { background: var(--night); } to { clip-path: inset(0 round 0); background: var(--night); } }
    .stage-copy { animation: copy-in linear both; animation-timeline: --stage; animation-range: contain 25% contain 60%; }
    @keyframes copy-in { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
  }
}
@supports not (animation-timeline: view()) {
  .stage { height: auto; }
  .stage-inner { position: static; height: auto; padding-block: clamp(72px, 12vw, 160px); }
}

/* 区块 */
.section { padding-block: clamp(64px, 9vw, 136px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.6vw, 68px); }
.section-head .lead { font-size: 16px; }
.more { display: inline-block; margin-top: 28px; font-size: 15px; color: var(--accent); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; line-height: 1.4; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* 问题列表 */
.rows { border-top: 1px solid var(--line-strong); }
.row { border-bottom: 1px solid var(--line); }
.row a { position: relative; display: grid; grid-template-columns: 3em minmax(0, 1fr) auto 2em; gap: 0 20px; align-items: baseline; padding: clamp(16px, 1.8vw, 24px) 0; text-decoration: none; transition: padding-left 0.4s var(--ease), color 0.2s; }
.row a::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.row a:hover { padding-left: 12px; color: var(--accent); }
.row a:hover::after { transform: scaleX(1); }
.row-index { font: 400 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.row-title { display: block; font-size: clamp(18px, 1.9vw, 27px); line-height: 1.35; }
.row-note { display: grid; grid-template-rows: 0fr; font-size: 15px; line-height: 1.7; color: var(--muted); transition: grid-template-rows 0.4s var(--ease); }
.row-note > span { overflow: hidden; }
.row a:hover .row-note, .row a:focus-visible .row-note { grid-template-rows: 1fr; }
.row-tag { font-size: 13px; color: var(--muted); white-space: nowrap; }
.row-arrow { justify-self: end; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.row a:hover .row-arrow { opacity: 1; transform: none; }
.rows-plain .row a { grid-template-columns: minmax(0, 1fr) auto 2em; }
.rows-plain .row-title { font-size: clamp(18px, 1.6vw, 22px); }
.rows-plain .row-note { grid-template-rows: 1fr; margin-top: 4px; }

/* 小算盘 */
.calc-band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.calc-band h2 { font-size: clamp(30px, 4.6vw, 68px); }
.tool-links { margin-top: 28px; border-top: 1px solid var(--line); }
.tool-links a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left 0.35s var(--ease), color 0.2s; }
.tool-links a:hover { padding-left: 10px; color: var(--accent); }
.tool-links small { font-size: 13px; color: var(--muted); text-align: right; }
.panel { padding: clamp(20px, 3vw, 40px); background: var(--surface); border-radius: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.fields label { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fields input, .fields select { display: block; width: 100%; margin-top: 6px; padding: 8px 0; border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); font: 500 19px var(--mono); font-variant-numeric: tabular-nums; outline: none; transition: border-color 0.25s; appearance: none; }
.fields select { background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 center / 6px 6px no-repeat; }
.fields input:hover, .fields select:hover { border-color: var(--ink); }
.fields input:focus, .fields select:focus { border-color: var(--accent); }
.result { margin: 28px 0 0; padding-top: 8px; border-top: 1px solid var(--line-strong); }
.result div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding-top: 14px; }
.result dt { font-size: 14px; color: var(--muted); }
.result dd { margin: 0; font: 600 clamp(20px, 2.4vw, 30px)/1.25 var(--mono); font-variant-numeric: tabular-nums; }
.result div:last-child dd { color: var(--accent); }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card { grid-column: span 4; display: block; text-decoration: none; }
.card-large { grid-column: span 8; grid-row: span 2; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.card-large .card-media { aspect-ratio: 16 / 9; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; filter: grayscale(1) contrast(1.02); opacity: 0.86; mix-blend-mode: multiply; transition: transform 0.9s var(--ease), filter 0.5s, opacity 0.5s; }
.card:hover .card-media img { transform: scale(1.035); filter: none; opacity: 1; }
.card-body { display: block; padding-top: 14px; }
.card-tag { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.card-title { display: inline; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size 0.5s var(--ease); }
.card-large .card-title { font-size: clamp(22px, 2.6vw, 38px); }
.card:hover .card-title { background-size: 100% 1.5px; }
.card-note { display: block; margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* 条款更新 */
.dated { border-top: 1px solid var(--line-strong); }
.dated li { display: grid; grid-template-columns: 9em minmax(0, 4fr) minmax(0, 5fr); gap: 4px 28px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dated time { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; color: var(--accent); }
.dated a { font-weight: 500; text-decoration: none; }
.dated a:hover { color: var(--accent); }
.dated span { font-size: 15px; color: var(--muted); }

/* 栏目页和普通页 */
.page-head { padding-block: clamp(48px, 7vw, 104px) clamp(28px, 4vw, 56px); }
.page-head h1 { font-size: clamp(34px, 5.6vw, 84px); line-height: 1.14; letter-spacing: -0.005em; }
.page-head .lead { margin-top: 20px; max-width: 42em; }
.page-head a { color: var(--accent); text-underline-offset: 3px; }
.group { padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(32px, 5vw, 80px); }
.group-side { position: sticky; top: 92px; align-self: start; }
.group-side h2 { font-size: clamp(22px, 2.4vw, 34px); }
.group-side p { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.plain-page { padding-bottom: clamp(48px, 7vw, 96px); }

/* 文章 */
.progress { position: fixed; top: 0; left: 0; z-index: 40; width: 100%; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
.article-head { padding-block: clamp(32px, 5vw, 72px) 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article-head h1 { margin-top: 18px; max-width: 18em; font-size: clamp(30px, 4.8vw, 68px); line-height: 1.18; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 260px); justify-content: space-between; gap: clamp(32px, 6vw, 96px); margin-top: clamp(28px, 4vw, 56px); }
.answer { margin: 0 0 clamp(28px, 4vw, 48px); padding: clamp(20px, 2.6vw, 32px); background: var(--surface); border-radius: 12px; }
.answer strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }
.answer p { margin: 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; line-height: 1.7; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.toc ol { border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.5; text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--accent); border-left-color: var(--accent); }

.prose { font-size: 17px; line-height: 1.95; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.4em 0 0.7em; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.35; }
.prose h3 { margin: 1.8em 0 0.6em; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; }
.prose p, .prose ul, .prose ol { margin-block: 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-thickness 0.15s; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; }
.prose code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--surface); font: 0.88em var(--mono); }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.6em; font-size: 15px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 6.5em; }
.prose th { border-bottom: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; color: var(--muted); }
.prose tr:hover td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.prose figure { margin: 2em 0; }
.prose figure img { display: block; width: auto; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; transition: border-color 0.2s; }
.prose figure img:hover { border-color: var(--accent); }
:root[data-theme='dark'] .prose figure img { filter: brightness(0.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .prose figure img { filter: brightness(0.9); } }
.prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.zoom { width: min(1300px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: zoom-out; }
.zoom::backdrop { background: rgba(10, 18, 15, 0.86); backdrop-filter: blur(4px); }
.zoom img { display: block; width: 100%; height: auto; border-radius: 8px; }

.sources { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-strong); font-size: 15px; }
.sources h2 { font-size: 20px; }
.sources ul { margin-top: 12px; }
.sources li { padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.sources a { text-decoration: none; }
.sources a:hover { color: var(--accent); }
.notice { margin: 20px 0 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.related { margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.related > h2 { margin-bottom: 24px; font-size: clamp(24px, 3vw, 40px); }

.invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3.5vw, 44px); background: var(--night); color: var(--night-ink); border-radius: 12px; }
.invite > div { flex: 1 1 340px; }
.invite h2 { font-size: clamp(22px, 2.6vw, 34px); }
.invite p { margin: 10px 0 0; max-width: 40em; font-size: 14px; line-height: 1.75; color: var(--night-muted); }
.invite p a { color: var(--night-accent); }
.invite code { font: 500 14px var(--mono); color: var(--night-accent); }
.invite .btn { background: var(--night-accent); border-color: var(--night-accent); color: #10201b; white-space: nowrap; }
.invite .btn:hover { background: #fff; border-color: #fff; }
.invite-line { margin: calc(-1 * clamp(10px, 2vw, 24px)) 0 clamp(28px, 4vw, 48px); padding: 0 clamp(20px, 2.6vw, 32px); font-size: 15px; font-weight: 500; line-height: 1.8; }
.invite-line > a { color: var(--accent); }
.invite-line small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.invite-line small a { color: inherit; }
.invite-line code { font: 500 13px var(--mono); color: var(--ink, inherit); }
.page-head .invite-line { margin: 18px 0 0; padding: 0; }
.invite-closed { margin-top: clamp(40px, 5vw, 64px); padding: 18px 22px; background: var(--surface); border-radius: 8px; font-size: 14px; color: var(--muted); }
.invite-closed a { color: var(--accent); }

/* 工具页 */
.tool-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(28px, 4vw, 56px); }
.tool-side { position: sticky; top: 92px; }
.tool-grid .prose > h2:first-child { margin-top: 0; }
.tool-grid .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tool-note { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* 页脚 */
.site-foot { margin-top: clamp(64px, 9vw, 136px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 80px); font-size: 15px; }
.foot-title { margin-bottom: 14px; font: 500 13px/1.5 var(--sans); color: var(--muted); }
.foot-cols li { margin-bottom: 8px; line-height: 1.6; }
.foot-note { margin: clamp(32px, 4vw, 56px) 0 0; max-width: 62em; font-size: 13px; line-height: 1.8; color: var(--muted); }
.foot-mark { display: block; margin-top: clamp(28px, 4vw, 56px); padding-inline: var(--gutter); color: var(--ink); transition: color 0.4s; }
.foot-mark:hover { color: var(--accent); }
.foot-mark .brand-word { width: 100%; height: auto; margin-bottom: -1.6%; }

@media (max-width: 1000px) {
  .head-row { flex-wrap: wrap; padding-block: 12px; }
  .nav { order: 3; width: 100%; }
  .hero-grid, .calc-band, .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-side { position: static; }
  .bill { margin-inline: 0; width: min(100%, 560px); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .group { grid-template-columns: minmax(0, 1fr); }
  .group-side { position: static; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .card, .card-large { grid-column: span 6; grid-row: auto; }
  .dated li { grid-template-columns: 9em minmax(0, 1fr); }
  .dated span { grid-column: 2; }
}
@media (max-width: 720px) {
  .site-head { position: static; }
  .head-invite-bar.is-open { display: block; }
  .nav { justify-content: space-between; gap: 12px; font-size: 14px; }
  .head-invite { display: none; }
  .head-row .brand-word { height: 18px; }
  .stage { height: 210vh; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stats div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .stats span { margin-top: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .row a { grid-template-columns: 2.2em minmax(0, 1fr); gap: 2px 8px; }
  .row-tag, .row-arrow { display: none; }
  .rows-plain .row a { grid-template-columns: minmax(0, 1fr); }
  .card, .card-large { grid-column: span 12; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 16px; }
  .prose table { display: block; overflow-x: auto; }
  .dated li { grid-template-columns: minmax(0, 1fr); }
  .dated span { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progress { display: none; }
  .stage { height: auto; }
  .stage-inner { position: static; height: auto; padding-block: clamp(72px, 12vw, 160px); }
}

/* 简体、繁體开关 */
.lang-seg { display: inline-flex; align-items: center; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; line-height: 1; white-space: nowrap; }
.lang-seg > * { display: inline-grid; place-items: center; height: 100%; padding: 0 11px; border-radius: 15px; text-decoration: none; transition: background 0.25s, color 0.25s; }
.lang-seg .is-current { background: var(--ink); color: var(--bg); font-weight: 500; }
.lang-seg a { color: var(--muted); }
.lang-seg a:hover { color: var(--accent); }

.foot-setting { padding: 0 0 2px; border: 0; background-color: transparent; font: inherit; cursor: pointer; }

.result dd { max-width: 100%; }
#liq-price { overflow-wrap: anywhere; }
.result dd.is-note { font-family: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1.6; }

.ledger-block { padding-block: clamp(40px, 6vw, 88px); border-top: 1px solid var(--line); }
.ledger-block > h2, .ledger-split h2 { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.2; }
.ledger-block .lead { margin-top: 16px; font-size: 16px; }
.ledger-block .lead a { color: var(--accent); }
.ledger-block > .lead { max-width: 42em; }
.ledger-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.ledger-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(24px, 3.4vw, 48px); border-top: 1px solid var(--line-strong); }
.ledger-products li { display: flex; flex-direction: column; gap: 12px; padding: 24px clamp(16px, 2vw, 28px) 24px 0; }
.ledger-products li + li { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.ledger-products h3 { font-size: 20px; }
.ledger-products p { margin: 0; flex: 1; font-size: 15px; line-height: 1.8; color: var(--muted); }
.ledger-products a { font-size: 14px; color: var(--accent); }
.ledger-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line-strong); }
.ledger-steps li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding-block: 14px; border-bottom: 1px solid var(--line); counter-increment: step; }
.ledger-steps li::before { content: counter(step); font: 500 14px var(--mono); line-height: 1.9; color: var(--accent); }
.ledger-search { display: block; margin-top: 24px; font-size: 14px; color: var(--muted); }
.ledger-search input { display: block; width: 100%; max-width: 320px; margin-top: 8px; padding: 10px 0; border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.ledger-search input:focus { outline: none; border-bottom-color: var(--accent); }
.ledger-terms { margin: 0; border-top: 1px solid var(--line-strong); }
.ledger-terms > div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.ledger-terms > div[hidden] { display: none; }
.ledger-terms dt { font-weight: 600; }
.ledger-terms dd { margin: 4px 0 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.ledger-terms #term-empty { padding-block: 14px; color: var(--muted); }
.ledger-faq { border-top: 1px solid var(--line-strong); }
.ledger-faq > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.ledger-faq h3 { font-size: 17px; }
.ledger-faq p { margin: 6px 0 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.hero .invite-line { margin: 24px 0 0; padding: 0; }
@media (max-width: 1000px) {
  .ledger-split { grid-template-columns: minmax(0, 1fr); }
  .ledger-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-products li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger-products li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .ledger-products { grid-template-columns: minmax(0, 1fr); }
  .ledger-products li, .ledger-products li + li { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .ledger-products li:first-child { border-top: 0; }
}
