:root {
  color-scheme: light;
  --brand: #a43d19;
  --ink: #252725;
  --muted: #4d514e;
  --paper: #fff;
  --wash: #f7f3ef;
  --line: #d9d2cb;
  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: #8a3214; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid var(--brand); 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; padding: .55rem 1rem; background: white; }
.skip:not(:focus) { clip-path: inset(100%); }
.site-header { border-top: .3rem solid var(--brand); border-bottom: 1px solid var(--line); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; min-height: 44px; max-width: 100%; }
.brand img { width: clamp(12rem, 27vw, 19rem); }
.nav { display: flex; flex-wrap: wrap; gap: .15rem .45rem; align-items: center; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: .3rem .5rem; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav [aria-current] { background: var(--wash); text-decoration: underline; }
.desktop { display: none; }
.mobile { width: 100%; }
.mobile .nav { display: grid; border-top: 1px solid var(--line); }
summary { cursor: pointer; min-height: 44px; width: fit-content; padding: .55rem .25rem; font-weight: 700; }
.hero { background: var(--wash); border-bottom: 3px solid var(--brand); }
.headline { display: grid; gap: 1.25rem; align-items: center; padding-block: clamp(1.4rem, 5vw, 3.6rem); }
.headline > * { min-width: 0; }
.headline p { max-width: 48rem; color: var(--muted); margin: .8rem 0 0; }
.home-hero { color: white; background: #282927; }
.home-hero .headline p { color: #ebe5df; }
.home-hero img { width: 100%; border-radius: .25rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0; font-size: clamp(1.95rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.3rem, 2.7vw, 2rem); margin-block: 0 .75rem; }
h3 { margin: 0 0 .45rem; }
.primary { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; padding: .4rem .9rem; background: #ffe1c6; color: #34231a; font-weight: 700; border-radius: .25rem; }
.home-hero :focus-visible { outline-color: #ffe1c6; }
.content { padding-block: 1.6rem 3.5rem; min-width: 0; }
.content section + section, .related, .pagination { margin-top: clamp(2rem, 5vw, 3.6rem); }
.cards, .gallery, .directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem; }
.cards article { display: flex; flex-direction: column; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-top: 3px solid var(--brand); background: var(--wash); }
.cards p { margin: 0; color: var(--muted); }
.equipment-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: white; margin-bottom: .75rem; }
.equipment-media img { margin-block: .8rem; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.gallery figure { margin: 0; min-width: 0; background: var(--wash); align-content: center; }
.gallery img { width: 100%; max-height: 23rem; object-fit: contain; }
.directory { list-style: none; margin-block: .85rem; padding: 0; }
.directory a { display: flex; align-items: center; min-height: 44px; height: 100%; padding: .55rem .8rem; background: var(--wash); border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: 1rem; }
.breadcrumbs a + a::before { content: "/"; color: var(--muted); margin-right: .55rem; }
.detail { max-width: 75ch; }
.detail img, .detail video { margin-block: .75rem; }
.detail video { width: 100%; background: #282927; }
.date, .news-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.pagination .directory { display: flex; flex-wrap: wrap; }
.faq { max-width: 53rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: .35rem; }
.faq p { margin: .35rem 0 .75rem; color: var(--muted); }
.table-scroll { overflow: auto; max-width: 100%; margin-block: .8rem; }
table { border-collapse: collapse; min-width: max-content; }
th, td { border: 1px solid var(--line); text-align: start; max-width: 28rem; padding: .4rem .6rem; }
th { background: var(--wash); }
.site-footer { background: #282927; color: white; padding-block: 1.35rem; }
.site-footer a { color: white; }
.base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 48rem) {
  .desktop { display: flex; }
  .mobile { display: none; }
  .home-hero .headline { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
