:root {
  color-scheme: light;
  --brand: #a52c35;
  --ink: #18232f;
  --quiet: #485564;
  --steel: #e8edf2;
  --surface: #f5f7fa;
  --rule: #cbd3de;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: anywhere; }
main { flex: 1; }
a { color: #90252e; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #a52c35; outline-offset: 3px; }
img, video { display: block; max-width: 100%; height: auto; }
video { width: min(100%, 60rem); background: var(--ink); }
.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: white; padding: .55rem 1rem; }
.skip:not(:focus) { clip-path: inset(100%); }
header { border-top: .3rem solid var(--brand); border-bottom: 1px solid var(--rule); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 0; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand img { width: clamp(3.4rem, 12vw, 7.5rem); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: .25rem .5rem; border-radius: .25rem; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav [aria-current="page"] { background: var(--steel); text-decoration: underline; }
.desktop { display: none; }
.mobile { width: 100%; }
.mobile .nav { display: grid; border-top: 1px solid var(--rule); }
summary { cursor: pointer; width: fit-content; min-height: 44px; padding: .55rem .3rem; font-weight: 700; }
.hero { background: var(--surface); border-bottom: 4px solid var(--brand); }
.headline { padding-block: clamp(1.4rem, 4vw, 4rem); display: grid; gap: 1.3rem; align-items: center; }
.headline img { width: 100%; border-radius: .3rem; background: var(--steel); }
.headline p { max-width: 43rem; color: var(--quiet); margin: .85rem 0 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.7rem); margin: 0; }
h2 { font-size: clamp(1.3rem, 2.8vw, 2rem); }
.primary { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; padding: .4rem 1rem; background: var(--brand); color: white; border-radius: .25rem; font-weight: 700; }
.content { padding-block: 1.4rem 3.5rem; min-width: 0; }
.content section + section { margin-top: clamp(2rem, 5vw, 3.5rem); }
.directory, .catalog-grid { margin-block: 1rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .7rem; }
.directory li, .catalog-grid li { min-width: 0; }
.directory a { display: flex; align-items: center; min-height: 3.1rem; height: 100%; padding: .55rem .8rem; background: var(--surface); border: 1px solid var(--rule); border-inline-start: 3px solid var(--brand); border-radius: .25rem; }
.catalog-grid li { display: grid; border: 1px solid var(--rule); border-radius: .3rem; padding: .75rem; background: var(--surface); }
.catalog-grid a { min-width: 0; }
.catalog-grid img { width: 100%; height: 11rem; object-fit: contain; margin-bottom: .65rem; background: white; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; column-gap: .9rem; row-gap: .3rem; font-size: .95rem; }
.breadcrumbs a + a::before { content: "/"; color: var(--quiet); margin-right: .65rem; }
.trail, .date { color: var(--quiet); }
.technical-content { margin-block: 1rem 2rem; }
.technical-content p, .faq p { max-width: 72ch; }
.technical-content img { margin-block: .8rem; }
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); padding-block: .35rem; }
.faq p { color: var(--quiet); margin: .4rem 0 .9rem; }
.archive-list { padding-inline-start: 1.3rem; }
.archive-list li { margin-bottom: .4rem; }
.table-scroll { overflow: auto; margin-block: 1rem; max-width: 100%; }
table { border-collapse: collapse; min-width: max-content; }
th, td { padding: .4rem .65rem; border: 1px solid var(--rule); max-width: 24rem; text-align: start; }
th { background: var(--steel); }
footer { background: var(--ink); color: white; padding-block: 1.4rem; }
footer a { color: white; }
.base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (min-width: 48rem) {
  .desktop { display: flex; }
  .mobile { display: none; }
  .headline:has(img) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.document-image { display: inline-block; max-width: 100%; }
