:root {
  color-scheme: light;
  --ink: #18242d;
  --body: #28343d;
  --muted: #4e5a63;
  --blue: #245da3;
  --line: #dce2e6;
  --paper: #fff;
  --soft: #f5f7f8;
  --sans: Arial, Helvetica, sans-serif;
  --mono: Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 18px/1.65 var(--sans); }
html:lang(zh) { --sans: Arial, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
html:lang(ja) { --sans: Arial, "Noto Sans CJK JP", "Yu Gothic", sans-serif; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: normal; }
h1 { margin: 0; font-size: clamp(40px, 5.2vw, 68px); font-weight: 600; }
h2 { margin: 0; font-size: 30px; font-weight: 600; }
h3 { margin: 0 0 12px; font-size: 21px; font-weight: 600; }
p { margin: 0 0 20px; }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
.container { width: min(100% - 64px, 1000px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { width: min(100% - 64px, 1200px); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { color: var(--ink); font-size: 28px; font-weight: 700; line-height: 1; }
.brand-mark { color: var(--blue); margin-left: 9px; font-weight: 400; }
.top-nav { display: flex; gap: 28px; }
.top-nav a { color: var(--ink); }
.language-switcher { margin-left: auto; font-size: 16px; white-space: nowrap; }
.language-switcher [aria-current] { color: var(--ink); }
.hero { text-align: center; padding-block: 66px 48px; }
.hero-kicker { margin-bottom: 20px; font-size: 16px; color: var(--muted); }
.hero-lead { margin: 22px 0 18px; font-size: clamp(23px, 2.5vw, 30px); color: var(--ink); line-height: 1.4; }
.hero-description { max-width: 820px; margin: 0 auto; font-size: 19px; }
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 8px 20px; border: 1px solid transparent; border-radius: 4px; font-size: 18px; line-height: 1.5; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #30404d; text-decoration: none; }
.button-outline { border-color: #aab7c0; color: var(--ink); }
.button-outline:hover { border-color: var(--blue); text-decoration: none; background: var(--soft); }
.button-text { padding-inline: 14px; }
.hero-index { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; margin: 26px 0 0; font-size: 16px; }
.hero-index a { color: var(--muted); }
.hero-index > span { color: #87929a; }
.page-section { padding: 40px 0 46px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.section-number { font-size: 16px; color: var(--blue); font-variant-numeric: tabular-nums; }
.section-heading > a, .section-heading > span:last-child:not(.section-number) { margin-left: auto; font-size: 16px; }
.section-intro { max-width: 880px; margin-bottom: 26px; }
.example-figure { border-block: 1px solid var(--line); padding: 16px 0 20px; }
.example-figure img { max-height: none; }
figcaption { font-size: 16px; line-height: 1.6; margin-top: 18px; color: var(--body); }
.section-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 17px; }
.resource-kinds { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.resource-kinds button, .client-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 10px 0; background: none; color: var(--muted); font-size: 18px; }
.resource-kinds button[aria-pressed="true"], .client-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); font-weight: 600; }
.search-row { display: grid; grid-template-columns: 1fr 230px; gap: 16px; }
.search-field input, .search-row select { width: 100%; border: 1px solid #b9c3cb; border-radius: 4px; background: #fff; color: var(--ink); padding: 11px 14px; min-height: 50px; font-size: 17px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
#resource-count { margin: 14px 0 8px; font-size: 16px; color: var(--muted); }
.resource-item { display: grid; grid-template-columns: minmax(0,1fr) 185px 22px; align-items: center; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.resource-item h3 { font-size: 20px; margin-bottom: 4px; overflow-wrap: anywhere; }
.resource-item p { font-size: 17px; margin: 0; }
.resource-meta { font-size: 16px; line-height: 1.5; color: var(--muted); }
.resource-arrow { font-size: 22px; color: var(--blue); }
.scope-note { font-size: 16px; margin: 22px 0 0; }
.install-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 40px; }
.installation-example { min-width: 0; }
.install-description { padding-top: 12px; }
.install-description p { font-size: 17px; }
.client-tabs { display: flex; gap: 26px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.code-heading { display: flex; justify-content: space-between; gap: 14px; margin: 12px 0 6px; font-size: 16px; }
.copy-button { border: 0; padding: 0 2px 0 12px; background: none; color: var(--blue); font-size: 16px; }
pre { max-width: 100%; margin: 0 0 20px; padding: 20px; overflow: auto; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; font: 16px/1.7 var(--mono); }
pre code { font: inherit; }
#copy-status { font-size: 16px; }
#copy-status:empty { margin: 0; }
details { margin: 22px 0; }
summary { color: var(--blue); font-size: 18px; }
details[open] summary { margin-bottom: 18px; }
.matlab-route { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.workflow { margin-top: 36px; }
.workflow > h3 { margin-bottom: 24px; }
.workflow-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin: 0 0 18px; padding: 0; list-style: none; }
.workflow-steps li { border-top: 2px solid var(--ink); padding-top: 14px; }
.step-number { display: block; color: var(--blue); font-size: 16px; margin-bottom: 10px; }
.workflow-steps h3 { font-size: 19px; }
.workflow-steps p { font-size: 17px; margin: 0; }
.evidence-list { margin: 0; }
.evidence-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.evidence-list dt { color: var(--ink); font-weight: 600; }
.evidence-list dd { margin: 0; }
.project-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.project-columns .section-links { gap: 10px 20px; }
footer { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 16px; }
.footer-brand { color: var(--ink); font-size: 21px; font-weight: 600; }
footer p { margin: 14px 0; }
footer > div { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: #fff; z-index: 10; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-nav { position: fixed; z-index: 5; bottom: 22px; right: 24px; max-width: calc(100vw - 40px); font-size: 16px; }
.section-nav-toggle { border: 1px solid #aab7c0; background: #fff; padding: 10px 16px; border-radius: 4px; box-shadow: 0 2px 8px #18242d12; }
.section-nav-panel { background: #fff; border: 1px solid var(--line); padding: 12px 18px; margin-bottom: 10px; border-radius: 4px; }
.section-nav-panel a { display: block; padding: 7px 0; color: var(--muted); }
.section-nav-panel a[aria-current] { color: var(--blue); font-weight: 600; }
@media (min-width: 1440px) {
  .section-nav { left: max(20px,calc((100vw - 1390px)/2)); right: auto; top: 260px; bottom: auto; max-width: 150px; }
  .section-nav-panel { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 2px 16px; }
  .section-nav-panel a { padding-block: 8px; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px 28px; padding-block: 18px; }
  .language-switcher { width: 100%; margin-left: 0; }
  .hero { padding-top: 48px; }
  .install-layout { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .install-description p { max-width: 720px; }
}
@media (max-width: 600px) {
  .container, .header-inner { width: calc(100% - 40px); }
  .header-inner { gap: 18px; }
  .brand { font-size: 26px; }
  .top-nav { gap: 12px; margin-left: auto; font-size: 16px; max-width: 100%; flex-wrap: wrap; }
  .language-switcher { font-size: 16px; }
  .hero { padding-block: 38px 34px; }
  .hero-kicker { font-size: 16px; }
  .hero-description { font-size: 18px; }
  .hero-actions { gap: 10px; }
  .button { padding-inline: 14px; font-size: 17px; }
  .hero-index { gap: 8px 12px; }
  h2 { font-size: 26px; }
  .page-section { padding-block: 30px 36px; }
  .section-heading { gap: 10px; flex-wrap: wrap; }
  .section-heading > a { width: 100%; margin-left: 30px; }
  .section-number { font-size: 16px; }
  .section-intro { font-size: 18px; }
  .search-row { grid-template-columns: 1fr; gap: 10px; }
  .resource-kinds { gap: 20px; }
  .resource-item { grid-template-columns: minmax(0,1fr) 20px; gap: 8px 16px; padding-block: 18px; }
  .resource-item > div { grid-column: 1; }
  .resource-meta { grid-column: 1; }
  .resource-arrow { grid-column: 2; grid-row: 1; }
  .resource-item h3 { font-size: 20px; }
  .resource-item p { font-size: 17px; }
  pre { padding: 14px; }
  .workflow-steps { grid-template-columns: 1fr; gap: 20px; }
  .workflow-steps li { display: flex; gap: 18px; }
  .evidence-list > div { grid-template-columns: 1fr; gap: 8px; }
  .project-columns { grid-template-columns: 1fr; gap: 28px; }
  .section-nav { right: 18px; bottom: 16px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
