:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #25241e;
  --muted: #61584b;
  --rule: #d9cebd;
  --rust: #9c492e;
  --terminal: #252921;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 21px Georgia, serif; }
.brand img { display: block; }
.site-header nav { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.site-header nav a { text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { text-decoration: underline; }
.nav-download { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 7px; }
.nav-download span { margin-left: 3px; color: var(--rust); }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(38px, 7vw, 106px); padding-block: clamp(56px, 8vw, 111px) clamp(54px, 8vw, 100px); }
.product { margin: 0 0 20px; color: var(--rust); font: 600 13px var(--mono); }
h1, h2 { font-family: var(--serif); font-weight: 750; }
h1 { margin: 0; font-size: clamp(58px, 7.5vw, 103px); line-height: .99; letter-spacing: -.075em; }
.description { max-width: 29em; margin: 26px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.primary { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; background: var(--rust); border-radius: 8px; color: #fff8ef; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .18s, transform .18s; }
.primary:hover { background: #803921; text-decoration: none; transform: translateY(-2px); }
.download-icon { font: 500 23px var(--mono); line-height: 1; }
.platform { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.example { margin: 0; min-width: 0; border: 1px solid #30372c; border-radius: 13px; overflow: hidden; color: #f4ecdc; background: var(--terminal); box-shadow: 0 13px 0 -5px #dcd2c1, 0 25px 32px -20px #5f493e59; }
.window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 47px; padding-inline: 17px; border-bottom: 1px solid #464a3d; color: #e0d7c2; font-size: 12px; }
.window-controls { display: flex; gap: 6px; }
.window-controls i { width: 7px; height: 7px; border: 1px solid #b19c84; border-radius: 50%; }
.window-controls i:first-child { background: #d68161; border-color: #d68161; }
.window-body { padding: 22px 23px 15px; }
.image-preview { position: relative; padding: 11px 16px 16px; margin-bottom: 21px; border: 1px dashed #646a59; border-radius: 5px; background: #30362a; }
.filename { color: #c9cbb7; font: 12px var(--mono); }
.image-preview pre { margin: 11px 0 0; font: 14px/1.65 var(--mono); white-space: pre-wrap; }
.code-accent { color: #f2a383; }
.corner { position: absolute; width: 12px; height: 12px; border: solid #db9475; }
.top-left { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-radius: 4px 0 0; }
.top-right { right: -1px; top: -1px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.bottom-left { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.bottom-right { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 4px; }
.example-turn, .example-answer { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 9px; align-items: start; }
.example-turn { color: #f1dbcc; }
.example-answer { margin-top: 15px; color: #dfe1cc; }
.example-turn p, .example-answer p { margin: 0; font-size: 14px; line-height: 1.7; }
.prompt-symbol { font: 21px/1 var(--mono); color: #f2a383; }
.answer-mark { width: 7px; height: 7px; margin: 9px 0 0 2px; background: #c9d4a7; border-radius: 50%; }
.example-answer strong { font: 700 16px var(--mono); color: #eef3d8; }
.window-status { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 20px; border-top: 1px solid #4a5043; color: #ccc8b6; font: 12px/1.5 var(--mono); }
kbd { display: inline-block; min-width: 1.5em; padding: 0 3px; border: 1px solid #737664; border-radius: 3px; text-align: center; color: #f5efdf; font: inherit; }
.install { scroll-margin-top: 20px; padding-block: 34px 54px; border-top: 1px solid var(--rule); }
h2 { margin: 0 0 23px; font-size: clamp(27px, 3.4vw, 37px); letter-spacing: -.045em; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 33px; padding: 0; gap: 24px; }
.steps li { counter-increment: step; padding: 14px 14px 0 0; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--rust); font: 600 13px var(--mono); }
.steps h3 { margin: 8px 0 7px; font-size: 16px; }
.steps p, .install-help p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.install-help { padding-block: 10px; border-top: 1px solid var(--rule); }
.install-help:last-child { border-bottom: 1px solid var(--rule); }
.install-help summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.install-help p { padding-top: 8px; }
.install-help a { color: var(--rust); }
.sha code { font: 12px var(--mono); overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 58px; }
@media (max-width: 800px) {
  .wrap { width: min(580px, calc(100% - 44px)); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 45px; }
  h1 { font-size: clamp(55px, 11vw, 75px); }
  .steps { gap: 14px; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 60px; }
  .site-header nav { gap: 11px; }
  .guide-link { display: none; }
  .description { margin: 17px 0 20px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li { padding-top: 10px; }
  .window-body { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary { transition: none; }
}
