@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f5e2cc;
  --paper-deep: #ecd3b6;
  --paper-light: #fbf1e3;
  --ink: #2a211b;
  --ink-2: #6a5646;
  --ink-3: #9a8472;
  --line: rgba(42, 33, 27, 0.16);
  --cinnabar: #b5412c;
  --amber: #dd9a2b;
  --glow: #ffd98a;
  --night: #1c2238;
  --night-2: #2a3251;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;
  --num: "Fraunces", "Noto Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }

/* 纸的颗粒 */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 顶栏 */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.seal {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--cinnabar); color: var(--paper-light);
  font-family: var(--serif); font-weight: 900; font-size: 20px; line-height: 1;
  border-radius: 7px 9px 6px 10px / 9px 6px 10px 7px; transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1.5px rgba(251, 241, 227, 0.55), inset 0 0 0 3px var(--cinnabar);
}
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 0.18em; }
.nav { display: flex; gap: clamp(14px, 3vw, 30px); font-family: var(--serif); font-size: 15px; padding: 4px 20px; border-radius: 999px; background: rgba(251, 241, 227, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(42, 33, 27, 0.08); }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 2px; background: linear-gradient(var(--cinnabar), var(--cinnabar)) 0 100% / 0 1.5px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; }
.nav a:hover { color: var(--ink); background-size: 100% 1.5px; }

/* 首屏 */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; flex-direction: column; justify-content: center; padding: 110px clamp(20px, 5vw, 56px) 90px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art img {
  position: absolute; right: 0; bottom: 0; width: min(1500px, 108%); height: 100%;
  object-fit: cover; object-position: 100% 100%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent 20%, #000 50%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent 20%, #000 50%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: art-in 1.8s var(--ease) both;
}
@keyframes art-in { from { opacity: 0; transform: scale(1.03); } }
.motes { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }

.eyebrow { font-family: var(--serif); font-size: 14px; letter-spacing: 0.22em; color: var(--ink-2); }
.hero h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.28; letter-spacing: 0.04em; margin-top: 18px; text-wrap: balance;
}
.hero h1 em { font-style: normal; white-space: nowrap; color: var(--cinnabar); background: linear-gradient(transparent 62%, rgba(255, 201, 96, 0.55) 62%); }

.tally { margin-top: clamp(28px, 5vh, 52px); }
.tally-label { font-family: var(--serif); color: var(--ink-2); font-size: 15px; letter-spacing: 0.1em; }
.amount { display: flex; align-items: baseline; gap: 0.12em; font-family: var(--num); font-weight: 400; font-size: clamp(60px, 9.4vw, 120px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 2px; }
.yuan { font-size: 0.42em; color: var(--cinnabar); transform: translateY(-0.5em); }
.roll { display: inline-flex; font-variant-numeric: tabular-nums lining-nums; }
.roll .col { display: inline-block; height: 1.05em; overflow: hidden; }
.roll .strip { display: flex; flex-direction: column; transition: transform 2.2s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.roll .strip span { height: 1.05em; line-height: 1.05; text-align: center; }
.roll .sep { opacity: 0.55; }
.roll .cents { font-size: 0.5em; color: var(--ink-2); }
.tally-meta { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.tally-meta span.seg { white-space: nowrap; }
.tally-meta b { font-family: var(--num); font-weight: 600; color: var(--ink); font-size: 1.1em; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); margin: 0 10px; vertical-align: middle; }

.next { margin-top: 30px; max-width: 460px; }
.next-line { position: relative; height: 2px; background: var(--line); border-radius: 2px; }
.next-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--ink), var(--amber)); border-radius: 2px; transition: width 2.4s var(--ease) 0.4s; }
.next-glow { position: absolute; top: 50%; left: var(--p, 0%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px rgba(221, 154, 43, 0.35), 0 0 22px 6px rgba(255, 201, 96, 0.9); transition: left 2.4s var(--ease) 0.4s; animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(221, 154, 43, 0.18), 0 0 34px 12px rgba(255, 201, 96, 0.75); } }
.next-text { margin-top: 12px; font-family: var(--serif); font-size: 15px; color: var(--ink-2); }
.next-text b { font-family: var(--num); color: var(--ink); font-weight: 600; }

.scroll-hint { position: absolute; z-index: 2; left: clamp(20px, 5vw, 56px); bottom: 28px; font-family: var(--serif); font-size: 13px; letter-spacing: 0.16em; color: var(--ink-2); text-decoration: none; padding-left: 34px; }
.scroll-hint::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: currentColor; transform-origin: left; animation: reach 2.4s var(--ease) infinite; }
@keyframes reach { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); opacity: 0; } }

.rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d) * 140ms + 200ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }


/* 小节标题 */
section.wrap, .lamps { padding-block: clamp(60px, 7.5vw, 100px); }
.lamps { border-top: 1px solid rgba(243, 230, 210, 0.12); }
.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; max-width: 720px; margin-bottom: clamp(36px, 6vw, 64px); }
.sec-no { grid-row: span 2; font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--cinnabar); border: 1.5px solid var(--cinnabar); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; margin-top: 10px; }
.sec-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: 0.08em; line-height: 1.3; }
.sec-lead { margin-top: 12px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.9; }

/* 算法 */
.rule-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.rule-steps li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.rule-steps li:last-child { border-bottom: 1px solid var(--line); }
.step-no { font-family: var(--num); font-style: italic; font-size: 38px; line-height: 1; color: var(--amber); width: 34px; }
.rule-steps h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.rule-steps p { color: var(--ink-2); margin-top: 4px; }

.receipt {
  position: relative; background: var(--paper-light); padding: 34px 30px 30px; transform: rotate(1.4deg);
  box-shadow: 0 1px 0 rgba(42, 33, 27, 0.06), 0 24px 48px -22px rgba(88, 52, 20, 0.45);
  --tooth: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x;
}
.receipt-title { text-align: center; font-family: var(--serif); letter-spacing: 0.6em; text-indent: 0.6em; color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.receipt-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); }
.receipt-row output { font-size: 30px; }
.receipt-give output { font-size: clamp(38px, 5vw, 52px); color: var(--cinnabar); font-weight: 600; line-height: 1.2; }
.receipt-dash { border-top: 1.5px dashed var(--line); margin: 20px 0 16px; }
.receipt-foot { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.receipt-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.receipt-presets button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--ink-2); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.receipt-presets button:hover, .receipt-presets button.on { border-color: var(--ink); color: var(--ink); background: rgba(42, 33, 27, 0.05); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 8px 0 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--amber); border: 2px solid var(--paper-light); box-shadow: 0 0 0 1.5px var(--ink), 0 0 16px rgba(255, 201, 96, 0.9); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 2px solid var(--paper-light); box-shadow: 0 0 0 1.5px var(--ink); }

/* 聚沙成塔 */
.tower { background: var(--night); color: #f3e6d2; padding-bottom: clamp(48px, 6vw, 80px); }
.tower-stage { position: relative; height: clamp(620px, 94svh, 880px); overflow: hidden; }
.tower-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.tower-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.tower-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(56px, 7vw, 96px) 28px; pointer-events: none; }
.tower-ui .sec-head { margin-bottom: 0; max-width: 460px; }
.tower .sec-no { color: var(--glow); border-color: var(--glow); }
.tower .sec-lead { color: #b9b3c2; }
.tower-hud { max-width: 420px; }
.tower-date { font-family: var(--serif); letter-spacing: 0.14em; color: #b9b3c2; font-size: 15px; }
.tower-amount { font-size: clamp(48px, 7vw, 84px); line-height: 1.15; color: var(--glow); text-shadow: 0 0 40px rgba(255, 201, 96, 0.35); }
.tower-sub { color: #b9b3c2; font-size: 14px; }
.tower-ctl { display: flex; align-items: center; gap: 16px; margin-top: 18px; pointer-events: auto; }
.tower-ctl button { flex: none; background: none; border: 1px solid rgba(243, 230, 210, 0.35); color: #f3e6d2; border-radius: 999px; padding: 6px 16px; font-family: var(--serif); font-size: 14px; letter-spacing: 0.1em; transition: border-color 0.2s, color 0.2s; }
.tower-ctl button:hover { border-color: var(--glow); color: var(--glow); }
.tower-ctl input[type="range"] { margin: 0; }
.tower-ctl input[type="range"]::-webkit-slider-runnable-track { background: rgba(243, 230, 210, 0.4); }
.tower-ctl input[type="range"]::-moz-range-track { background: rgba(243, 230, 210, 0.4); }
.tower-ctl input[type="range"]::-webkit-slider-thumb { border-color: var(--night); box-shadow: 0 0 0 1.5px var(--glow), 0 0 16px rgba(255, 201, 96, 0.9); background: var(--glow); }
.tower-ctl input[type="range"]::-moz-range-thumb { border-color: var(--night); box-shadow: 0 0 0 1.5px var(--glow); background: var(--glow); }
.tower-mark { position: absolute; z-index: 1; transform: translateY(-50%); padding-left: 44px; font-family: var(--serif); font-size: 14px; letter-spacing: 0.08em; white-space: nowrap; color: #7f86a6; transition: color 0.8s, text-shadow 0.8s; pointer-events: none; }
.tower-mark::before { content: ""; position: absolute; left: 0; top: 50%; width: 34px; height: 1px; background: currentColor; }
.tower-mark.on { color: var(--glow); text-shadow: 0 0 18px rgba(255, 201, 96, 0.7); }
.tower-stage.flat { height: auto; }
.tower-stage.flat canvas, .tower-stage.flat .tower-marks, .tower-stage.flat .tower-ctl, .tower-stage.flat::after { display: none; }
.tower-stage.flat .tower-ui { gap: 32px; }
.tower .facts { margin-top: 8px; border-top-color: rgba(243, 230, 210, 0.5); }
.tower .fact + .fact { border-left-color: rgba(243, 230, 210, 0.16); }
.tower .fact-k { color: #b9b3c2; }
.tower .fact-n { color: #8f8aa0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--ink); }
.fact { padding: 22px 20px 0 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact-k { font-family: var(--serif); font-size: 14px; color: var(--ink-2); letter-spacing: 0.08em; }
.fact-v { font-family: var(--num); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; margin-top: 6px; }
.fact-n { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }

/* 点灯 */
.lamps { background: var(--night); color: #f3e6d2; position: relative; overflow: hidden; }
.lamps::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 12% 62%, rgba(255, 201, 96, 0.09), transparent 70%), radial-gradient(1px 1px at 12% 30%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 18%, #fff7 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 62%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 44% 78%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 60% 44%, #fff5 50%, transparent 51%); pointer-events: none; }
.lamps .wrap { position: relative; }
.lamps .sec-lead { color: #b9b3c2; }
.lamps .sec-no { color: var(--glow); border-color: var(--glow); }
.lamp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; position: relative; }
.lamp { position: relative; padding: 0 28px 8px 0; }
.lamp-rail { position: relative; height: 96px; }
.lamp-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: rgba(243, 230, 210, 0.22); }
.lamp.lit .lamp-rail::before { background: linear-gradient(90deg, var(--glow), rgba(255, 217, 138, 0.5)); }
.lamp.now .lamp-rail::after { content: ""; position: absolute; left: 0; top: 46px; height: 1px; width: var(--p); background: var(--glow); box-shadow: 0 0 10px var(--glow); transition: width 2s var(--ease) 0.3s; }
.lamp:not(.in).now .lamp-rail::after { width: 0; }
.bulb { position: absolute; left: 0; top: 22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); border: 1px solid rgba(243, 230, 210, 0.3); z-index: 1; transition: background 1.2s ease 0.5s, box-shadow 1.2s ease 0.5s; }
.bulb svg { width: 22px; height: 22px; stroke: #8f8aa0; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 1.2s ease 0.5s; }
.lamp.lit.in .bulb { background: radial-gradient(circle at 50% 40%, #fff3cf, var(--glow) 55%, var(--amber)); border-color: transparent; box-shadow: 0 0 0 6px rgba(255, 217, 138, 0.14), 0 0 60px 16px rgba(255, 201, 96, 0.5); animation: breathe 4.5s ease-in-out 1.8s infinite; }
.lamp.lit.in .bulb svg { stroke: var(--ink); }
@keyframes breathe { 50% { box-shadow: 0 0 0 9px rgba(255, 217, 138, 0.1), 0 0 84px 26px rgba(255, 201, 96, 0.36); } }
.lamp.ready .bulb { border-color: var(--glow); box-shadow: 0 0 24px rgba(255, 201, 96, 0.4); }
.lamp.ready .bulb svg, .lamp.now .bulb svg { stroke: var(--glow); }
.lamp-target { font-family: var(--num); font-size: clamp(34px, 4vw, 46px); line-height: 1.2; margin-top: 10px; }
.lamp-target small { font-size: 0.45em; color: #b9b3c2; margin-right: 4px; }
.lamp-title { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.1em; margin-top: 2px; }
.lamp-state { display: inline-block; margin-top: 12px; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(243, 230, 210, 0.3); color: #b9b3c2; }
.lamp.lit .lamp-state { background: var(--glow); color: var(--ink); border-color: transparent; }
.lamp.ready .lamp-state, .lamp.now .lamp-state { color: var(--glow); border-color: var(--glow); }
.lamp-text { margin-top: 12px; color: #c9c2cf; font-size: 15px; line-height: 1.8; max-width: 30em; }
.lamp-text b { color: #f3e6d2; font-family: var(--num); font-weight: 600; }
.lamp-proof { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--glow); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* 账本 */
.balance { display: flex; flex-wrap: wrap; align-items: end; gap: 12px clamp(16px, 3vw, 36px); margin-bottom: 36px; }
.balance-v { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; }
.balance-v.strong { color: var(--cinnabar); font-weight: 600; }
.balance-op { font-family: var(--num); font-size: 28px; color: var(--ink-3); padding-bottom: 4px; }

.table-wrap { background: var(--paper-light); padding: clamp(8px, 2vw, 20px) clamp(14px, 3vw, 32px) 8px; box-shadow: 0 30px 60px -36px rgba(88, 52, 20, 0.5); background-image: linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(181, 65, 44, 0.25) 100%); background-size: clamp(14px, 3vw, 32px) 100%; background-repeat: no-repeat; }
.book { width: 100%; border-collapse: collapse; font-size: 15px; }
.book th { font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; color: var(--ink-2); text-align: left; padding: 14px 10px 12px; border-bottom: 1.5px solid var(--ink); }
.book td { padding: 11px 10px; border-bottom: 1px solid rgba(42, 33, 27, 0.1); font-family: var(--num); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.book .r { text-align: right; }
.book td.give { color: var(--cinnabar); font-weight: 600; }
.book td .wk { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-left: 8px; }
.book tr.out td { background: rgba(255, 201, 96, 0.22); font-family: var(--serif); white-space: normal; }
.book tr.out b { font-family: var(--num); color: var(--cinnabar); }
.book tr.fix td { color: var(--ink-2); font-family: var(--serif); white-space: normal; }
.book tbody tr { transition: background 0.2s; }
.book tbody tr:not(.out):hover { background: rgba(42, 33, 27, 0.04); }
.more { display: block; width: 100%; background: none; border: 0; padding: 16px; font-family: var(--serif); letter-spacing: 0.2em; color: var(--ink-2); }
.more:hover { color: var(--cinnabar); }

.verify { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--ink); align-items: start; }
.verify h3 { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: 0.06em; }
.verify-copy p { color: var(--ink-2); margin-top: 10px; }
.verify-head { font-size: 13.5px; }
.verify-head code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; background: rgba(42, 33, 27, 0.07); padding: 2px 8px; border-radius: 4px; word-break: break-all; color: var(--ink); }
.verify-act { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.btn { background: var(--ink); color: var(--paper-light); border: 1.5px solid var(--ink); padding: 12px 22px; border-radius: 999px; font-family: var(--serif); font-weight: 600; letter-spacing: 0.1em; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s; }
.btn:hover { transform: translateY(-2px); background: var(--cinnabar); border-color: var(--cinnabar); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
.btn:disabled { opacity: 0.5; transform: none; cursor: default; }
.btn:focus-visible, .more:focus-visible, .nav a:focus-visible, .lamp-proof:focus-visible, input:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }
.verify-bar { flex-basis: 100%; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.verify-bar span { display: block; height: 100%; width: var(--p, 0%); background: var(--amber); transition: width 0.15s linear; }
.verify-result { flex-basis: 100%; font-family: var(--serif); font-size: 15px; min-height: 1.75em; }
.verify-result.ok { color: #2f6b45; }
.verify-result.bad { color: var(--cinnabar); }

/* 承诺 */
.pledge { padding-top: 0 !important; }
.pledge h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: 0.08em; margin-bottom: 28px; }
.pledge-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.pledge-list li { padding: 24px 22px 0 0; }
.pledge-list li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.pledge-list h3 { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 0.14em; color: var(--cinnabar); }
.pledge-list p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.foot { background: var(--paper-deep); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 0.18em; margin-bottom: 14px; }
.foot-line { color: var(--ink-2); }
.foot-small { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.proof { border: 0; padding: 16px; background: var(--paper-light); border-radius: 8px; max-width: min(92vw, 720px); text-align: center; }
.proof::backdrop { background: rgba(28, 34, 56, 0.7); }
.proof img { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto 14px; }

@media (max-width: 860px) {
  .nav a:nth-child(-n + 1) { display: none; }
  .hero { min-height: 0; justify-content: flex-start; padding: 96px 20px 0; }
  .hero-art { position: relative; inset: auto; order: 3; margin: 12px -20px 0; height: 62vw; }
  .hero-art img { width: 100%; object-position: 88% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 86%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .nav { padding: 2px 14px; }
  .scroll-hint { display: none; }
  .rule-grid, .verify { grid-template-columns: 1fr; }
  .receipt { transform: rotate(0.8deg); margin-inline: 4px; }
  .facts, .pledge-list { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3), .pledge-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3), .pledge-list li:nth-child(n + 3) { margin-top: 22px; border-top: 1px solid var(--line); }
  .lamp-list { grid-template-columns: 1fr; }
  .lamp { padding: 0 0 36px 68px; }
  .lamp-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 48px; height: auto; }
  .lamp-rail::before { left: 24px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .lamp.now .lamp-rail::after { left: 24px; top: 0; width: 1px; height: var(--p); transition-property: height; }
  .lamp:not(.in).now .lamp-rail::after { width: 1px; height: 0; }
  .lamp:last-child .lamp-rail::before { bottom: auto; height: 48px; }
  .bulb { top: 0; }
  .lamp-target { margin-top: 0; }
  .tower-stage { height: 860px; }
  .tower-mark { left: 20px !important; padding-left: 0; padding-bottom: 6px; font-size: 12.5px; transform: translateY(-100%); border-bottom: 1px solid currentColor; padding-right: 28px; }
  .tower-mark::before { display: none; }
  .tower .fact:nth-child(n + 3) { border-top-color: rgba(243, 230, 210, 0.16); }
  .book { font-size: 14px; }
  .book th, .book td { padding-inline: 6px; }
  .book td .wk { display: none; }
  .balance-op { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .motes { display: none; }
}
