:root {
  --bg: #fcf8f1;
  --paper: #fffdfa;
  --ink: #273348;
  --muted: #665f58;
  --line: #e6dacf;
  --accent: #c44735;
  --soft: #ffeddf;
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; font-size: 16px; line-height: 1.75; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid #267898; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; }
p + p { margin-top: 14px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; padding: 10px 14px; background: var(--paper); z-index: 30; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(252, 248, 241, .98); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1120px, calc(100% - 48px)); margin: auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-size: 10px; letter-spacing: .17em; margin-top: 6px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.site-header nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.intro-shell { background: linear-gradient(140deg, #fcf8f1, #f8eee5); border-bottom: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 56px; align-items: center; padding-block: 72px; }
.eyebrow { font-size: 13px; font-weight: 750; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.intro h1 { font-size: clamp(32px, 3.8vw, 50px); letter-spacing: -.04em; font-weight: 750; }
.lead { font-size: 19px; line-height: 1.85; color: var(--ink); margin-top: 23px; }
.release-note { font-size: 15px; line-height: 1.7; color: #785436; background: #fff0dc; border-left: 3px solid #bd842c; border-radius: 0 8px 8px 0; padding: 12px 15px; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 1px solid #d2aa96; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--soft); color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: #ae3c2d; color: #fff; }
.quick-answer { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 32px #47382b0b; }
.quick-label { font-size: 13px; letter-spacing: .12em; font-weight: 750; color: var(--accent); }
.quick-answer ol { padding: 0; margin: 14px 0 0; list-style: none; }
.quick-answer li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.quick-answer li > span { font-size: 14px; font-weight: 750; color: var(--accent); }
.quick-answer strong { font-size: 17px; }
.quick-answer p:not(.quick-label) { font-size: 15px; color: var(--muted); margin-top: 3px; }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; padding-block: 58px 90px; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; padding: 15px 0 16px; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.toc strong { font-size: 15px; margin-bottom: 10px; }
.toc a { font-size: 15px; text-decoration: none; padding: 6px 0; color: var(--muted); }
.toc a:hover { color: var(--accent); }
.article-content { min-width: 0; max-width: 770px; }
.article-section { padding: 0 0 52px; margin: 0 0 52px; border-bottom: 1px solid var(--line); scroll-margin-top: 115px; }
.article-section h2 { font-size: clamp(27px, 3vw, 35px); letter-spacing: -.025em; margin-bottom: 19px; }
.article-section h3 { font-size: 19px; margin-bottom: 8px; }
.article-section p { font-size: 17px; color: var(--muted); line-height: 1.9; }
.article-section p a { color: #9c3929; }
.article-section code { font-family: Consolas, "Microsoft JhengHei", monospace; }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding: 12px 16px 12px 42px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; font-size: 16px; }
.checklist li::before { content: "✓"; position: absolute; left: 15px; font-size: 18px; font-weight: 750; color: #3f7958; }
.code-block { overflow: hidden; margin: 24px 0; border: 1px solid #d7c5b8; border-radius: 12px; background: var(--paper); }
.code-title { display: flex; justify-content: space-between; gap: 12px; padding: 11px 17px; background: #f1e7dc; font-size: 15px; font-weight: 700; }
.code-title span { font-size: 13px; font-weight: 500; color: var(--muted); }
pre { margin: 0; padding: 20px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.85 Consolas, "Microsoft JhengHei", monospace; color: var(--ink); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 22px 0; }
.fact-grid > div { padding: 15px 17px; background: var(--paper); border-left: 2px solid #d89982; }
.fact-grid strong, .fact-grid span { display: block; }
.fact-grid strong { font-size: 16px; }
.fact-grid span { font-size: 15px; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.article-section .source-note { font-size: 15px; }
.article-section .tip { padding: 15px 18px; background: #fff0dc; border-left: 3px solid #bd842c; border-radius: 0 8px 8px 0; }
.workflow { list-style: none; padding: 0; margin: 23px 0; display: grid; gap: 8px; }
.workflow li { display: flex; gap: 16px; padding: 19px 0; border-top: 1px solid var(--line); }
.workflow li > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: #f8e5d7; border-radius: 50%; color: #a93f2d; font-weight: 700; }
.workflow p { margin: 0; }
.questions > div { padding: 19px 0; border-top: 1px solid var(--line); }
.questions h3 { font-size: 18px; }
.closing { background: #f9e8dc; border: 1px solid #edcdb8; border-radius: 16px; padding: 30px; margin-top: 5px; }
.closing h2 { font-size: 26px; letter-spacing: -.02em; }
.closing p:not(.eyebrow):not(.release-note) { color: var(--muted); font-size: 16px; margin-top: 10px; }
.closing .release-note { margin-top: 24px; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 29px 45px; color: var(--muted); font-size: 15px; }
.site-footer a { text-decoration: none; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
  .quick-answer { max-width: 620px; }
  .article-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 35px; }
  .toc { position: static; flex-direction: row; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
  .toc strong { width: 100%; margin: 0; }
  .toc a { padding: 5px 9px; background: #f4e9de; border-radius: 6px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 140px; }
  .wrap, .header-inner { width: min(100% - 32px, 1120px); }
  .header-inner { min-height: 70px; display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 10px; }
  .brand { font-size: 20px; }
  .brand img { width: 38px; height: 38px; }
  .site-header nav { gap: 7px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 4px; }
  .site-header nav a { font-size: 14px; min-height: 40px; }
  .intro { padding-block: 31px; }
  .intro h1 { font-size: 31px; line-height: 1.35; }
  .intro h1 br { display: none; }
  .lead { font-size: 17px; margin-top: 16px; }
  .release-note { font-size: 15px; }
  .actions .button { flex: 1 1 160px; }
  .quick-answer { padding: 20px; }
  .quick-answer li { padding: 11px 0; }
  .quick-answer strong { font-size: 16px; }
  .quick-answer p:not(.quick-label) { font-size: 15px; }
  .article-layout { padding-block: 25px 56px; }
  .article-section { padding-bottom: 37px; margin-bottom: 39px; scroll-margin-top: 140px; }
  .article-section h2 { font-size: 28px; }
  .article-section p { font-size: 16px; }
  .fact-grid { grid-template-columns: 1fr; }
  .closing { padding: 21px; }
  .closing h2 { font-size: 23px; }
  .closing .button { flex: 1 1 100%; }
  .site-footer { font-size: 14px; }
  .toc a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
