/* ==========================================================================
   style.css — 户外露营场地攻略 页面骨架与首页分区
   视觉基准 03-ui/home-ui-desktop.png（1440 设计宽 / 容器 1335 / 整页 2160）
   分区预算见 03-ui/compare-log.md
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; color: var(--ink-strong); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container,
.header-inner,
.hero-inner,
.footer-inner,
.footer-bottom {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-dark); color: var(--ink-invert);
  padding: 10px 16px; z-index: 60;
}
.skip:focus { left: 12px; top: 12px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-dark); color: var(--ink-invert);
  padding: 10px 16px; z-index: 60;
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================ M0 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  background: rgba(252, 250, 246, 0.78);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.site-header.is-stuck {
  background: rgba(252, 250, 246, 0.95);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-header);
}
.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--green-deep);
}
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; color: var(--green); }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.brand-tag {
  font-size: 11px;
  color: var(--ink-faint);
  border-left: 1px solid var(--line-strong);
  padding-left: 9px;
  letter-spacing: .06em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.site-nav a { position: relative; padding: 4px 0; transition: color .15s ease; }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--green);
  transition: width .18s ease;
}
.site-nav a:hover { color: var(--ink-strong); }
.site-nav a:hover::after { width: 100%; }
.site-nav .nav-all { color: var(--ink-strong); font-weight: 600; }
.header-cta {
  flex: 0 0 auto;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--green-deep);
  background: transparent;
  transition: background .16s ease, border-color .16s ease;
}
.header-cta:hover { background: var(--bg-card); border-color: var(--green); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  margin: 3.5px auto;
  background: var(--green-deep);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================ M1 hero */
.hero {
  position: relative;
  height: 493px;
  margin-top: -60px;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(250,251,249,.94) 0%,
      rgba(250,251,249,.92) 16%,
      rgba(248,250,250,.74) 27%,
      rgba(240,246,250,.40) 37%,
      rgba(226,240,250,.12) 46%,
      rgba(226,240,250,0) 54%),
    linear-gradient(180deg,
      rgba(250,251,249,.55) 0%,
      rgba(240,247,252,.10) 14%,
      rgba(240,247,252,0) 26%),
    linear-gradient(0deg,
      rgba(234,238,222,.85) 0%,
      rgba(234,238,222,.30) 1.4%,
      rgba(251,249,245,0) 3.2%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-start;
}
.hero-copy { width: 500px; padding-top: 92px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--green);
  text-transform: uppercase;
}
.eyebrow svg { width: 18px; height: 12px; flex: 0 0 auto; }
.eyebrow-line { display: block; width: 34px; height: 1px; background: var(--green-soft); }
.hero h1 {
  margin-top: 13px;
  font-size: 46px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.hero h1 .h1-sub {
  display: block;
  margin-top: 3px;
  font-size: 27px;
  line-height: 1.3;
  color: var(--green);
  letter-spacing: -0.01em;
}
.hero-lead {
  margin-top: 13px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--green-deep);
  font-weight: 500;
}
.hero-desc {
  margin-top: 10px;
  max-width: 470px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-muted);
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--green-deep);
}
.hero-stats li { display: flex; align-items: center; gap: 6px; }
.hero-stats svg { width: 15px; height: 15px; color: var(--green-soft); flex: 0 0 auto; }
.hero-actions { display: flex; gap: 14px; margin-top: 20px; }

/* ============================================================ 区块通用 */
.section { padding: 0 0; }
.section-head { margin-bottom: 0; }
.section-title { font-size: 26px; line-height: 1.22; }
.section-sub { margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); }
.section-head-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-head-row .section-sub { margin-top: 0; }

/* ============================================================ M2 分类索引 */
.cat-section { padding-top: 31px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px 18px;
  margin-top: 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: background .16s ease, transform .16s ease;
}
.cat-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.cat-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.cat-thumb { position: relative; height: 96px; overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,39,23,.06), rgba(27,39,23,.42));
}
.cat-thumb::before {
  content: attr(data-num);
  position: absolute;
  left: 12px; bottom: 5px;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  color: rgba(255,255,255,.94);
  letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(27,39,23,.35);
}
.cat-thumb { height: 92px; }
.cat-body { position: relative; padding: 5px 12px 6px; }
.cat-name { display: flex; align-items: baseline; gap: 7px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.cat-name .cat-idx { font-size: 10px; color: var(--ink-faint); font-weight: 400; letter-spacing: .08em; }
.cat-meta {
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  white-space: nowrap;
}
.cat-name { max-width: calc(100% - 62px); }
.cat-desc {
  margin-top: 1px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================ M3 + M4 双栏 */
.check-feature {
  display: grid;
  grid-template-columns: 646px 650px;
  gap: 40px;
  margin-top: 39px;
}
.check-list { margin-top: 20px; }
.check-list { counter-reset: check; }
.check-item {
  position: relative;
  padding: 12.5px 0 12.5px 34px;
  border-bottom: 1px solid var(--line);
  counter-increment: check;
}
.check-item::before {
  content: "0" counter(check);
  position: absolute;
  left: 0;
  top: 12.5px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--green-soft);
}
.check-item:first-child { padding-top: 0; }
.check-item:first-child::before { top: 0; }
.check-q { font-size: 14.5px; font-weight: 600; color: var(--ink-strong); }
.check-a { font-size: 12.5px; line-height: 1.75; color: var(--ink-muted); }
.check-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-left: 2px solid var(--green);
  font-size: 12.5px;
  color: var(--ink-muted);
}
.check-note strong { color: var(--ink-strong); font-weight: 600; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 18px;
  margin-top: 10px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, background .16s ease;
}
.feature-card:hover { transform: translateY(-2px); background: var(--bg-card-hover); }
.feature-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.feature-thumb { position: relative; height: 86px; overflow: hidden; }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-tag {
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  padding: 3px 9px;
  background: rgba(27,39,23,.62);
  color: var(--ink-invert);
  font-size: 10.5px;
  letter-spacing: .04em;
}
.feature-body { padding: 8px 12px 9px; }
.feature-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.feature-desc {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-spec {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: .02em;
}

/* ============================================================ M5 选址四步 */
.steps-section { margin-top: 49px; }
.steps-panel {
  margin-top: 26px;
  padding: 13px 0 11px;
  background: var(--bg-panel);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step { padding-left: 18px; border-left: 1px solid var(--line-strong); }
.step:first-child { border-left: 0; padding-left: 0; }
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--green-soft);
}
.step-name { margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.step-desc { margin-top: 5px; font-size: 11.5px; line-height: 1.75; color: var(--ink-muted); }

/* ============================================================ M6 三条底线 */
.risk-section { margin-top: 43px; }
.risk-panel {
  margin-top: 15px;
  padding: 13px 30px 12px;
  background: var(--bg-panel-alt);
}
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.risk-card { padding-top: 10px; border-top: 2px solid var(--green); }
.risk-name { font-size: 14px; font-weight: 600; }
.risk-desc { margin-top: 5px; font-size: 12px; line-height: 1.8; color: var(--ink-muted); }

/* ============================================================ M7 收录说明 */
.note-section { margin-top: 27px; }
.note-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  padding: 21px 18px;
  background: var(--bg-note);
  align-items: start;
}
.note-title { font-size: 14px; font-weight: 600; color: var(--green-deep); }
.note-copy { font-size: 12.5px; line-height: 1.85; color: var(--ink-muted); }

/* ============================================================ M8 页脚 */
.site-footer {
  margin-top: 56px;
  background: var(--green-dark);
  color: var(--ink-on-dark-soft);
  padding: 10px 0 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px 40px;
  align-items: flex-start;
}
.footer-col { flex: 1 1 180px; min-width: 170px; }
.footer-col:first-child { flex: 1.4 1 240px; }
.footer-brand .brand-mark { width: 22px; height: 22px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--ink-invert); }
.footer-brand .brand-mark { color: #9dbf92; }
.footer-name { font-size: 15px; font-weight: 600; }
.footer-tag { margin-top: 6px; font-size: 11.5px; line-height: 1.7; max-width: 250px; }
.footer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 11.5px; line-height: 1.6; }
.footer-cats a:hover { color: var(--ink-invert); }
.footer-title { font-size: 11px; letter-spacing: .12em; color: rgba(247,245,238,.5); margin-bottom: 6px; }
.footer-note { font-size: 11px; line-height: 1.72; }
.footer-icp { margin-top: 8px; font-size: 11px; color: rgba(247,245,238,.5); }
.footer-bottom {
  margin-top: 12px;
  padding-top: 7px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(247,245,238,.5);
}

/* ============================================================ 响应式 */
@media (max-width: 1380px) {
  .container, .header-inner, .hero-inner, .footer-inner, .footer-bottom { padding-left: 32px; padding-right: 32px; }
  .check-feature { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-copy { width: 52%; }
  .site-nav { gap: 18px; }
}

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: absolute;
    left: 0; right: 0; top: 60px;
    margin: 0;
    padding: 10px 32px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-header);
  }
  .site-nav.is-open a { padding: 9px 0; width: 100%; font-size: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .step { border-left: 0; padding-left: 0; }
  .risk-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; gap: 22px; }
  .footer-inner .footer-col { flex: none; min-width: 0; width: 100%; }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 860px) {
  .check-feature { grid-template-columns: 1fr; gap: 34px; }
  .hero { height: auto; }
  .hero-img { position: relative; width: 100%; height: 260px; inset: auto; }
  .hero::after { display: none; }
  .hero-inner { flex-direction: column; padding-top: 0; }
  .hero-copy { width: 100%; padding: 24px 0 28px; }
  .hero-lead { font-size: 18px; }
}

@media (max-width: 640px) {
  .container, .header-inner, .hero-inner, .footer-inner, .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .brand-tag { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 10px 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-img { height: 200px; object-position: 58% 50%; }
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-thumb { height: 132px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-thumb { height: 150px; }
  .steps-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps-panel, .risk-panel { padding: 22px 18px; }
  .note-panel { grid-template-columns: 1fr; gap: 8px; }
  .section-title { font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
