:root { --ink: #182b3c; --muted: #5e6c79; --accent: #176487; --line: #dce5e9; --wash: #f4f7f8; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.8; }
body.lang-zh [lang="en"], body.lang-en [lang="zh"] { display: none !important; }
a { color: var(--accent); }
a:hover { color: #0c4561; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #408bb3; outline-offset: 4px; }
.page-width { width: min(1060px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wordmark { font-weight: 800; font-size: 23px; letter-spacing: -.8px; color: var(--ink); }
.wordmark-dot { color: var(--accent); }
.nav-links { display: flex; gap: 25px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--muted); }
.language-toggle { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.introduction { padding-top: 72px; padding-bottom: 46px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 15px; }
h1 { margin: 0; color: var(--ink); }
.method-name { display: block; font-size: clamp(58px, 9vw, 83px); line-height: 1.12; letter-spacing: -.065em; font-weight: 800; margin-bottom: 16px; }
.paper-title { display: block; font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.lead { margin: 25px 0 10px; font-size: 23px; font-weight: 650; }
.hero-description { max-width: 750px; margin: 0 auto 24px; color: var(--muted); }
.authors { font-size: 15px; margin-top: 24px; }
.affiliations { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.button { border: 1px solid var(--line) !important; border-radius: 7px !important; font-size: 14px; font-weight: 600; height: auto; min-height: 43px; padding: 9px 18px; box-shadow: none; color: var(--ink); background: #fff; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.primary-link, .primary-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 800px; margin: 42px auto 0; padding: 25px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-direction: column; gap: 3px; padding: 0 15px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts strong { color: var(--accent); font-size: 29px; font-weight: 750; line-height: 1.3; }
.facts span { font-size: 13px; color: var(--muted); }
.content-section { padding-top: 64px; padding-bottom: 66px; }
.content-section h2 { font-size: clamp(25px, 3.1vw, 34px); line-height: 1.4; font-weight: 700; letter-spacing: -.035em; margin-bottom: 20px; color: var(--ink); }
.content-section h3 { font-weight: 700; color: var(--ink); font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
.content-section p { margin-bottom: 18px; }
.section-intro { max-width: 890px; color: var(--muted); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 33px 0; }
.steps article { padding-top: 15px; border-top: 2px solid var(--line); }
.step-number { font-size: 13px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 14px; }
.steps p { font-size: 14px; color: var(--muted); }
.paper-figure { margin: 27px 0 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.paper-figure img { display: block; width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 18px; text-align: left; }
.tinted-section { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.results-figure { padding: 20px 16px; margin-bottom: 36px; }
.table-title { margin-top: 30px !important; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 18px 0; }
.results-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 650px; }
.results-table th, .results-table td { padding: 12px 17px; border-bottom: 1px solid #e8edef; text-align: right; vertical-align: middle; }
.results-table th:first-child { text-align: left; }
.results-table thead th { background: #f8fafb; color: var(--ink); font-weight: 650; }
.results-table tbody th { font-weight: 500; }
.results-table small { color: var(--muted); font-weight: 400; }
.results-table tbody tr:last-child th, .results-table tbody tr:last-child td { border-bottom: none; }
.results-table .ours-row { background: #e9f3f8; }
.results-table .ours-row th { font-weight: 750; }
.control-label { display: block; color: var(--muted); font-size: 11px; }
.fine-print { color: var(--muted); font-size: 13px; line-height: 1.75; }
.example-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; border: 1px solid var(--line); border-radius: 10px; padding: 27px; margin: 30px 0; align-items: center; }
.example-panel p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
pre { background: #172b3b; color: #eaf2f6; padding: 22px; overflow-x: auto; font-size: 12px; line-height: 1.8; border-radius: 7px; white-space: pre; margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
p code { color: var(--accent); background: #edf4f7; }
pre code { background: transparent; color: inherit; font-size: inherit; }
.run-code { margin-bottom: 24px; }
.text-link { font-weight: 650; }
.citation-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.citation-heading h2 { margin-bottom: 16px; }
.citation-code { margin: 8px 0 15px; }
.site-footer { color: var(--muted); font-size: 12px; padding-top: 32px; padding-bottom: 36px; text-align: center; }
.site-footer p { margin-bottom: 8px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 12px; }
.skip-link:focus { left: 10px; }
@media (max-width: 700px) {
  .page-width { width: calc(100% - 34px); }
  .site-nav { min-height: 58px; }
  .nav-links { gap: 15px; font-size: 12px; }
  .wordmark { font-size: 21px; }
  .language-toggle { padding: 5px 7px; font-size: 11px; }
  .introduction { padding-top: 43px; padding-bottom: 27px; }
  .desktop-break { display: none; }
  .lead { font-size: 19px; }
  .hero-description { font-size: 14px; }
  .authors { font-size: 13px; }
  .affiliations { font-size: 12px; }
  .hero-links { gap: 8px; }
  .button { padding: 8px 12px; font-size: 12px; }
  .facts { margin-top: 30px; }
  .facts > div { padding: 0 7px; }
  .facts strong { font-size: 24px; }
  .facts span { font-size: 11px; }
  .content-section { padding-top: 43px; padding-bottom: 43px; }
  .section-intro { font-size: 15px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps p { margin-bottom: 4px; }
  .step-number { margin-bottom: 8px; }
  .paper-figure { padding: 12px; }
  figcaption { font-size: 12px; }
  .example-panel { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  pre { font-size: 11px; padding: 17px; }
  .content-section > div > p, .content-section > p { font-size: 15px; }
  .content-section .fine-print { font-size: 12px; }
  .citation-heading { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
