/* koyonari.com 落地页。
 * 材质令牌（五套皮）直接用 App 原型的 styles/tokens.css，本文件只管版式与动效。
 * 签面一律宣纸色，不随皮。 */

:root {
  --font-ui: "Inter", -apple-system, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --font-num: "Inter", -apple-system, system-ui, sans-serif;
  --washi: #fcf8f0;
  --washi-2: #f1eadc;
  --washi-hi: #fffdf8;
  --p-ink: #2e2b26;
  --p-ink2: #6b655b;
  --p-ink3: #a39c8f;
  --p-gold: #b89b5b;
  --seal: #a54436;
  --gutter: clamp(20px, 6vw, 96px);
  --maxw: 1240px;
  --dial: min(88vmin, 860px);
}

* { box-sizing: border-box; }
html { background: var(--bg-deep); color-scheme: var(--scheme); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 16px/1.8 var(--font-ui);
  letter-spacing: .02em;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--desk);
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.rite { font-family: var(--font-rite); font-weight: 400; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--vermilion-soft); }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* 放在内容之下、不做混合：盖在整页上的混合层会让每一帧滚动都重新合成全页 */
  opacity: min(var(--grain-opacity), .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —————————————————— 按钮 —————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  height: 50px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 15px;
  letter-spacing: .24em;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-settle);
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold-hi); }
.btn-small { height: 36px; padding: 0 16px; font-size: 13px; letter-spacing: .18em; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }

/* —————————————————— 导航 —————————————————— */
.nav {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--line);
}
.nav-brand { display: flex; color: var(--ink); }
.nav-brand svg { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 13px; letter-spacing: .28em; color: var(--ink-dim); text-decoration: none; transition: color .3s; }
.nav-links a:hover { color: var(--gold-hi); }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 3px; background: transparent;
  color: var(--ink-dim); font-size: 12px; letter-spacing: .2em; cursor: pointer;
}
.sound-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sound-toggle .wave { opacity: 0; transition: opacity .3s; }
.sound-toggle[aria-pressed="true"] { color: var(--gold-hi); border-color: var(--gold); }
.sound-toggle[aria-pressed="true"] .wave { opacity: 1; animation: steam 1.8s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"] .w2 { animation-delay: .5s; }
.sound-toggle[aria-pressed="true"] .mute { opacity: 0; }
@keyframes steam { 50% { transform: translateY(-1.5px); opacity: .5; } }

/* —————————————————— 舞台：开场 + 转盘 —————————————————— */
.stage-track { position: relative; height: 470vh; }
.stage-track.calm { height: 100vh; height: 100svh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero-copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 50%;
  width: min(46vw, 640px);
  transform: translateY(calc(-50% + var(--lift, 0px)));
}
.eyebrow { display: flex; gap: 14px; margin: 0 0 28px; font-size: 12px; letter-spacing: .36em; color: var(--gold); text-transform: uppercase; }
.eyebrow span + span::before { content: "·"; margin-right: 14px; color: var(--ink-faint); }
.eyebrow-zh { font-family: var(--font-rite); letter-spacing: .5em; }
h1 {
  margin: 0;
  font-size: clamp(40px, 5.1vw, 82px);
  line-height: 1.16;
  letter-spacing: .05em;
  color: var(--ink);
  text-wrap: balance;
}
.lede { margin: 30px 0 0; max-width: 26em; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.95; color: var(--ink-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.dial-wrap {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: var(--dial);
  height: var(--dial);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.dial {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.dial:focus { outline: none; }
.dial > .layer { position: absolute; display: block; overflow: visible; pointer-events: none; }
.dial > .ring-layer, .dial > .sheen { will-change: transform; transform-origin: 50% 50%; }
.dial.dragging { cursor: grabbing; }
.dial .halo { opacity: .3; transition: opacity .8s; }
.dial .hl { fill: none; stroke: var(--line); stroke-width: 1.2; }
.dial .hl.strong { stroke: var(--line-strong); }
.dial .disc.sink { fill: var(--plate-b); opacity: .5; }
.dial .disc.lift { fill: var(--plate-a); opacity: .34; }
.dial .tk { stroke: var(--line); stroke-width: 1.2; }
.dial .tk.major { stroke: var(--line-strong); }
.dial .rg {
  fill: var(--ink-dim);
  font-family: var(--font-rite);
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill .8s;
}
.dial .rg.dim { fill: var(--ink-faint); }
.dial .rg.on { fill: var(--gold-hi); }
.dial .rg.now { fill: var(--vermilion); }
.dial .pool-rim { stroke: var(--gold); stroke-opacity: .5; stroke-width: 1.2; }
.dial .star { fill: var(--gold-hi); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .72; } }
.dial .pool-sub { fill: var(--ink-faint); font: 400 12px var(--font-ui); letter-spacing: .38em; text-anchor: middle; }
.dial .pool-name { fill: var(--ink); font-family: var(--font-rite); font-size: 38px; text-anchor: middle; }
.dial .yao rect { fill: var(--gold-hi); }
.dial .yao.moving rect { fill: var(--vermilion); }
.dial .ripple { fill: none; stroke: var(--vermilion); stroke-width: 2; }
.dial .press-ring { fill: none; stroke: var(--gold-hi); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transform: rotate(-90deg); transition: stroke-dashoffset .15s, opacity .2s; }
.dial.pressing .press-ring { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .9s linear, opacity .1s; }
.dial .charge { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; opacity: .85; transition: stroke .4s; }
.dial .charge.full { stroke: var(--vermilion); }
.dial .tick-flash { fill: none; stroke: var(--gold-hi); stroke-width: 5; stroke-linecap: round; opacity: 0; }
.dial .pointer { fill: var(--vermilion); stroke: color-mix(in srgb, var(--gold-hi) 18%, transparent); stroke-width: 3; }
.dial .corner { fill: var(--ink); font-family: var(--font-rite); font-size: 25px; letter-spacing: .1em; }
.dial .corner.right { fill: var(--gold-hi); }
.dial .moon-lit { fill: var(--gold-hi); }
.dial .moon-dark { fill: var(--bg); }
.dial .moon.full .moon-lit { filter: drop-shadow(0 0 8px var(--gold-hi)); }
.dial .sheen { opacity: .5; }
.dial .pool, .dial .plate { transform-origin: 0 0; }

/* 开场：金线成盘 */
.dial.drawing .draw { stroke-dasharray: 1; animation: draw 1.5s var(--ease-rite) backwards; animation-delay: var(--d, 0s); }
.dial.drawing .disc { animation: fade-in 1.2s ease backwards; animation-delay: var(--d, 0s); }
.dial.drawing .marks { animation: fade-in 1s ease backwards; animation-delay: calc(var(--d, 0s) + .45s); }
.dial.drawing .pool { animation: pool-in 1.3s var(--ease-settle) backwards .95s; }
.dial.drawing .plate > circle:first-child { animation: fade-in 1.6s ease backwards; }
.dial.drawing .pointer { animation: drop-in .7s var(--ease-settle) backwards 1.9s; }
.dial.drawing .corners, .dial.drawing .charge { animation: fade-in 1s ease backwards 1.8s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pool-in { from { opacity: 0; transform: scale(.4) rotate(-45deg); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-24px); } }

.dial.struck .halo { animation: flare 1.1s ease-out; }
.dial.struck .plate { animation: struck .5s var(--ease-settle); }
@keyframes flare { 20% { opacity: 1; } }
@keyframes struck { 30% { transform: scale(1.012); } }

.dial-again {
  position: absolute;
  left: 50%;
  top: calc(100% + 22px);
  bottom: auto;
  transform: translateX(-50%);
  height: 38px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-lift) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .25em;
  cursor: pointer;
  white-space: nowrap;
  z-index: 10;
  transition: all .25s ease;
}
.dial-again:hover { border-color: var(--gold); color: var(--gold-hi); background: color-mix(in srgb, var(--bg-lift) 96%, transparent); }

/* 旁白 */
.turn-captions {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 50%;
  width: min(40vw, 560px);
  height: 0;
  pointer-events: none;
}
.cap {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  transform: translateY(calc(-50% + 16px));
  opacity: 0;
  transition: opacity .7s var(--ease-settle), transform .9s var(--ease-settle);
}
.cap.on { opacity: 1; transform: translateY(-50%); }
.cap .rite { display: block; font-size: clamp(28px, 3.1vw, 46px); line-height: 1.3; letter-spacing: .06em; }
.cap small { display: block; margin-top: 14px; font-size: 14px; letter-spacing: .24em; color: var(--ink-dim); }
.cap .charge-count { font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--gold); letter-spacing: .12em; }
.cap-result small:first-child { margin: 0 0 14px; color: var(--gold); letter-spacing: .5em; font-size: 12px; }
.cap-result .result-name { font-size: clamp(52px, 5.6vw, 84px); }
.cap-result .result-name small { display: inline; margin: 0; font-size: .4em; letter-spacing: .2em; color: var(--ink-faint); }
.cap-result .result-line { font-family: var(--font-rite); font-size: 18px; letter-spacing: .14em; color: var(--ink-dim); }
@media (min-width: 900px) {
  .cap[data-cap="1"] .rite { font-size: clamp(18px, 1.75vw, 28px); letter-spacing: .045em; line-height: 1.45; }
}

.drag-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-faint);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .6s;
}
.drag-hint.on { opacity: 1; }

.almanac {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ink-dim);
}
.alm-now { color: var(--gold); letter-spacing: .4em; }
.alm-pillars { font-family: var(--font-rite); color: var(--ink); font-size: 14px; }
.alm-sep { width: 1px; height: 12px; background: var(--line-strong); }
.alm-tz { margin-left: auto; color: var(--ink-faint); }

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 74px;
  width: 1px;
  height: 46px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-hi); animation: cue 2.2s var(--ease-rite) infinite; }
@keyframes cue { to { top: 110%; } }

/* 开场前文字不出现，开场后依次升起 */
.js .hero-copy > *, .js .almanac, .js .nav { opacity: 0; transform: translateY(14px); }
.ready .hero-copy > *, .ready .almanac, .ready .nav { opacity: 1; transform: none; transition: opacity 1s var(--ease-settle), transform 1.2s var(--ease-settle); }
.ready .hero-copy > :nth-child(1) { transition-delay: .05s; }
.ready .hero-copy > :nth-child(2) { transition-delay: .15s; }
.ready .hero-copy > :nth-child(3) { transition-delay: .3s; }
.ready .hero-copy > :nth-child(4) { transition-delay: .42s; }
.ready .almanac { transition-delay: .5s; }
.js:not(.ready) .dial-wrap { opacity: 0; }
.js .dial-wrap { transition: opacity .6s; }
.js.ready .nav { transition: opacity 1s .2s, transform 1s .2s, background .4s, border-color .4s; }

/* —————————————————— 通用分节 —————————————————— */
.section {
  position: relative;
  z-index: 4;
  padding: clamp(96px, 14vh, 160px) var(--gutter);
}
.section-head { max-width: var(--maxw); margin: 0 auto 56px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: .5em;
  color: var(--gold);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .6; }
h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.26;
  letter-spacing: .05em;
  text-wrap: balance;
}
.section p { color: var(--ink-dim); line-height: 1.95; }
.section-head p { max-width: 34em; margin: 22px 0 0; font-size: 17px; }
.muted { color: var(--ink-faint) !important; font-size: 14px; }
.mini-label { margin: 0 0 14px; font-size: 12px; letter-spacing: .3em; color: var(--ink-faint) !important; }

.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-settle), transform 1.2s var(--ease-settle); }
.rv.in { opacity: 1; transform: none; }

/* —————————————————— ④ 行签 —————————————————— */
.sign-section { margin-top: -62vh; padding-top: 18vh; }
.sign-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 8vw, 140px);
  align-items: center;
}
.sign-copy p { max-width: 28em; font-size: 17px; margin: 24px 0 0; }
.scene-picker { margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 10px;
  border: 1px solid var(--line); border-radius: 3px; background: transparent;
  font-size: 14px; letter-spacing: .12em; color: var(--ink-dim); cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.chip b { font-size: 16px; color: var(--gold); }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.on { border-color: var(--gold); color: var(--gold-hi); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.scene-note { font-size: 13px !important; color: var(--ink-faint) !important; margin-top: 14px !important; }
.sign-proof { font-size: 14px !important; border-left: 1px solid var(--vermilion); padding-left: 16px; margin-top: 36px !important; }
.sign-proof b { color: var(--ink); font-weight: 400; font-family: var(--font-rite); letter-spacing: .08em; }
.visitor-note { max-width: 28em; font-size: 13px !important; line-height: 1.7; letter-spacing: .04em; color: var(--ink-faint) !important; margin-top: 12px !important; }

.sign-holder { display: flex; flex-direction: column; align-items: center; }
.sign-hint { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 12px !important; letter-spacing: .24em; color: var(--ink-faint) !important; }
.sign-hint .dot { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--ink-faint); }
.sign-hint .dot.on { background: var(--ink-dim); border-color: var(--ink-dim); }
.sign-hint span { margin-left: 6px; }

/* 两面签 */
.sign {
  --w: 344px;
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.8);
  perspective: 1800px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.sign:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 8px; }
.sign-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .46s cubic-bezier(.65, 0, .35, 1);
}
.sign.flipping .sign-inner { animation: lift .46s cubic-bezier(.65, 0, .35, 1); }
@keyframes lift { 50% { scale: 1.05; } }
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 38px 28px 24px;
  border-radius: 6px;
  color: var(--p-ink);
  background:
    radial-gradient(120% 70% at 20% 0%, #fffdf6 0%, transparent 60%),
    radial-gradient(90% 60% at 100% 100%, #f3ead8 0%, transparent 70%),
    var(--washi);
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .72), 0 3px 10px rgba(0, 0, 0, .18);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  font-family: var(--font-ui);
}
.face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.face.back { transform: rotateY(180deg); }
.frame { position: absolute; inset: 10px; border: 1px solid rgba(165, 68, 54, .42); border-radius: 3px; pointer-events: none; }
.frame::after { content: ""; position: absolute; inset: 4px; border: .5px solid rgba(165, 68, 54, .28); border-radius: 2px; }
.hole { position: absolute; top: 17px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1px solid rgba(165, 68, 54, .6); background: var(--washi-2); }

.face p { margin: 0; line-height: 1.5; color: var(--p-ink); }
.front-top { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: stretch; padding-top: 8px; }
.vcols { writing-mode: vertical-rl; height: 100%; }
.vcols p { margin: 0 0 0 16px; }
.face .v-no { font-size: 13px; letter-spacing: .24em; color: var(--seal); }
.face .v-name { font-family: var(--font-rite); color: var(--p-ink); line-height: 1; }
.v-name b { font-size: 40px; font-weight: 700; letter-spacing: .04em; }
.v-name .zhi { display: inline-block; margin: 10px 0 8px; font-size: 13px; color: var(--p-ink3); }
.v-name .chg { font-size: 26px; letter-spacing: .06em; }
.face .v-theme { font-family: var(--font-rite); font-size: 18px; line-height: 1.5; letter-spacing: .18em; color: var(--p-ink); }
.face .v-date { font-size: 11.5px; letter-spacing: .22em; color: var(--p-ink3); }
.pair-col { align-self: flex-end; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; }
.hexpair { width: 36px; height: auto; display: block; }
.hexpair .ln, .mini-hex .ln, .hex-art .ln { fill: var(--p-ink); }
.hexpair .ln.mv { fill: var(--seal); }
.hexpair .arrow { font-size: 12px; fill: var(--p-gold); text-anchor: middle; }
.pair-names { font-family: var(--font-rite); font-size: 11px; line-height: 1.4; color: var(--p-ink2); text-align: center; }

.face .three-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 4px; font-size: 11.5px; letter-spacing: .22em; color: var(--p-gold); white-space: nowrap; }
.three-head::before, .three-head::after { content: ""; flex: 1; height: 1px; background: rgba(184, 155, 91, .5); }
.three { list-style: none; margin: 0; padding: 0; }
.three li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(46, 43, 38, .1); font-size: 14px; line-height: 1.55; transition: color .3s; }
.three li:first-child { border-top: 0; }
.three li.done span { color: var(--p-ink2); }
.ring { position: relative; flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1.3px solid rgba(46, 43, 38, .38); background: transparent; cursor: pointer; transition: border-color .2s; }
.ring:hover { border-color: var(--seal); }
.ring::before { content: ""; position: absolute; inset: -10px; }
.stamp {
  position: absolute; left: 50%; top: 50%;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--seal);
  color: #fbede6;
  font: normal 12px/1 var(--font-rite);
  opacity: 0;
  transform: rotate(var(--r));
  pointer-events: none;
}
.three li.done .stamp { opacity: 1; }
.face .front-foot { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; padding-top: 10px; font-size: 11px; letter-spacing: .14em; color: var(--p-ink3); }
.foot-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.face .back-head { margin: 12px 0 0; text-align: center; font-size: 12px; letter-spacing: .18em; color: var(--p-ink2); }
.face .back-head .no { color: var(--seal); }
.face .back-q { margin: 28px 4px 10px; font-family: var(--font-rite); font-size: 17px; line-height: 1.7; letter-spacing: .06em; color: var(--p-ink2); }
.face .back-q span { display: block; margin-bottom: 8px; font-family: var(--font-ui); font-size: 11px; letter-spacing: .34em; color: var(--p-gold); }
.ruled {
  position: relative;
  flex: 1;
  margin: 4px 4px 96px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 29px, rgba(46, 43, 38, .14) 29px 30px);
  cursor: text;
}
.ruled-text { min-height: 100%; font-family: var(--font-rite); font-size: 16px; line-height: 30px; color: var(--p-ink); outline: none; caret-color: var(--seal); white-space: pre-wrap; word-break: break-all; }
.ruled-count { position: absolute; right: 0; bottom: -24px; font-size: 11px; color: var(--p-ink3); opacity: 0; transition: opacity .2s; font-family: var(--font-num); }
.sign.writing .ruled-count { opacity: 1; }
.date-seal { position: absolute; right: 26px; bottom: 28px; width: 76px; height: 76px; transform: rotate(-12deg); }
.date-seal circle { fill: none; stroke: var(--seal); }
.date-seal circle:first-child { stroke-width: 1.6; }
.date-seal circle + circle { stroke-width: .8; }
.date-seal text { fill: var(--seal); font-family: var(--font-rite); font-size: 13px; text-anchor: middle; letter-spacing: .1em; }
.date-seal text.sm { font-size: 9px; letter-spacing: .3em; }

/* —————————————————— ⑤ 算式 —————————————————— */
.formula-card {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1.15fr);
  align-items: center;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg-lift) 70%, transparent);
  box-shadow: var(--shadow-plate);
}
.fx-col { min-width: 0; }
.fx-k { margin: 0 0 18px !important; font-size: 11px !important; letter-spacing: .5em; color: var(--gold) !important; }
.fx-list { margin: 0; }
.fx-list > div { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 2px; }
.fx-list dt { font-size: 12px; letter-spacing: .24em; color: var(--ink-faint); }
.fx-list dd { margin: 0; font-size: 19px; letter-spacing: .12em; color: var(--ink); }
.fx-list dd small { margin-left: .7em; font-size: .68em; letter-spacing: .2em; color: var(--ink-faint); }
.fx-list dd b { margin-right: .35em; font-weight: 400; color: var(--gold-hi); }
.fx-list .hl dd { color: var(--vermilion); }
.fx-trigrams dd { font-size: 22px; }
.fx-arrow { position: relative; align-self: stretch; }
.fx-arrow::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold)); opacity: .55; }
.fx-arrow::after { content: ""; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: translateY(-50%) rotate(45deg); opacity: .8; }
.flash { animation: flash 1s ease-out; }
@keyframes flash { from { background: var(--vermilion-soft); } }
.fx-hex { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fx-hex .fx-k { align-self: stretch; text-align: center; }
.hex-art { width: 100%; max-width: 240px; height: auto; }
.hex-art .ln { fill: var(--ink); }
.hex-art .ln.mv { fill: var(--vermilion); }
.hex-art .arrow, .mini-hex .arrow { fill: var(--gold); font-size: 20px; text-anchor: middle; dominant-baseline: central; }
.formula-hex-name { margin: 18px 0 6px !important; font-size: 34px; letter-spacing: .12em; color: var(--ink) !important; line-height: 1.2 !important; }
.formula-hex-name small, .mini-name small { font-size: .45em; margin: 0 .5em; color: var(--ink-faint); }
.formula-hex-theme { margin: 0 !important; font-family: var(--font-rite); font-size: 15px; letter-spacing: .1em; }

.hour-ruler-wrap { max-width: var(--maxw); margin: 64px auto 0; }
.hour-ruler { position: relative; padding-top: 16px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: ew-resize; outline: none; }
.hour-track { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line-strong); }
.hour { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 0 16px; border: 0; background: none; cursor: inherit; color: var(--ink-dim); }
.hour-tick { position: absolute; top: -1px; left: 50%; width: 1px; height: 8px; background: var(--line-strong); }
.hour b { font-size: clamp(18px, 2vw, 26px); transition: color .25s, transform .35s var(--ease-settle); }
.hour small { font-family: var(--font-num); font-size: 11px; color: var(--ink-faint); letter-spacing: .06em; }
.hour em { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; letter-spacing: .08em; white-space: nowrap; color: var(--vermilion); }
.hour.is-now b { color: var(--ink); }
.hour.on b { color: var(--gold-hi); transform: translateY(-3px) scale(1.18); }
.hour-thumb { position: absolute; top: 4px; left: 0; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--gold); margin-left: -6px; transition: transform .35s var(--ease-settle); }
.hour-ruler:focus-visible .hour-track { outline: 1px solid var(--gold-hi); outline-offset: 6px; }

/* —————————————————— ⑥ 七种起象 —————————————————— */
.method-ruler { position: relative; max-width: var(--maxw); margin: 0 auto; }
.method-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.method { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 12px; border: 0; background: none; cursor: pointer; color: var(--ink-dim); transition: color .16s; }
.m-glyph { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: color .16s, transform .4s var(--ease-settle); }
.method b { font-size: 15px; letter-spacing: .12em; font-weight: 400; }
.method:hover { color: var(--ink); }
.method.on { color: var(--gold-hi); }
.method.on .m-glyph { color: var(--gold); transform: translateY(-3px); }
.method-panel {
  max-width: var(--maxw);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.method-text h3 { display: flex; align-items: center; gap: 18px; margin: 0; font-size: 44px; letter-spacing: .14em; font-weight: 400; }
.method-text h3 .m-glyph { width: 46px; height: 46px; color: var(--gold); flex: none; }
.method-text dl { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 20px 0 0; }
.method-text dt { font-size: 11px; letter-spacing: .3em; color: var(--ink-faint); }
.method-text dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.method-text p { margin: 20px 0 0; font-size: 16px; max-width: 30em; }
.method-demo {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg-lift) 64%, transparent);
}
.demo-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.demo-field span { font-size: 11px; letter-spacing: .3em; color: var(--ink-faint); }
.demo-field input {
  width: 100%;
  height: 46px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 400 20px var(--font-rite);
  letter-spacing: .06em;
  outline: none;
  border-radius: 0;
}
.demo-field input:focus { border-bottom-color: var(--gold); }
.demo-pair { display: flex; gap: 22px; }
.demo-out { display: flex; align-items: center; gap: 22px; margin-top: 24px; min-height: 90px; flex-wrap: wrap; }
.mini-hex { width: 110px; height: 66px; flex: none; }
.mini-hex .ln { fill: var(--ink); }
.mini-hex .ln.mv { fill: var(--vermilion); }
.mini-name { margin: 0 !important; font-size: 30px; letter-spacing: .1em; color: var(--ink) !important; line-height: 1.2 !important; }
.mini-theme { margin: 0 !important; flex-basis: 100%; font-family: var(--font-rite); font-size: 15px; letter-spacing: .08em; }
.demo-foot { margin: 16px 0 0 !important; font-size: 12px !important; letter-spacing: .08em; color: var(--ink-faint) !important; font-family: var(--font-num); }
.demo-foot a { color: var(--gold); }
.demo-soft { margin: 14px 0 0 !important; padding-left: 12px; border-left: 1px solid var(--gold); font-size: 13px !important; }
.demo-empty { margin: 0 !important; color: var(--ink-faint) !important; }
.demo-quote { margin: 0 !important; font-size: 28px; line-height: 1.6 !important; color: var(--ink) !important; letter-spacing: .1em; }
.demo-wheels { display: flex; gap: 10px; }
.demo-wheels button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; transition: border-color .3s; }
.demo-wheels button:hover { border-color: var(--gold); }
.demo-wheels small { font-size: 11px; letter-spacing: .3em; color: var(--ink-faint); }
.demo-wheels b { font-size: 20px; letter-spacing: .1em; color: var(--ink); }
.demo-bagua { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.demo-bagua span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.demo-bagua b { font-size: 34px; color: var(--gold-hi); line-height: 1.1; }
.demo-bagua small { font-size: 12px; color: var(--ink-dim); letter-spacing: .1em; }
.coins-row { display: flex; }
.coin-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.coin-line { display: grid; grid-template-columns: 4.5em 110px auto; align-items: center; gap: 14px; animation: fade-in .4s ease; }
.coin-line .coins { font-size: 14px; letter-spacing: .3em; color: var(--gold); }
.coin-line i { display: block; height: 6px; background: var(--ink); border-radius: 1px; }
.coin-line i.yin { background: linear-gradient(90deg, var(--ink) 0 42%, transparent 42% 58%, var(--ink) 58%); }
.coin-line.mv i { background-color: transparent; }
.coin-line.mv i.yang { background: var(--vermilion); }
.coin-line.mv i.yin { background: linear-gradient(90deg, var(--vermilion) 0 42%, transparent 42% 58%, var(--vermilion) 58%); }
.coin-line small { font-size: 12px; color: var(--ink-faint); letter-spacing: .2em; }

/* —————————————————— ⑦ 五种材质 —————————————————— */
.swatches { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--swatch);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .5s var(--ease-settle), border-color .3s, box-shadow .5s;
}
.swatch:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-plate); }
.swatch.on { border-color: var(--gold); }
.mini-dial { width: 76%; margin: 6px auto 22px; display: block; transition: transform 1.4s var(--ease-settle); }
.swatch:hover .mini-dial { transform: rotate(45deg); }
.md-plate { fill: var(--plate-b); stroke: var(--plate-rim); stroke-width: 1; }
.md-l { fill: none; stroke: var(--line-strong); stroke-width: .8; }
.md-t line, .md-y line { stroke: var(--gold); stroke-width: 1.2; }
.md-t line { stroke: var(--line-strong); }
.md-star { fill: var(--gold-hi); }
.md-ptr { fill: var(--vermilion); }
.sw-name { font-size: 28px; letter-spacing: .14em; line-height: 1.2; }
.sw-note { margin-top: 6px; font-size: 13px; letter-spacing: .12em; color: var(--ink-dim); }
.sw-on { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 11px; letter-spacing: .3em; color: var(--gold); opacity: 0; transition: opacity .3s; }
.swatch.on .sw-on { opacity: 1; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* —————————————————— ⑧ 签架 —————————————————— */
.rack-layout { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.rack-copy { position: sticky; top: 120px; }
.rack-copy > p { font-size: 17px; margin: 24px 0 0; max-width: 26em; }
.trio { list-style: none; margin: 36px 0 0; padding: 0; }
.trio li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 15px; }
.trio b { font-size: 24px; color: var(--gold-hi); }
.rack-note { margin-top: 28px !important; }
.rack-group + .rack-group { margin-top: 34px; }
.rack-group.past { opacity: .8; }
.rack-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font-size: 12px; letter-spacing: .3em; color: var(--gold) !important; }
.rack-head span { color: var(--ink-faint); letter-spacing: .1em; }
.rack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 18px 12px; }
.strip {
  position: relative;
  height: 188px;
  padding: 22px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(165, 68, 54, .45);
  border-radius: 3px;
  background: var(--washi);
  color: var(--p-ink);
  cursor: pointer;
  box-shadow: 0 14px 26px -18px rgba(0, 0, 0, .8);
  transition: transform .45s var(--ease-settle), box-shadow .45s;
}
.strip:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 26px 36px -20px rgba(0, 0, 0, .85); }
.strip .hole { top: 7px; width: 6px; height: 6px; margin-left: -3px; }
.s-name { flex: 1; writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; font-size: 18px; font-weight: 700; letter-spacing: .08em; line-height: 1; display: flex; align-items: center; justify-content: center; }
.s-name small { font-size: 12px; font-weight: 400; color: var(--p-ink3); margin: 6px 0; }
.s-date { font-size: 11px; letter-spacing: .06em; color: var(--p-ink3); margin-top: 8px; white-space: nowrap; }
.s-dots { display: flex; gap: 4px; margin-top: 8px; }
.s-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(46, 43, 38, .45); transition: background .3s, border-color .3s; }
.s-dots i.on { background: var(--seal); border-color: var(--seal); }
.strip.today { background: var(--washi-hi); border: 1.5px solid var(--seal); box-shadow: 0 0 0 4px rgba(207, 75, 58, .14), 0 14px 26px -18px rgba(0, 0, 0, .8); }
.strip.today .s-date { color: var(--seal); }
.today-seal { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--seal); color: #fbede6; font-size: 12px; font-style: normal; transform: rotate(8deg); }

/* —————————————————— 愿景 —————————————————— */
.vision-section { overflow: hidden; padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(120px, 18vh, 200px); }
.vision { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.vision .kicker { justify-content: center; }
.vision .kicker::before { display: none; }
.vision-mark { position: absolute; left: 50%; top: 50%; width: min(760px, 92vw); transform: translate(-50%, -50%); color: var(--gold); opacity: .07; pointer-events: none; }
.vision-mark svg { display: block; width: 100%; height: auto; }
.section .vision-epigraph { margin: 0 0 56px; font-size: 15px; letter-spacing: .6em; color: var(--gold); }
.vision-epigraph cite { display: block; margin-top: 10px; font: normal 11px var(--font-ui); letter-spacing: .3em; color: var(--ink-faint); }
.section .vision p:not(.kicker):not(.vision-epigraph):not(.vision-close) { margin: 0 0 40px; font-family: var(--font-rite); font-size: clamp(17px, 1.6vw, 22px); line-height: 2.15; letter-spacing: .08em; color: var(--ink); }
.section .vision-close { margin: 64px 0 0; font-family: var(--font-rite); font-size: clamp(34px, 4vw, 56px); letter-spacing: .4em; color: var(--gold-hi); }

/* —————————————————— ⑨ 铭 —————————————————— */
.seals { max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.seals li { padding-top: 6px; }
.seal-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--vermilion);
  border-radius: 4px;
  color: var(--vermilion);
  font-size: 23px;
  line-height: 1.05;
  writing-mode: vertical-rl;
  letter-spacing: .08em;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px color-mix(in srgb, var(--vermilion) 40%, transparent);
}
.seals li:nth-child(2n) .seal-mark { transform: rotate(3deg); }
.seals h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 500; letter-spacing: .14em; }
.seals p { margin: 0; font-size: 14px; line-height: 1.85; }

/* —————————————————— ⑩ 内测 —————————————————— */
.beta-section { padding-bottom: clamp(64px, 10vh, 110px); }
.beta-card { max-width: 640px; margin: 0 auto; text-align: center; }
.beta-mark { width: 52px; margin: 0 auto 24px; color: var(--gold); }
.beta-mark svg { width: 100%; height: auto; display: block; }
.beta-card h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: .08em; }
.beta-card > p { font-size: 15.5px; margin: 18px auto 0; max-width: 28em; line-height: 1.9; color: var(--ink-dim); text-wrap: balance; }
.play-download { margin-top: 32px; gap: 20px; letter-spacing: .08em; color: var(--gold-hi); border-color: var(--gold); }
.store-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.store-downloads .play-download { margin-top: 0; }
.apk-download { gap: 20px; letter-spacing: .08em; }
.beta .apk-meta { margin: 22px 0 0; font-size: 13px; line-height: 1.9; letter-spacing: .04em; }
.beta .apk-note { max-width: 36em; margin: 12px auto 0; font-size: 14px; line-height: 1.8; color: var(--ink-dim); }
.apk-help { width: min(100%, 620px); margin: 20px auto 0; text-align: left; font-size: 13px; line-height: 1.8; color: var(--ink-dim); }
.apk-help summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--gold-hi); }
.apk-help summary::after { content: '+'; }
.apk-help[open] summary::after { content: '−'; }
.apk-help ol { padding-left: 1.5em; }
.beta .apk-help p { font-size: 13px; line-height: 1.8; }
.apk-help a { color: var(--gold-hi); text-underline-offset: 3px; }
.apk-verification { margin-top: 18px; }
.apk-verification dt { margin-top: 12px; color: var(--ink); }
.apk-verification dd { margin: 4px 0 0; }
.apk-verification code { font-size: 11px; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 600px) {
  .store-downloads { flex-direction: column; align-items: stretch; width: min(100%, 330px); margin-left: auto; margin-right: auto; }
  .store-downloads .btn { justify-content: center; }
}
.iphone-beta { max-width: 400px; margin: 24px auto 0; }
.iphone-beta summary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink-dim); font-size: 13px; letter-spacing: .1em; cursor: pointer; list-style: none; }
.iphone-beta summary::-webkit-details-marker { display: none; }
.iphone-beta summary::after { content: "+"; color: var(--gold); }
.iphone-beta[open] summary::after { content: "−"; }
.iphone-beta summary:hover { color: var(--gold-hi); }
.iphone-beta > p { margin: 10px 0 0; color: var(--ink-dim); font-size: 13px; line-height: 1.8; }
.iphone-beta .beta-form { margin-top: 0; }
.beta-form { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 44px; }
.beta-mail { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* 设备：两枚细字，选中者提亮、下垫一道短金线 */
.platforms { display: inline-flex; align-items: center; }
.platforms label { position: relative; cursor: pointer; }
.platforms label + label::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 11px; margin-top: -8px;
  background: var(--line-strong);
}
.platforms input { position: absolute; opacity: 0; pointer-events: none; }
.platforms span {
  position: relative; display: inline-block;
  padding: 4px 22px 10px;
  font-size: 13px; letter-spacing: .2em; line-height: 1.6;
  color: var(--ink-dim);
  transition: color .3s;
}
.platforms span::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 14px; height: 1px; margin-left: -7px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .35s var(--ease-settle);
}
.platforms label:hover span { color: var(--ink); }
.platforms input:checked + span { color: var(--gold-hi); }
.platforms input:checked + span::after { transform: scaleX(1); }
.platforms input:focus-visible + span { outline: 1px solid var(--gold-hi); outline-offset: 2px; }

/* 邮箱：一道书写线，按钮落在线尾 */
.beta-field {
  display: flex; align-items: center;
  width: 100%; max-width: 400px;
  margin-top: 26px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s;
}
.beta-field:focus-within { border-color: var(--gold); }
.beta-input {
  flex: 1; min-width: 0;
  height: 50px; padding: 0 2px;
  border: 0; border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: 16px; letter-spacing: .04em;
  outline: none;
}
.beta-input::placeholder { color: var(--ink-faint); letter-spacing: .16em; }
.beta-input:disabled { color: var(--ink-dim); }

.beta-submit {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 0 0 20px;
  border: 0; background: transparent;
  color: var(--gold);
  font-size: 14px; letter-spacing: .24em;
  cursor: pointer;
  transition: color .3s;
}
.beta-submit::after {
  content: ""; width: 18px; height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform .35s var(--ease-settle), opacity .2s;
}
.beta-submit:hover { color: var(--gold-hi); }
.beta-submit:hover::after { transform: scaleX(1.5); }
.beta-submit:disabled { cursor: default; }
.beta-seal {
  position: absolute; right: -6px; top: 50%;
  width: 32px; height: 32px; margin-top: -16px;
  display: grid; place-items: center;
  border-radius: 3px; background: var(--vermilion); color: #fbede6;
  font-size: 15px; font-style: normal; letter-spacing: 0;
  opacity: 0; transform: rotate(-8deg) scale(1.6);
  pointer-events: none;
}
.beta-submit.sealed { color: var(--ink-faint); }
.beta-submit.sealed::after { opacity: 0; }
.beta-submit.sealed .beta-seal { opacity: 1; transform: rotate(-8deg) scale(1); transition: opacity .12s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }

.beta-status {
  min-height: 22px; margin: 14px 0 0;
  font-size: 13px; letter-spacing: .08em;
  color: var(--ink-dim);
}
.beta-status.err { color: var(--vermilion); }

/* —————————————————— ⑪ 页脚 —————————————————— */
.footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 56px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  color: var(--ink-dim);
  font-size: 13px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 76px; color: var(--ink); }
.footer-logo svg { width: 100%; height: auto; display: block; }
.footer-brand p { margin: 12px 0 0; font-size: 12px; letter-spacing: .28em; color: var(--ink-faint); }
.footer-divider { width: 40px; height: 1px; background: var(--line-strong); margin: 2px 0; opacity: .7; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; letter-spacing: .2em; color: var(--ink-dim); transition: color .25s; }
.footer-links a:hover { color: var(--gold-hi); }
.footer-links a[href^="mailto:"] { letter-spacing: .04em; font-family: var(--font-num); }
.footer-meta { margin: 0; color: var(--ink-faint); font-size: 11.5px; letter-spacing: .08em; }

/* —————————————————— 协议页 —————————————————— */
.legal-page .nav { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom-color: var(--line); }
.nav-back { margin-left: auto; font-size: 13px; letter-spacing: .24em; color: var(--ink-dim); text-decoration: none; }
.nav-back:hover { color: var(--gold-hi); }
.legal { position: relative; z-index: 4; max-width: 780px; margin: 0 auto; padding: 150px var(--gutter) 120px; }
.legal h1 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); letter-spacing: .1em; }
.legal-meta { margin: 20px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--ink-faint); }
.legal-intro { margin: 40px 0 0; font-size: 16px; line-height: 2.05; color: var(--ink-dim); }
.legal-toc { margin: 36px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px; columns: 2; column-gap: 32px; list-style: none; }
.legal-toc li { margin: 4px 0; font-size: 14px; break-inside: avoid; }
.legal-toc a { color: var(--ink-dim); text-decoration: none; }
.legal-toc a:hover { color: var(--gold-hi); }
.legal section { margin-top: 56px; scroll-margin-top: 96px; }
.legal h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: .1em; color: var(--ink); }
.legal h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.legal p, .legal li { font-size: 15.5px; line-height: 2; color: var(--ink-dim); }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 6px 0 14px; padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--gold); }
.legal strong { font-weight: 500; color: var(--ink); }
.legal a { color: var(--gold-hi); }
.legal-note { margin-top: 64px !important; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px !important; color: var(--ink-faint) !important; }
@media (max-width: 899px) {
  .legal { padding-top: 110px; }
  .legal-toc { columns: 1; }
}

/* —————————————————— 新闻资料页 /press/（英文） —————————————————— */
.press { position: relative; z-index: 4; max-width: 1120px; margin: 0 auto; padding: 150px var(--gutter) 120px; }
.press h1 { margin: 0; font-size: clamp(52px, 7vw, 96px); }
.press h2.rite { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }
.press h3 { margin: 0; font-family: var(--font-rite); font-size: 24px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.press p { color: var(--ink-dim); }
.press a:not(.btn) { color: var(--gold-hi); }
.press-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.press-tagline { margin: 14px 0 36px; font-size: 24px; font-style: italic; color: var(--gold-hi) !important; }
.press-intro { margin: 0 0 16px; font-size: 16.5px; line-height: 1.85; }
.press-intro:first-of-type { color: var(--ink); }
.press-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.press-size { font-size: 12px; opacity: .72; font-family: var(--font-ui); }
.press-kit-note { margin: 0; font-size: 13px; color: var(--ink-faint) !important; }
.press-facts { padding: 32px; border: 1px solid var(--line); border-radius: 4px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.press-icon { width: 88px; margin-bottom: 26px; }
.press-icon svg { display: block; width: 100%; height: auto; }
.press-facts dl { margin: 0; }
.press-facts dl > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.press-facts dt { font-size: 10.5px; line-height: 2.1; text-transform: uppercase; letter-spacing: .14em !important; color: var(--ink-faint); }
.press-facts dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.press-block { margin-top: clamp(96px, 12vh, 140px); }
.press-head { max-width: 720px; margin-bottom: 40px; }
.press-lede { margin: 18px 0 0; font-size: 16px; line-height: 1.85; }
.press .kicker { text-transform: uppercase; letter-spacing: .16em !important; font-size: 11px; }
.press-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.press-list li { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.press-list p, .press-events p { margin: 12px 0 0; font-size: 15px; line-height: 1.8; }
.press-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.press-events li { padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.press .press-badge { display: inline-block; margin: 0 0 18px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 10.5px; line-height: 1.6; text-transform: uppercase; letter-spacing: .16em !important; color: var(--gold); }
.press .press-dates { margin: 8px 0 0; font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.press .press-note { margin: 24px 0 0; font-size: 13.5px; color: var(--ink-faint); }
.press-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; max-width: 980px; margin: 0; padding: 0; list-style: none; }
.press-shots figure { margin: 0; }
.press-shots img, .press-card img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-lift, #18181d); }
.press-shots figcaption { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); }
.press-media { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.press-video video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1170; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.press-media-copy p:not(.kicker) { margin: 18px 0 28px; max-width: 32em; font-size: 16px; line-height: 1.85; }
.press-card { margin: 0; }
.press-brand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.press-swatch { display: grid; place-items: center; min-height: 200px; padding: 32px; border: 1px solid var(--line); border-radius: 4px; }
.press-swatch.light { background: #f3ece0; }
.press-swatch.dark { background: #0a0a0d; }
.press-swatch img { display: block; width: min(100%, 300px); height: auto; }
.press-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.press-files a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink) !important; font-size: 14px; transition: border-color .25s; }
.press-files a:hover { border-color: var(--gold); }
.press-files small { flex: none; font-size: 11.5px; color: var(--gold); }
.press-contact { text-align: center; padding-top: 72px; border-top: 1px solid var(--line); }
.press-contact .kicker { justify-content: center; }
.press-contact .kicker::before { display: none; }
.press-contact > p { margin: 18px 0 0; font-size: 16px; }
.press-mail { font-family: var(--font-num); }
.press .nowrap { white-space: nowrap; }
@media (max-width: 899px) {
  .press { padding-top: 110px; }
  .press-hero, .press-media { grid-template-columns: 1fr; }
  .press-facts { padding: 24px; }
  .press-list, .press-events, .press-files { grid-template-columns: 1fr; }
  .press-list { gap: 28px; }
  .press-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .press-shots figcaption { font-size: 12.5px; }
  .press-video { max-width: 280px; margin: 0 auto; }
  .press-brand { grid-template-columns: 1fr; }
  .press-swatch { min-height: 150px; }
}

/* —————————————————— 全屏签 —————————————————— */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(6, 6, 9, .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .32s; }
.sheet-body { position: relative; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(24px) scale(.94); transition: opacity .32s, transform .42s var(--ease-settle); }
.sheet.on .sheet-scrim { opacity: 1; }
.sheet.on .sheet-body { opacity: 1; transform: none; }
.sheet-top { width: var(--w, 344px); display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #e9e4d8; font-size: 13px; letter-spacing: .24em; }
.sheet-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(233, 228, 216, .25); background: rgba(233, 228, 216, .06); color: #e9e4d8; cursor: pointer; }
.sheet .sign-hint { color: rgba(233, 228, 216, .5) !important; }
.sheet .sign-hint .dot { border-color: rgba(233, 228, 216, .5); }
.sheet .sign-hint .dot.on { background: rgba(233, 228, 216, .8); }

.toast {
  position: fixed; z-index: 95; left: 50%; bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  background: color-mix(in srgb, var(--bg-lift) 92%, transparent);
  backdrop-filter: blur(12px);
  color: var(--ink); font-size: 13px; letter-spacing: .1em;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-settle);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* —————————————————— 中屏 —————————————————— */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* —————————————————— 窄屏 / 手机 —————————————————— */
@media (max-width: 899px) {
  :root { --dial: min(88vw, 480px); }
  .nav {
    position: absolute;
    height: 60px;
    gap: 10px;
  }
  .nav-brand svg { height: 28px; }
  .sound-label { display: none; }
  .hero-copy { top: 92px; left: var(--gutter); right: var(--gutter); width: auto; transform: translateY(var(--lift, 0px)); }
  h1 { font-size: clamp(38px, 10.5vw, 60px); }
  .eyebrow { margin-bottom: 18px; }
  .lede { margin-top: 18px; font-size: 15px; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { height: 46px; padding: 0 20px; }
  .almanac { display: none; }
  .scroll-cue { display: none; }
  .dial-again {
    top: calc(100% + 18px);
    height: 36px;
    padding: 0 18px;
    font-size: 12.5px;
    letter-spacing: .2em;
  }
  .turn-captions { left: var(--gutter); right: var(--gutter); top: auto; bottom: 10vh; width: auto; }
  .cap { width: 100%; text-align: center; }
  .cap .rite { font-size: clamp(24px, 7vw, 34px); }
  .cap small { margin-top: 8px; font-size: 13px; }
  .cap-result small:first-child { margin-bottom: 10px; font-size: 11px; }
  .cap-result .result-name { font-size: clamp(38px, 10.5vw, 54px); }
  .cap-result .result-line { font-size: 14px; margin-top: 6px; }
  .drag-hint { bottom: 20px; font-size: 11px; }

  .sign-section { margin-top: -40vh; padding-top: 12vh; }
  .sign-layout, .rack-layout { grid-template-columns: 1fr; }
  .sign-holder { order: -1; }
  .sign { --w: min(84vw, 330px); }
  .sign-copy p { font-size: 16px; }
  .formula-card { grid-template-columns: 1fr; padding: 24px 18px; gap: 16px; }
  .fx-arrow { height: 36px; }
  .fx-arrow::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--gold) 40%, var(--gold)); }
  .fx-arrow::after { right: auto; left: 50%; top: auto; bottom: 6px; margin-left: -3.5px; transform: rotate(135deg); }
  .fx-list { display: grid; grid-template-columns: 1fr 1fr; }
  .fx-trigrams { grid-template-columns: 1fr; }
  .fx-list dd { font-size: 17px; }
  .fx-list > div { grid-template-columns: 1fr; gap: 4px; padding: 8px 6px; }
  .fx-trigrams > div { grid-template-columns: 3.6em minmax(0, 1fr); }
  .fx-sky dd small { display: none; }
  .formula-hex-name { margin: 12px 0 6px !important; font-size: clamp(28px, 7.5vw, 36px); }
  .formula-hex-theme { font-size: 13.5px; }
  .hour-ruler-wrap { margin-top: 44px; }
  .hour { padding: 12px 0 18px; }
  .hour small { display: none; }
  .hour b { font-size: 15.5px; }
  .hour em { bottom: 2px; font-size: 9px; letter-spacing: 0; white-space: nowrap; }
  .method { gap: 8px; padding: 10px 0; }
  .m-glyph { width: 28px; height: 28px; }
  .method b { font-size: 12.5px; letter-spacing: .08em; }
  .method-text h3 { font-size: 34px; gap: 14px; }
  .method-text h3 .m-glyph { width: 36px; height: 36px; }
  .method-panel { grid-template-columns: 1fr; margin-top: 32px; }
  .method-demo { padding: 20px 18px; }
  .swatches { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .swatch { scroll-snap-align: center; }
  .rack-copy { position: static; }
  .rack-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; }
  .strip { height: 178px; padding: 16px 0 10px; }
  .s-name { font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
  .s-name small { font-size: 10px; margin: 2px 0; }
  .s-date { font-size: 10px; letter-spacing: 0; margin-top: 6px; }
  .s-dots { margin-top: 6px; }
  .s-dots i { width: 5.5px; height: 5.5px; }
  .seals { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .section .vision p:not(.kicker):not(.vision-epigraph):not(.vision-close) { font-size: 15px; letter-spacing: .02em; line-height: 2.1; text-wrap: pretty; }
  .section .vision-epigraph { letter-spacing: .4em; margin-bottom: 44px; }
  .section .vision-close { letter-spacing: .3em; }
  .beta-section { padding-bottom: 64px; }
  .beta-card > p { font-size: 14.5px; }
  .beta-field { max-width: none; }
  .footer { padding: 48px var(--gutter) 40px; gap: 16px; }
  .footer-logo { width: 68px; }
  .footer-links { gap: 18px; }
  .footer-links a { font-size: 12.5px; }
}

/* —————————————————— 减弱动效 —————————————————— */
[data-motion="calm"] { scroll-behavior: auto; }
[data-motion="calm"] .rv { opacity: 1; transform: none; transition: none; }
[data-motion="calm"] .dial .star,
[data-motion="calm"] .scroll-cue span,
[data-motion="calm"] .sound-toggle .wave { animation: none; }
[data-motion="calm"] .sign-inner { transition-duration: .01s; }
[data-motion="calm"] .sign-section { margin-top: 0; padding-top: clamp(96px, 14vh, 160px); }

/* ══════════════════════════════════════════════════
   多语言
   与 App 同一原则：盘面刻字、卦名、干支、印文各语言都用原字；
   英文标题换衬线、字距收紧，标签改小号大写；日文取日本字形，签面仍竖排。
   ══════════════════════════════════════════════════ */

/* —— 语言切换：一枚小钮，点开是三种语言的自称 —— */
.lang { position: relative; }
.lang-toggle {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 3px; background: transparent;
  color: var(--ink-dim); cursor: pointer;
  font: 400 14px/1 var(--font-rite); letter-spacing: .04em;
  transition: color .25s, border-color .25s;
}
html[lang="en"] .lang-toggle { font: 500 11px/1 var(--font-ui); letter-spacing: .14em; }
.lang-toggle:hover, .lang.open .lang-toggle { color: var(--gold-hi); border-color: var(--gold); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  display: flex; flex-direction: column;
  min-width: 148px; padding: 8px 0;
  border: 1px solid var(--line); border-radius: 4px;
  background: color-mix(in srgb, var(--bg-lift) 96%, transparent);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lang-in .24s var(--ease-settle);
}
.lang-menu[hidden] { display: none; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } }
.lang-menu a {
  position: relative;
  padding: 9px 20px 9px 30px;
  font-size: 14px; letter-spacing: .06em; line-height: 1.4;
  color: var(--ink-dim); text-decoration: none;
  transition: color .2s, background .2s;
}
.lang-menu a:hover, .lang-menu a:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--gold) 8%, transparent); outline: none; }
.lang-menu a[aria-current] { color: var(--gold-hi); }
.lang-menu a[aria-current]::before {
  content: ""; position: absolute; left: 15px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--vermilion);
}
.legal-page .nav-tools { margin-left: auto; gap: 22px; }
.legal-page .nav-back { margin-left: 0; }

/* —— 页脚语言行 —— */
.footer-langs { display: flex; align-items: center; justify-content: center; gap: 0; }
.footer-langs a { padding: 0 14px; font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); text-decoration: none; transition: color .25s; }
.footer-langs a + a { border-left: 1px solid var(--line); }
.footer-langs a:hover { color: var(--gold-hi); }
.footer-langs a[aria-current] { color: var(--ink-dim); }

/* —— 首访轻提示：右下角一张纸条，用对方的语言写 —— */
.lang-suggest {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease-settle), transform .6s var(--ease-settle);
}
.lang-suggest.on { opacity: 1; transform: none; }
.lang-suggest p {
  display: flex; align-items: center; gap: 16px;
  margin: 0; padding: 12px 12px 12px 20px;
  border: 1px solid var(--line); border-left: 2px solid var(--vermilion); border-radius: 3px;
  background: color-mix(in srgb, var(--bg-lift) 94%, transparent);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px; line-height: 1.5; color: var(--ink-dim);
}
.lang-suggest p > span { flex: 1; }
.lang-suggest a { flex: none; color: var(--gold-hi); text-decoration: none; letter-spacing: .06em; white-space: nowrap; }
.lang-suggest a:hover { color: var(--ink); }
.lang-suggest button { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-faint); cursor: pointer; font-size: 12px; }
.lang-suggest button:hover { color: var(--ink); }
.lang-suggest p[lang="en"] { font-family: "Inter", -apple-system, system-ui, sans-serif; }
@media (max-width: 899px) {
  .lang-suggest { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* —— 卦名小字注（英：拼音 · 译名；日：音读）—— */
.cap-result .result-gloss:empty, .formula-hex-gloss:empty { display: none; }
.cap-result .result-gloss { margin: 10px 0 6px; font-size: 13px; letter-spacing: .06em; color: var(--gold); }
.formula-hex-gloss { margin: 0 0 8px !important; font-size: 13px; letter-spacing: .04em; color: var(--gold) !important; }
.mini-gloss { margin: 0 !important; flex-basis: 100%; font-size: 12.5px; letter-spacing: .04em; color: var(--gold) !important; }
.face .v-gloss { font-size: 11px; letter-spacing: .12em; color: var(--p-gold); }
.vision-epigraph .epigraph-tr { display: block; margin: 18px auto 0; max-width: 30em; font: italic 400 17px/1.6 var(--font-rite); letter-spacing: 0; color: var(--ink-dim); }

/* ═════════ English ═════════ */
html[lang="en"] {
  --font-rite: "Cormorant Garamond", "LXGW WenKai", "LXGW WenKai Lite", "Songti SC", "Noto Serif SC", serif;
}
/* 汉字字距搬到英文会散：一律收回，只给小号大写标签留字距 */
html[lang="en"] body * { letter-spacing: 0 !important; }
html[lang="en"] :is(.kicker, .eyebrow, .fx-k, .mini-label, .cap-result small:first-child, .alm-now, .sw-on, .rack-head,
  .method-text dt, .demo-field span, .demo-wheels small, .fx-list dt, .three-head, .back-q > span, .v-no, .v-date,
  .back-head, .footer-brand p) {
  text-transform: uppercase;
  letter-spacing: .16em !important;
}
html[lang="en"] :is(.kicker, .eyebrow, .fx-k, .alm-now, .cap-result small:first-child) { font-size: 11px; }
html[lang="en"] :is(.fx-list dt, .method-text dt, .demo-field span, .demo-wheels small, .mini-label, .rack-head, .sw-on) { font-size: 10.5px; }
html[lang="en"] :is(.sign-hint, .drag-hint) { letter-spacing: .03em !important; }
html[lang="en"] .sign-proof b { font-size: 16px; font-weight: 500; }
html[lang="en"] .eyebrow-zh { font-family: var(--font-ui); }
html[lang="en"] :is(.btn, .nav-links a, .footer-links a, .nav-back) { letter-spacing: .06em !important; }
html[lang="en"] .nav-links { gap: 22px; }
@media (max-width: 899px) {
  html[lang="en"] .eyebrow { flex-direction: column; gap: 6px; }
  html[lang="en"] .eyebrow span + span::before { display: none; }
}
html[lang="en"] .nav-links a { font-size: 13.5px; }

/* 标题：衬线稍放大，行距收紧 */
html[lang="en"] h1 { font-size: clamp(44px, 5.6vw, 92px); font-weight: 500; line-height: 1.02; }
html[lang="en"] h2.rite { font-size: clamp(36px, 4.4vw, 66px); font-weight: 500; line-height: 1.08; }
html[lang="en"] .lede { max-width: 30em; }
html[lang="en"] .cap .rite { font-size: clamp(30px, 3.2vw, 50px); font-weight: 500; line-height: 1.15; }
@media (min-width: 900px) {
  html[lang="en"] .cap[data-cap="1"] .rite { font-size: clamp(22px, 2.1vw, 34px); }
}
html[lang="en"] .cap-result .result-line { font-style: italic; font-size: 21px; }
html[lang="en"] .formula-hex-theme, html[lang="en"] .mini-theme { font-style: italic; font-size: 18px; }
html[lang="en"] .fx-list dd.word { font-family: var(--font-rite); font-size: 20px; font-weight: 500; }
html[lang="en"] .fx-list dd small { font-family: var(--font-ui); font-size: 11px; }
html[lang="en"] .fx-list > div { grid-template-columns: 6.8em minmax(0, 1fr); }
html[lang="en"] .fx-trigrams > div { grid-template-columns: 7.4em minmax(0, 1fr); }
html[lang="en"] .method b { font-size: 17px; font-weight: 500; }
html[lang="en"] .method-text h3 { font-size: 50px; font-weight: 500; }
html[lang="en"] .demo-quote.word { font-family: var(--font-rite); font-size: 28px; line-height: 1.25 !important; }
html[lang="en"] .demo-wheels b { font-size: 19px; }
html[lang="en"] .demo-bagua small { font-size: 11.5px; }
html[lang="en"] .sw-name { font-size: 30px; font-weight: 500; }
html[lang="en"] .chip { font-size: 13.5px; }
html[lang="en"] .rack-copy .trio span { font-size: 15px; }
html[lang="en"] .section .vision p:not(.kicker):not(.vision-epigraph):not(.vision-close) { font-size: clamp(19px, 1.75vw, 24px); line-height: 1.7; }
html[lang="en"] .section .vision-epigraph { letter-spacing: .3em !important; }
html[lang="en"] .section .vision-close { font-style: italic; font-weight: 500; }
html[lang="en"] .seals h3 { font-family: var(--font-rite); font-size: 22px; font-weight: 500; }
html[lang="en"] .legal h1 { font-weight: 500; }
html[lang="en"] .legal h2 { font-size: 26px; font-weight: 500; }

/* 签面：英文横排——签号、卦名（原字）、注、主题句、日期自上而下 */
html[lang="en"] .front-top { flex-direction: row; align-items: stretch; gap: 14px; }
html[lang="en"] .vcols { writing-mode: horizontal-tb; height: auto; flex: 1; min-width: 0; display: flex; flex-direction: column; }
html[lang="en"] .vcols p { margin: 0; }
html[lang="en"] .face .v-no { font-size: 10.5px; }
html[lang="en"] .face .v-name { margin-top: 18px; }
html[lang="en"] .v-name .zhi { margin: 0 .35em; font-size: 14px; }
html[lang="en"] .face .v-gloss { margin-top: 12px; font-size: 12.5px; text-transform: none; font-style: italic; font-family: var(--font-rite); color: var(--p-ink2); }
html[lang="en"] .face .v-theme { margin-top: 18px; font-size: 23px; font-style: italic; font-weight: 500; line-height: 1.22; text-wrap: balance; }
html[lang="en"] .face .v-date { margin-top: auto; padding-top: 12px; font-size: 9.5px; line-height: 1.7; }
html[lang="en"] .three li { font-size: 13.5px; line-height: 1.45; }
html[lang="en"] .face .front-foot { font-size: 10.5px; }
html[lang="en"] .face .back-q { font-size: 20px; font-style: italic; line-height: 1.45; }
html[lang="en"] .ruled-text { font-size: 18px; word-break: normal; }

/* ═════════ 日本語 ═════════ */
html[lang="ja"] {
  --font-ui: "Inter", -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}
html[lang="ja"] body { line-break: strict; word-break: auto-phrase; }
html[lang="ja"] .nav-links a { letter-spacing: .18em; }
html[lang="ja"] .lede, html[lang="ja"] .section-head p, html[lang="ja"] .sign-copy p { letter-spacing: .04em; }
html[lang="ja"] .cap[data-cap="1"] .rite { letter-spacing: .02em; }
@media (min-width: 900px) {
  html[lang="ja"] .cap[data-cap="1"] .rite { font-size: clamp(17px, 1.55vw, 25px); }
}
html[lang="ja"] .eyebrow-zh { letter-spacing: .4em; }
html[lang="ja"] .section .vision p:not(.kicker):not(.vision-epigraph):not(.vision-close) { letter-spacing: .06em; }
html[lang="ja"] .section .vision-epigraph { letter-spacing: .3em; }
html[lang="ja"] .method-text h3 { letter-spacing: .08em; }
html[lang="ja"] .face .v-gloss { letter-spacing: .2em; }
html[lang="ja"] .face .v-theme { letter-spacing: .1em; }
html[lang="ja"] .face .v-date { letter-spacing: .12em; }

/* ═════════ 繁體中文 ═════════ */
html[lang="zh-Hant"] {
  --font-ui: "Inter", -apple-system, "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "PingFang HK", "Noto Sans HK", "Noto Sans CJK HK", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-rite: "LXGW WenKai", "LXGW WenKai Lite", "Songti TC", "Noto Serif TC", "Source Han Serif TC", "Songti SC", "STSong", "Noto Serif SC", serif;
}
