:root {
  color-scheme: light;
  --paper: #eef1e8;
  --surface: #f9faf4;
  --ink: #172f29;
  --muted: #4c645a;
  --edge: #c8d4c9;
  --green: #1c5646;
  --earth: #84542d;
  --body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --display: "STZhongsong", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible { outline: 3px solid #927139; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.frame { width: min(1168px, calc(100% - 80px)); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--surface);
}

.site-header { background: #f5f7ee; border-bottom: 1px solid var(--edge); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand img { flex: none; display: block; }
.brand strong { display: block; font: 700 22px/1.12 Georgia, serif; letter-spacing: -.4px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.site-header nav { display: flex; gap: clamp(10px, 3vw, 42px); margin-left: auto; }
.site-header nav a { padding: 9px 2px; color: #365249; font-size: 13px; font-weight: 600; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.edition { padding: 3px 8px; border: 1px solid var(--edge); border-radius: 3px; font-size: 11px; white-space: nowrap; }

.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 56px 52px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.eyebrow span { height: 8px; width: 8px; background: #a07545; transform: rotate(45deg); margin-inline: 2px; }
.hero h1 { margin-block: 18px 15px; font: 700 clamp(42px, 5.05vw, 72px)/1.1 var(--display); letter-spacing: -.045em; }
.hero h1 em { color: var(--green); font-style: normal; }
.intro { max-width: 24em; color: var(--muted); line-height: 1.85; }
.primary { margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 15px; background: #153b35; border: 1px solid #153b35; color: #fff; font-weight: 600; border-radius: 4px; }
.primary:hover { background: #286151; }
.primary svg, .tool-link svg, .search svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atlas { align-self: center; background: #173931; color: #d7e5d5; border-radius: 5px; border: 1px solid #214438; overflow: hidden; box-shadow: 0 18px 34px #263d2b18; }
.atlas img { display: block; width: 100%; height: auto; aspect-ratio: 680 / 440; }
.atlas figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 15px; font-size: 11px; border-top: 1px solid #47675a; letter-spacing: .06em; }

.directory { padding-bottom: 42px; }
.search-row { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; padding: 10px 0 14px; border-top: 1px solid var(--edge); }
.search { width: min(100%, 335px); display: flex; align-items: center; background: var(--surface); border: 1px solid #a8b9ac; border-radius: 4px; gap: 9px; padding-left: 11px; color: #45645a; }
.search:focus-within { border-color: var(--green); }
.search svg { flex: none; }
.search input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 11px 6px 0; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 13px; }
.search input:focus-visible { outline-offset: 1px; }
.search input::placeholder { color: var(--muted); }
.search-count { color: var(--muted); font: 12px var(--mono); white-space: nowrap; }
.no-results { padding: 21px 16px; background: var(--surface); border: 1px solid var(--edge); border-radius: 4px; color: var(--muted); }

.directory-section { padding-block: 15px 29px; scroll-margin-top: 14px; }
.directory-section + .directory-section { border-top: 1px solid var(--edge); padding-top: 25px; }
.section-heading { display: flex; align-items: baseline; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 13px; }
.section-heading h2 { font: 700 27px/1.25 var(--display); }
.section-heading p { color: var(--muted); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tool-card { min-width: 0; min-height: 176px; padding: 16px 19px; display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--edge); border-top: 3px solid var(--green); border-radius: 4px; }
.tool-card[data-access="local"] { border-top-color: #a07344; }
.tool-card[data-access="planned"] { border-top-color: #a5b4a8; min-height: 123px; }
.tool-meta { display: flex; justify-content: flex-start; margin-bottom: 7px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border: 1px solid #c9d9c9; border-radius: 3px; background: #eaf3e7; color: #214e36; font-size: 11px; font-weight: 600; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.local { color: #704324; border-color: #dfc6a6; background: #f7eedf; }
.status.planned { color: #495c52; border-color: #ced8cc; background: #eef1ea; }
.tool-card h3 { font-size: 23px; font-weight: 700; line-height: 1.3; }
.tool-description { color: var(--muted); font-size: 13px; margin-top: 6px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; margin-top: auto; }
.tool-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; min-height: 36px; border: 1px solid #b5cbbd; border-radius: 3px; color: #215343; font-weight: 600; font-size: 13px; }
.tool-link:hover { color: #11392e; background: #e5efe3; border-color: #8db4a0; }
.tool-link svg { width: 12px; height: 12px; }
.access-note { margin-top: auto; padding-top: 13px; font-size: 12px; color: var(--earth); }
.section-placeholder { grid-column: 1 / -1; padding: 16px; color: var(--muted); border: 1px dashed #adbeaf; border-radius: 4px; font-size: 13px; }
.site-footer { border-top: 1px solid var(--edge); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; padding-block: 18px; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .frame { width: min(1168px, calc(100% - 48px)); }
  .hero { gap: 26px; padding-block: 36px; }
}
@media (max-width: 650px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 9px 16px; padding-block: 12px 7px; }
  .edition { margin-left: auto; }
  .site-header nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 26px; }
  .hero h1 { font-size: clamp(36px, 9vw, 54px); margin-block: 12px; }
  .hero h1 br { display: none; }
  .intro { max-width: 36em; }
  .primary { margin-top: 16px; }
  .atlas img { aspect-ratio: 680 / 350; object-fit: cover; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: auto; }
  .section-heading { gap: 4px 12px; }
  .directory-section { padding-bottom: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
