/* =========================================================
   小禾山野 · website3
   山野有时，身体有应
   ========================================================= */

:root {
  --cream: #F6F1E6;
  --paper: #FBF7EE;
  --ink: #23211C;
  --ink-2: #565247;
  --ink-3: #8C8679;
  --green: #24382C;
  --clay: #A9684F;
  --line: rgba(35, 33, 28, .14);
  --line-light: rgba(246, 241, 230, .26);
  --pad: clamp(24px, 7vw, 120px);
  --maxw: 1160px;
  --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);
  --sec-y: clamp(80px, 9vw, 136px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(169, 104, 79, .2); }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .026;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* =========================================================
   顶部
   ========================================================= */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: rgba(246, 241, 230, .9);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.top.is-solid {
  background: rgba(246, 241, 230, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.top__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .24em;
}
.top__brand img { width: 24px; height: 24px; border-radius: 50%; opacity: .9; }
.top__nav { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.top__nav a {
  color: inherit;
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .22em;
  opacity: .82;
  transition: opacity .3s;
}
.top__nav a:hover { opacity: 1; }

/* =========================================================
   封面
   ========================================================= */
.cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1B2A22;
}
.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  animation: coverZoom 14s var(--ease) both;
}
@keyframes coverZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.cover__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(20, 28, 23, .18) 0%, rgba(20, 28, 23, .5) 100%),
    linear-gradient(180deg, rgba(20, 28, 23, .55) 0%, rgba(20, 28, 23, .18) 32%, rgba(20, 28, 23, .62) 100%);
}

.cover__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad);
  text-align: center;
  color: rgba(246, 241, 230, .72);
}
.cover__kicker {
  font-size: 9.5px;
  letter-spacing: .44em;
  text-indent: .44em;
  color: rgba(246, 241, 230, .72);
  margin-bottom: clamp(26px, 3.6vw, 44px);
}
.cover__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6.6vw, 92px);
  line-height: 1.38;
  letter-spacing: .08em;
  color: #F8F4EA;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .32);
}

.ornament {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: clamp(26px, 3.4vw, 40px) 0 clamp(16px, 2vw, 22px);
}
.ornament i { display: block; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.ornament b { display: block; width: 4px; height: 4px; background: var(--clay); transform: rotate(45deg); }

.cover__en {
  font-size: 8.5px;
  letter-spacing: .46em;
  text-indent: .46em;
  color: rgba(246, 241, 230, .58);
}

.cover__couplet {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(64px, 8vw, 96px);
  transform: translateX(-50%);
  width: 100%;
  padding: 0 var(--pad);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(12.5px, 1.1vw, 15px);
  line-height: 2.35;
  letter-spacing: .14em;
  color: rgba(246, 241, 230, .86);
}

.cover__side {
  position: absolute;
  z-index: 2;
  top: 50%;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: .34em;
  color: rgba(246, 241, 230, .5);
}
.cover__side--l { left: clamp(16px, 2.4vw, 32px); transform: translateY(-50%) rotate(180deg); }
.cover__side--r { right: clamp(16px, 2.4vw, 32px); transform: translateY(-50%); }

.cover__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: rgba(246, 241, 230, .45);
}

/* =========================================================
   通用排版
   ========================================================= */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 9.5px;
  letter-spacing: .34em;
  color: var(--ink-3);
}
.eyebrow span {
  position: relative;
  padding-left: 14px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--clay);
}
.eyebrow span::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 4px; height: 4px;
  background: currentColor;
}
.eyebrow--center {
  justify-content: center;
}

/* =========================================================
   01 时令
   ========================================================= */
.season {
  padding: var(--sec-y) var(--pad);
  background: var(--cream);
}
.season__grid {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.season__head { position: relative; }
.giant {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  font-family: var(--serif);
  font-size: clamp(120px, 15vw, 208px);
  line-height: .92;
  letter-spacing: .04em;
  color: var(--green);
  opacity: .92;
}
.vtext {
  margin-top: clamp(18px, 2.2vw, 28px);
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--ink-3);
  height: 120px;
}

.season__body { padding-top: clamp(6px, 1.4vw, 18px); }
.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 2;
  letter-spacing: .06em;
  color: var(--ink);
}
.para {
  max-width: 520px;
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: 13.5px;
  line-height: 2.3;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-align: justify;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(30px, 4vw, 48px);
}
.strip figure { margin: 0; }
.strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.9);
}
.strip figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: .28em;
  color: var(--ink-3);
}
.strip figcaption b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink);
}

/* =========================================================
   02 三支
   ========================================================= */
.three {
  padding: var(--sec-y) var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.three__head { text-align: center; }
.three__title {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: .18em;
  text-indent: .18em;
  color: var(--ink);
}
.three__en {
  margin-top: 14px;
  font-size: 8.5px;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--ink-3);
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.branch {
  position: relative;
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2.6vw, 38px) 0;
  border-right: 1px solid var(--line);
  text-align: center;
}
.branch:last-child { border-right: 0; }
.branch__no {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--clay);
}
.branch__cn {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--green);
}
.branch__py {
  font-size: 8px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--ink-3);
}
.branch__line {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: .06em;
  color: var(--ink);
}
.branch__list { margin-top: clamp(18px, 2.2vw, 26px); }
.branch__list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.branch__list li:last-child { border-bottom: 1px solid var(--line); }

.three__foot {
  margin-top: clamp(28px, 3.4vw, 42px);
  text-align: center;
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-3);
}

/* =========================================================
   03 药食同源
   ========================================================= */
.herbs { padding: var(--sec-y) 0 0; }
.herbs__head { text-align: center; padding: 0 var(--pad); }
.herbs__title {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: .24em;
  text-indent: .24em;
  color: var(--ink);
}
.herbs__en {
  margin-top: 12px;
  font-size: 8.5px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--ink-3);
}
.herbs__lead {
  margin-top: clamp(26px, 3.4vw, 40px);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.95;
  letter-spacing: .08em;
  color: var(--green);
}
.herbs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  margin-top: clamp(26px, 3.2vw, 36px);
}
.herbs__list li {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink);
}
.herbs__list i {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}

.herbs__fig {
  position: relative;
  margin: clamp(38px, 4.6vw, 60px) 0 0;
  overflow: hidden;
  height: clamp(300px, 52vw, 620px);
}
.herbs__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94);
}
.herbs__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 33, 28, 0) 60%, rgba(35, 33, 28, .28));
  pointer-events: none;
}
.herbs__fig figcaption {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: 22px;
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(251, 247, 238, .92);
}

.herbs__para {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sec-y) var(--pad) 0;
  font-size: 13.5px;
  line-height: 2.3;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-align: justify;
}

/* =========================================================
   04 小程序
   ========================================================= */
.mini {
  padding: var(--sec-y) var(--pad);
  background: var(--cream);
}
.mini__inner {
  position: relative;
  text-align: center;
  padding: clamp(34px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mini__title {
  margin-top: clamp(18px, 2.2vw, 26px);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.75;
  letter-spacing: .14em;
  color: var(--ink);
}
.mini__en {
  margin-top: 12px;
  font-size: 8px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--ink-3);
}

.mini__qr {
  position: relative;
  width: fit-content;
  margin: clamp(28px, 3.4vw, 40px) auto 0;
  padding: 18px;
}
.mini__qr img { width: 150px; height: 150px; }
.mini__cap {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-3);
}

.frame {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--ink-3);
  opacity: .6;
}
.frame--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* =========================================================
   页脚
   ========================================================= */
.footer {
  padding: clamp(40px, 5vw, 64px) var(--pad) 36px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.footer__name {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .24em;
}
.footer__en { font-size: 8px; letter-spacing: .34em; color: var(--ink-3); }
.footer__line { margin-top: 10px; font-size: 11px; letter-spacing: .16em; color: var(--ink-3); }
.footer__meta { text-align: right; font-size: 10.5px; line-height: 2.1; letter-spacing: .05em; color: var(--ink-3); }
.footer__meta .icp { color: var(--ink-3); text-decoration: none; transition: color .3s; }
.footer__meta .icp:hover { color: var(--clay); }

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

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
  .top { height: 60px; }
  .top__nav { gap: 16px; }
  .top__nav a { font-size: 10.5px; letter-spacing: .14em; }

  .cover__title { font-size: clamp(34px, 9.4vw, 56px); }
  .cover__side { display: none; }
  .cover__couplet { bottom: 58px; font-size: 11.5px; letter-spacing: .1em; }

  .season__grid { grid-template-columns: 1fr; gap: 26px; }
  .giant { font-size: clamp(96px, 30vw, 140px); margin-top: 18px; }
  .vtext { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .triptych { grid-template-columns: 1fr; border-top: 0; }
  .branch {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0 30px;
  }

  .herbs__fig { height: 300px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}

@media (max-width: 620px) {
  .top__nav { display: none; }
  .cover__scroll { display: none; }
  .strip { gap: 8px; }
}

@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; }
}
