/* 二狗输入法 — landing page. No external resources. */

:root {
  --bg: #F3EEE4;
  --bg-sunk: #E9E2D4;
  --surface: #FCFAF5;
  --ink: #1C1814;
  --ink-2: #5E554A;
  --line: rgba(28, 24, 20, .16);
  --line-soft: rgba(28, 24, 20, .09);
  --accent: #BC2D1B;
  --honey: #F5B544;
  --honey-ink: #2A1A10;
  --band-bg: #1C1814;
  --band-ink: #EFE8DC;
  --band-ink-2: #AFA597;
  --band-line: rgba(239, 232, 220, .18);
  --band-accent: #F47C63;
  --term-bg: #191512;
  --term-ink: #E9E1D3;
  --term-dim: #8F8577;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 28px 60px -34px rgba(60, 36, 12, .45), 0 2px 6px rgba(60, 36, 12, .06);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "STZhongsong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Zen Hei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --pad: clamp(20px, 5vw, 56px);
  --gap-section: clamp(88px, 13vw, 176px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110E;
    --bg-sunk: #0E0C0A;
    --surface: #201C17;
    --ink: #EDE6DA;
    --ink-2: #A69D90;
    --line: rgba(237, 230, 218, .17);
    --line-soft: rgba(237, 230, 218, .09);
    --accent: #F47C63;
    --band-bg: #1D1915;
    --band-ink: #EDE6DA;
    --band-ink-2: #A69D90;
    --term-bg: #0C0A08;
    --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 28px 60px -30px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-break: strict;
  text-autospace: normal;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 900; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--mono); font-size: .86em; }
p code, li code, span > code {
  padding: .1em .38em; border-radius: 4px;
  background: var(--line-soft); white-space: nowrap;
}
::selection { background: var(--honey); color: var(--honey-ink); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; color: var(--bg); }

/* ───── top ───── */
.top-in { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.18rem/1 var(--serif); letter-spacing: .02em; }
.brand:hover { color: inherit; }
.brand img { margin: -4px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; }
.nav a, .top-gh { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .top-gh:hover { color: var(--ink); }
.top-gh { font-size: .92rem; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.top-gh:hover { border-color: var(--ink); }

/* ───── hero ───── */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.eyebrow, .ch-kicker {
  margin: 0; font-size: .86rem; letter-spacing: .14em; color: var(--ink-2);
}
.eyebrow .dot { margin-inline: .3em; color: var(--accent); }
.hero-head { position: relative; margin-top: clamp(18px, 2.4vw, 30px); }
h1 {
  font: 900 clamp(2.3rem, 8.1vw, 6.5rem)/1.14 var(--serif);
  letter-spacing: -.012em;
}
h1 span { display: block; }
.seal {
  position: absolute; right: 0; bottom: .35em;
  display: grid; grid-template-columns: 1em 1em; gap: .06em .08em; text-align: center;
  padding: .3em .3em .34em; background: var(--accent); color: var(--bg);
  font: 900 clamp(1rem, 1.9vw, 1.6rem)/1.08 var(--serif);
  border-radius: 5px; transform: rotate(-4deg);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
  margin-top: clamp(36px, 5.5vw, 76px);
}
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.85; color: var(--ink); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px 14px 20px; border-radius: 12px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .18s;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-v { font: 500 .82em var(--mono); opacity: .72; padding-left: 10px; border-left: 1px solid currentColor; }
@media (prefers-color-scheme: dark) { .btn:hover { color: #1C1814; } }
.link-arrow { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); white-space: nowrap; }
.link-arrow::after { content: " →"; font-family: var(--sans); }
.link-arrow:hover { text-decoration-color: currentColor; }

.meta { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: .88rem; color: var(--ink-2); max-width: 30em; }

/* scene: fake desktop */
figure { margin: 0; }
figcaption { margin-top: 14px; font-size: .8rem; color: var(--ink-2); }
.scene { position: relative; }
.menubar {
  display: flex; align-items: center; gap: 18px; height: 30px; padding-inline: 14px;
  font-size: .78rem; color: var(--ink); white-space: nowrap; overflow: hidden;
  background: var(--bg-sunk); border: 1px solid var(--line-soft); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.mb-app { font-weight: 700; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.mb-ime { display: grid; place-items: center; width: 34px; height: 22px; border-radius: 5px; background: var(--line); }
.dogmark {
  display: block; width: 22px; height: 16px; background: currentColor;
  -webkit-mask: url(assets/menu-icon.svg) center / contain no-repeat;
          mask: url(assets/menu-icon.svg) center / contain no-repeat;
}
.win, .logwin, .voice {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.scene .win { border-radius: 0 0 12px 12px; }
.win-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding-inline: 14px; border-bottom: 1px solid var(--line-soft); }
.win-bar i, .term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.win-bar b, .term-bar b { margin-inline: auto; padding-right: 47px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.win-body { position: relative; padding: 26px 28px 0; min-height: 250px; font-size: 1.12rem; }
.doc-line { margin: 0 0 .5em; }
.doc-live { white-space: nowrap; }
.compose { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .28em; }
.caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cand {
  position: absolute; left: 22px; top: 122px; max-width: calc(100% - 30px);
  padding: 5px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -14px rgba(40, 24, 8, .5);
  transition: opacity .16s;
}
.cand[hidden] { display: block; opacity: 0; }
.cand ol { display: flex; gap: 2px; white-space: nowrap; overflow: hidden; }
.cand li { display: flex; align-items: baseline; gap: 6px; padding: 3px 11px 4px 9px; border-radius: 6px; font-size: 1.05rem; }
.cand li i { font: 500 .72rem var(--mono); color: var(--ink-2); }
.cand li b { font-weight: 400; }
.cand li.on { background: var(--honey); color: var(--honey-ink); }
.cand li.on i { color: rgba(42, 26, 16, .62); }
.cand li.on b { font-weight: 600; }

/* ───── chapters ───── */
.chapter { margin-top: var(--gap-section); }
.ch-head { display: flex; align-items: baseline; gap: 18px; padding-top: 18px; border-top: 1px solid var(--ink); }
.ch-no { font: 900 1.5rem/1 var(--serif); color: var(--accent); }
.ch-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: clamp(30px, 4.5vw, 60px);
}
.ch-grid.flip > .ch-text { order: 2; }
.ch-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ch-grid.stack { grid-template-columns: minmax(0, 1fr); }
h2 { font: 900 clamp(1.85rem, 4.2vw, 3.3rem)/1.22 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.ch-text h2 { margin-bottom: .75em; }
.ch-text p { max-width: 31em; }
.ch-text.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 88px); }
.ch-text.two p { max-width: 36em; }
.aside { padding-left: 16px; border-left: 2px solid var(--accent); color: var(--ink-2); font-size: .95rem; }
.plain { margin-top: 1.4em; border-top: 1px solid var(--line); max-width: 31em; }
.plain li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .96rem; line-height: 1.7; color: var(--ink-2); }
.plain b { color: var(--ink); font-weight: 600; }

/* terminal */
.term { min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding-inline: 14px; background: var(--term-bg); border-radius: 12px 12px 0 0; border: 1px solid transparent; border-bottom: 0; }
.term-bar i { background: rgba(233, 225, 211, .2); }
.term-bar b { color: var(--term-dim); }
.term pre {
  margin: 0; padding: 8px 24px 26px; overflow-x: auto;
  background: var(--term-bg); color: var(--term-ink);
  border-radius: 0 0 12px 12px; font-size: .82rem; line-height: 1.85;
  box-shadow: 0 28px 60px -34px rgba(60, 36, 12, .6);
}
@media (prefers-color-scheme: dark) {
  .term-bar, .term pre { border: 1px solid var(--line); }
  .term-bar { border-bottom: 0; } .term pre { border-top: 0; }
}
.t-p { color: var(--honey); }
.t-d { color: var(--term-dim); }
.t-ok { color: #9FD08B; }
.t-ghost {
  display: inline-block; margin: 8px 0 0 -10px; padding: 2px 10px;
  border: 1.5px dashed #F47C63; border-radius: 6px; color: rgba(233, 225, 211, .5);
  text-decoration: line-through; text-decoration-color: #F47C63;
}
.ghost-key { display: inline-block; width: 22px; height: 0; margin-right: 8px; vertical-align: middle; border-top: 1.5px dashed var(--accent); }

/* voice */
.voice { padding: clamp(22px, 3vw, 36px); }
.voice figcaption { margin-top: 18px; }
.voice-stage { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); }
.keycap {
  flex: none; position: relative; width: 92px; height: 86px; border-radius: 12px;
  background: linear-gradient(var(--surface), var(--bg));
  border: 1px solid var(--line);
  box-shadow: 0 5px 0 var(--bg-sunk), 0 6px 0 var(--line), 0 14px 18px -10px rgba(40, 24, 8, .4);
  animation: press 9s infinite;
}
.k-sym { position: absolute; left: 12px; top: 7px; font-size: 1.05rem; color: var(--ink-2); }
.k-txt { position: absolute; left: 12px; bottom: 8px; font: 500 .8rem var(--sans); color: var(--ink); letter-spacing: .01em; }
.wave { flex: 1; min-width: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 3px; animation: hear 9s infinite; transform-origin: center; }
.wave i { flex: 1; max-width: 5px; height: 100%; border-radius: 3px; background: var(--ink); transform: scaleY(.3); animation: bar 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: .8s; animation-delay: -.3s; }
.wave i:nth-child(3n+1) { animation-duration: 1.25s; animation-delay: -.7s; }
.wave i:nth-child(4n) { animation-duration: .95s; animation-delay: -.5s; }
.wave i:nth-child(5n) { animation-duration: 1.4s; animation-delay: -.2s; }
.wave i:nth-child(7n) { animation-duration: .7s; animation-delay: -.1s; }
.voice-state { flex: none; position: relative; width: 4.6em; height: 1.6em; font-size: .82rem; color: var(--ink-2); text-align: right; }
.voice-state span { position: absolute; right: 0; top: 0; white-space: nowrap; }
.vs-a { animation: stA 9s infinite; color: var(--accent); }
.vs-a::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.vs-b { animation: stB 9s infinite; }
.field { margin-top: clamp(22px, 3vw, 34px); padding: 14px 18px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.field-label { display: block; padding-bottom: 9px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-size: .8rem; color: var(--ink-2); }
.field p { margin: 0; font-size: clamp(.95rem, 1.5vw, 1.12rem); white-space: nowrap; min-height: 1.8em; }
.say { display: inline-block; vertical-align: bottom; overflow: hidden; width: 16em; animation: say 9s steps(16, end) infinite, settle 9s infinite; }

@keyframes press {
  0%, 2%, 8%, 60%, 66%, 100% { transform: none; box-shadow: 0 5px 0 var(--bg-sunk), 0 6px 0 var(--line), 0 14px 18px -10px rgba(40, 24, 8, .4); }
  4%, 6%, 62%, 64% { transform: translateY(4px); box-shadow: 0 1px 0 var(--bg-sunk), 0 2px 0 var(--line), 0 4px 8px -6px rgba(40, 24, 8, .4); }
}
@keyframes hear { 0%, 6% { transform: scaleY(.08); opacity: .35; } 10%, 60% { transform: none; opacity: 1; } 65%, 100% { transform: scaleY(.08); opacity: .35; } }
@keyframes bar { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
@keyframes say { 0%, 12% { width: 0; } 58%, 100% { width: 16em; } }
@keyframes settle { 0%, 62% { color: var(--ink-2); } 66%, 100% { color: var(--ink); } }
@keyframes stA { 0%, 5% { opacity: 0; } 8%, 60% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes stB { 0%, 63% { opacity: 0; } 67%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* network log */
.logwin { overflow: hidden; }
.logwin figcaption { margin: 0; padding: 12px 22px 14px; border-top: 1px solid var(--line-soft); }
.log-tabs { display: flex; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: .84rem; color: var(--ink-2); }
.log-tabs span { padding: 3px 13px; border-radius: 7px; }
.log-tabs .on { background: var(--line); color: var(--ink); font-weight: 600; }
.log { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.55; }
.log th { padding: 12px 22px 8px; text-align: left; font-size: .76rem; font-weight: 500; letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; }
.log td { padding: 14px 22px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.log td:first-child { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.log td b { font-weight: 600; white-space: nowrap; }
.log td em { display: block; font-style: normal; font-size: .76rem; color: var(--accent); }
.log code { font-size: .84em; }
.log .ok { font: 500 .8rem var(--mono); white-space: nowrap; }
.log .ok::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4E9A51; }
.log .optin td { background: repeating-linear-gradient(-45deg, transparent 0 7px, var(--line-soft) 7px 8px); }

/* ───── typing ───── */
.typing { margin-top: var(--gap-section); padding-block: clamp(72px, 10vw, 136px); background: var(--bg-sunk); }
.sec-head { max-width: 46em; }
.sec-head h2 { margin-top: .4em; }
.sec-lead { margin-top: 1.3em; color: var(--ink-2); max-width: 36em; }

.ledger { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); }
.lg-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.lg-head { padding: 10px 0; font-size: .76rem; letter-spacing: .1em; color: var(--ink-2); }
.lg-name { font-size: .95rem; color: var(--ink-2); }
.lg-row kbd { font-size: clamp(.86rem, 1.25vw, 1rem); color: var(--ink); word-break: break-all; }
.lg-out { font: 900 clamp(1.15rem, 2vw, 1.6rem)/1.35 var(--serif); }
.lg-out small { margin-left: .7em; font: 400 .82rem var(--sans); color: var(--ink-2); white-space: nowrap; }
.lg-out small.code { margin-left: .3em; font-family: var(--mono); color: var(--accent); }

.also { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); }
.also h3, .band-cols h3, .bars h3 { font: 900 1.2rem/1.4 var(--serif); margin-bottom: .8em; }
.also p { font-size: .95rem; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; line-height: 1.6; }

.bars { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); }
.bars figcaption { margin: 0; font-size: inherit; color: var(--ink); }
.bars figcaption p { font-size: .95rem; color: var(--ink-2); max-width: 24em; }
.bars dl { margin: 0; display: grid; gap: 20px; }
.bars dt { font-size: .92rem; margin-bottom: 7px; }
.bars dt small { margin-left: .5em; color: var(--ink-2); font-size: .82rem; }
.bars dd { margin: 0; display: flex; align-items: center; gap: 14px; }
.bar { display: block; height: 12px; width: var(--v); background: var(--ink-2); border-radius: 2px; }
.bar.hot { background: var(--accent); }
.bars dd b { font: 600 .95rem var(--mono); font-variant-numeric: tabular-nums; }

/* ───── install ───── */
.install { margin-top: var(--gap-section); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; padding: 26px clamp(18px, 2.6vw, 36px) 8px 0; }
.steps li + li { padding-left: clamp(18px, 2.6vw, 36px); border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, cjk-ideographic); display: block; font: 900 clamp(2.6rem, 5vw, 4rem)/1 var(--serif); color: var(--accent); margin-bottom: 22px; }
.steps h3 { font: 900 1.28rem/1.4 var(--serif); margin-bottom: .6em; }
.steps p { font-size: .95rem; color: var(--ink-2); }
.path { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--ink) !important; font-size: .9rem !important; line-height: 1.5; }
.path span { white-space: nowrap; }
.path span + span::before { content: "›"; margin-inline: .5em; color: var(--ink-2); }
.path b { font-weight: 700; background: var(--honey); color: var(--honey-ink); padding: .05em .45em; border-radius: 4px; }
.install-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 46em; font-size: .93rem; color: var(--ink-2); }

/* ───── privacy band ───── */
.band { margin-top: var(--gap-section); padding-block: clamp(72px, 10vw, 136px); background: var(--band-bg); color: var(--band-ink); --accent: var(--band-accent); }
.band .ch-kicker, .band .sec-lead { color: var(--band-ink-2); }
.band a:hover { color: var(--band-accent); }
.procs { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--band-ink); }
.pr-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 6fr); gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--band-line); }
.pr-head { padding: 10px 0; font-size: .76rem; letter-spacing: .1em; color: var(--band-ink-2); }
.pr-row b { display: block; font: 900 1.16rem/1.4 var(--serif); }
.pr-row code { padding: 0; background: none; color: var(--band-ink-2); font-size: .8rem; white-space: normal; word-break: break-all; }
.pr-row em { font-style: normal; font-weight: 700; }
.pr-row em::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; }
.pr-row .no::before { border: 1.5px solid currentColor; }
.pr-row .yes { color: var(--band-accent); }
.pr-row .yes::before { background: currentColor; }
.pr-row span:last-child { font-size: .95rem; color: var(--band-ink-2); }
.band-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); }
.band-cols p, .band-cols li { font-size: .94rem; color: var(--band-ink-2); }
.band-cols b { color: var(--band-ink); font-weight: 600; }
.band-cols code { background: rgba(239, 232, 220, .1); }
.nots li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--band-line); position: relative; line-height: 1.6; }
.nots li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 12px; height: 1.5px; background: var(--band-accent); }
.whens { counter-reset: w; }
.whens li { counter-increment: w; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--band-line); position: relative; line-height: 1.7; }
.whens li::before { content: counter(w); position: absolute; left: 2px; top: 9px; font: 600 .82rem/2 var(--mono); color: var(--band-accent); }
.cmd { margin: 0 0 1em; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; border: 1px solid var(--band-line); border-radius: 8px; font-size: .78rem; color: var(--band-ink); background: rgba(0, 0, 0, .25); }
.cmd code { padding: 0; background: none; }

/* ───── faq ───── */
.faq { margin-top: var(--gap-section); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 0; cursor: pointer; font: 900 1.16rem/1.5 var(--serif); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa summary:hover { color: var(--accent); }
.qa details p { margin: -4px 0 22px; max-width: 36em; font-size: .96rem; color: var(--ink-2); }

/* ───── closing / en / footer ───── */
.closing { margin-top: var(--gap-section); text-align: center; display: grid; justify-items: center; }
.closing img { margin-bottom: 6px; }
.closing h2 { font-size: clamp(2rem, 5.4vw, 4.2rem); }
.closing .cta { justify-content: center; margin-top: 34px; }
.closing-meta { margin-top: 26px; font-size: .86rem; color: var(--ink-2); }

.en { margin-top: clamp(72px, 9vw, 120px); padding-top: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(24px, 5vw, 72px); }
.en h2 { font: 600 .86rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); grid-row: span 2; }
.en p { font: 400 1rem/1.7 var(--serif); max-width: 44em; color: var(--ink-2); }
.en p:last-child { font-family: var(--sans); display: flex; gap: 26px; }

.foot { margin-top: clamp(72px, 9vw, 120px); padding-block: 44px 34px; background: var(--bg-sunk); font-size: .88rem; color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 72px); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-dog { flex: none; margin-top: 5px; color: var(--ink); }
.foot-dog .dogmark { width: 33px; height: 24px; }
.foot p { margin: 0; }
.foot b { color: var(--ink); font: 900 1rem var(--serif); margin-right: .3em; }
.foot h2 { font: 500 .76rem/1.9 var(--sans); letter-spacing: .1em; color: var(--ink-2); margin-bottom: 6px; }
.foot-credits p { display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--ink); }
.foot-links { display: grid; gap: 2px; justify-items: start; color: var(--ink); }
.foot .foot-fine { margin-top: 34px; padding-top: 18px; font-size: .8rem; border-top: 1px solid var(--line); }

/* ───── responsive ───── */
@media (max-width: 960px) {
  .nav { display: none; }
  .top-gh { margin-left: auto; }
  .hero-grid, .ch-grid, .ch-grid.flip, .ch-text.two, .bars, .faq { grid-template-columns: minmax(0, 1fr); }
  .ch-grid.flip > .ch-text { order: 0; }
  .ch-text.two { gap: 0; }
  .also, .band-cols { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 24px 0 14px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps li::before { margin-bottom: 14px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .en { grid-template-columns: minmax(0, 1fr); }
  .en h2 { margin-bottom: 10px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .seal { position: static; display: inline-grid; margin-top: 18px; transform: rotate(-3deg); }
  .mb-hide { display: none; }
  .win-body { padding: 20px 18px 0; min-height: 230px; font-size: 1rem; }
  .cand { left: 12px; top: 104px; }
  .cand li { font-size: .95rem; padding-inline: 7px 9px; }
  .cand li:nth-child(n+4) { display: none; }
  .doc-live { font-size: .86rem; }
  .keycap { width: 70px; height: 66px; }
  .k-sym { left: 9px; top: 4px; } .k-txt { left: 9px; bottom: 5px; font-size: .7rem; }
  .voice-state { display: none; }
  .field p { font-size: .88rem; }

  .log thead { display: none; }
  .log, .log tbody, .log tr, .log td { display: block; }
  .log tr { padding: 14px 18px; border-top: 1px solid var(--line-soft); }
  .log td { padding: 0; border: 0; background: none !important; }
  .log td:first-child { font-size: .78rem; }
  .log td[data-h="发出"]::before { content: "发出："; color: var(--ink-2); }
  .log td[data-h="服务器"], .log td[data-h="结果"] { display: inline-block; margin-right: 12px; }
  .log td em { display: inline; margin-left: 8px; }
  .log .optin { background: repeating-linear-gradient(-45deg, transparent 0 7px, var(--line-soft) 7px 8px); }
  .logwin figcaption { padding-inline: 18px; }

  .lg-row { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .lg-head { display: none; }
  .lg-name { font-size: .78rem; letter-spacing: .08em; }
  .lg-out small { display: block; margin: 2px 0 0; white-space: normal; }
  .lg-out small.code { display: inline; margin-left: .3em; }

  .pr-row { grid-template-columns: 1fr; gap: 4px; }
  .pr-head { display: none; }
  .meta { grid-template-columns: 1fr; }
  .term pre { padding-inline: 16px; font-size: .74rem; }
  .en p:last-child { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .say { width: 16em; color: var(--ink); }
  .wave i:nth-child(odd) { transform: scaleY(.75); }
  .wave i:nth-child(3n) { transform: scaleY(.45); }
  .vs-a { opacity: 0; }
}
