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

/* ---------- 字体（自托管，构建时按全站用字裁剪） ---------- */

@font-face {
  font-family: "MUM Serif";
  src: url("../fonts/fraunces.woff2?v=9b7e051d") 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: "MUM Serif";
  src: url("../fonts/fraunces-italic.woff2?v=9de35841") 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: "MUM Serif";
  src: url("../fonts/noto-serif-sc-500.woff2?v=41df24b9") 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: "MUM Hand";
  src: url("../fonts/wenkai.woff2?v=2d75e010") 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: #B4553A;
  --clay-text: #A44B30;
  --clay-hover: #9B452D;
  --clay-soft: #F1DED3;
  --on-clay: #FCF8F2;
  --olive: #7D8762;
  --sky: #A9BDC9;
  --sand: #E7D1A6;
  --desk: #D7BC8E;
  --wall: #E9E2D3;
  --night: #38414F;
  --danger: #A8321F;
  --code-bg: #EAE3D5;
  --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: "MUM Serif", "Iowan Old Style", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --hand: "MUM 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: #D0714F;
    --clay-text: #E08565;
    --clay-hover: #E08565;
    --clay-soft: #3E2A21;
    --on-clay: #1B1916;
    --olive: #98A27C;
    --sky: #7E95A3;
    --sand: #6A5437;
    --desk: #4A3A2B;
    --wall: #26231F;
    --night: #2B3340;
    --danger: #F08A78;
    --code-bg: #23201C;
    --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: #D0714F;
  --clay-text: #E08565;
  --clay-hover: #E08565;
  --clay-soft: #3E2A21;
  --on-clay: #1B1916;
  --olive: #98A27C;
  --sky: #7E95A3;
  --sand: #6A5437;
  --desk: #4A3A2B;
  --wall: #26231F;
  --night: #2B3340;
  --danger: #F08A78;
  --code-bg: #23201C;
  --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;
  text-rendering: optimizeLegibility;
  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;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.12; }
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); }

/* 正文链接：下划线从左往右重新描一遍 */
.prose a:not(.btn), .ans a, .lede a, .side-card a, .loop-note a, .plan-for a, .principle a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .2s var(--ease);
  padding-bottom: 1px;
}
.prose a:not(.btn):hover, .ans a:hover, .lede a:hover, .side-card a:hover, .loop-note a:hover, .plan-for a:hover, .principle a:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

::selection { background: var(--clay-soft); color: var(--ink); }

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

code, kbd, pre { font-family: var(--mono); }

.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; }

.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .01em; }
.latin { font-family: var(--display); }

.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;
}

.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.serif { font-family: var(--display); }
.nowrap { white-space: nowrap; }

/* 手绘下划线：{{u:文字}}。用背景图画，跟着行内文字走，不会被拆断 */
.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='%23B4553A' 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='%23D0714F' 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='%23D0714F' 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; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(var(--rule-2), var(--rule-2)) 0 100% / 100% 1px no-repeat,
              linear-gradient(var(--clay), var(--clay)) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease), color .25s var(--ease);
}
.link-arrow:hover { color: var(--clay-text); background-size: 100% 1px, 100% 1px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, 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);
  view-transition-name: site-header;
}
.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;
  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 { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav-links a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: 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-family: var(--mono); font-size: .72rem; 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 a:not(.btn)[aria-current="page"] { color: var(--clay-text); }
.mobile-nav .btn { margin-top: 22px; width: 100%; }

@media (max-width: 900px) {
  .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); }
.section-rule { border-top: 1px solid var(--rule); }

.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; }
.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;
  grid-template-columns: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) minmax(0, 1fr) min(54%, 820px);
  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, 4.7rem);
  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 + 120ms);
}
@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); line-height: 1.5; color: var(--ink); margin: -6px 0 14px; }
.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: .88rem; 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(--olive); }
.hero-scrub { display: none; margin: 40px 0 0; max-width: 26rem; }
.scrub-row { display: flex; align-items: flex-end; gap: 28px; }
.scrub-clock { display: grid; gap: 2px; }
.scrub-clock small { font-size: .74rem; letter-spacing: .1em; color: var(--ink-3); }
.scrub-clock b { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.scrub-clock.is-bj b { font-size: clamp(1.5rem, 2vw, 1.9rem); color: var(--ink-3); }
.scrub-bar { position: relative; height: 2px; margin: 18px 0 14px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.scrub-fill { position: absolute; inset: 0; background: var(--clay); transform: scaleX(0); transform-origin: left; }
.scrub-story { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.18rem; color: var(--ink-2); min-height: 1.6em; }
.scrub-hint { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .82rem; color: var(--ink-3); }
.scrub-hint svg { width: 14px; height: 14px; color: var(--clay); animation: nudge 2.4s var(--ease-io) infinite; }
.ny-story { display: none; }
.drag-tip { display: none; }
@keyframes nudge { 50% { transform: translateY(5px); } }

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

/* 滚动浮现（无 JS 时直接可见） */
.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; }

/* ---------- 纽约之窗：天色跟随纽约此刻的时间；桌面端向下滚动会快进一整天 ---------- */

.ny-card {
  --sky-a: #1B2230;
  --sky-b: #333D4F;
  --bldg: #2C3340;
  --lit: 1;
  --stars: 1;
  --moon: 1;
  --sun: 0;
  --cloud: 0;
  --glow: .95;
  grid-column: 3;
  position: relative;
  margin: 0;
  min-height: 540px;
}
.ny-frame {
  position: absolute;
  inset: 0;
  border-radius: 32px 0 0 32px;
  overflow: hidden;
  background: var(--wall);
  box-shadow: inset 1px 1px 0 var(--rule), inset 0 -1px 0 var(--rule);
  view-transition-name: hero-art;
}
.ny-art { width: 100%; height: 100%; }
.ny-frame { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ny-frame:active { cursor: grabbing; }
.ny-art .lit rect { transition: opacity .3s ease; }
.drag-hint { display: none; }
.ny-art .sky-a { stop-color: var(--sky-a); }
.ny-art .sky-b { stop-color: var(--sky-b); }
.ny-art .bldg { fill: var(--bldg); }
.ny-art .lit { opacity: var(--lit); }
.ny-art .stars { opacity: var(--stars); }
.ny-art .moon { opacity: var(--moon); }
.ny-art .sun { opacity: var(--sun); }
.ny-art .cloud { opacity: var(--cloud); }
.ny-art .glow { opacity: var(--glow); }
.ny-card.easing .sky-a, .ny-card.easing .sky-b { transition: stop-color 1.1s var(--ease-io); }
.ny-card.easing .bldg { transition: fill 1.1s var(--ease-io); }
.ny-card.easing .lit, .ny-card.easing .stars, .ny-card.easing .moon, .ny-card.easing .sun, .ny-card.easing .cloud, .ny-card.easing .glow { transition: opacity 1.1s var(--ease-io), transform 1.1s var(--ease-io); }
.ny-art .cloud-drift { animation: drift 38s linear infinite alternate; }
@keyframes drift { to { transform: translateX(46px); } }
.ny-art .hand { font-size: 21px; fill: var(--ink-2); }

.ny-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;
}
.ny-cap > * { pointer-events: auto; }
.ny-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;
}
.ny-now { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 13px; }
.ny-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; }
.ny-mode { color: var(--clay-text); font-size: .78rem; }
.ny-bj { color: var(--ink-3); font-size: .78rem; padding-left: 9px; border-left: 1px solid var(--rule-2); }
.ny-bj i { font-style: normal; font-variant-numeric: tabular-nums; }
@media (min-width: 901px) { .ny-bj { display: none; } }
.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 {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: .8rem/1 var(--sans);
  padding: 9px 12px 11px;
  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); }
.sky-switch button.is-now::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--clay);
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero.is-scrubbable { height: calc(100svh - 72px + 140vh); }
  .hero.is-scrubbable .hero-pin { position: sticky; top: 72px; height: calc(100svh - 72px); min-height: 0; }
  .hero.is-scrubbable .hero-scrub { display: block; }
}

@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; }
  .ny-card { order: 4; grid-column: 1; min-height: 0; margin: 0; }
  .hero-actions { order: 5; margin: 22px var(--gutter) 22px; }
  .hero-copy > .lede { order: 6; margin-top: 0; }
  .hero-meta { order: 7; margin-top: 18px; }
  .ny-frame { position: relative; height: min(36svh, 330px); border-radius: 0; box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
  .ny-cap { position: static; padding: 10px var(--gutter) 0; gap: 4px 12px; }
  .ny-now { border: 0; background: none; padding: 0; backdrop-filter: none; }
  .sky-switch { display: none; }
  .ny-story { display: block; width: 100%; font-size: 1.08rem; color: var(--ink-2); }
  .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);
  }
  .ny-card.dragged .drag-tip { opacity: 0; }
}
/* 平板：窗户保持原始比例居中，不裁成一条 */
@media (min-width: 601px) and (max-width: 900px) {
  .ny-card { width: min(540px, calc(100% - 2 * var(--gutter))); justify-self: center; }
  .ny-frame { height: auto; aspect-ratio: 480 / 560; border-radius: 28px; box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
  .ny-cap { padding: 12px 0 0; }
}

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

.art-label { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; fill: var(--ink-3); }
.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; }

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

.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 0 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-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.clock-part { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-2); }
.clock-part svg { width: 15px; height: 15px; color: var(--clay); }
.clock-part .i-moon { display: none; }
.clock-part[data-night="true"] .i-sun { display: none; }
.clock-part[data-night="true"] .i-moon { display: block; }

.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 4.6s 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-family: var(--hand); font-size: 1.22rem; color: var(--ink-2); padding: 0 0 30px; margin: 0; }

@media (max-width: 640px) {
  .clockband-inner { grid-template-columns: 1fr 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: 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);
}
@media (max-width: 640px) { .speclist li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 28px 0; } }
.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"] { --draw: 0; opacity: 1; transform: none; }
.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; }
}

/* ---------- 街道名滚动条 ---------- */

.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 { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-wrap:focus-within .marquee-track { animation-play-state: paused; }
.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; }

/* ---------- 延迟示意 + 试玩 ---------- */

.loop { margin-top: clamp(40px, 5vw, 60px); }
.loop-bar { display: flex; border: 1px solid var(--rule-2); border-radius: 16px; overflow: hidden; background: var(--card); }
.seg { flex: var(--w) 1 0; position: relative; padding: 20px 20px 50px; min-width: 0; }
.seg + .seg { border-left: 1px solid var(--rule-2); }
.seg-run { background: var(--paper); }
.seg-title { display: block; color: var(--ink); font-size: .96rem; line-height: 1.5; }
.seg-time { display: block; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); margin-top: 4px; }
.ticks { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 12px; background-image: repeating-linear-gradient(90deg, var(--clay) 0 2px, transparent 2px 10px); }
.run-log { position: absolute; left: 20px; right: 20px; bottom: 36px; height: 1.6em; overflow: hidden; font: .88rem/1.6 var(--mono); color: var(--ink-2); }
.run-log span { position: absolute; inset: 0; opacity: 0; animation: logline 8s var(--ease) infinite; }
.run-log span:nth-child(2) { animation-delay: 2s; }
.run-log span:nth-child(3) { animation-delay: 4s; }
.run-log span:nth-child(4) { animation-delay: 6s; }
@keyframes logline { 0% { opacity: 0; transform: translateY(8px); } 4%, 21% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-8px); } }
.seg-run { padding-bottom: 70px; }
.run-line { position: absolute; left: 20px; right: 20px; bottom: 23px; height: 2px; border-radius: 2px; background: var(--rule-2); overflow: hidden; }
.run-line::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--olive); border-radius: 2px; animation: run 3.2s var(--ease-io) infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.loop-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-3); }
.loop-legend li { display: inline-flex; align-items: center; gap: 10px; }
.sw-ticks { width: 22px; height: 10px; background-image: repeating-linear-gradient(90deg, var(--clay) 0 2px, transparent 2px 6px); }
.sw-run { width: 22px; height: 2px; background: var(--olive); border-radius: 2px; }
.loop-note { margin-top: 26px; font-size: .92rem; color: var(--ink-3); max-width: 46em; }
@media (max-width: 720px) {
  .ticks { background-image: repeating-linear-gradient(90deg, var(--clay) 0 2px, transparent 2px 16px); height: 8px; }
  .loop-bar { flex-direction: column; }
  .seg + .seg { border-left: 0; border-top: 1px solid var(--rule-2); }
}

.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-total { margin: 18px 0 0; font-size: .95rem; color: var(--ink-2); }
.lag-total b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--clay-text); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 600px) { .lag-wire { font-size: .7rem; gap: 8px; } }
.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 u { text-decoration: underline; text-decoration-color: #D0714F; text-decoration-thickness: 2px; text-underline-offset: 4px; color: #F5D9C8; }
.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); }
@media (max-width: 720px) { .lag-panes { grid-template-columns: 1fr; } }

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

.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: 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; }
  .steps li > div { grid-column: 2; }
}

/* ---------- 承诺 ---------- */

.letter {
  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 37px, color-mix(in srgb, var(--rule) 75%, transparent) 37px 38px);
  background-position: 0 30px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(32px, 5.5vw, 72px) clamp(28px, 5.5vw, 72px) clamp(32px, 5.5vw, 72px) 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:hover { rotate: 0deg; }
/* 信纸：38px 基线网格，文字压在横线上 */
.letter {
  --lh: 38px;
  padding-top: calc(var(--lh) * 2);
  padding-bottom: calc(var(--lh) * 2);
  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));
  background-position: 0 0;
}
.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; position: relative; top: 7px; }
.letter p { line-height: var(--lh); margin: 0; }
.letter .checklist li { padding: 0; border: 0; line-height: var(--lh); gap: 10px; }
.letter .checklist svg { margin-top: 8px; }
.letter .signature { line-height: calc(var(--lh) * 2); margin: var(--lh) 0 0; position: relative; top: 14px; }
.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 h2 { margin-bottom: 18px; }
.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; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 17px 0; border-bottom: 1px dashed var(--rule-2); color: var(--ink); }
.checklist li:first-child { padding-top: 0; }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { width: 22px; height: 22px; color: var(--clay); margin-top: 4px; }
.signature { margin-top: 30px; font-family: var(--hand); font-size: 1.6rem; color: var(--ink); text-align: right; }
@media (max-width: 900px) { .letter { grid-template-columns: 1fr; } }

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

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.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);
}
.plan:hover { border-color: var(--rule-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--ink); box-shadow: 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; color: var(--ink); line-height: 1.2; }
.plan-spec { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); }
.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); }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; display: grid; gap: 11px; border-top: 1px solid var(--rule); }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .95rem; color: var(--ink); }
.plan li svg { width: 17px; height: 17px; color: var(--clay); margin-top: 6px; }
.plan .btn { margin-top: auto; }
.plan-team { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; background: transparent; border-style: dashed; border-color: var(--rule-2); }
.plan-team:hover { transform: none; box-shadow: none; }
.plan-team .plan-head { max-width: 42rem; }
.plan-team .btn { margin-top: 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- 表格 ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.compare thead th { font-family: var(--display); font-weight: 500; font-size: 1.12rem; color: var(--ink); background: var(--paper-2); }
.compare tbody th { font-weight: 400; color: var(--ink-3); width: 28%; }
.compare td { color: var(--ink); }
.compare tbody tr { transition: background-color .25s var(--ease); }
.compare tbody tr:hover { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes svg { width: 18px; height: 18px; color: var(--clay); }
.compare .num { font-family: var(--mono); font-size: .88rem; }

/* ---------- 定义列表 ---------- */

.deflist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); margin: 0; }
.deflist div { padding: 26px 0; border-top: 1px solid var(--rule); }
.deflist dt { font-family: var(--display); font-size: 1.16rem; color: var(--ink); margin-bottom: 8px; }
.deflist dd { margin: 0; }
@media (max-width: 760px) { .deflist { grid-template-columns: 1fr; } }

/* ---------- 引言 ---------- */

.story { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.story-mark { 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.35rem, 2.4vw, 1.9rem); line-height: 1.7; color: var(--ink); }
.story figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--ink-3); font-size: .95rem; }
.story figcaption .hand { font-size: 1.6rem; color: var(--ink); }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } .story-mark { font-size: 5rem; } }

/* ---------- FAQ ---------- */

.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; }
.faq-group + .faq-group { margin-top: clamp(56px, 6vw, 80px); }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 18px; }

/* ---------- 收尾 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; }
.cta-solo { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; }
  .cta-art { justify-self: start; max-width: 190px; }
}

/* ---------- 子页面页头 ---------- */

.page-hero { padding: clamp(52px, 7vw, 104px) 0 clamp(40px, 5vw, 68px); border-bottom: 1px solid var(--rule); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -.015em; }
.page-hero .lede { margin-top: 20px; }
.page-art { width: 100%; max-width: 600px; justify-self: end; align-self: center; margin-right: -2%; }
.page-art .art-label { font-size: 15px; }
.page-art .art-hand { font-size: 17px; fill: var(--ink-2); }
@media (max-width: 900px) { .page-art { justify-self: start; max-width: 420px; } }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- 长文 ---------- */

.prose { max-width: 44rem; }
.prose > h2 { font-size: 1.62rem; margin: 2.4em 0 .7em; scroll-margin-top: 104px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 1.9em 0 .55em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--clay); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose :not(pre) > code { font-size: .87em; background: var(--code-bg); color: var(--ink); padding: .12em .42em; border-radius: 5px; }
.prose pre { position: relative; margin: 0 0 1.4em; padding: 16px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow-x: auto; font-size: .87rem; line-height: 1.75; color: var(--ink); }
.prose pre .c { color: var(--ink-3); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose .updated { font-size: .88rem; color: var(--ink-3); }

.callout { margin: 0 0 1.4em; padding: 16px 20px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--clay); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.callout p { margin: 0; }
.callout strong { color: var(--ink); }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.toc { position: sticky; top: 104px; align-self: start; font-size: .9rem; }
.toc p { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 1.5px solid var(--rule); color: var(--ink-3); text-decoration: none; transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--clay); }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc p { width: 100%; margin-bottom: 4px; }
  .toc a { border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; }
  .toc a.active { border-color: var(--clay); }
}

/* ---------- 关于：原则 ---------- */

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.principle { padding: 36px clamp(0px, 3vw, 44px) 36px 0; border-bottom: 1px solid var(--rule); }
.principle:nth-child(odd) { border-right: 1px solid var(--rule); }
.principle:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); }
.principle .glyph { font-family: var(--hand); font-size: 3.2rem; color: var(--clay); line-height: 1; margin-bottom: 16px; }
.principle h3 { margin-bottom: 8px; }
@media (max-width: 680px) {
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(odd) { border-right: 0; }
  .principle:nth-child(even) { padding-left: 0; }
}

/* ---------- 申请表单 ---------- */

.apply-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-size: .95rem; font-weight: 500; color: var(--ink); padding: 0; }
.field .req { color: var(--clay); margin-left: 2px; }
.hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%237B7468' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .85; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }

.error { display: none; align-items: center; gap: 6px; font-size: .84rem; color: var(--danger); margin: 0; }
.error svg { width: 14px; height: 14px; flex: none; }
.field.invalid .error { display: flex; animation: rise .35s var(--ease) both; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; gap: 2px; height: 100%; padding: 13px 15px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--card); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.choice b { font-weight: 500; color: var(--ink); }
.choice small { color: var(--ink-3); font-size: .82rem; }
.choice:hover span { border-color: var(--ink-3); }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .93rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--clay); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.form-success { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); animation: rise .6s var(--ease) both; }
.form-success:focus { outline: none; }
.form-success h2 { font-size: 1.7rem; margin-bottom: 12px; }
.form-success pre { margin: 18px 0; padding: 16px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm); white-space: pre-wrap; word-break: break-word; font: .9rem/1.75 var(--mono); color: var(--ink); }
.form-success-icon { width: 46px; height: 46px; color: var(--olive); margin-bottom: 14px; }

.side-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; }
.side-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.side-card + .side-card { margin-top: 20px; }
.side-stack { position: sticky; top: 104px; }
@media (max-width: 900px) { .side-stack { position: static; } }

.wechat-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 12px; padding: 12px 14px; background: var(--paper); border: 1px dashed var(--rule-2); border-radius: var(--r-sm); }
.wechat-id code { font-size: 1.05rem; color: var(--ink); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 500 .82rem/1 var(--sans); cursor: pointer; transition: border-color .2s var(--ease); }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn:active { transform: translateY(1px); }
.copy-btn svg { width: 14px; height: 14px; }
.qr { width: 148px; border-radius: 8px; border: 1px solid var(--rule); margin-top: 12px; }

.mini-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 0; font-size: .93rem; border-top: 1px solid var(--rule); }
.mini-steps li::before { content: counter(ms, decimal-leading-zero); font-family: var(--mono); font-size: .76rem; color: var(--clay-text); padding-top: 3px; }

/* ---------- 404 ---------- */

.notfound { min-height: 64dvh; display: grid; align-items: center; padding: 64px 0; }
.notfound-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.notfound .lede { margin-top: 18px; }
.notfound .btn { margin-top: 28px; }
@media (max-width: 760px) { .notfound-inner { grid-template-columns: 1fr; } }

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

.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; }
.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; font-size: .93rem; 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-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; margin-top: 52px; padding-top: 24px; 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; }

.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; letter-spacing: 0; fill: var(--ink); }
.footer-mark .em { font-style: italic; fill: var(--clay); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: 1fr; }
}

/* ---------- 页面切换 ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 工具类 ---------- */

.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; }

/* ---------- 减少动态效果 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .draw path.d { stroke-dashoffset: 0 !important; }
  .js .u { background-size: 100% .34em !important; }
  .h-line > span { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
