/* Existing brand: white/gray surfaces, blue actions, native Chinese system fonts.
   Design variance 3 / motion intensity 1 / visual density 4: a reading-first manual. */
:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-text: #0066cc;
  --line: #e5e5e8;
  --soft-blue: #edf5ff;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.8 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 20px; top: 12px; padding: 10px 18px; background: var(--background); transform: translateY(-180%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }
.site-header, .page-shell, .site-footer { max-width: 1160px; margin-inline: auto; padding-inline: 32px; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.site-header a, .site-footer a { text-decoration: none; }
.brand { color: var(--text); font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
.site-header nav { display: flex; gap: 28px; font-size: 14px; }
.site-header nav a { color: var(--muted); }
.manual-intro { padding-block: 58px 52px; }
.eyebrow { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.25; letter-spacing: -1.2px; font-weight: 650; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.8; margin: 18px 0 25px; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 23px; border-radius: 999px; color: #fff; background: var(--blue); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.button:hover { background: #0064cb; text-decoration: none; }
.text-button { color: var(--muted); font-size: 14px; padding: 8px 0; border: 0; background: transparent; min-height: 44px; }
.text-button:hover { color: var(--blue-text); }
.manual-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 58px; align-items: start; padding-top: 12px; }
.contents { position: sticky; top: 30px; }
.contents h2 { margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.contents ol { list-style: none; padding: 0; margin: 0; }
.contents li { margin: 0 0 5px; }
.contents nav a { display: flex; align-items: baseline; gap: 12px; padding: 9px 11px; margin-left: -11px; color: var(--muted); font-size: 14px; text-decoration: none; border-radius: 10px; }
.contents nav a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.contents nav a:hover { color: var(--text); background: var(--surface); }
.contents nav a[aria-current="location"] { color: var(--blue-text); background: var(--soft-blue); }
.contents nav a[aria-current="location"] span { color: var(--blue-text); }
.contents-help { margin-top: 29px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.contents-help p { margin: 0 0 6px; color: var(--muted); }
.contents-help a { text-decoration: none; font-size: 13px; }
article { min-width: 0; }
article:focus { outline: 0; }
.chapter { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 52px; scroll-margin-top: 26px; }
.chapter:first-child { margin-top: 0; padding-top: 0; border: 0; }
.chapter h2 { display: flex; align-items: baseline; gap: 14px; font-size: 26px; line-height: 1.45; margin: 0 0 17px; letter-spacing: -.5px; font-weight: 600; }
.chapter-number { font-size: 15px; font-weight: 500; color: var(--blue-text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.chapter > p { margin: 0 0 22px; }
.steps { padding-left: 23px; margin: 23px 0 27px; }
.steps li { padding-left: 5px; margin-block: 10px; }
.steps li::marker { color: var(--blue-text); font-size: 14px; font-weight: 600; }
.steps strong { font-weight: 600; }
.screenshot { min-width: 0; margin: 0; }
.image-surface { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; align-items: center; justify-content: center; }
.screenshot img { display: block; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.screenshot figcaption { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.compact-figure { max-width: 410px; }
.compact-figure .image-surface { min-height: 164px; }
.menu-figure { max-width: 460px; }
.figure-pair { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; margin-bottom: 26px; }
.figure-pair .image-surface { padding: 13px; }
.instruction-split { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: start; margin-top: 26px; }
.instruction-split .steps { margin-top: 0; }
.instruction-split .image-surface { padding: 12px; }
.note { background: var(--soft-blue); border-radius: 12px; padding: 17px 20px; font-size: 14px; line-height: 1.8; margin-top: 24px !important; }
.mode-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 23px 0; border-block: 1px solid var(--line); margin: 26px 0; }
.mode-comparison div { padding-right: 25px; }
.mode-comparison div + div { padding-left: 25px; padding-right: 0; border-left: 1px solid var(--line); }
.mode-comparison dt { font-size: 17px; font-weight: 600; margin-bottom: 7px; }
.mode-comparison dd { margin: 0; font-size: 14px; color: var(--muted); }
code { background: var(--surface); padding: 2px 5px; border-radius: 4px; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.help-footer { background: var(--surface); border-radius: 14px; margin-top: 48px; padding: 27px 30px; }
.help-footer h2 { font-size: 22px; line-height: 1.4; font-weight: 600; margin: 0 0 10px; }
.help-footer p { color: var(--muted); font-size: 14px; margin: 0 0 17px; }
.help-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.help-links a { text-decoration: none; }
.source-note { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 70px; padding-block: 23px 30px; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer a { color: var(--muted); }
@media (max-width: 1024px) {
  .manual-layout { grid-template-columns: 176px minmax(0, 1fr); gap: 34px; }
  .figure-pair, .instruction-split { grid-template-columns: 1fr; gap: 25px; }
  .figure-pair .screenshot, .instruction-split .screenshot { max-width: 480px; width: 100%; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 18px; }
  .site-header, .page-shell, .site-footer { padding-inline: 22px; }
  .site-header { min-height: 70px; gap: 16px; }
  .brand { font-size: 21px; }
  .site-header nav { font-size: 12px; gap: 18px; }
  .manual-intro { padding-block: 38px 32px; }
  h1 { font-size: 32px; letter-spacing: -.7px; }
  .lead { font-size: 16px; margin: 17px 0 21px; }
  .manual-layout { display: block; padding-top: 0; }
  .contents { position: static; margin-bottom: 37px; border-block: 1px solid var(--line); padding-block: 21px 18px; }
  .contents h2 { margin-bottom: 9px; }
  .contents ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .contents nav a { margin-left: 0; padding: 8px 5px; gap: 8px; font-size: 13px; }
  .contents-help { display: none; }
  .chapter { padding-top: 29px; margin-top: 37px; }
  .chapter h2 { font-size: 23px; gap: 12px; }
  .chapter p, .steps { font-size: 15px; }
  .steps { margin-block: 20px 23px; }
  .steps li { margin-block: 12px; }
  .image-surface { padding: 14px; }
  .figure-pair .image-surface { padding: 10px; }
  .note { padding: 16px; font-size: 14px !important; }
  .mode-comparison { gap: 17px; padding-block: 19px; }
  .mode-comparison div { padding-right: 0; }
  .mode-comparison div + div { padding-left: 17px; }
  .mode-comparison dd { font-size: 13px; }
  .help-footer { padding: 24px; margin-top: 36px; }
  .help-footer h2 { font-size: 21px; }
  .site-footer { margin-top: 45px; }
}
@media (max-width: 360px) {
  .site-header, .page-shell, .site-footer { padding-inline: 17px; }
  .site-header nav { gap: 12px; }
  h1 { font-size: 29px; }
  .intro-actions { gap: 13px; }
}
@media print {
  body { font-size: 11pt; line-height: 1.65; }
  .site-header, .contents, .intro-actions, .site-footer, .help-footer, .skip-link { display: none; }
  .page-shell { max-width: none; padding: 0; }
  .manual-intro { padding: 0 0 24px; }
  h1 { font-size: 27pt; }
  .manual-layout { display: block; }
  .chapter { margin-top: 26px; padding-top: 22px; }
  .chapter h2 { font-size: 18pt; break-after: avoid; }
  .figure-pair, .instruction-split { display: grid; grid-template-columns: 1fr 1fr; }
  .screenshot, .note, .mode-comparison { break-inside: avoid; }
  .image-surface { padding: 10px; }
  .screenshot img { max-height: 340px; }
  .note { background: #f5f5f7; }
  a { color: inherit; }
}
