/* ==========================================================================
   myjpmini — 站点样式
   暖色纸感、衬线标题、手写批注、克制留白。颜色都在 :root 的变量里。
   ========================================================================== */

/* ---------- 字体（自托管，按页面用字裁剪，见 tools/subset-fonts.sh） ---------- */

@font-face {
  font-family: "JPM Serif";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2022, U+2026, U+2190-2199;
}
@font-face {
  font-family: "JPM Serif";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2026;
}
@font-face {
  font-family: "JPM Serif";
  src: url("../fonts/serif-sc.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+00B7, U+2018-201F, U+2E80-2FFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}
@font-face {
  font-family: "JPM Hand";
  src: url("../fonts/wenkai.woff2") format("woff2");
  font-display: swap;
}

/* ---------- 色板 ---------- */

:root {
  --paper: #F4F0E8;
  --paper-2: #ECE6D9;
  --card: #FBF9F5;
  --ink: #1E1C19;
  --ink-2: #48433B;
  --ink-3: #6E675B;
  --rule: #DDD5C7;
  --rule-2: #C9BFAD;
  --clay: #B8432F;        /* 比美国版更偏朱红：鸟居、东京塔、印章 */
  --clay-text: #A63C29;
  --clay-hover: #9C3726;
  --clay-soft: #F2DCD3;
  --on-clay: #FCF8F2;
  --olive: #7D8762;
  --sand: #E7D1A6;
  --desk: #D7BC8E;
  --wall: #E9E2D3;
  --shadow: 0 1px 0 rgba(70, 52, 30, .05), 0 22px 44px -26px rgba(70, 52, 30, .38);
  --grain-opacity: .07;
  --grain-blend: multiply;

  --display: "JPM Serif", "Iowan Old Style", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --hand: "JPM Hand", "Kaiti SC", "STKaiti", "KaiTi", cursive;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: 28px;
  --r: 18px;
  --r-sm: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1916; --paper-2: #23201C; --card: #2A2622;
    --ink: #F2EDE3; --ink-2: #CFC7B9; --ink-3: #A0988A;
    --rule: #37332D; --rule-2: #4A453D;
    --clay: #D86A50; --clay-text: #E8826A; --clay-hover: #E8826A; --clay-soft: #402820; --on-clay: #1B1916;
    --olive: #98A27C; --sand: #6A5437; --desk: #4A3A2B; --wall: #26231F;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 22px 44px -26px rgba(0, 0, 0, .7);
    --grain-opacity: .05; --grain-blend: overlay;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1916; --paper-2: #23201C; --card: #2A2622;
  --ink: #F2EDE3; --ink-2: #CFC7B9; --ink-3: #A0988A;
  --rule: #37332D; --rule-2: #4A453D;
  --clay: #D86A50; --clay-text: #E8826A; --clay-hover: #E8826A; --clay-soft: #402820; --on-clay: #1B1916;
  --olive: #98A27C; --sand: #6A5437; --desk: #4A3A2B; --wall: #26231F;
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 22px 44px -26px rgba(0, 0, 0, .7);
  --grain-opacity: .05; --grain-blend: overlay;
  color-scheme: dark;
}

@media (max-width: 640px) { :root { --gutter: 18px; } }

/* ---------- 基础 ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-synthesis-style: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink-2);
  font: 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .5s var(--ease);
}

/* 纸张颗粒：固定层，不随滚动重绘 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.5vw, 3.15rem); line-height: 1.18; }
h1, h2 { word-break: keep-all; overflow-wrap: break-word; }
h3 { font-size: 1.24rem; line-height: 1.42; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-hover); }

::selection { background: var(--clay-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .01em; }
.latin { font-family: var(--display); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--clay-text);
  margin: 0 0 22px;
}
.eyebrow .num { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow .num::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.85; color: var(--ink-2); max-width: 33em; }

/* 手绘下划线 */
.u {
  --u-img: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path d='M2 6.6C18 3.2 40 8.2 62 5.4S90 4.2 98 6.2' fill='none' stroke='%23B8432F' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  background: var(--u-img) left 100% / 100% .34em no-repeat;
  padding-bottom: .16em;
}
:root[data-theme="dark"] .u { --u-img: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path d='M2 6.6C18 3.2 40 8.2 62 5.4S90 4.2 98 6.2' fill='none' stroke='%23D86A50' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .u { --u-img: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path d='M2 6.6C18 3.2 40 8.2 62 5.4S90 4.2 98 6.2' fill='none' stroke='%23D86A50' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>"); } }
.js .u { background-size: 0% .34em; transition: background-size 1.1s var(--ease-io) .25s; }
.js .u.drawn { background-size: 100% .34em; }

/* ---------- 按钮 ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .92em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 .98rem/1.1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { background: var(--clay); color: var(--on-clay); }
.btn-primary:hover { background: var(--clay-hover); color: var(--on-clay); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--clay) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--card) 70%, transparent); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); color: var(--paper); }
.btn-sm { padding: .62em 1.1em; font-size: .9rem; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark .led { animation: blink 3.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.brand-word { font-family: var(--display); font-size: 1.36rem; letter-spacing: -.015em; line-height: 1; }
.brand-word em { font-style: italic; color: var(--clay-text); padding: 0 .03em 0 .01em; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { position: relative; color: var(--ink-2); text-decoration: none; font-size: .95rem; transition: color .2s var(--ease); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--clay);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.mobile-nav { border-top: 1px solid var(--rule); padding: 8px var(--gutter) 28px; }
.mobile-nav a:not(.btn) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  animation: rise .6s var(--ease) both;
}
.mobile-nav a:not(.btn)::after { content: attr(data-n); font: .76rem var(--mono); color: var(--ink-3); }
.mobile-nav a:nth-child(2) { animation-delay: .04s; }
.mobile-nav a:nth-child(3) { animation-delay: .08s; }
.mobile-nav a:nth-child(4) { animation-delay: .12s; }
.mobile-nav a:nth-child(5) { animation-delay: .16s; }
.mobile-nav .btn { margin-top: 22px; width: 100%; }

@media (max-width: 900px) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .mobile-nav { display: none !important; } }

/* ---------- 版块 ---------- */

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--paper-2); }

.sec-head { max-width: 44rem; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 + p { margin-top: 20px; }
.sec-head.center { margin-inline: auto; text-align: center; max-width: 46rem; }
.sec-head.center .eyebrow { justify-content: center; }
@media (max-width: 640px) {
  .sec-head.center { text-align: left; }
  .sec-head.center .eyebrow { justify-content: flex-start; }
}
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------- 首屏：左边文案，右边东京之窗 ---------- */

.hero { position: relative; }
.hero-pin {
  display: grid;
  --hero-side: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  grid-template-columns: var(--hero-side) minmax(0, 1fr) minmax(0, 1fr) var(--hero-side);
  min-height: calc(100svh - 72px);
}
.hero-copy { grid-column: 2; align-self: center; padding: 40px clamp(28px, 4.5vw, 72px) 48px 0; }
.hero-title { font-size: clamp(2.6rem, 4.3vw, 4rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 28px; }
.h-line { display: block; overflow: hidden; padding: .04em .1em .36em 0; margin: -.04em -.1em -.36em 0; }
.h-line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 60ms); }
@keyframes line-up { from { transform: translateY(110%); } }
.hero-title .accent { color: var(--clay); }
.hero-kicker { font-family: var(--display); font-size: clamp(1.25rem, 1.75vw, 1.55rem); color: var(--ink); margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: .9rem; color: var(--ink-3); }
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }

.rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* 东京之窗：天色跟随东京此刻的时间，可拖动快进一天 */
.jp-card {
  --sky-a: #1B2230;
  --sky-b: #333D4F;
  --bldg: #2C3340;
  --fuji: #3A4456;
  --lit: 1; --stars: 1; --moon: 1; --sun: 0; --cloud: 0; --glow: .95;
  grid-column: 3;
  position: relative;
  margin: 0;
  min-height: 540px;
}
@media (min-width: 901px) { .jp-card { align-self: center; aspect-ratio: 480 / 560; max-height: calc(100svh - 120px); min-height: 0; } }
.jp-frame {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--wall);
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.jp-frame:active { cursor: grabbing; }
.jp-art { --scene-ink: #1E1C19; width: 100%; height: 100%; } /* 窗外的线条不随深色模式反转，否则白天的楼会没有轮廓 */
.jp-art .sky-a { stop-color: var(--sky-a); }
.jp-art .sky-b { stop-color: var(--sky-b); }
.jp-art .bldg { fill: var(--bldg); }
.jp-art .fuji { fill: var(--fuji); }
.jp-art .fuji-snow { fill: #F7F3EA; }
.jp-art .tower { fill: var(--clay); }
.jp-art .tower-band { fill: #F7F3EA; }
.jp-art .lit { opacity: var(--lit); }
.jp-art .stars { opacity: var(--stars); }
.jp-art .moon { opacity: var(--moon); }
.jp-art .sun { opacity: var(--sun); }
.jp-art .cloud { opacity: var(--cloud); }
.jp-art .glow { opacity: var(--glow); }
.jp-card.easing .sky-a, .jp-card.easing .sky-b { transition: stop-color 1.1s var(--ease-io); }
.jp-card.easing .bldg, .jp-card.easing .fuji { transition: fill 1.1s var(--ease-io); }
.jp-card.easing .lit, .jp-card.easing .stars, .jp-card.easing .moon, .jp-card.easing .sun, .jp-card.easing .cloud, .jp-card.easing .glow { transition: opacity 1.1s var(--ease-io), transform 1.1s var(--ease-io); }
.jp-art .cloud-drift { animation: drift 38s linear infinite alternate; }
@keyframes drift { to { transform: translateX(46px); } }
.jp-art .hand { font-size: 21px; fill: var(--ink-2); }
.jp-art .paw { transform-box: fill-box; transform-origin: 0% 100%; animation: beckon 2.2s ease-in-out infinite; }
@keyframes beckon { 0%, 60%, 100% { transform: rotate(0); } 30% { transform: rotate(-22deg); } }

.jp-cap {
  position: absolute;
  z-index: 2;
  top: 20px; left: 20px; right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .86rem;
  color: var(--ink-2);
  pointer-events: none;
}
.jp-cap > * { pointer-events: auto; }
.jp-now, .sky-switch {
  background: color-mix(in srgb, var(--card) 84%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--rule-2) 70%, transparent);
  border-radius: 999px;
}
.jp-now { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 13px; }
.jp-now b { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 1.08rem; font-variant-numeric: tabular-nums lining-nums; min-width: 2.9em; }
.jp-mode { color: var(--clay-text); font-size: .78rem; }
.jp-bj { color: var(--ink-3); font-size: .78rem; padding-left: 9px; border-left: 1px solid var(--rule-2); }
.jp-bj i { font-style: normal; font-variant-numeric: tabular-nums; }
.led-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); animation: blink 2.4s ease-in-out infinite; }
.sky-switch { display: inline-flex; gap: 2px; padding: 3px; }
.sky-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: .8rem/1 var(--sans);
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.sky-switch button:hover { color: var(--ink); }
.sky-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.drag-tip { display: none; }

@media (min-width: 901px) and (max-width: 1100px) { .jp-bj { display: none; } }

@media (max-width: 900px) {
  .hero-pin { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 64px; }
  .hero-copy { display: contents; }
  .hero-copy > * { grid-column: 1; margin-left: var(--gutter); margin-right: var(--gutter); }
  .hero-copy > .eyebrow { order: 1; margin-top: 18px; margin-bottom: 16px; }
  .hero-title { order: 2; margin-bottom: 10px; }
  .hero-kicker { order: 3; margin-top: 0; margin-bottom: 18px; font-size: 1.12rem; }
  .jp-card { order: 4; grid-column: 1; min-height: 0; margin: 0; }
  .hero-actions { order: 5; margin: 22px var(--gutter); }
  .hero-copy > .lede { order: 6; margin-top: 0; }
  .hero-meta { order: 7; margin-top: 18px; }
  .jp-frame { position: relative; height: min(42svh, 380px); border-radius: 0; box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
  .jp-art { position: absolute; left: 0; right: 0; bottom: calc(-0.14 * 100vw); width: 100%; height: auto; aspect-ratio: 480 / 560; }
  .jp-cap { position: static; padding: 10px var(--gutter) 0; gap: 4px 12px; }
  .jp-now { border: 0; background: none; padding: 0; backdrop-filter: none; }
  .sky-switch { display: none; }
  .drag-tip {
    display: block;
    position: absolute;
    z-index: 2;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: .95rem;
    color: var(--ink);
    background: color-mix(in srgb, var(--card) 82%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 999px;
    pointer-events: none;
    transition: opacity .5s var(--ease);
  }
  .jp-card.dragged .drag-tip { opacity: 0; }
}
@media (max-width: 400px) { .hero-title { font-size: 2.3rem; } }
@media (min-width: 601px) and (max-width: 900px) {
  .jp-card { width: min(540px, calc(100% - 2 * var(--gutter))); justify-self: center; }
  .jp-frame { height: auto; aspect-ratio: 480 / 560; border-radius: 28px; box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
  .jp-art { position: static; height: 100%; }
  .jp-cap { padding: 12px 0 0; }
}

/* ---------- 插画通用 ---------- */

.led-halo { transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
.flow { stroke-dasharray: 1.5 9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -21; } }
.twinkle { animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 50% { opacity: .2; } }
.steam { animation: steam 3.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-9px); } }
.js .draw path.d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io) .3s; }
.js .draw.in path.d { stroke-dashoffset: 0; }
symbol .hand { font-family: var(--hand); }
.dr { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }

/* ---------- 双城时钟 ---------- */

.clockband { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--card); }
.clockband-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 56px); padding: 34px var(--gutter) 24px; }
.clock { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.clock-right { align-items: flex-end; text-align: right; }
.clock-city { font-size: .82rem; letter-spacing: .08em; color: var(--ink-3); }
.clock-time { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.clock-right .clock-time { color: var(--clay-text); }
.clock-mid { position: relative; container-type: inline-size; padding: 14px 0 0; }
.clock-track { position: relative; height: 10px; border-top: 1.5px dashed var(--rule-2); margin-top: 4px; }
.clock-dot { position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--clay-soft); animation: travel 2.2s var(--ease-io) infinite alternate; }
@keyframes travel { to { transform: translateX(calc(100cqw - 10px)); } }
.clock-mid-label { text-align: center; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); margin: 8px 0 0; }
.clockband-caption { text-align: center; font-size: 1.22rem; color: var(--ink-2); padding: 0 var(--gutter) 30px; margin: 0; }
@media (max-width: 640px) {
  .clockband-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock-mid { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 左右分栏 + 规格清单 ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 112px); }
.split-aside { position: sticky; top: 116px; align-self: start; }
.split-aside h2 { margin-bottom: 20px; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-aside { position: static; }
}

.speclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.speclist li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 34px 0; border-bottom: 1px solid var(--rule); transition: opacity .5s var(--ease); }
.speclist .num { font-family: var(--mono); font-size: .8rem; color: var(--clay-text); padding-top: .4em; }
.speclist h3 { margin-bottom: 8px; font-size: 1.36rem; }
.speclist p { margin: 0; }
.js .has-stage .speclist li.reveal.in:not(.active) { opacity: .34; }

@property --draw { syntax: "<number>"; inherits: true; initial-value: 0; }
.stage { position: relative; height: min(68vh, 600px); }
.stage::before { content: ""; position: absolute; inset: 8% 6% 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--paper-2) 90%, transparent), transparent); }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage .st { --draw: 1; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .9s var(--ease), --draw 1.1s var(--ease-io); }
.stage[data-step="1"] .st[data-step="1"],
.stage[data-step="2"] .st[data-step="2"],
.stage[data-step="3"] .st[data-step="3"],
.stage[data-step="4"] .st[data-step="4"],
.stage[data-step="5"] .st[data-step="5"] { --draw: 0; opacity: 1; transform: none; }
.stage-count { position: absolute; left: 0; bottom: 2%; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }
.spec-art { display: none; }
@media (min-width: 901px) {
  .split.has-stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); }
  .has-stage .speclist li { min-height: 34vh; align-content: center; }
  .split-aside:has(.stage) { top: calc(50vh - min(34vh, 300px) + 36px); }
}
@media (max-width: 900px) {
  .stage { display: none; }
  .js .has-stage .speclist li.reveal.in:not(.active) { opacity: 1; }
  .spec-art { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 0 6px -10px; }
  .speclist li { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 28px 0; }
  .speclist li > div { display: contents; }
  .speclist .spec-art { grid-column: 1 / -1; }
  .speclist .num { grid-row: 2; padding-top: 0; }
  .speclist h3 { grid-column: 2; grid-row: 2; }
  .speclist p { grid-column: 2; grid-row: 3; }
}

/* ---------- 町名滚动条 ---------- */

.streets { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); overflow: hidden; }
.streets-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
.streets-head .eyebrow { margin: 0; }
.streets-note { font-size: 1.2rem; color: var(--ink-2); margin: 0; }
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; flex: none; animation: marquee 60s linear infinite; }
.marquee-wrap:hover .marquee-track, .marquee-wrap:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.street {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: .1em clamp(20px, 3vw, 40px) .1em 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.2;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .45s var(--ease), -webkit-text-stroke-color .45s var(--ease);
}
.street::after { content: ""; width: .13em; height: .13em; border-radius: 50%; background: var(--clay); flex: none; }
.street:hover, .street:focus-visible { color: var(--clay); -webkit-text-stroke-color: var(--clay); outline: none; }
.street-cta {
  position: absolute;
  left: 0; top: -.2em;
  font: 500 .8rem/1 var(--sans);
  font-style: normal;
  color: var(--on-clay);
  background: var(--clay);
  -webkit-text-stroke: 0;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.street:hover .street-cta, .street:focus-visible .street-cta { opacity: 1; transform: none; }

/* ---------- 延迟对比 + 试玩 ---------- */

.compare {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(22px, 3.5vw, 36px);
}
.cmp-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 7.5em; align-items: center; gap: 16px; font-size: .95rem; }
.cmp-name { color: var(--ink-2); }
.cmp-val { font-family: var(--mono); font-size: .82rem; color: var(--ink-3); text-align: right; }
.cmp-bar { position: relative; height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.cmp-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) / 300 * 100%);
  border-radius: 99px;
  background: var(--rule-2);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-io) .2s;
}
.compare.in .cmp-bar::after, html:not(.js) .cmp-bar::after { transform: none; }
.cmp-row.is-jp .cmp-name { color: var(--ink); font-weight: 600; }
.cmp-row.is-jp .cmp-val { color: var(--clay-text); }
.cmp-row.is-jp .cmp-bar::after { background: var(--clay); }
.cmp-note { margin: 6px 0 0; }
@media (max-width: 560px) { .cmp-row { grid-template-columns: 5.5em minmax(0, 1fr); } .cmp-val { grid-column: 2; text-align: left; margin-top: -10px; } }

.lag {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: calc(var(--r) + 6px);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.lag-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.lag-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.lag-head .hand { color: var(--clay-text); font-size: 1.15rem; margin: 0 0 6px; }
.lag-rtt { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.lag-rtt button { border: 0; background: transparent; color: var(--ink-3); font: .82rem/1 var(--mono); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.lag-rtt button:hover { color: var(--ink); }
.lag-rtt button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.lag-input {
  width: 100%;
  font: 1rem/1.4 var(--mono);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lag-input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.lag-input::placeholder { color: var(--ink-3); }
.lag-wire { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 22px 0 4px; font-size: .78rem; color: var(--ink-3); }
.lag-line { position: relative; height: 0; border-top: 1.5px dashed var(--rule-2); }
.packet { position: absolute; left: 0; top: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); will-change: transform; }
.lag-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.lag-pane { min-width: 0; }
.lag-title { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: var(--ink); font-size: .95rem; }
.lag-title small { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.lag-term { min-height: 92px; padding: 14px 16px; border-radius: var(--r-sm); background: #1F1D1A; color: #EDE6D8; font: .95rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; }
.lag-term .ps1 { color: #9AA37B; }
.lag-term .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: #EDE6D8; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lag-sub { margin: 8px 0 0; font-size: .82rem; color: var(--ink-3); }
.loop-note { margin: 26px auto 0; font-size: .92rem; color: var(--ink-3); max-width: 46em; text-align: center; }
@media (max-width: 720px) { .lag-panes { grid-template-columns: minmax(0, 1fr); } .loop-note { text-align: left; } }
@media (max-width: 600px) { .lag-wire { font-size: .7rem; gap: 8px; } }

/* ---------- 步骤 ---------- */

.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.steps-line { position: absolute; top: 21px; left: 23px; width: calc(66.6% - 23px); height: 4px; overflow: visible; }
.steps-line path { fill: none; stroke: var(--rule-2); stroke-width: 1.6; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.steps li { position: relative; padding-right: clamp(16px, 3vw, 44px); }
.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}
.steps li:last-child .step-dot { background: var(--clay); border-color: var(--clay); color: var(--on-clay); }
.steps h3 { margin: 24px 0 8px; }
.steps p { margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps-line { display: none; }
  .steps::before { content: ""; position: absolute; top: 23px; bottom: 23px; left: 22px; border-left: 1.5px dashed var(--rule-2); }
  .steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 20px; padding: 0; }
  .steps h3 { margin: 9px 0 6px; }
}

/* ---------- 信笺：我们的边界 ---------- */

.letter {
  --lh: 38px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 88px);
  background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0 25px, color-mix(in srgb, var(--rule-2) 60%, transparent) 25px 26px, transparent 26px var(--lh));
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: calc(var(--lh) * 2) clamp(28px, 5.5vw, 72px) calc(var(--lh) * 2) clamp(40px, 7vw, 104px);
  box-shadow: var(--shadow), 0 1px 0 var(--rule), 0 7px 0 -3px var(--card), 0 8px 0 -3px var(--rule);
  rotate: -.8deg;
  transition: rotate .8s var(--ease);
}
.letter.reveal.in { rotate: -.8deg; }
.letter:hover { rotate: 0deg; }
.letter::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(22px, 4.2vw, 64px); width: 1px; background: color-mix(in srgb, var(--clay) 45%, transparent); }
.letter .eyebrow { line-height: var(--lh); margin: 0; }
.letter h2 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); line-height: calc(var(--lh) * 2); margin: 0 0 18px; position: relative; top: 7px; }
.letter p { line-height: var(--lh); margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; line-height: var(--lh); color: var(--ink); }
.checklist svg { width: 22px; height: 22px; color: var(--clay); margin-top: 8px; }
.signature { line-height: calc(var(--lh) * 2); margin: var(--lh) 0 0; position: relative; top: 14px; font-family: var(--hand); font-size: 1.6rem; color: var(--ink); text-align: right; }
.stamp-spin { transform-origin: 60px 60px; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.letter-stamp { position: absolute; right: clamp(18px, 4vw, 56px); bottom: -36px; width: clamp(80px, 9vw, 110px); transform: rotate(9deg); z-index: 1; }
@media (max-width: 900px) { .letter { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- 方案 ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1020px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(26px, 3.5vw, 40px);
  transition: border-color .35s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease);
}
.plan:hover { border-color: var(--rule-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay), var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: clamp(26px, 3.5vw, 40px); background: var(--clay); color: var(--on-clay); font-size: .76rem; letter-spacing: .06em; padding: 4px 11px; border-radius: 999px; }
.plan-head { display: grid; gap: 6px; }
.plan-name { font-family: var(--display); font-size: 1.7rem; line-height: 1.2; }
.plan-spec { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); text-wrap: balance; word-break: keep-all; }
.plan-for { margin: 0; color: var(--ink-2); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-cur { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.price-num { font-family: var(--display); font-size: clamp(2.9rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.price-unit { color: var(--ink-3); }
.price-note { margin: 6px 0 0; font-size: .86rem; color: var(--ink-3); }
.price-num.flip, .price-note.flip { animation: rise .45s var(--ease) both; }
.plan .btn { margin-top: auto; }
.plan-eta { margin: -10px 0 0; font-size: .8rem; color: var(--ink-3); text-align: center; }
.plans-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.plans-bar p { margin: 0; }
.billing { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.billing button {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: 500 .92rem/1 var(--sans);
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.billing button small { font-size: .74rem; color: var(--clay-text); font-weight: 500; }
.billing button:hover { color: var(--ink); }
.billing button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.billing button[aria-checked="true"] small { color: var(--sand); }
.picked { margin: 0; padding: 8px 16px; border: 1px dashed var(--clay); border-radius: 999px; color: var(--ink-2); font-size: .9rem; }
.picked b { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--clay-text); font-size: 1.1rem; }

/* ---------- 来信 ---------- */

.story { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(24px, 3.5vw, 56px); align-items: center; margin: 0; }
.story-mark { align-self: start; width: .6em; direction: rtl; white-space: nowrap; font-family: var(--display); font-size: clamp(6rem, 12vw, 10rem); line-height: .7; color: var(--clay); }
.story blockquote { margin: 0; }
.story blockquote p { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.7; color: var(--ink); }
.story figcaption { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-left: clamp(28px, 3.5vw, 56px); border-left: 1px solid var(--rule-2); color: var(--ink-3); font-size: .95rem; text-align: center; }
.story figcaption .hand { font-size: 1.6rem; color: var(--ink); }
.story-avatar { flex: none; width: 110px; aspect-ratio: 1; }
.story-avatar svg { width: 100%; height: 100%; }
.story-by { display: grid; gap: 2px; line-height: 1.4; white-space: nowrap; }
.story-by .hand { line-height: 1.1; }
@media (max-width: 1020px) {
  .story { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .story figcaption { grid-column: 2; flex-direction: row; gap: 14px; margin-top: 24px; padding-left: 0; border-left: 0; text-align: left; }
  .story-avatar { width: 80px; }
}
@media (max-width: 760px) { .story { grid-template-columns: minmax(0, 1fr); } .story figcaption { grid-column: auto; } .story-mark { font-size: 5rem; } }

/* ---------- 常见问题 ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay-text); }
.faq .pm { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--ink-3); transition: transform .45s var(--ease), color .2s var(--ease); }
.faq details[open] .pm { transform: rotate(135deg); color: var(--clay); }
.faq .ans { padding: 0 48px 28px 0; max-width: 46em; }
.faq details[open] .ans { animation: rise .55s var(--ease) both; }

/* ---------- 收尾 CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: calc(var(--r) + 12px);
  padding: clamp(36px, 6vw, 84px);
}
.cta h2 { color: var(--paper); margin-bottom: 16px; font-size: clamp(2rem, 3.6vw, 3rem); }
.cta p { color: color-mix(in srgb, var(--paper) 76%, transparent); max-width: 30em; }
.cta .hand { color: var(--sand); font-size: 1.2rem; margin-bottom: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.cta .btn-ghost:hover { border-color: var(--paper); color: var(--paper); background: transparent; }
.cta-art { width: 100%; max-width: 280px; justify-self: end; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta-art { justify-self: start; max-width: 190px; } }

/* ---------- 页脚 ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin-top: 16px; max-width: 22em; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: .93rem; }
.footer-h { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 4px; }
.footer-col a { color: var(--ink-2); text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .2s var(--ease); }
.footer-col a:hover { color: var(--clay-text); background-size: 100% 1px; }
.footer-live { margin: 44px 0 0; font-size: 1.15rem; color: var(--ink-2); }
.footer-live b { font-weight: 400; color: var(--clay-text); font-variant-numeric: tabular-nums; }
.footer-mark { display: block; width: 100%; height: auto; margin: 18px 0 0; overflow: visible; user-select: none; }
.footer-mark text { font-family: var(--display); font-size: 224px; fill: var(--ink); }
.footer-mark .em { font-style: italic; fill: var(--clay); }
.footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; margin-top: 52px; padding: 24px 0 40px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-3); }
.footer-bottom p { margin: 0; }
.footer-legal { grid-column: 1 / -1; max-width: 62em; line-height: 1.75; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font: .8rem/1 var(--sans); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 提示条 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-size: .9rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
