/* ============================================================
   度假露营攻略网 · 首页样式（style.css）
   视觉基线：03-ui/home-ui-desktop.png（1440×2160）
   分区高度预算（剖面量得）：header 68 / hero 378 / index 321 /
   featured 373 / latest 271 / steps 161 / note 264 / strip 108 / footer 216
   ============================================================ */

/* ---------------- M1 首屏 ---------------- */
.hero {
  position: relative;
  height: var(--h-hero);
  overflow: hidden;
  background: var(--green-900);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(30,46,36,.50) 0%, rgba(32,48,36,.44) 30%, rgba(34,52,38,.26) 56%, rgba(36,54,40,.08) 78%, rgba(36,54,40,.14) 100%),
    linear-gradient(0deg, rgba(28,42,30,.20) 0%, rgba(28,42,30,0) 50%);
}
.hero-media img { filter: brightness(1.34) saturate(.88); }
.feature-card .thumb img, .latest-card .thumb img { filter: saturate(.72) contrast(1.04); }
.hero-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  padding-top: 40px; padding-bottom: 26px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-2); font-weight: 600; letter-spacing: .14em;
  color: #e7efdd;
}
.hero-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero h1 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 44px; line-height: 1.16; font-weight: 700; letter-spacing: .01em;
  color: #fff; max-width: 660px;
}
.hero-lead {
  margin-top: 12px; max-width: 560px;
  font-size: var(--fs-4); line-height: 1.85; color: #dde6d6;
}
.hero-actions { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-quick {
  margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: var(--fs-2); color: #cfdac6;
}
.hero-quick a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.34); border-radius: 999px;
  font-size: var(--fs-2); color: #eaf1e2;
}
.hero-quick a:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.hero-rule { flex: 1 1 40px; height: 1px; background: rgba(255,255,255,.22); }

/* ---------------- M2 七条阅读线索 ---------------- */
.index-section {
  height: var(--h-index);
  background: var(--cream);
  border-top: 1px solid #efeade;
  border-bottom: 1px solid #efeade;
}
.index-inner { height: 100%; display: flex; flex-direction: column; padding-top: 26px; padding-bottom: 24px; }
.index-head { display: flex; align-items: baseline; gap: 18px; }
.index-title {
  font-family: var(--font-serif); font-size: 25px; font-weight: 700;
  letter-spacing: .02em; color: var(--green-900);
}
.index-title::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--lime); vertical-align: 8px; margin-right: 12px;
}
.index-grid {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0 54px;
}
.index-item { display: flex; flex-direction: column; min-height: 208px; }
.index-num {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-2); font-weight: 600;
  color: #b3ab95; letter-spacing: .1em;
}
.index-name {
  margin-top: 6px;
  font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.34;
  color: var(--green-900);
}
.index-name a:hover { color: var(--green-600); }
.index-desc {
  margin-top: 10px; font-size: var(--fs-3); line-height: 1.82; color: #5c6357;
  border-top: 1px solid #e7e1d2; padding-top: 10px;
}

/* ---------------- M3 先读这三篇 ---------------- */
.featured-section { height: var(--h-featured); background: #fff; }
.featured-inner { height: 100%; display: flex; flex-direction: column; padding-top: 26px; padding-bottom: 26px; }
.featured-grid {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px;
}
.feature-card { display: flex; flex-direction: column; }
.feature-card .thumb { aspect-ratio: 446 / 148; border-radius: var(--radius); }
.feature-card .thumb img { transition: transform .4s ease; }
.feature-card:hover .thumb img { transform: scale(1.03); }
.feature-meta { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.feature-title {
  margin-top: 8px;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1.5;
  color: var(--green-900);
}
.feature-card:hover .feature-title { color: var(--green-600); }
.feature-desc { margin-top: 6px; font-size: var(--fs-3); line-height: 1.7; color: #6b7266; }

/* ---------------- M4 最近在写 ---------------- */
.latest-section { height: var(--h-latest); background: #fff; border-top: 1px solid var(--line); }
.latest-inner { height: 100%; display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 24px; }
.latest-grid {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 22px;
}
.latest-card { display: flex; flex-direction: column; }
.latest-card .thumb { aspect-ratio: 258 / 94; border-radius: var(--radius); }
.latest-card .thumb img { transition: transform .4s ease; }
.latest-card:hover .thumb img { transform: scale(1.04); }
.latest-meta { margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.latest-title {
  margin-top: 6px;
  font-family: var(--font-serif); font-size: 15.5px; font-weight: 700; line-height: 1.5;
  color: var(--green-900);
}
.latest-card:hover .latest-title { color: var(--green-600); }
.latest-desc { margin-top: 5px; font-size: var(--fs-2); line-height: 1.68; color: #737a6d; }

/* ---------------- M4 维度内容模块 ---------------- */
.cat-block { background: #fff; border-top: 1px solid var(--line); }
.cat-block-inner { padding-top: 30px; padding-bottom: 34px; }
.cat-block .latest-grid { margin-top: 20px; }
.cat-block .section-title a:hover { color: var(--green-600); }

/* ---------------- M5 新手三步走 ---------------- */
.steps-section { height: var(--h-steps); background: #fff; }
.steps-inner {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 20px 28px 20px;
  background: linear-gradient(180deg, #eaf5e4 0%, #eef7e9 62%, #f9fcf6 100%);
  border-radius: var(--radius-lg);
}
.steps-head { display: flex; align-items: baseline; gap: 16px; }
.steps-title { font-family: var(--font-serif); font-size: 25px; font-weight: 700; color: var(--green-900); }
.steps-grid { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; }
.step-card { border-top: 1px solid #b7cfa4; padding-top: 10px; }
.step-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-2); font-weight: 700; letter-spacing: .1em; color: var(--green-700);
}
.step-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.step-title {
  margin-top: 6px;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--green-900);
}
.step-desc { margin-top: 6px; font-size: var(--fs-3); line-height: 1.72; color: #4d5a48; }

/* ---------------- M6 我们写什么 ---------------- */
.note-section { height: var(--h-note); background: #fff; }
.note-inner { height: 100%; display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 8px; }
.note-grid {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 22px;
  padding-bottom: 4px;
}
.note-block { padding-left: 16px; border-left: 1px solid #e6e9df; }
.note-block:first-child { padding-left: 0; border-left: 0; }
.note-title {
  font-size: var(--fs-2); font-weight: 700; letter-spacing: .08em; color: var(--green-700);
}
.note-copy { margin-top: 6px; font-size: var(--fs-2); line-height: 1.72; color: #6b7266; }

/* ---------------- 页脚上方的林线带 ---------------- */
.strip {
  position: relative; height: var(--h-strip);
  background: #fff; overflow: hidden;
  display: flex; align-items: stretch;
}
.strip-side { position: relative; overflow: hidden; }
.strip-left { width: 46%; }
.strip-right { width: 39%; margin-left: auto; }
.strip-side img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.strip-left img { -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, #000 72%, transparent 100%); }
.strip-right img { -webkit-mask-image: linear-gradient(270deg, #000 72%, transparent 100%); mask-image: linear-gradient(270deg, #000 72%, transparent 100%); }
.strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.9) 42%, #fff 50%, rgba(255,255,255,.9) 58%, rgba(255,255,255,.25) 100%);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1200px) {
  .index-grid { gap: 0 16px; }
  .index-name { font-size: 19px; }
  .feature-title { font-size: 16.5px; }
  .latest-title { font-size: 14.5px; }
}
@media (max-width: 960px) {
  :root { --h-hero: 460px; --h-index: auto; --h-featured: auto; --h-latest: auto; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 14px; }
  .index-section, .featured-section, .latest-section, .steps-section, .note-section { height: auto; }
  .index-inner, .featured-inner, .latest-inner, .note-inner { padding-top: 30px; padding-bottom: 30px; }
  .steps-inner { padding: 24px 20px; }
  .index-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 20px; margin-top: 22px; }
  .index-item { min-height: 0; }
  .index-desc { border-top: 0; padding-top: 0; }
  .featured-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
  .feature-card .thumb { aspect-ratio: 16 / 9; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
  .latest-card .thumb { aspect-ratio: 16 / 9; }
  .steps-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .note-grid { grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-top: 22px; }
  .note-block { padding-left: 0; border-left: 0; border-top: 1px solid #e6e9df; padding-top: 12px; }
  .step-card { border-top: 1px solid #b7cfa4; }
  .strip { height: 96px; }
  .strip-left { width: 48%; }
  .strip-right { width: 44%; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .index-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .note-grid { grid-template-columns: 1fr; }
  .index-title, .steps-title { font-size: 22px; }
}
