:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182c3e;
  background: #f5f7fa;
  font-synthesis: none;
  line-height: 1.6;
  --accent: #0e675d;
  --muted: #53677a;
  --border: #d9e2eb;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #064a43; }
:focus-visible { outline: 3px solid #258e80; outline-offset: 4px; }
.site-header, main, .site-footer { width: min(1080px, 100%); margin-inline: auto; padding-inline: 32px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 36px; }
.brand { color: #152e41; font-size: 24px; font-weight: 800; letter-spacing: -.8px; text-decoration: none; }
.brand span { color: var(--accent); }
.guide-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
.guide-tools > a { font-size: 13px; }
html[lang="zh-CN"] h1 { letter-spacing: 0; line-height: 1.25; }
html[lang="zh-CN"] .eyebrow { letter-spacing: .04em; }
.badge { flex-shrink: 0; border: 1px solid var(--border); border-radius: 20px; background: white; color: #496073; padding: 5px 12px; font-size: 12px; }
.hero { max-width: 780px; padding-bottom: 28px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .12em; color: var(--accent); }
h1 { font-size: clamp(34px, 5.6vw, 54px); line-height: 1.1; letter-spacing: -1.8px; margin: 12px 0 18px; }
h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.6px; margin: 5px 0 18px; }
h3 { font-size: 16px; line-height: 1.45; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lede { color: #3e5669; font-size: 19px; max-width: 60ch; }
.intro, .hint { color: var(--muted); }
.intro { max-width: 65ch; }
strong { font-weight: 700; }
code { color: #243e51; font-size: .91em; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; background: var(--accent); color: white; font-size: 14px; font-weight: 650; text-decoration: none; text-align: center; }
.button:hover { background: #09564e; color: white; }
.secondary { border-color: #bdcbd7; background: white; color: #243e51; }
.secondary:hover { background: #eef4f5; color: #183c39; }
.page-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 9px 0; border-top: 1px solid var(--border); margin-bottom: 24px; }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }
.panel { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 22px; scroll-margin-top: 20px; overflow-wrap: anywhere; }
.sample-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.steps { margin: 0; padding-left: 26px; }
.steps li { padding-left: 7px; margin: 0 0 21px; }
.steps li::marker { font-weight: 750; color: var(--accent); font-size: 18px; }
.steps p { margin: 0; color: #3e5669; font-size: 14px; }
.sample-results { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.metrics > div { display: flex; flex-direction: column; background: white; border: 1px solid var(--border); border-radius: 7px; padding: 13px; }
.metrics dt { font-size: 12px; color: var(--muted); }
.metrics dd { order: -1; margin: 0 0 3px; font-size: 31px; line-height: 1.2; font-weight: 750; letter-spacing: -.8px; }
.metrics .clean dd { color: var(--accent); }
.metrics .review dd { color: #8d4b1d; }
.sample-note { font-size: 13px; color: #496073; margin-bottom: 0; }
.meaning-grid, .mapping-grid, .feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.meaning-grid { margin-top: 8px; }
.meaning { padding: 19px; border-radius: 8px; border: 1px solid var(--border); }
.meaning.clean { background: #eaf5f1; border-color: #b4d4c8; }
.meaning.clean h3 { color: #165c50; }
.meaning.review { background: #fff7e5; border-color: #eddbad; }
.meaning.review h3 { color: #76541e; }
.meaning p { font-size: 14px; margin-bottom: 10px; }
.meaning p:last-child { margin-bottom: 0; }
.example { border-top: 1px solid #dcc9a4; padding-top: 10px; }
.subheading { margin: 26px 0 12px; }
.reason-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 30px; padding-left: 19px; margin: 0; color: #3e5669; font-size: 14px; }
.export-note { margin-top: 24px; padding: 17px 19px; border-left: 3px solid #268776; border-radius: 4px; background: #f2f7f5; }
.export-note p { margin: 0; font-size: 14px; }
.file-map { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.file-map dl { margin: 0; }
.file-map dl > div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e5eaf0; font-size: 13px; }
.file-map dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.file-map dt { font-weight: 650; }
.file-map dd { margin: 0; color: var(--muted); }
.hint { font-size: 14px; margin-top: 15px; }
.rules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; padding-left: 21px; margin: 0 0 18px; font-size: 14px; }
.rules-list li { padding-left: 2px; }
.rules-list li::marker { color: var(--accent); font-weight: 700; }
.rule-note { padding: 13px 16px; background: #f2f5f8; border-radius: 6px; font-size: 14px; }
.faq { margin: 0; }
.faq > div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq > div:first-child { padding-top: 0; }
.faq > div:last-child { border-bottom: 0; padding-bottom: 0; }
.faq dt { font-weight: 700; margin-bottom: 6px; }
.faq dd { margin: 0; color: #3e5669; font-size: 14px; }
.feedback-grid { gap: 28px; }
.feedback-grid p { font-size: 14px; color: #3e5669; }
.feedback-fields { padding-left: 20px; margin: 0 0 16px; font-size: 14px; }
.feedback-fields li { margin-bottom: 5px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 24px; color: var(--muted); font-size: 13px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 10; background: white; padding: 12px; }
@media (max-width: 760px) {
  .site-header, main, .site-footer { padding-inline: 16px; }
  .site-header { padding-top: 20px; padding-bottom: 28px; }
  h1 { letter-spacing: -1px; }
  h2 { font-size: 23px; }
  .lede { font-size: 17px; }
  .panel { padding: 22px 18px; }
  .sample-layout, .meaning-grid, .mapping-grid, .feedback-grid { grid-template-columns: 1fr; gap: 18px; }
  .sample-results { padding: 16px; }
  .steps li:last-child { margin-bottom: 0; }
  .meaning-grid { margin-top: 22px; }
  .rules-list, .reason-list { grid-template-columns: 1fr; gap: 10px; }
  .page-nav { gap: 0 18px; }
  .page-nav a { font-size: 13px; }
}
