:root {
  color-scheme: light;
  --ink: #262a33;
  --muted: #4d5563;
  --paper: #fff;
  --wash: #f4f6fa;
  --line: #cdd4df;
  --accent: #0b5795;
  --highlight: #d7ebff;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
*, *::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: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #1477b2; outline-offset: 3px; }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.skip { position: absolute; top: .7rem; left: .7rem; z-index: 2; background: white; padding: .5rem .8rem; }
.skip:not(:focus) { clip-path: inset(100%); }
.site-header { border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .95rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 8.75rem; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .45rem; }
.site-header nav a { color: var(--ink); padding: .3rem .5rem; text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.site-header nav a:hover, .site-header nav [aria-current] { background: var(--wash); text-decoration: underline; }
.site-header .desktop { display: none; }
.mobile { width: 100%; }
.mobile nav { display: grid; border-top: 1px solid var(--line); }
summary { cursor: pointer; width: fit-content; min-height: 44px; padding: .55rem .25rem; font-weight: 700; }
.hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.home-hero { color: white; background: var(--ink); }
.headline { display: grid; gap: 1.2rem; align-items: center; padding-block: clamp(1.5rem, 5vw, 4rem); }
.headline img { width: 100%; border-radius: .35rem; }
.headline > * { min-width: 0; }
.headline p { color: var(--muted); max-width: 49rem; margin: .7rem 0 0; }
.home-hero p { color: #e1e6ef; }
.home-hero :focus-visible { outline-color: var(--highlight); }
.button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; padding: .45rem .9rem; border-radius: .25rem; font-weight: 750; background: var(--highlight); color: #1b3a56; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0; font-size: clamp(1.95rem, 4.8vw, 3.65rem); }
h2 { margin: 0 0 .7rem; font-size: clamp(1.35rem, 2.8vw, 2.05rem); }
h3 { margin: 0 0 .45rem; }
.content { padding-block: 1.6rem 3.4rem; min-width: 0; }
.content section + section { margin-top: clamp(1.8rem, 5vw, 3.3rem); }
.content p { max-width: 72ch; }
.cards, .directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .9rem; }
.cards article { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: .35rem; background: var(--wash); padding: 1rem; scroll-margin-top: 1rem; }
.cards article:target { outline: 2px solid var(--accent); }
.cards p, .stages p { margin: 0; color: var(--muted); }
.directory { list-style: none; margin-block: .8rem; padding: 0; }
.directory a { display: flex; align-items: center; min-height: 44px; height: 100%; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .28rem; background: var(--wash); }
.stages { max-width: 50rem; padding-inline-start: 1.55rem; }
.stages li { border-bottom: 1px solid var(--line); margin-bottom: .65rem; padding: .55rem .35rem .75rem; }
.stages li::marker { color: var(--accent); font-weight: 750; }
video { width: min(100%, 52rem); aspect-ratio: 16 / 9; background: var(--ink); }
.faq { max-width: 54rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: .3rem; }
.faq p { margin: .3rem 0 .65rem; color: var(--muted); }
.site-footer { padding-block: 1.25rem; background: var(--ink); color: white; }
.site-footer a { color: white; }
.base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 48rem) {
  .site-header .desktop { display: flex; }
  .mobile { display: none; }
  .home-hero .headline { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
