:root {
  color-scheme: light;
  --page: #f6f7f4;
  --surface: #ffffff;
  --ink: #192e26;
  --secondary: #53655d;
  --line: #dce3dd;
  --accent: #155b48;
  --selected: #e8f1eb;
  --hero: #0d5140;
  --hero-ink: #f5efdf;
  --hero-secondary: #c2d8ca;
  --catalogue: #f1ebdc;
  --catalogue-ink: #203e32;
  --catalogue-secondary: #536558;
  --catalogue-line: #cecdbb;
  --catalogue-hover: #e4e5d4;
  --code: #f0f3ef;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #151c18;
    --surface: #1c2620;
    --ink: #e4ece5;
    --secondary: #afbeb3;
    --line: #35473c;
    --accent: #a2d5b9;
    --selected: #2b4033;
    --hero: #123f31;
    --catalogue: #253c30;
    --catalogue-ink: #ececdb;
    --catalogue-secondary: #c0ccbd;
    --catalogue-line: #49604d;
    --catalogue-hover: #354b39;
    --code: #152019;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, ul, pre { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.4; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, input { border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
code, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; }
.shell { width: min(100% - 64px, 1180px); margin-inline: auto; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; top: 10px; left: 10px; z-index: 50; padding: 10px; background: var(--surface); }
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-in { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.mark { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.tabs { display: flex; align-items: center; gap: 28px; }
.tabs a { padding: 23px 0; font-size: 15px; text-decoration: none; color: var(--secondary); border-bottom: 3px solid transparent; }
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 600; }
.button-light { background: #f4f7ef; color: #194634; }
.button-primary { background: var(--accent); color: var(--surface); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--accent); }
.button:hover { filter: brightness(.95); }
.text-link { font-size: 15px; font-weight: 500; white-space: nowrap; }
.text-button { background: transparent; border: 0; padding: 8px 0; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero { background: var(--hero); color: var(--hero-ink); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: 64px; align-items: center; padding-block: 64px; }
.hero-copy { padding-block: 16px; }
.hero-eyebrow { color: var(--hero-secondary); font-size: 15px; letter-spacing: .1em; }
.hero h1 { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; line-height: 1; white-space: nowrap; }
.hero-number { font-size: clamp(84px, 10vw, 136px); font-weight: 650; letter-spacing: -.065em; }
.hero-subject { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.025em; }
.hero-description { margin-top: 36px; color: var(--hero-ink); font-size: 20px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.hero-actions .button { min-height: 48px; min-width: 144px; border-radius: 4px; font-size: 16px; }
.hero-actions .button-light { background: var(--hero-ink); color: #153f30; }
.hero-secondary-action { border-color: #ffffff66; color: var(--hero-ink); }
.hero-secondary-action:hover { background: #ffffff0d; }
.hero-proof { margin-top: 30px; color: var(--hero-secondary); font-size: 14px; line-height: 1.9; }
.hero :focus-visible { outline-color: var(--hero-ink); }
h2 { font-size: 22px; }
.coverage-panel { min-width: 0; padding: 26px 28px 28px; background: var(--catalogue); color: var(--catalogue-ink); border-radius: 4px; }
.coverage-panel :focus-visible { outline-color: var(--catalogue-ink); }
.coverage-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--catalogue-line); }
.coverage-heading h2 { font-size: 21px; font-weight: 600; }
.coverage-heading a { color: var(--catalogue-secondary); font-size: 14px; text-underline-offset: 4px; white-space: nowrap; }
.coverage-heading a:hover { color: var(--catalogue-ink); }
.coverage-group { margin-top: 18px; }
.coverage-group + .coverage-group { padding-top: 20px; border-top: 1px solid var(--catalogue-line); }
.coverage-group-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.coverage-group-heading h3 { font-size: 14px; font-weight: 500; color: var(--catalogue-secondary); }
.coverage-group-heading p { font-size: 13px; color: var(--catalogue-secondary); }
.coverage-directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.coverage-link { display: block; padding-block: 8px; color: var(--catalogue-ink); text-decoration: none; }
.coverage-link strong { display: block; font-size: 18px; font-weight: 600; }
.coverage-link span { display: block; margin-top: 3px; color: var(--catalogue-secondary); font-size: 14px; line-height: 1.6; }
.coverage-link:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.coverage-series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.coverage-series-link { padding: 11px 8px; background: var(--catalogue-hover); border-radius: 3px; color: var(--catalogue-ink); text-decoration: none; text-align: center; font-size: 16px; font-weight: 600; }
.coverage-series-link:hover { outline: 1px solid var(--catalogue-secondary); }
.home-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 32px 36px; }
.home-details h2 { font-size: 18px; font-weight: 600; }
.home-details p { margin-top: 8px; color: var(--secondary); font-size: 14px; line-height: 1.8; }
.home-details a { white-space: nowrap; }
.view-inner { padding-block: 40px 48px; min-height: calc(100vh - 190px); }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: 32px; }
.page-heading p { margin-top: 8px; color: var(--secondary); font-size: 15px; }
.library-layout { display: grid; grid-template-columns: 188px minmax(0,1fr); gap: 32px; align-items: start; }
.filter-panel { position: sticky; top: 100px; }
.filter-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--secondary); text-align: left; font-size: 15px; }
.filter-button span:last-child { font-size: 14px; font-variant-numeric: tabular-nums; }
.filter-button:hover { background: var(--selected); }
.filter-button[aria-pressed="true"] { background: var(--selected); color: var(--accent); font-weight: 600; }
.filter-group { margin-top: 24px; }
.filter-group h2 { font-size: 14px; color: var(--secondary); font-weight: 500; padding: 0 12px 8px; }
.filter-options { display: grid; gap: 2px; }
.filter-details > summary { display: none; }
.library-content { min-width: 0; }
.search-form { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.search-form:focus-within { border-color: var(--accent); outline: 1px solid var(--accent); }
.search-form svg { position: absolute; width: 20px; height: 20px; left: 16px; fill: none; stroke: var(--secondary); stroke-width: 1.6; }
.search-form input { width: 100%; min-width: 0; padding: 14px 48px; background: transparent; border: 0; font-size: 15px; outline: none; }
.search-form input::placeholder { color: var(--secondary); opacity: 1; }
.search-form input::-webkit-search-cancel-button { appearance: none; }
.clear-search { position: absolute; right: 6px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--secondary); font-size: 22px; }
.results-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--secondary); }
.factor-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.factor-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
.factor-table th { background: var(--code); color: var(--secondary); font-weight: 500; font-size: 14px; padding: 12px 20px; }
.factor-table th:first-child { width: 160px; }
.factor-table th:last-child { width: 142px; }
.factor-table td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.75; }
.factor-table tr:hover td { background: var(--selected); }
.factor-id { font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.factor-description { color: var(--ink); overflow-wrap: anywhere; }
.factor-category { color: var(--secondary); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--secondary); }
.page-controls { display: flex; align-items: center; gap: 16px; }
.page-button { min-height: 40px; border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; font-size: 14px; }
.page-button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.library-note { margin-top: 24px; font-size: 14px; color: var(--secondary); }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { color: var(--secondary); margin-block: 12px 24px; }
.usage-layout { display: grid; grid-template-columns: 188px minmax(0,760px); gap: 32px; align-items: start; }
.usage-nav { display: grid; gap: 8px; position: sticky; top: 100px; }
.usage-nav a { padding: 8px 12px; color: var(--secondary); text-decoration: none; }
.usage-nav a:hover { background: var(--selected); color: var(--accent); }
.usage-body { min-width: 0; }
.usage-body section { padding-bottom: 36px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.usage-body section > p { margin-block: 16px; color: var(--secondary); }
.file-list { margin-top: 20px; }
.file-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding-block: 14px; border-top: 1px solid var(--line); }
.file-list dt { font-weight: 500; overflow-wrap: anywhere; }
.file-list dd { color: var(--secondary); overflow-wrap: anywhere; }
.code-block { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.code-heading { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 14px; }
.code-block pre { padding: 22px; font-size: 14px; line-height: 1.9; overflow-x: auto; background: var(--code); }
#copy-status { padding: 10px 18px; color: var(--secondary); font-size: 14px; }
#copy-status:empty { display: none; }
.get-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 100px; align-items: start; }
.package-list { list-style: none; padding: 0; margin-block: 22px; border-top: 1px solid var(--line); }
.package-list li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.package-list strong { font-size: 16px; font-weight: 600; }
.package-list span { font-size: 15px; color: var(--secondary); }
.qr-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.qr-card img { display: block; width: 100%; height: auto; }
.qr-card h2 { font-size: 20px; margin-top: 20px; }
.qr-card p { margin-top: 8px; color: var(--secondary); }
.footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; gap: 28px; align-items: center; padding-block: 28px; color: var(--secondary); font-size: 14px; }
.footer-in span { margin-right: auto; }
.footer-in a { color: var(--secondary); text-decoration: none; }
@media (max-width: 1000px) {
  .hero-layout { gap: 32px; }
  .hero-description { font-size: 18px; }
  .coverage-panel { padding: 22px; }
  .coverage-directions { column-gap: 16px; }
  .library-layout, .usage-layout { grid-template-columns: 168px minmax(0,1fr); gap: 24px; }
  .factor-table th:first-child { width: 132px; }
  .factor-table th:last-child { width: 120px; }
  .factor-table td, .factor-table th { padding-inline: 14px; }
  .get-layout { gap: 40px; }
  .file-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 36px; padding-block: 44px; }
  .hero-copy { padding: 0; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar-in { flex-wrap: wrap; gap: 0; padding-top: 14px; }
  .brand { font-size: 17px; }
  .tabs { width: 100%; gap: 26px; }
  .tabs a { padding-block: 12px; font-size: 14px; }
  .hero-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 30px; }
  .hero-copy { padding: 0; }
  .hero-eyebrow { font-size: 14px; }
  .hero h1 { gap: 8px; margin-top: 18px; }
  .hero-number { font-size: clamp(64px, 20vw, 88px); }
  .hero-subject { font-size: clamp(25px, 7.4vw, 32px); }
  .hero-description { margin-top: 24px; font-size: 18px; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .hero-actions .button { flex: 1; min-width: 0; font-size: 15px; }
  .hero-proof { margin-top: 22px; font-size: 14px; }
  .coverage-panel { padding: 20px; }
  .coverage-heading { gap: 10px; }
  .coverage-heading h2 { font-size: 20px; }
  .coverage-directions { gap: 8px 16px; }
  .coverage-link strong { font-size: 17px; }
  .coverage-series { gap: 8px; }
  .coverage-series-link { padding: 12px 6px; font-size: 14px; }
  h2 { font-size: 21px; }
  .home-details { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .home-details > div + div { padding-top: 20px; border-top: 1px solid var(--line); }
  .view-inner { padding-block: 28px 36px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: 28px; }
  .library-layout, .usage-layout { grid-template-columns: 1fr; gap: 18px; }
  .filter-panel { position: static; }
  .all-filter { display: none; }
  .filter-details { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .filter-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; font-size: 15px; list-style: none; }
  .filter-details > summary::-webkit-details-marker { display: none; }
  .filter-details > summary span { color: var(--accent); font-size: 14px; }
  .filter-details > summary span::after { content: ' ＋'; }
  .filter-details[open] > summary span::after { content: ' −'; }
  .filter-group { margin: 0; padding: 14px; border-top: 1px solid var(--line); }
  .filter-group h2 { padding-left: 0; }
  .filter-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .filter-button { padding-inline: 8px; font-size: 14px; }
  .filter-button span:last-child { font-size: 13px; }
  .search-form input { font-size: 16px; padding-left: 42px; }
  .search-form input::placeholder { font-size: 14px; }
  .search-form svg { left: 12px; }
  .factor-table, .factor-table tbody { display: block; }
  .factor-table thead { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
  .factor-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; padding: 16px; border-bottom: 1px solid var(--line); }
  .factor-table tr:last-child { border-bottom: 0; }
  .factor-table td { display: block; padding: 0; border: 0; }
  .factor-table .factor-id { grid-column: 1; grid-row: 1; font-size: 15px; }
  .factor-table .factor-description { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .factor-table .factor-category { grid-column: 2; grid-row: 1; font-size: 14px; }
  .factor-table tr:hover, .factor-table tr:hover td { background: var(--surface); }
  .results-bar { font-size: 14px; flex-wrap: wrap; gap: 0 12px; padding-block: 10px; }
  .pagination { flex-wrap: wrap; justify-content: center; }
  .page-controls { gap: 16px; }
  .library-note { font-size: 14px; }
  .usage-nav { position: static; display: flex; gap: 16px; border-bottom: 1px solid var(--line); }
  .usage-nav a { padding: 0 0 12px; font-size: 14px; }
  .usage-body section { scroll-margin-top: 120px; }
  .code-block pre { padding: 16px; font-size: 13px; }
  .get-layout { grid-template-columns: 1fr; gap: 28px; }
  .qr-card { max-width: 320px; width: 100%; justify-self: center; }
  .footer-in { flex-wrap: wrap; gap: 12px 24px; }
  .footer-in span { flex-basis: 100%; }
}
