:root {
  color-scheme: light;
  --blue: #00588f;
  --deep: #143b56;
  --ink: #233541;
  --muted: #485d69;
  --pale: #eef5fa;
  --line: #c8d9e4;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: white;
  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: #005488; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #136ca5; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 2rem, 76rem); 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-top: .3rem solid var(--blue); border-bottom: 1px solid var(--line); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; padding-block: .65rem; }
.brand { display: flex; align-items: center; min-height: 44px; max-width: 100%; }
.brand img { width: clamp(10rem, 30vw, 15rem); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; padding: .3rem .5rem; color: var(--ink); text-decoration: none; }
.site-header nav a:hover, .site-header nav [aria-current] { background: var(--pale); 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 .3rem; font-weight: 700; }
.hero { background: var(--pale); border-bottom: 1px solid var(--line); }
.home-hero { background: var(--deep); color: white; }
.headline { display: grid; gap: 1.3rem; align-items: center; padding-block: clamp(1.45rem, 5vw, 3.7rem); }
.headline > * { min-width: 0; }
.headline img { width: 100%; border-radius: .45rem; }
.headline p { margin: .7rem 0 0; max-width: 51rem; color: var(--muted); }
.home-hero p { color: #e7f1f7; }
.home-hero :focus-visible { outline-color: #bde2ff; }
.button { display: inline-flex; min-height: 44px; align-items: center; margin-top: 1rem; padding: .4rem .9rem; background: #d0eaff; color: #17344d; font-weight: 750; border-radius: .25rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0; font-size: clamp(1.8rem, 4.6vw, 3.55rem); }
h2 { margin: 0 0 .7rem; font-size: clamp(1.28rem, 2.7vw, 2rem); }
h3 { margin: 0 0 .45rem; }
.content { min-width: 0; padding-block: 1.6rem 3.5rem; }
.content section + section, .pagination { margin-top: clamp(1.8rem, 5vw, 3.3rem); }
.cards, .directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem; }
.cards article { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 1rem; border-radius: .35rem; background: var(--pale); }
.cards p { color: var(--muted); margin: 0; }
.projects { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.projects img { width: 100%; margin-bottom: .65rem; border-radius: .25rem; }
.projects article > img { aspect-ratio: 16 / 10; object-fit: cover; }
.projects dl { margin-block: .65rem; }
.projects dt { font-weight: 700; }
.projects dd { margin-inline-start: 0; }
.project-gallery { display: grid; gap: .35rem; }
.directory { padding: 0; margin: .85rem 0; list-style: none; }
.directory a { display: flex; align-items: center; min-height: 44px; height: 100%; padding: .5rem .8rem; background: var(--pale); border: 1px solid var(--line); border-radius: .25rem; }
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin-bottom: .85rem; }
.trail a + a::before { content: "/"; color: var(--muted); margin-inline-end: .6rem; }
.detail { max-width: min(100%, 76ch); }
.detail h2 { margin-top: 1.4rem; }
.detail p { margin-block: .6rem 1rem; }
.detail img { margin-block: .75rem; }
.detail pre { white-space: pre-wrap; }
.date, time { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .85rem; align-items: baseline; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.pagination .directory { display: flex; flex-wrap: wrap; }
.table-scroll { width: 100%; overflow: auto; margin-block: .85rem; }
table { border-collapse: collapse; min-width: max-content; }
caption { margin-bottom: .45rem; font-weight: 750; text-align: start; }
th, td { max-width: 26rem; padding: .45rem .65rem; border: 1px solid var(--line); text-align: start; }
th { background: var(--pale); }
.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 { background: var(--deep); color: white; padding-block: 1.25rem; }
.site-footer a { color: white; }
.base { display: flex; flex-wrap: wrap; justify-content: space-between; 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.16fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
