:root {
  color-scheme: light;
  --ink: #151613;
  --muted: #63685e;
  --line: #dfe4d8;
  --paper: #fffdfa;
  --wash: #f5f7ef;
  --accent: #e56b2f;
  --accent-2: #0d766f;
  --accent-3: #3f5f9f;
  --shadow: 0 18px 45px rgba(29, 35, 26, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--wash);
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 253, 250, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .hero, .band, .detail, .page-hero, .tools-section, .editorial-strip, .footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.nav a {
  text-decoration: none;
  color: #30352d;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.nav a[aria-current="page"], .nav a:hover { background: #ecf0e5; color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: end;
  padding: 64px 0 38px;
}
.hero-copy h1, .page-hero h1, .article-head h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy p, .page-hero p, .article-head p {
  max-width: 780px;
  color: #40463d;
  font-size: 18px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}
.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.download-search-panel {
  max-width: 760px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #cfd7c7;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(29, 35, 26, .08);
}
.download-search-panel label {
  display: block;
  margin-bottom: 8px;
  color: #454b42;
  font-size: 14px;
  font-weight: 800;
}
.download-search-panel div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.download-search-panel input,
.download-search-panel button,
.filter-row select {
  min-height: 46px;
  border: 1px solid #cfd7c7;
  border-radius: 7px;
  font: inherit;
}
.download-search-panel input {
  width: 100%;
  padding: 0 13px;
}
.download-search-panel button {
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.quick-links a {
  padding: 7px 10px;
  border: 1px solid #cfd7c7;
  border-radius: 999px;
  background: #fff;
  color: #334039;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.stat-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.stat-rail span {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border-radius: 6px;
  background: #f1f4eb;
  color: var(--muted);
}
.stat-rail strong { color: var(--ink); font-size: 28px; line-height: 1.1; }

.band, .tools-section, .detail, .page-hero, .editorial-strip { padding: 42px 0; }
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.main-column { min-width: 0; }
.rank-panel {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}
.rank-head { padding: 18px 18px 10px; }
.rank-head h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.rank-list {
  list-style: decimal-leading-zero;
  margin: 0;
  padding: 0 0 8px 46px;
}
.rank-list li {
  padding: 12px 12px 12px 0;
  border-top: 1px solid var(--line);
}
.rank-list li::marker { color: var(--accent); font-weight: 900; }
.rank-list a { text-decoration: none; }
.rank-list strong { display: block; line-height: 1.2; }
.rank-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.rank-action {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-head h2, .content-section h2, .site-footer h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}
.section-head p { max-width: 600px; color: var(--muted); margin: 0; }
.route-grid, .guide-grid, .protocol-grid, .mini-grid, .tool-grid {
  display: grid;
  gap: 14px;
}
.route-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.route-card, .guide-card, .protocol-card, .tool-card, .mini-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(29, 35, 26, .04);
}
.route-card {
  min-height: 178px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.route-card strong { font-size: 18px; }
.route-card span { margin: 8px 0 12px; color: var(--accent); font-weight: 800; }
.route-card p { margin: auto 0 0; color: var(--muted); font-size: 14px; }

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.format-grid a {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
}
.format-grid strong { display: block; font-size: 18px; line-height: 1.2; }
.format-grid span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

.tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tool-card[hidden], .is-hidden { display: none !important; }
.tool-media {
  min-height: 126px;
  display: grid;
  place-items: center;
  background: #eef3e7;
  border-bottom: 1px solid var(--line);
}
.tool-media img { width: 110px; height: 80px; object-fit: contain; }
.tool-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tool-meta, .card-bottom, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tool-meta span, .tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf0e8;
  color: #4f554d;
  font-size: 12px;
}
.tool-meta .is-active { background: #e5f3ee; color: #11614f; }
.tool-meta .is-community { background: #eef0fa; color: #354b92; }
.tool-meta .is-legacy { background: #faece6; color: #9b3f17; }
.tool-card h2 { margin: 0; font-size: 22px; line-height: 1.16; letter-spacing: 0; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-bottom {
  margin-top: auto;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.card-bottom span { color: var(--accent-3); font-weight: 800; }
.card-bottom a, .download-link { color: var(--accent-2); font-weight: 800; }

.editorial-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.editorial-strip div { background: var(--paper); padding: 20px; }
.editorial-strip strong { display: block; font-size: 18px; }
.editorial-strip span { color: var(--muted); }

.page-hero {
  padding-top: 54px;
  padding-bottom: 18px;
}
.page-hero h1, .article-head h1 { font-size: clamp(34px, 5vw, 58px); }
.search-box {
  max-width: 760px;
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
}
.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cfd7c7;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
}
.download-filters {
  max-width: 860px;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.filter-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}
.filter-row select {
  width: 100%;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
}
.result-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 850;
}

.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card, .protocol-card { padding: 20px; }
.guide-card h3, .protocol-card h2 { margin: 0 0 10px; line-height: 1.2; letter-spacing: 0; }
.guide-card p, .protocol-card p { color: var(--muted); margin: 0; }
.protocol-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.detail { max-width: 1120px; }
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 24px;
}
.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.detail-head h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: 0; }
.detail-head p { color: #40463d; font-size: 18px; }
.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 24px;
  background: #edf2e7;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.fact-grid div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}
.fact-grid span { display: block; color: var(--muted); font-size: 13px; }
.fact-grid strong { display: block; margin-top: 6px; overflow-wrap: anywhere; line-height: 1.25; }
.content-section, .detail-section {
  margin: 24px 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content-section p, .muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
.latest-table td:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
caption { text-align: left; color: var(--muted); font-weight: 800; margin-bottom: 10px; }
th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: #f1f4eb; font-size: 13px; }
.notice {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: #fff7f0;
}
.notice p { margin: 4px 0 0; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.plain-list { margin: 0; padding-left: 22px; color: var(--muted); }
.plain-list li { margin-bottom: 8px; }
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
summary { cursor: pointer; font-weight: 800; }
.mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-grid a { padding: 15px; text-decoration: none; }
.mini-grid span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.article-detail { max-width: 900px; }
.article-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.exit-panel {
  max-width: 720px;
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  margin-top: 42px;
  padding: 42px 0;
  background: #1c211b;
  color: #f8f8f2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
.site-footer p { color: #c7cfbf; margin: 0; }
.site-footer a { display: block; color: #f8f8f2; margin: 7px 0; }
.site-footer h2 { font-size: 18px; margin-bottom: 10px; }

@media (max-width: 980px) {
  .hero, .detail-head, .download-layout { grid-template-columns: 1fr; }
  .rank-panel { position: static; }
  .route-grid, .tool-grid, .tool-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid, .protocol-grid, .editorial-strip, .footer-grid, .mini-grid { grid-template-columns: 1fr 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 12px 0; gap: 10px; }
  .nav { justify-content: flex-start; }
  .nav a { padding: 7px 9px; }
  .hero, .band, .detail, .page-hero, .tools-section { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 34px; }
  .hero-copy h1, .page-hero h1, .article-head h1 { font-size: clamp(34px, 11vw, 42px); }
  .hero-copy p, .page-hero p, .detail-head p { font-size: 16px; }
  .download-search-panel div, .route-grid, .tool-grid, .tool-grid.compact, .guide-grid, .protocol-grid, .editorial-strip, .footer-grid, .mini-grid, .fact-grid, .stat-rail, .format-grid, .filter-row { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .content-section, .detail-section { padding: 18px; }
  table { min-width: 640px; }
}
