:root {
  --red: #b8000b;
  --ink: #1d2630;
  --muted: #667482;
  --line: #dfe5ea;
  --soft: #f5f7f9;
  --paper: #ffffff;
  --green: #0f766e;
  --gold: #b7791f;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f1f4f6;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 10px clamp(16px, 4vw, 42px);
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand {
  display: flex;
  align-items: center;
  min-width: 210px;
}
.brand img { width: 210px; height: auto; }
.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topnav a {
  color: #eef2f6;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 14px;
}
.topnav a:hover { background: rgba(255,255,255,.1); }
.shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px;
}
.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 8px;
}
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #31404d;
  font-size: 14px;
}
.sidebar a.primary { border-color: rgba(184,0,11,.3); color: var(--red); }
.sidebar b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.mainflow { min-width: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}
.hero-copy,
.search-panel,
.directory-section,
.detail-hero,
.park-hero,
.article-body,
.related {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-copy {
  padding: clamp(22px, 4vw, 42px);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: 0; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); }
.hero p { max-width: 780px; color: var(--muted); margin: 14px 0 0; }
.search-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
}
.search-panel label { font-size: 14px; color: var(--muted); }
.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.search-box input {
  min-width: 0;
  height: 48px;
  border: 0;
  padding: 0 14px;
  font: inherit;
  outline: none;
}
.search-box span {
  display: grid;
  place-items: center;
  background: #edf2f7;
  color: var(--muted);
  font-weight: 700;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.stats span {
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}
.stats b {
  display: block;
  color: var(--ink);
  font-size: 20px;
}
.directory-section {
  margin-bottom: 22px;
  padding: 18px;
  scroll-margin-top: 96px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.section-heading h2 { font-size: 20px; }
.section-heading span {
  color: var(--muted);
  font-size: 13px;
}
.section-more {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.park-grid,
.site-grid {
  display: grid;
  gap: 12px;
}
.park-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.site-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.park-card {
  display: grid;
  grid-template-rows: 150px minmax(54px, auto);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.park-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--soft);
}
.park-card span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  font-weight: 700;
}
.site-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.site-card:hover,
.park-card:hover {
  border-color: rgba(184,0,11,.35);
  box-shadow: 0 8px 24px rgba(29,38,48,.08);
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #edf2f7;
}
.icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.site-copy { min-width: 0; display: grid; gap: 2px; }
.site-copy strong,
.site-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-copy strong { font-size: 15px; }
.site-copy small { color: var(--muted); font-size: 12px; }
.badge {
  align-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef7f6;
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}
.site-card[hidden],
.park-card[hidden],
.directory-section[hidden] { display: none; }
.detail-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}
.crumb {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.detail-hero,
.park-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(150px, auto);
  gap: 20px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
}
.park-hero { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); }
.park-hero > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.detail-icon {
  width: 112px;
  height: 112px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}
.detail-hero h1,
.park-hero h1 { font-size: clamp(26px, 4vw, 40px); }
.category-hero { grid-template-columns: 1fr; }
.detail-hero p,
.park-hero p { color: var(--muted); margin: 10px 0 0; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.qr-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}
.qr-panel img {
  width: 136px;
  height: 136px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
.article-body {
  padding: clamp(18px, 4vw, 34px);
  margin-bottom: 18px;
  overflow: hidden;
}
.article-body p { margin: 0 0 14px; }
.article-body h2,
.article-body h3,
.article-body h4 { margin: 22px 0 10px; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-figure {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.article-figure img {
  width: 100%;
  height: auto;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 8px;
}
.related {
  padding: 18px;
}
.related h2 {
  font-size: 20px;
  margin-bottom: 14px;
}
.xf-ad {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(184,0,11,.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(29,38,48,.16);
}
.xf-ad[hidden] { display: none; }
.xf-ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #5b6672;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.xf-ad-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(184,0,11,.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.xf-ad strong {
  display: block;
  margin-top: 10px;
  padding-right: 24px;
  font-size: 18px;
  line-height: 1.35;
}
.xf-ad p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.xf-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.xf-ad-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
}
.xf-ad-primary {
  background: var(--red);
  color: #fff;
}
.xf-ad-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.guide-lede {
  color: var(--muted);
  margin: 12px 0 0;
}
.guide-cta {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(184,0,11,.28);
  border-radius: var(--radius);
  background: #fff8f8;
}
.guide-cta h2 { margin-top: 0; }
.guide-cta .button { margin-top: 8px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px clamp(16px, 4vw, 42px);
  background: #161b22;
  color: #dce3ea;
}
.footer span {
  display: block;
  color: #aeb9c4;
  font-size: 13px;
}
.footer a { color: #fff; }
@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .brand { min-width: 0; }
  .shell { grid-template-columns: 1fr; padding: 16px; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero,
  .park-hero { grid-template-columns: 1fr; }
  .qr-panel { justify-self: start; }
}
@media (max-width: 560px) {
  body.xf-ad-open { padding-bottom: 132px; }
  .brand img { width: 190px; }
  .topnav a { font-size: 13px; padding: 6px 8px; }
  .sidebar { grid-template-columns: 1fr; }
  .site-grid,
  .park-grid { grid-template-columns: 1fr; }
  .site-card { grid-template-columns: 44px minmax(0, 1fr); }
  .badge { grid-column: 2; justify-self: start; }
  .xf-ad {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 12px 50px 12px 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -12px 30px rgba(29,38,48,.14);
  }
  .xf-ad-close {
    top: 10px;
    right: 12px;
  }
  .xf-ad-kicker { display: none; }
  .xf-ad strong {
    margin-top: 0;
    padding-right: 0;
    font-size: 15px;
  }
  .xf-ad p {
    display: -webkit-box;
    margin: 4px 0 9px;
    overflow: hidden;
    color: #5f6d7a;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .xf-ad-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .xf-ad-actions a {
    min-height: 38px;
    padding: 7px 10px;
  }
  .xf-ad-secondary {
    display: none;
  }
  .footer { align-items: flex-start; flex-direction: column; }
}
