/* ========== 自托管字体子集（用户在中国大陆，不依赖 Google Fonts） ========== */
@font-face {
  font-family: "Noto Serif SC";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/NotoSerifSC-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif SC";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/NotoSerifSC-700.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif SC";
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/NotoSerifSC-900.woff2") format("woff2");
}

/* ========== 设计令牌（与 miniapp app.less 同源 + app icon 荧光绿） ========== */
:root {
  --paper: #ECE6D8;
  --tray: #ECE6D7;
  --card-light: #E0D7BF;
  --ink: #211E17;
  --ink-2: #9B9075;
  --forest: #2C3626;
  --forest-deep: #232B1E;
  --olive: #6F7A4F;
  --clay: #B5613E;
  --gold: #B08D4F;
  --neon: #CFE820;
  --line: rgba(120, 98, 55, 0.18);
  --line-strong: rgba(33, 30, 23, 0.35);
  --line-card: #E0D9C8;
  --serif-cn: "Noto Serif SC", "Songti SC", "STZhongsong", "SimSun", serif;
  --mono: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  --sans-cn: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ========== 基础 ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(160deg, #EEEADD, #E6E0D2);
  color: var(--ink);
  font-family: var(--sans-cn);
  font-size: 16px;
  line-height: 1.75;
}
h1, h2, h3 { margin: 0; font-family: var(--serif-cn); }
p, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
section { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--olive);
  text-transform: uppercase;
}
.eyebrow-light { color: rgba(236, 230, 216, 0.55); }

/* 颗粒噪点 */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ========== 导航 ========== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-name {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--olive);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { opacity: 0.78; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--forest);
  color: var(--paper);
  padding: 8px 18px;
  border-radius: 999px;
  opacity: 1 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--forest-deep); }

/* ========== Hero ========== */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(46px, 7.5vw, 88px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
  margin: 18px 0 22px;
}
.hero-sub {
  font-size: 17px;
  max-width: 27em;
  color: var(--ink);
  opacity: 0.82;
}
.hero-note {
  margin-top: 30px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* 等高线氛围背景（深色区块用） */
.contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.contour-dark path { stroke: rgba(236, 230, 216, 0.1); stroke-width: 1.5; }

/* 等高线地形图 */
.hero-map-wrap { position: relative; }
.contour-map { width: 100%; height: auto; display: block; }
.c-line { stroke: rgba(111, 122, 79, 0.55); stroke-width: 1.75; }
.c-trail {
  stroke: var(--clay);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
}
.mono-svg {
  font-family: var(--mono);
  font-size: 12px;
  fill: #8C8576;
  stroke: none;
}
/* 描线绘入：唯一的编排动效 */
@media (prefers-reduced-motion: no-preference) {
  .c-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .c-line:nth-child(2) { animation-delay: 0.08s; }
  .c-line:nth-child(3) { animation-delay: 0.16s; }
  .c-line:nth-child(4) { animation-delay: 0.28s; }
  .c-line:nth-child(5) { animation-delay: 0.4s; }
  .c-line:nth-child(6) { animation-delay: 0.52s; }
  .c-line:nth-child(7) { animation-delay: 0.64s; }
  .c-line:nth-child(8) { animation-delay: 0.5s; }
  .c-line:nth-child(9) { animation-delay: 0.62s; }
  .c-trail { stroke-dashoffset: 300; animation: trail 0.9s ease 0.7s forwards; }
  .c-fade { opacity: 0; animation: fade 0.5s ease 1s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes trail { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* 营地吊牌（扫码卡） */
.tag-card {
  position: relative;
  width: 210px;
  background: var(--tray);
  border: 1px solid var(--line-card);
  border-radius: 14px;
  padding: 30px 20px 18px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(44, 54, 38, 0.16);
  transform: rotate(-2.5deg);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tag-card:hover { transform: rotate(0deg); }
.tag-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 2px rgba(33, 30, 23, 0.25);
}
.qr-img { width: 150px; height: 150px; margin: 8px auto 0; border-radius: 10px; }
/* 吊牌自持墨色：深色区（.cta）的浅色文字继承会与米色卡面同色 */
.tag-title { font-weight: 600; font-size: 15px; margin-top: 14px; color: var(--ink); }
.tag-sub { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-2); margin-top: 4px; }

/* 手机端：地图在上，吊牌居中 */
.tag-card { margin: -34px auto 0; }

/* ========== 图例（功能） ========== */
.legend { padding: 84px 0 92px; }
.legend h2,
.together h2,
.world h2,
.preview h2,
.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-top: 14px;
}
.legend-lead {
  font-family: var(--serif-cn);
  font-weight: 400;
  max-width: 40em;
  font-size: 16px;
  line-height: 2;
  margin-top: 20px;
}
.legend-panel {
  position: relative;
  margin-top: 44px;
  border: 1.5px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  border-radius: 4px;
}
.legend-label {
  position: absolute;
  top: -11px;
  left: 26px;
  background: #EBE5D7;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--olive);
}
.legend-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.legend-item {
  background: #EBE5D7;
  padding: 30px 28px 32px;
}
.legend-sym {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--forest);
  display: grid;
  place-items: center;
  color: var(--paper);
}
.legend-sym svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legend-item h3 { font-size: 19px; font-weight: 700; margin: 16px 0 6px; }
.legend-item p { font-size: 14px; opacity: 0.72; }

/* ========== 三个「一起」（深绿） ========== */
.together {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, var(--forest), var(--forest-deep));
  color: var(--paper);
  padding: 92px 0 96px;
}
.together-inner { position: relative; }
.together-grid { display: grid; gap: 36px; margin-top: 52px; }
.together-item {
  border-top: 1px solid rgba(236, 230, 216, 0.22);
  padding-top: 24px;
}
.together-item h3 {
  font-size: 22px;
  font-weight: 700;
}
.together-item h3 span { color: var(--neon); }
.together-item p { margin-top: 8px; font-size: 15px; opacity: 0.72; }

/* ========== 山野小世界 ========== */
.world { padding: 88px 0 92px; }
.world-lead {
  font-family: var(--serif-cn);
  font-weight: 400;
  max-width: 40em;
  font-size: 16px;
  line-height: 2.05;
  margin-top: 22px;
}

/* ========== 预览（深绿） ========== */
.preview {
  background: linear-gradient(175deg, var(--forest), var(--forest-deep));
  color: var(--paper);
  padding: 84px 0 92px;
}
.phone-row {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding: 8px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.phone { flex: none; scroll-snap-align: center; text-align: center; }
.phone:nth-child(odd) .phone-frame { transform: rotate(-1.6deg); }
.phone:nth-child(even) .phone-frame { transform: rotate(1.3deg); }
.phone .phone-frame { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.phone:hover .phone-frame { transform: rotate(0deg); }
.phone-frame {
  width: 190px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border: 1px solid rgba(236, 230, 216, 0.22);
  border-radius: 30px;
  padding: 9px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}
.phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(170deg, var(--paper), #E2DBC8);
  object-fit: cover;
  object-position: top;
}
.phone figcaption {
  font-size: 13px;
  color: rgba(236, 230, 216, 0.72);
  margin-top: 16px;
}
.phone figcaption .mono { color: var(--neon); font-size: 11px; margin-right: 6px; }
/* ========== 来信 ========== */
.letter { padding: 88px 0 96px; }
.letter-sheet {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: #F2EDE0;
  border: 1px solid var(--line-card);
  border-radius: 6px;
  padding: 56px 52px 48px;
  box-shadow: 0 20px 48px rgba(44, 54, 38, 0.1);
}
.letter-stamp {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 52px;
  height: 62px;
  border: 2px dashed var(--gold);
  border-radius: 3px;
  display: grid;
  place-items: center;
  transform: rotate(4deg);
  color: var(--forest);
}
.letter-stamp svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.letter-sheet h2 { margin-top: 12px; }
.letter-sheet p {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: 16px;
  line-height: 2.05;
  margin-top: 22px;
}
.letter-sheet p.letter-strong { font-weight: 700; }
.letter-together, .letter-flaws {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-family: var(--serif-cn);
  line-height: 2.05;
}
.letter-together li::before {
  content: "▲";
  font-size: 10px;
  color: var(--olive);
  margin-right: 12px;
  vertical-align: 1px;
}
.letter-flaws { opacity: 0.78; }
.letter-flaws li::before {
  content: "—";
  color: var(--gold);
  margin-right: 12px;
}
.letter-safety {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  opacity: 0.85;
}
.letter-sheet p.letter-sign {
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  margin-top: 32px;
}

/* ========== 结尾：山野见（深绿） ========== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0 100px;
  text-align: center;
  background: linear-gradient(175deg, var(--forest), var(--forest-deep));
  color: var(--paper);
}
.cta-inner { position: relative; }
.cta-lead {
  font-family: var(--serif-cn);
  font-weight: 400;
  max-width: 36em;
  margin: 0 auto 52px;
  font-size: 16px;
  line-height: 2.05;
  color: rgba(236, 230, 216, 0.82);
  text-align: left;
}
.cta h2 { font-size: clamp(40px, 6vw, 64px); margin-top: 12px; }
.cta-sub { font-size: 15px; opacity: 0.75; margin: 12px 0 44px; }
.tag-card-center { margin: 0 auto; }
.cta-hint { font-size: 13px; color: rgba(236, 230, 216, 0.55); margin-top: 36px; }

/* ========== 页脚 ========== */
.footer { background: var(--forest-deep); color: var(--paper); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 24px 44px;
  display: grid;
  gap: 28px;
}
.footer-brand { font-family: var(--serif-cn); font-weight: 700; font-size: 18px; }
.footer-brand em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(236, 230, 216, 0.5);
  margin-left: 10px;
}
.footer-coord { font-size: 11px; color: rgba(236, 230, 216, 0.45); margin-top: 6px; }
.footer-nav { display: flex; gap: 22px; font-size: 14px; }
.footer-nav a { opacity: 0.7; transition: opacity 0.2s; }
.footer-nav a:hover { opacity: 1; }
.footer-beian { margin-left: 14px; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy {
  font-size: 12px;
  opacity: 0.58; /* 备案号需清晰可见，故比常规页脚版权行略提 */
  border-top: 1px solid rgba(236, 230, 216, 0.14);
  padding-top: 20px;
}

/* ========== 响应式 ========== */
@media (max-width: 639px) {
  .nav { padding: 14px 16px; }
  .brand-name { font-size: 15px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a { white-space: nowrap; }
  .nav-cta { padding: 6px 13px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.22em; }
  .hero-inner { padding-top: 36px; }
  .hero-map-wrap { margin: 12px -24px 0; }
  .letter-sheet { padding: 44px 24px 36px; }
  .letter-stamp { top: 18px; right: 18px; width: 44px; height: 52px; }
}

@media (min-width: 640px) {
  .legend-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 64px 24px 96px;
  }
  .hero-map-wrap { align-self: stretch; display: flex; align-items: center; }
  .hero-map-wrap .tag-card {
    position: absolute;
    right: 8px;
    bottom: -12px;
    margin: 0;
  }
  .tag-card-center { margin: 0 auto; }
  .legend-grid { grid-template-columns: repeat(3, 1fr); }
  .together-grid { grid-template-columns: repeat(3, 1fr); }
  .phone-row { justify-content: center; overflow-x: visible; }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-copy { grid-column: 1 / -1; }
}
