/* GouTA 官网 · 样式
   浅色与深色跟随访客系统设置；字体：标题用子集化的 Noto Serif（随页面内置），正文用系统字体。 */

@font-face { font-family: "GouTA Display SC"; src: url("/assets/fonts/display-zh.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "GouTA Display JP"; src: url("/assets/fonts/display-ja.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F4F0E9;
  --paper-2: #ECE6DC;
  --paper-3: #E4DDD1;
  --ink: #141617;
  --ink-2: #3E4340;
  --ink-3: #5E635F;
  --line: rgba(20, 22, 23, .13);
  --jade: #35675A;
  --jade-soft: rgba(53, 103, 90, .09);
  --device-shadow: drop-shadow(0 28px 36px rgba(60, 44, 28, .16)) drop-shadow(0 6px 10px rgba(60, 44, 28, .08));
  --g-teal: #48A38D; --g-terra: #D8856B; --g-amber: #E99D36; --g-green: #83AD64; --g-blue: #748BD0; --g-violet: #A685C5;
  --tile-a: #F1D9D5; --tile-b: #E6DAD5; --tile-c: #EDE2DD;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec: clamp(96px, 12vw, 184px);
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --f-latin: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", "Times New Roman", serif;
  --f-display: "GouTA Display SC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --t-h1: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem);
  --t-h2: clamp(2.125rem, 1.3rem + 3.1vw, 4.5rem);
  --t-h3: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem);
  --t-lead: clamp(1.0625rem, 1rem + .3vw, 1.3125rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
:lang(ja) {
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
  --f-display: "GouTA Display JP", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1E1C;
    --paper-2: #202522;
    --paper-3: #282E2B;
    --ink: #EFEAE1;
    --ink-2: #C8C5BE;
    --ink-3: #979C97;
    --line: rgba(239, 234, 225, .14);
    --jade: #8CC3B0;
    --jade-soft: rgba(140, 195, 176, .1);
    --device-shadow: drop-shadow(0 28px 40px rgba(0, 0, 0, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .3));
    --tile-a: #4A3A38; --tile-b: #3C3634; --tile-c: #443B39;
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.8 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: normal; }
::selection { background: color-mix(in srgb, var(--g-teal) 30%, transparent); }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-family: var(--f-display); font-weight: 600; line-height: 1.24; letter-spacing: .01em; text-wrap: balance; }
:lang(zh-Hans) .display, .intro-line:lang(zh-Hans), .demo-line:lang(zh-Hans) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) .display, :lang(ja).display { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; font-feature-settings: "palt"; letter-spacing: .03em; }
h2.display { font-size: var(--t-h2); }
h3.display { font-size: var(--t-h3); }
.lead { font-size: var(--t-lead); line-height: 1.9; color: var(--ink-2); max-width: 30em; }
:lang(ja) .lead { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.small { font-size: 14px; color: var(--ink-3); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; letter-spacing: .08em; color: var(--ink-3); font-weight: 500; margin-bottom: 22px; }
.note { display: inline-block; margin-left: .6em; }

/* 动作：单个动作是不带框的词；主次两个动作时，主动作加框（圆角 8） */
.word-link { display: inline-flex; align-items: baseline; gap: .1em; color: var(--jade); font-weight: 600; text-decoration: none; font-size: 16px; padding-block: 6px; text-underline-offset: 6px; }
.word-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.word-link.big { font-size: clamp(18px, 1rem + .4vw, 21px); }
.word-link > span[aria-hidden], .btn-frame > span[aria-hidden], .btn-word > span[aria-hidden], .nav-download > span[aria-hidden], .search button > span[aria-hidden], .hero-cue > span[aria-hidden] { margin-left: .3em; }
.btn-frame { display: inline-flex; align-items: center; justify-content: center; gap: .15em; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--jade); border-radius: 8px; color: var(--jade); background: transparent; font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .2s; white-space: nowrap; }
.btn-frame:hover { background: var(--jade-soft); }
.btn-word { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--jade); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-word:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- 顶栏 ----------
   Data 入口和语言切换在任何宽度都直接露在顶栏上；窄屏时只把「学习 / 发现 / 系列」三个章节收进菜单。 */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s; }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 64px; max-width: calc(1400px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.nav-mark { display: block; width: 92px; flex: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
.nav-mark img { width: 100%; height: auto; }
.nav-links { margin-left: auto; }
.nav-links ul { display: flex; align-items: center; gap: 26px; }
.nav-links a, .nav-quick a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-links a { padding: 6px 0; }
.nav-links a:hover, .nav-quick a:hover { color: var(--ink); }
.nav-quick { display: flex; align-items: center; gap: 4px; flex: none; }
.nav-quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; border-radius: 8px; }
.nav-quick .ext { font-size: .82em; margin-left: .15em; }
.nav-download { display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 14px; border: 1.5px solid var(--jade); border-radius: 8px; color: var(--jade); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.nav-download:hover, .nav-download.is-current { background: var(--jade-soft); }
.menu-toggle { display: none; }
.site-nav.is-scrolled, .site-nav.is-open { background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
@supports not (background: color-mix(in srgb, red, blue)) { .site-nav.is-scrolled, .site-nav.is-open { background: var(--paper); } }

@media (max-width: 1060px) and (min-width: 820px) {
  .nav-inner, .nav-links ul { gap: 18px; }
}
@media (max-width: 819px) {
  .nav-inner { gap: 6px; height: 58px; }
  .nav-mark { width: 82px; margin-right: auto; }
  .nav-quick { margin-left: auto; gap: 0; }
  .nav-quick a { padding: 0 7px; font-size: 14px; }
  .nav-download { height: 34px; padding: 0 11px; font-size: 14px; margin-left: 4px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink-2); }
  .nav-quick .nav-data, .nav-quick .nav-lang, .nav-download, .menu-toggle { position: relative; }
  .nav-quick .nav-data::after, .nav-quick .nav-lang::after, .nav-download::after {
    content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 44px; transform: translateY(-50%); background: transparent;
  }
  .nav-quick .nav-lang::after { right: -2px; }
  .menu-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); background: transparent; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-icon { position: relative; width: 18px; height: 12px; }
  .menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), top .3s var(--ease); }
  .menu-icon i:first-child { top: 2px; } .menu-icon i:last-child { top: 9px; }
  .is-open .menu-icon i:first-child { top: 5.5px; transform: rotate(45deg); }
  .is-open .menu-icon i:last-child { top: 5.5px; transform: rotate(-45deg); }
  .nav-links { position: fixed; inset: 58px 0 auto 0; height: calc(100dvh - 58px); margin: 0; background: var(--paper); padding: 28px var(--gutter) 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav-links ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav-links a { display: block; font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1.5; color: var(--ink); padding: 8px 0; }
  .no-js .nav-links { position: static; visibility: visible; opacity: 1; transform: none; height: auto; padding: 0; background: none; }
  .no-js .nav-links ul { flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
  .no-js .nav-links a { font: 400 13px/1.6 var(--f-sans); }
  .no-js .nav-inner { flex-wrap: wrap; height: auto; padding-block: 10px; }
}
@media (max-width: 359px) {
  .nav-mark { width: 70px; }
  .nav-quick a { padding: 0 5px; }
}
body.menu-open { overflow: hidden; }

/* ---------- 开场 ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; background: var(--paper); isolation: isolate; }
/* 画布比这一屏高出 32%，伸到「从一个词」那一节底下，往下渐渐回到页面纸色（hero.js 按画布实际高度计算） */
.hero-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 132%; pointer-events: none; }
.hero-static::after, .no-js .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 2.4vh, 28px); padding: 64px 20px 9vh; text-align: center; pointer-events: none; }
.hero-mark { margin: 0; width: clamp(240px, 40vw, 600px); }
.hero-mark img { width: 100%; height: auto; }
.hero-tag { font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1rem + .55vw, 24px); letter-spacing: .26em; padding-left: .26em; line-height: 1.5; }
:lang(ja) .hero-tag { letter-spacing: .1em; padding-left: .1em; }
.hero-cue { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: 13px; letter-spacing: .12em; color: var(--ink-3); text-decoration: none; padding: 8px 10px; white-space: nowrap; }
.hero-cue:hover { color: var(--ink); }
/* 玻璃里藏着的词：词直接刻在玻璃上（hero.js 里画），这里只有给键盘和读屏用的链接——盖在各块顶面上、看不见，键盘聚焦时画焦点框 */
.hero.egg-hover { cursor: pointer; }
.hero-eggs { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.egg-link { position: absolute; left: 0; top: 0; display: block; border-radius: 8px; pointer-events: none; }
.egg-link:focus { outline: none; }
.egg-link:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }
@media (max-aspect-ratio: 92/100) { .hero-mark { width: min(74vw, 520px); } .hero-copy { padding-bottom: 6vh; } }

/* 开场动画期间：字标与标语等镜头落定再「印」上去 */
.hero-intro .hero-mark, .hero-intro .hero-tag, .hero-intro .hero-cue { opacity: 0; }
/* 字标的显现由 hero.js 按开场时间逐帧给（半透明、失焦 → 清楚），和最后一块玻璃落定同时完成 */
.hero-mark { will-change: opacity, filter; transform-origin: 50% 50%; }
.hero.is-settled .hero-tag { opacity: 1; transition: opacity .5s ease .05s; }
.hero.is-settled .hero-cue { opacity: 1; transition: opacity .6s ease .4s; }
@keyframes gouta-print { from { opacity: 0; filter: blur(4px); transform: scale(1.02); } to { opacity: 1; filter: none; transform: none; } }

/* 没有 WebGL / 没有脚本：用同一场景渲染好的静帧 */
.hero-static, .no-js .hero { background: var(--paper) url("/assets/img/hero/poster-light-wide.webp") center / cover no-repeat; }
@media (max-aspect-ratio: 92/100) { .hero-static, .no-js .hero { background-image: url("/assets/img/hero/poster-light-tall.webp"); } }
@media (prefers-color-scheme: dark) {
  .hero-static, .no-js .hero { background-image: url("/assets/img/hero/poster-dark-wide.webp"); }
}
@media (prefers-color-scheme: dark) and (max-aspect-ratio: 92/100) {
  .hero-static, .no-js .hero { background-image: url("/assets/img/hero/poster-dark-tall.webp"); }
}

/* ---------- 引子 ---------- */
.intro { position: relative; z-index: 1; padding-block: var(--sec) calc(var(--sec) * .5); display: grid; gap: 28px; }
.intro-line { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 4rem); max-width: 14em; }
.intro-desc { font-size: var(--t-lead); color: var(--ink-2); max-width: 24em; line-height: 1.9; }
@media (min-width: 900px) { .intro { grid-template-columns: repeat(12, 1fr); column-gap: 24px; } .intro-line { grid-column: 1 / 10; } .intro-desc { grid-column: 7 / 12; } }

/* ---------- 学习 ---------- */
.learn { padding-block: calc(var(--sec) * .5) var(--sec); display: grid; gap: 56px; align-items: center; }
.learn-copy h2 { margin-bottom: 28px; }
.learn-copy .lead { margin-bottom: 28px; }
.learn-devices { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 44px); align-items: start; max-width: 620px; justify-self: center; width: 100%; }
.learn-devices .d-b { margin-top: 18%; }
.learn-devices .shot-caption { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .learn { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .learn-copy { grid-column: 1 / 6; }
  .learn-devices { grid-column: 7 / 13; }
}
.device { position: relative; }
.device img { width: 100%; height: auto; filter: var(--device-shadow); }
.shot-caption { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ---------- 一个词 ---------- */
.word { background: var(--paper-2); padding-block: var(--sec); }
.word-head { display: grid; gap: 10px; margin-bottom: clamp(48px, 7vw, 96px); }
.word-head .eyebrow { margin-bottom: 4px; }
.word-title { font: 700 clamp(4.5rem, 2rem + 11vw, 12.5rem)/.95 var(--f-sans); letter-spacing: -.035em; margin-left: -.04em; }
.word-title .dot { color: var(--g-teal); }
.word-scene { color: var(--ink-2); font-size: 16px; margin-top: 18px; }
.word-quote { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.word-quote blockquote p { font-family: var(--f-latin); font-weight: 400; font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3.5rem); line-height: 1.18; letter-spacing: -.01em; max-width: 13em; }
.word-quote em { color: var(--jade); }
.word-quote figcaption { color: var(--ink-2); font-size: 16px; }
.word-caption { display: grid; gap: 14px; max-width: 34em; }
.word-caption p { color: var(--ink-2); font-size: var(--t-lead); line-height: 1.9; }
@media (min-width: 900px) {
  .word > .wrap:first-child { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
  .word-head { grid-column: 1 / -1; }
  .word-quote { grid-column: 1 / 8; margin-bottom: 0; }
  .word-caption { grid-column: 8 / 13; }
}

.steps { margin-top: clamp(64px, 9vw, 140px); }
.steps-stage { display: none; }
.steps-list { display: grid; gap: 72px; }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.3; margin: 6px 0 12px; }
.step p { color: var(--ink-2); font-size: var(--t-lead); line-height: 1.9; max-width: 22em; }
:lang(ja) .step p { word-break: keep-all; overflow-wrap: anywhere; }
.step-no { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink-3); letter-spacing: .08em; }
.step-device { width: min(62vw, 300px); margin-top: 28px; }
@media (min-width: 900px) {
  .steps { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .steps-stage { display: block; grid-column: 1 / 6; grid-row: 1; position: relative; }
  .steps-device { position: sticky; top: max(88px, calc(50vh - 330px)); width: min(300px, 100%); aspect-ratio: 720 / 1539; margin-inline: auto; filter: var(--device-shadow); }
  .steps-device img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .55s var(--ease), transform .55s var(--ease); transform: translateY(8px); }
  .steps-device img.is-on { opacity: 1; transform: none; }
  .steps-list { grid-column: 7 / 13; grid-row: 1; gap: 0; }
  .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
  .step:first-child { min-height: 64vh; justify-content: flex-start; padding-top: 12vh; }
  .step:last-child { min-height: 64vh; }
  .step-device { display: none; }
}

.deep { margin-top: clamp(72px, 9vw, 140px); }
.deep-h { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); margin-bottom: 28px; }
.deep-list { display: grid; gap: 28px; margin-bottom: 36px; }
.deep-list h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.deep-list p { color: var(--ink-2); }
@media (min-width: 720px) { .deep-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- 发现 ---------- */
.discover { padding-block: var(--sec); overflow: hidden; }
.discover-grid { display: grid; gap: 56px; align-items: center; }
.discover-copy h2 { margin-bottom: 24px; }
.discover-copy .lead { margin-bottom: 18px; }
.discover-devices { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; max-width: 620px; width: 100%; justify-self: center; }
.discover-devices .d-b { margin-top: 30%; }
.discover-devices .shot-caption { grid-column: 1 / -1; }
.device-video { aspect-ratio: 720 / 1539; filter: var(--device-shadow); }
/* 手机屏幕层：位置与圆角按外框图量出来的屏幕（1544×3301 里的 [47,48]–[1485,3245]，圆角半径 150）。
   圆角同时用 clip-path 和 overflow+border-radius 两道裁切，微信等安卓 WebView 上也不会露出直角；外框图再盖在上面。 */
.device-video .screen { position: absolute; left: 3.04%; top: 1.454%; width: 93.14%; height: 96.85%; overflow: hidden; border-radius: 10.42% / 4.69%;
  -webkit-clip-path: inset(0 round 10.42% / 4.69%); clip-path: inset(0 round 10.42% / 4.69%); background: #F2EDE6; isolation: isolate; transform: translateZ(0); }
.device-video .screen img, .device-video .screen video { position: absolute; left: -0.3%; top: -0.15%; width: 100.6%; height: 100.3%; max-width: none; object-fit: fill; display: block; filter: none; }
.device-video .screen video { opacity: 0; transition: opacity .3s; }
.device-video.is-playing .screen video { opacity: 1; }
.device-video .device-frame { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; }
/* 播放/暂停：看得见的是 32px 高的小胶囊，能点的范围向外多 6px，至少 44×44 */
.video-toggle { position: absolute; right: calc(8% - 6px); bottom: calc(4% - 6px); z-index: 2; min-width: 44px; min-height: 44px; padding: 0 18px; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: #fff; isolation: isolate; opacity: 0; transition: opacity .25s; }
.video-toggle::before { content: ""; position: absolute; inset: 6px; z-index: -1; border-radius: 8px; background: rgba(20, 22, 23, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.device-video:hover .video-toggle, .video-toggle:focus-visible, .device-video.is-paused .video-toggle { opacity: 1; }
@media (hover: none) { .video-toggle { opacity: .85; } }
@media (min-width: 900px) {
  .discover-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .discover-copy { grid-column: 1 / 6; }
  .discover-devices { grid-column: 7 / 13; }
}

/* ---------- 系列 ---------- */
.series { background: var(--paper-2); padding-block: var(--sec); }
.series-head { max-width: 46rem; }
.series-head h2 { margin-bottom: 24px; }
.demo { display: grid; gap: 32px; margin-top: clamp(56px, 8vw, 112px); }
.demo-line { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.35; }
.demo-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.demo-box { display: grid; gap: 18px; align-content: start; }
.demo-words { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 8px; overflow: hidden; max-width: 460px; }
.demo-words li { display: flex; align-items: center; justify-content: center; min-height: 72px; font-weight: 600; font-size: 17px; color: var(--ink); background: var(--tile-b); transition: opacity .45s var(--ease), background-color .45s, color .45s; }
.demo-words li:nth-child(3n+1) { background: var(--tile-a); }
.demo-words li:nth-child(4n+2) { background: var(--tile-c); }
.demo-words li:nth-child(5) { grid-column: span 2; }
.demo-words li.unknown { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--jade) 0%, transparent); }
.demo.is-filtered .demo-words li.known { opacity: .16; }
.demo.is-filtered .demo-words li.unknown { background: color-mix(in srgb, var(--g-teal) 22%, var(--paper)); color: var(--ink); }
.demo-toggle { justify-self: start; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--jade); font-weight: 600; font-size: 15px; }
.demo-toggle:hover { text-decoration: underline; text-underline-offset: 6px; }
.demo-status { font-size: 13px; color: var(--ink-3); }
@media (min-width: 900px) { .demo { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; } .demo-copy { grid-column: 1 / 7; } .demo-box { grid-column: 8 / 13; } }

.products { display: grid; gap: clamp(72px, 10vw, 128px); margin-top: clamp(88px, 12vw, 168px); }
.product { display: grid; gap: 22px; }
.product-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.product-name p:first-child { font-weight: 600; font-size: 17px; }
.product-name .status { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.product-copy h3 { margin-bottom: 18px; }
.product-copy h3 span { color: var(--ink-3); }
.product-copy .lead { margin-bottom: 12px; color: var(--ink); }
.product-copy p:last-child { color: var(--ink-2); max-width: 32em; }
:lang(ja) .product-copy p { word-break: keep-all; overflow-wrap: anywhere; }
.product-show { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.75rem); line-height: 1.5; }
.ime-show { display: grid; gap: 6px; }
.ime-show .ime-to { font-family: var(--f-latin); font-weight: 400; font-size: 1.12em; }
.ime-show .ime-to em { color: var(--jade); }
.ime-show .ime-from::after { content: "↘"; display: block; font-family: var(--f-sans); font-weight: 400; font-size: .8em; color: var(--ink-3); margin: 4px 0 2px; }
.product-show figcaption { font: 400 13px/1.6 var(--f-sans); color: var(--ink-3); margin-top: 10px; }
.kimchi-show p, .yon-show p { color: var(--ink-2); }
@media (min-width: 900px) {
  .product { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .product-name { grid-column: 1 / 4; flex-direction: column; gap: 8px; padding-top: 10px; }
  .product-copy { grid-column: 4 / 9; }
  .product-show { grid-column: 9 / 13; padding-top: 10px; }
}

/* ---------- Data ---------- */
.data { padding-block: var(--sec); }
.data-grid { display: grid; gap: 36px; }
.data-side { display: grid; gap: 22px; align-content: start; }
.search { display: flex; gap: 10px; max-width: 520px; }
.search input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 17px; transition: border-color .2s; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--jade); }
.search input:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.search button { height: 52px; padding: 0 20px; border: 1.5px solid var(--jade); border-radius: 8px; background: transparent; color: var(--jade); font-weight: 600; white-space: nowrap; }
.search button:hover { background: var(--jade-soft); }
.search-eg { font-size: 14px; color: var(--ink-3); }
.search-eg a { color: var(--jade); margin-left: 10px; text-underline-offset: 4px; }
@media (min-width: 900px) { .data-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; } .data-grid > div:first-child { grid-column: 1 / 7; } .data-side { grid-column: 7 / 13; padding-top: 12px; } }

/* ---------- 收尾 ---------- */
.closing { padding-block: calc(var(--sec) * .7) var(--sec); display: grid; justify-items: center; text-align: center; gap: 20px; }
.closing-icon { width: 72px; height: 72px; margin-bottom: 8px; }
.closing .lead { margin-bottom: 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--paper-2); padding-block: 64px calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; gap: 32px; }
.footer-mark { display: block; width: 104px; margin-bottom: 12px; }
.footer-mark img { width: 100%; height: auto; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { text-decoration: none; color: var(--ink-2); padding: 4px 0; display: inline-block; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 4px; font-size: 12.5px; }
.footer-mail { margin-top: 10px; }
.footer-copy { color: var(--ink-3); font-size: 12.5px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } .footer-links { text-align: right; } .footer-links ul { justify-content: flex-end; } .footer-copy { grid-column: 1 / -1; } }

/* ---------- 下载页 ---------- */
.dl { padding-block: calc(64px + clamp(48px, 8vw, 112px)) var(--sec); }
.dl-grid { display: grid; gap: 48px; }
.dl-icon { width: 76px; height: 76px; margin-bottom: 28px; }
.dl-head h1 { font-size: var(--t-h1); margin-bottom: 22px; }
.pkg { display: grid; gap: 18px; align-content: start; }
.pkg-state { font-size: 17px; color: var(--ink-2); min-height: 1.8em; }
.pkg-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.pkg-facts dt { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.pkg-facts dd { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pkg-note { color: var(--ink-2); font-size: 15px; max-width: 32em; }
.pkg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.pkg-actions [hidden] { display: none; }
.pkg-sha summary { cursor: pointer; font-size: 14px; color: var(--ink-3); width: fit-content; padding: 4px 0; }
.pkg-sha code { display: block; margin-top: 8px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; color: var(--ink-2); max-width: 36em; }
.pkg.is-busy .pkg-state { color: var(--ink-3); }
.beta { display: grid; gap: 18px; }
.beta-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--jade); }
.pkg-facts .build { font-weight: 500; color: var(--ink-3); font-size: .8em; margin-left: .15em; }
.beta-note { font-size: 14px; color: var(--ink-3); }
/* 接口给出正式版本以后，内测版本退到次要位置：只留一行名称、版本和下载 */
.beta.is-secondary { gap: 6px; margin-top: 18px; }
.beta.is-secondary .pkg-facts .beta-size, .beta.is-secondary .beta-note, .beta.is-secondary .pkg-sha { display: none; }
.beta.is-secondary .pkg-facts dd { font-size: 15px; }
.beta.is-secondary .beta-get { min-height: 0; padding: 4px 0; border: 0; font-size: 14px; }
.qr { display: none; align-items: center; gap: 16px; margin-top: 12px; }
.qr canvas { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; image-rendering: pixelated; }
.qr p { font-size: 13px; color: var(--ink-3); max-width: 17em; }
:lang(ja) .qr p, :lang(ja) .demo-status, :lang(ja) .demo-note, :lang(ja) .shot-caption { word-break: keep-all; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .qr:not([hidden]) { display: flex; } }
.install h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.install ol { counter-reset: s; display: grid; gap: 10px; margin-bottom: 18px; }
.install li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; color: var(--ink-2); }
.install li::before { content: counter(s); font-family: var(--f-display); font-weight: 600; color: var(--ink-3); }
.install .ios { font-size: 14px; color: var(--ink-3); }
.dl-device { width: min(62vw, 300px); justify-self: center; }
.dl-notes { display: grid; gap: 5px; margin: 0; padding: 0; color: var(--ink-3); font-size: 13px; line-height: 1.55; list-style: none; }
.dl-notes li { margin: 0; }
:lang(ja) .dl-notes { word-break: keep-all; overflow-wrap: anywhere; }
.wechat-guide[hidden] { display: none !important; }
.wechat-guide:not([hidden]) { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.wechat-guide-arrow { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 2px); right: 10px; width: 48px; height: 56px; overflow: visible; color: var(--jade); }
.wechat-guide-arrow path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wechat-guide-card { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 50%; width: min(520px, calc(100vw - 32px)); transform: translateX(-50%); padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 32px rgb(0 0 0 / .12); pointer-events: auto; }
.wechat-guide-message { margin: 0; padding-right: 32px; font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.wechat-guide-close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 25px; line-height: 1; cursor: pointer; }
.wechat-guide-close:hover { background: var(--paper-2); color: var(--ink); }
.wechat-guide-copy { width: 100%; margin-top: 18px; }
.wechat-guide-url { display: block; width: 100%; min-width: 0; margin-top: 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); color: var(--ink-2); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wechat-guide-url[hidden] { display: none; }
.wechat-guide-copy:focus-visible, .wechat-guide-close:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
@media (min-width: 900px) {
  .dl-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; }
  .dl-head, .pkg, .install { grid-column: 1 / 8; }
  .dl-device { grid-column: 9 / 13; grid-row: 1 / span 3; align-self: start; width: 100%; max-width: 320px; position: sticky; top: 96px; }
}

/* ---------- 来源页 ---------- */
.src { padding-block: calc(64px + clamp(48px, 8vw, 112px)) var(--sec); }
.src-grid { display: grid; gap: clamp(56px, 8vw, 96px); }
.src-head h1 { font-size: var(--t-h1); margin-bottom: 22px; }
.src-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.src-index h2, .src-exam h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); margin-bottom: 12px; }
.src-index > p, .src-exam > p { color: var(--ink-2); max-width: 40em; margin-bottom: 24px; }
.src-index ul { display: grid; gap: 4px; }
.src-index a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; text-decoration: none; }
.src-name { font-weight: 600; font-size: 17px; }
.src-by { grid-row: 2; color: var(--ink-3); font-size: 14px; }
.src-index .ext { grid-row: 1 / span 2; align-self: center; color: var(--jade); }
.src-index a:hover .src-name { text-decoration: underline; text-underline-offset: 4px; }
.src-contact p { color: var(--ink-2); }
@media (min-width: 900px) { .src-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; } .src-head { grid-column: 1 / 9; } .src-index { grid-column: 1 / 8; } .src-exam, .src-contact { grid-column: 1 / 8; } .src-index ul { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* ---------- 支持页 ---------- */
.support { padding-block: calc(64px + clamp(48px, 8vw, 112px)) var(--sec); }
.support-grid { display: grid; gap: clamp(48px, 7vw, 84px); }
.support-head, .support-faq, .support-contact { width: 100%; max-width: 760px; }
.support-head h1 { font-size: var(--t-h1); }
.support-faq > h2, .support-contact > h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); }
.support-list { margin-top: 18px; border-top: 1px solid var(--line); }
.support-item { display: grid; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.support-item h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + .45vw, 1.4rem); line-height: 1.45; }
.support-item p { max-width: 56em; color: var(--ink-2); }
.support-pending { color: var(--ink-3) !important; }
.support-contact { display: grid; gap: 12px; align-content: start; }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: grid; }
.nf { align-self: center; padding-block: 80px; display: grid; gap: 56px; }
.nf-mark { display: block; width: 150px; }
.nf-mark img { width: 100%; height: auto; }
.nf-cols { display: grid; gap: 40px; }
.nf-cols h1, .nf-ja { font-size: var(--t-h3); margin-bottom: 12px; }
@media (min-width: 720px) { .nf-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- 进入视野时归位 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .learn-devices .device, .js .discover-devices .device { opacity: 0; transform: translate(10px, 26px) rotate(1.6deg); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .js .learn-devices .d-b, .js .discover-devices .d-b { transform: translate(-8px, 34px) rotate(-1.8deg); transition-delay: .12s; }
  .js .learn-devices.is-in .device, .js .discover-devices.is-in .device { opacity: 1; transform: none; }
}

@media print {
  .site-nav, .hero-canvas, .hero-cue, .video-toggle { display: none; }
  .hero { height: auto; min-height: 0; padding: 40px 0; }
  .hero-copy { position: static; }
}
