/* =========================================================
   野外宝 · 首页样式
   tokens → base → layout → components → responsive
   ========================================================= */

:root {
  --bg: #f7f6f1;
  --bg-warm: #f2efe6;
  --bg-soft: #f2f0e8;
  --surface: #ffffff;
  --surface-soft: #fbfaf6;
  --ink: #1b2320;
  --ink-soft: #3d453f;
  --muted: #6c736d;
  --muted-light: #8b918a;
  --line: #e2dfd6;
  --line-strong: #d3cfc3;
  --green: #2c7a4b;
  --green-dark: #2b4a3d;
  --green-soft: #e7efe8;
  --gold: #e3c24a;
  --wrap: 1200px;
  --r-1: 3px;
  --r-2: 6px;
  --shadow-1: 0 1px 2px rgba(27, 35, 32, 0.04);
  --font-serif: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --font-sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}

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

html { scroll-behavior: smooth; }

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: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

p { margin: 0; }

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

button, input, select { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-1);
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

.dot { margin: 0 6px; color: var(--muted-light); }

/* ---------------- M0 header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 241, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--green-dark);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.main-nav a:hover { color: var(--green-dark); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--green-dark); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: var(--r-1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------------- M1 hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #f5f6f0;
  background: #1d3540;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-wide.jpg") center 44% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 34, 40, 0.88) 0%, rgba(14, 34, 40, 0.72) 42%, rgba(14, 34, 40, 0.18) 78%, rgba(14, 34, 40, 0.05) 100%),
    linear-gradient(180deg, rgba(14, 34, 40, 0.1) 0%, rgba(14, 34, 40, 0.22) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 44px 0 42px;
}

.hero-copy { max-width: 660px; }

.hero-kicker {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero h1 {
  color: #fbfaf3;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(245, 246, 240, 0.82);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-solid:hover { background: #23653d; border-color: #23653d; }

.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-line:hover { border-color: var(--green); color: var(--green-dark); }

.hero .btn-line { color: #f5f6f0; border-color: rgba(245, 246, 240, 0.5); }
.hero .btn-line:hover { background: rgba(245, 246, 240, 0.12); border-color: #f5f6f0; color: #fff; }

/* ---------------- shared band head ---------------- */
.band-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.band-head h2 {
  position: relative;
  font-size: 24px;
  padding-left: 13px;
  line-height: 1.2;
}
.band-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 3px;
  width: 3px;
  background: var(--green);
}
.band-head p {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------------- M2 categories ---------------- */
.categories {
  background: var(--bg-warm);
  padding: 32px 0 36px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 13px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 18px 15px 16px;
  background: var(--surface);
  border: 1px solid rgba(226, 223, 214, 0.7);
  border-radius: var(--r-1);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: #c9d5cb;
  box-shadow: 0 8px 18px rgba(27, 35, 32, 0.07);
}
.cat-icon {
  width: 42px; height: 42px;
  color: var(--green);
  margin-bottom: 12px;
}
.cat-name {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 7px;
}
.cat-desc {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.cat-count {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11.5px;
  color: var(--green);
  letter-spacing: 0.06em;
}

/* ---------------- M3 + M4 reading ---------------- */
.reading { padding: 22px 0 26px; }

.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 414px;
  gap: 28px;
  align-items: start;
}

.col-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.col-head h2 {
  position: relative;
  font-size: 24px;
  padding-left: 13px;
  line-height: 1.2;
}
.col-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 3px;
  width: 3px;
  background: var(--green);
}
.col-head p { font-size: 12.5px; color: var(--muted); }

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pick-card { min-width: 0; }

.pick-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pick-link .thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-1);
  background: #e6e7e1;
  margin-bottom: 13px;
}
.pick-link .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pick-link:hover .thumb img { transform: scale(1.035); }

.pick-link h3 {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 9px;
  transition: color 0.16s ease;
}
.pick-link:hover h3 { color: var(--green-dark); }

.pick-link p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 13px;
}

.pick-link .meta {
  display: flex;
  align-items: center;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--muted-light);
}
.pick-cat {
  display: inline-block;
  padding: 3px 8px;
  margin-right: 2px;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* latest column */
.latest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 13px 16px 11px;
}
.latest-head h2 {
  font-size: 19px;
  margin-bottom: 3px;
}
.latest-head p {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--green-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}
.text-link svg { width: 13px; height: 13px; }
.text-link:hover { border-color: currentColor; }
.latest-head .text-link { margin-top: 6px; }

.latest-list { margin-top: 7px; }
.latest-list li { border-bottom: 1px solid #efede6; }
.latest-list li:last-child { border-bottom: 0; }

.latest-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  padding: 5px 0;
  transition: background 0.16s ease;
}
.latest-list a:hover .latest-text { color: var(--green-dark); }

.latest-tag {
  grid-column: 1;
  grid-row: 1;
  margin-top: 1px;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}
.latest-list .dot { order: 3; display: none; }
.latest-list time {
  grid-column: 3;
  grid-row: 1;
  padding-top: 2px;
  flex: none;
  font-size: 10.5px;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}
.latest-text {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}

.tag-gear { background: #e7efe8; color: #2f6544; }
.tag-guide { background: #f6ead2; color: #886023; }
.tag-pack { background: #e5edf6; color: #31587e; }
.tag-jacket { background: #f2e8e2; color: #8a5236; }
.tag-camp { background: #ece8f2; color: #5b517c; }

.latest-more { margin-top: 5px; }

/* ---------------- M5 method ---------------- */
.method {
  background: var(--bg-soft);
  padding: 16px 0 16px;
}
.method .band-head { margin-bottom: 9px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  position: relative;
  background: var(--surface-soft);
  border: 1px solid #e6e2d7;
  border-radius: var(--r-1);
  padding: 10px 12px 11px;
}
.step::before {
  content: attr(data-no);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.step h3 { font-size: 15px; margin-bottom: 5px; }
.step p { font-size: 11px; line-height: 1.55; color: var(--muted); }

/* ---------------- M6 questions ---------------- */
.questions {
  background: var(--bg);
  padding: 22px 0 22px;
}

.band-head-inline { margin-bottom: 14px; }

.q-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.q-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 13px 15px 14px;
}
.q-icon { width: 30px; height: 30px; color: var(--green); margin-bottom: 12px; }
.q-card h3 { font-size: 15px; margin-bottom: 6px; }
.q-card p { font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---------------- M7 start ---------------- */
.start {
  position: relative;
  overflow: hidden;
  color: #f2f4ee;
  background: #213b35;
}

.start-bg {
  position: absolute;
  inset: 0;
  background: url("../images/band-sunset.jpg") 18% 42% / cover no-repeat;
}

.start::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 30, 32, 0.02) 0%, rgba(12, 30, 32, 0.18) 38%, rgba(12, 30, 32, 0.86) 68%, rgba(12, 30, 32, 0.94) 100%);
}

.start-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 760px;
  padding: 22px 0;
  min-height: 246px;
  align-items: center;
}

.start-content {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head cta"
    "list list";
  align-items: start;
  gap: 10px 24px;
  padding-left: 20px;
}

.start-head { grid-area: head; }
.start-list { grid-area: list; }
.start-cta { grid-area: cta; align-self: end; }

.start-kicker {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 8px;
}
.start-head h2 {
  color: #f7f6ee;
  font-size: clamp(28px, 2.6vw, 32px);
  line-height: 1.25;
}

.start-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}
.start-item {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 14px;
}
.start-item h3 {
  color: #f6f5ec;
  font-size: 14px;
  margin-bottom: 2px;
}
.start-item p {
  font-size: 11px;
  line-height: 1.58;
  color: rgba(242, 244, 238, 0.72);
}

.start-cta {
  justify-self: start;
  margin-top: 2px;
  height: 40px;
  background: #2f8a57;
  border-color: #2f8a57;
}
.start-cta:hover { background: #267347; border-color: #267347; }

/* ---------------- M8 footer ---------------- */
.site-footer {
  background: var(--green-dark);
  color: #e8ece5;
  padding-top: 34px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px 38px;
  padding-bottom: 28px;
}
.footer-grid > * { flex: 1 1 190px; min-width: 170px; }
.footer-grid > .footer-brand { flex: 1.5 1 260px; }

.brand-light { color: #f2f4ee; }
.brand-light .brand-name { font-size: 22px; }

.footer-brand p {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(232, 236, 229, 0.66);
  max-width: 250px;
}

.footer-col h2,
.footer-about h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(232, 236, 229, 0.5);
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(232, 236, 229, 0.86);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-col a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.footer-about a {
  display: block;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(232, 236, 229, 0.86);
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.footer-about a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.footer-icp { display: block; font-size: 12px; line-height: 1.9; color: rgba(232, 236, 229, 0.6); }
.footer-about p {
  font-size: 11.5px;
  line-height: 1.82;
  color: rgba(232, 236, 229, 0.64);
  margin-top: 10px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0 16px;
  font-size: 11.5px;
  color: rgba(232, 236, 229, 0.55);
}
.footer-bottom a { border-bottom: 1px solid transparent; }
.footer-bottom a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 13.5px; }
  .hero-inner { gap: 36px; }
  .reading-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .cat-grid { gap: 10px; }
  .cat-card { padding: 15px 12px 14px; min-height: 190px; }
  .cat-desc { font-size: 11.5px; }
}

@media (max-width: 1024px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; gap: 4px 18px; }
  .main-nav { display: flex; flex: 1 1 100%; flex-wrap: wrap; margin-left: 0; gap: 4px 18px; }
  .main-nav a { padding: 4px 0; }
  .nav-toggle { display: none !important; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-media { height: 320px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reading-grid { grid-template-columns: 1fr; }
  .latest { margin-top: 6px; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-inner { grid-template-columns: 1fr; }
  .start-content { grid-column: 1; padding-left: 0; grid-template-columns: 1fr; grid-template-areas: "head" "list" "cta"; }
  .footer-grid { flex-direction: column; }
  .footer-grid > * { flex: 1 1 auto; width: 100%; min-width: 0; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { height: auto; }
  .brand-name { font-size: 21px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); }
  .hero-lead br { display: none; }
  .hero-media { height: 260px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { min-height: 176px; }
  .cat-icon { width: 34px; height: 34px; margin-bottom: 8px; }
  .cat-name { font-size: 16px; }
  .pick-grid { grid-template-columns: 1fr; gap: 26px; }
  .pick-link .thumb { aspect-ratio: 16 / 9; }
  .band-head { flex-wrap: wrap; gap: 6px 12px; }
  .step-grid, .q-grid, .start-list { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .start-inner { padding: 26px 0 28px; }
  .latest { padding: 16px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
