/* =========================================================
   小禾山野 · 官方网站
   ========================================================= */

:root {
  --cream: #F7F4EE;
  --paper: #FBF9F5;
  --ink: #3E3A36;
  --text: #5C564F;
  --muted: #8A857E;
  --faint: #B6AFA4;
  --green: #2E4B3C;
  --green-deep: #22362B;
  --gold: #C9A876;
  --gold-deep: #B08F55;
  --line: #E4DDD1;
  --nav-h: 76px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad-x: clamp(24px, 6vw, 80px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

section[id] { scroll-margin-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸感颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(201, 168, 118, .3); }

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad-x);
  background: rgba(247, 244, 238, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(247, 244, 238, .95);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav__name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .22em;
  color: var(--green-deep);
}
.nav__en {
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: .34em;
  color: var(--gold-deep);
}

.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 4px 0;
  font-size: 13.5px;
  letter-spacing: .18em;
  color: #6B655D;
  text-decoration: none;
  transition: color .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .38s var(--ease);
}
.nav__links a:hover { color: var(--green-deep); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  flex: none;
  margin-left: clamp(8px, 2vw, 24px);
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #F4F0E8;
  font-size: 13px;
  letter-spacing: .16em;
  text-decoration: none;
  transition: background .35s, transform .35s;
}
.nav__cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  min-height: 100svh;
  background: var(--cream);
}
.hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 48px) var(--pad-x) 120px;
}
.hero__eyebrow {
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 1.12;
  letter-spacing: .2em;
  text-indent: .2em;
  color: var(--green-deep);
}
.rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 36px 0 34px;
  background: var(--gold);
}
.hero__quote {
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 2.15;
  letter-spacing: .14em;
  color: var(--text);
}
.hero__sub {
  margin-top: 46px;
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--muted);
}

.hero__media { position: relative; overflow: hidden; background: var(--green-deep); }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) both;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: clamp(14px, 1.8vw, 26px);
  border: 1px solid rgba(255, 255, 255, .22);
  pointer-events: none;
}
@keyframes heroZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.hero__hint {
  position: absolute;
  bottom: 46px;
  left: var(--pad-x);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}
.hero__hint:hover { color: var(--gold-deep); }
.hero__hint i {
  display: block;
  width: 1px;
  height: 38px;
  margin-left: 2px;
  background: var(--gold);
  transform-origin: top;
  animation: hintLine 2.6s ease-in-out infinite;
}
@keyframes hintLine {
  0%, 100% { transform: scaleY(.55); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* =========================================================
   通用区块
   ========================================================= */
.section {
  position: relative;
  padding: clamp(76px, 10vw, 150px) var(--pad-x);
}
.wrap { max-width: 1120px; margin: 0 auto; }

.section-head { text-align: center; }
.label {
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.section-title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.75;
  letter-spacing: .14em;
  color: var(--green-deep);
}
.section-sub {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--muted);
}

.para {
  font-size: 15.5px;
  line-height: 2.35;
  letter-spacing: .04em;
  text-align: justify;
  color: var(--text);
}
.para + .para { margin-top: 18px; }

/* =========================================================
   理念
   ========================================================= */
.idea {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.idea__body {
  max-width: 700px;
  margin: clamp(38px, 5vw, 58px) auto 0;
}
.idea__body .para { text-indent: 2em; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(52px, 7vw, 84px);
  background: var(--line);
  border: 1px solid var(--line);
}
.values > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.values.is-visible > * { opacity: 1; transform: none; }
.values.is-visible > *:nth-child(2) { transition-delay: .12s; }
.values.is-visible > *:nth-child(3) { transition-delay: .24s; }

.value {
  padding: clamp(30px, 3.4vw, 48px) clamp(20px, 2.4vw, 34px);
  background: var(--paper);
  text-align: center;
  transition: background .45s var(--ease);
}
.value:hover { background: var(--cream); }
.value__no {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--gold-deep);
}
.value__cn {
  margin: 16px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--green-deep);
}
.value__en {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .4em;
  color: var(--faint);
}
.value__desc {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--muted);
}

/* =========================================================
   山野五章
   ========================================================= */
.story { padding-bottom: clamp(60px, 8vw, 110px); }

.chapter {
  max-width: 720px;
  margin: clamp(64px, 8.5vw, 118px) auto 0;
  text-align: center;
}
.chapter__head { display: block; }
.chapter__no {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--gold-deep);
}
.chapter__title {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 33px);
  line-height: 1.7;
  letter-spacing: .16em;
  color: var(--green-deep);
}
.chapter__line {
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 16px;
  background: var(--gold);
}
.chapter__en {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .46em;
  color: var(--faint);
}

.quote { margin: clamp(38px, 4.6vw, 58px) 0 0; }
.quote__mark {
  display: block;
  margin-bottom: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1;
  color: rgba(201, 168, 118, .45);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 2.2;
  letter-spacing: .1em;
  color: #4A4540;
}

.chapter .para {
  max-width: 660px;
  margin: 34px auto 0;
  text-indent: 2em;
}

/* --- 伍 · 守护 --- */
.guard {
  position: relative;
  margin-top: clamp(80px, 11vw, 150px);
  margin-inline: calc(var(--pad-x) * -1);
  padding: clamp(84px, 12vw, 160px) var(--pad-x);
  overflow: hidden;
  background: var(--green-deep);
  text-align: center;
  isolation: isolate;
}
.guard__bg { position: absolute; inset: 0; z-index: -2; }
.guard__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .66;
  filter: saturate(.9) brightness(.95);
}
.guard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(24, 38, 30, .92) 0%, rgba(26, 42, 33, .62) 38%, rgba(24, 38, 30, .72) 62%, rgba(20, 32, 25, .94) 100%);
}
.guard__inner { max-width: 720px; margin: 0 auto; }
.guard .chapter__no { color: rgba(201, 168, 118, .95); }
.guard .chapter__title { color: #F4F0E8; }
.guard .chapter__line { background: rgba(201, 168, 118, .8); }
.guard .chapter__en { color: rgba(244, 240, 232, .45); }

.guard__quote {
  margin: clamp(38px, 4.4vw, 54px) 0 0;
}
.guard__quote p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 25px);
  line-height: 2.15;
  letter-spacing: .1em;
  color: #F4F0E8;
}
.guard .para {
  max-width: 620px;
  margin: 28px auto 0;
  text-indent: 2em;
  color: rgba(244, 240, 232, .74);
}

.guard__heart {
  margin-top: clamp(46px, 5.5vw, 64px);
  padding-top: clamp(36px, 4vw, 48px);
  border-top: 1px solid rgba(244, 240, 232, .16);
}
.guard__heart-main {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 2.05;
  letter-spacing: .1em;
  color: #F4F0E8;
}
.guard__heart-sub {
  max-width: 580px;
  margin: 24px auto 0;
  font-size: 13.5px;
  line-height: 2.2;
  color: rgba(244, 240, 232, .58);
}

/* =========================================================
   山野生活
   ========================================================= */
.life { background: var(--cream); }
.life__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 32px);
  margin-top: clamp(48px, 6vw, 72px);
}
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 3.6vw, 52px);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 168, 118, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 118, .7);
  box-shadow: 0 30px 60px -42px rgba(46, 75, 60, .55);
}
.card:hover::before { transform: scaleX(1); }
.card__idx {
  position: absolute;
  top: 10px; right: 22px;
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 1;
  color: rgba(201, 168, 118, .13);
  pointer-events: none;
}
.card__en {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--gold-deep);
}
.card__title {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1.8;
  letter-spacing: .1em;
  color: var(--green-deep);
}
.card__desc {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--text);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* =========================================================
   小程序二维码
   ========================================================= */
.mini {
  overflow: hidden;
  background: var(--green-deep);
  color: #F4F0E8;
}
.mini::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 118, .12), rgba(201, 168, 118, 0) 68%);
  pointer-events: none;
}
.mini__inner {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.label--light { color: rgba(201, 168, 118, .9); }
.mini__title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.8;
  letter-spacing: .14em;
  color: #F4F0E8;
}
.mini__desc {
  max-width: 460px;
  margin-top: 24px;
  font-size: 14.5px;
  line-height: 2.2;
  color: rgba(244, 240, 232, .68);
}
.mini__list { margin-top: 34px; }
.mini__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 13.5px;
  letter-spacing: .08em;
  color: rgba(244, 240, 232, .82);
}
.mini__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 7px; height: 7px;
  border: 1px solid rgba(201, 168, 118, .85);
  transform: rotate(45deg);
}

.qr-card {
  width: min(296px, 70vw);
  padding: 16px 16px 12px;
  background: var(--cream);
  box-shadow: 0 40px 80px -46px rgba(0, 0, 0, .75);
  text-align: center;
}
.qr-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FBF9F5;
  border: 1px dashed #D9D0C1;
  color: #B3A997;
}
.qr-frame.is-ready .qr-placeholder { display: none; }
.qr-placeholder__title {
  font-size: 13px;
  letter-spacing: .22em;
  color: #9A9186;
}
.qr-placeholder__hint {
  font-size: 10px;
  letter-spacing: .08em;
  color: #B6AFA4;
}
.qr-cap {
  margin: 12px 0 2px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: #6B655D;
}

/* =========================================================
   页脚
   ========================================================= */
.footer {
  padding: 56px var(--pad-x) 44px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.footer__name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .24em;
  color: var(--green-deep);
}
.footer__en {
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: .36em;
  color: var(--gold-deep);
}
.footer__slogan {
  max-width: 360px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--muted);
}
.footer__meta {
  text-align: right;
  font-size: 11.5px;
  line-height: 2.2;
  letter-spacing: .1em;
  color: #9A9186;
}
.footer__meta .icp {
  color: #9A9186;
  text-decoration: none;
  transition: color .3s;
}
.footer__meta .icp:hover { color: var(--gold-deep); }

/* =========================================================
   动效
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
  .nav { height: 64px; gap: 12px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; padding: 9px 18px; font-size: 12px; }
  .nav__logo { width: 34px; height: 34px; }
  .nav__name { font-size: 15px; }

  .hero {
    display: block;
    min-height: 100svh;
    background: var(--green-deep);
  }
  .hero__media { position: absolute; inset: 0; }
  .hero__media::after { inset: 18px; border-color: rgba(255, 255, 255, .18); }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20, 30, 24, .34) 0%, rgba(20, 30, 24, .2) 42%, rgba(23, 32, 26, .82) 100%);
  }
  .hero__text {
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px 150px;
  }
  .hero__eyebrow { color: rgba(255, 255, 255, .78); letter-spacing: .46em; font-size: 10px; }
  .hero__title {
    color: #fff;
    font-size: clamp(46px, 12vw, 64px);
    letter-spacing: .16em;
    text-indent: .16em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .28);
  }
  .rule { width: 40px; margin: 30px 0 28px; background: rgba(255, 255, 255, .7); }
  .hero__quote {
    font-size: clamp(15px, 3.9vw, 17px);
    line-height: 2.1;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  }
  .hero__sub { margin-top: 36px; font-size: 10.5px; color: rgba(255, 255, 255, .62); }
  .hero__hint {
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    flex-direction: column-reverse;
    gap: 12px;
    font-size: 10px;
    letter-spacing: .34em;
    text-indent: .34em;
    color: rgba(255, 255, 255, .68);
    white-space: nowrap;
  }
  .hero__hint i { width: 1px; height: 40px; background: rgba(255, 255, 255, .55); }

  .chapter { margin-top: clamp(56px, 12vw, 80px); }
  .chapter .para { text-align: justify; }

  .guard { margin-inline: calc(var(--pad-x) * -1); }

  .mini__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mini__desc { margin-inline: auto; }
  .mini__list { display: inline-block; text-align: left; }

  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}

@media (max-width: 700px) {
  .values { grid-template-columns: 1fr; }
  .life__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .qr-card { width: min(260px, 78vw); }
  .card__idx { font-size: 60px; }
}

/* 触屏设备取消悬停位移 */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
  .nav__cta:hover { transform: none; }
}

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