/*
Theme Name: 徐茶 XU CHA
Theme URI: https://xucha.example.com
Author: 徐茶（西双版纳）茶业有限公司
Description: 西双版纳普洱茶品牌官网主题。一山一叶，自有来处。支持电脑与手机端自适应，内置茶品管理、NFC 批次溯源、留言表单。
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: xucha
*/

/* =====================================================
   设计令牌（取自原设计）
   ===================================================== */
:root {
  --moss: #1F3A2E;
  --moss-deep: #16291F;
  --moss-soft: #2C4C3D;
  --paper: #F5F1E8;
  --paper-muted: #EDE5D5;
  --paper-soft: #FAF7F0;
  --line: #D9D2C2;
  --line-strong: #BFB6A1;
  --gold: #B08A55;
  --gold-soft: #C9A772;
  --ink: #2B2B28;
  --ink-muted: #6E6A60;
  --ink-faint: #8C877C;
  --on-dark: #F3EEE1;
  --on-dark-muted: #C9C2B0;
  --cinnabar: #9C3A2E;
  --tea-brown: #6B4A34;
  --shadow-lift: 0 18px 40px -24px rgba(31, 58, 46, .35);
  --font-serif: "LXGW Neo ZhiSong", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --container-wide: 1360px;
}

/* =====================================================
   基础
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .03em;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
input, textarea, select { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; width: 100%; outline: none; transition: border-color .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--moss); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* 布局容器 */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) {
  .container { padding: 0 80px; }
  .container-wide { padding: 0 80px; }
}

/* 通用小元素 */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .28em; color: var(--gold);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--gold); flex-shrink: 0; }
.eyebrow--line::before { width: 32px; height: 1px; }
.eyebrow--on-dark { color: var(--gold-soft); }
.eyebrow--on-dark::before { background: var(--gold-soft); }
.eyebrow--cinnabar::before { background: var(--cinnabar); }

.section-h2 {
  margin-top: 16px;
  font-size: 26px; line-height: 1.4;
}
.section-desc {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 16px; line-height: 1.85; color: var(--ink-muted);
}
@media (min-width: 768px) {
  .section-h2 { font-size: 36px; }
  .section-desc { font-size: 17px; }
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px;
  font-size: 14px; letter-spacing: .1em;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--moss); color: var(--on-dark); }
.btn-primary:hover { background: var(--moss-soft); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(243, 238, 225, .1); }
.hero__actions .btn-outline { color: var(--on-dark); }
@media (min-width: 768px) { .hero__actions .btn-outline { color: var(--ink); } }
.btn-outline-dark { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { border-color: var(--moss); color: var(--moss); }

/* 文字链接（下划线式） */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: .1em; color: var(--moss);
}
.link-arrow .link-arrow-text { border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: border-color .25s; }
.link-arrow:hover .link-arrow-text { border-color: var(--moss); }
.link-arrow svg { transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--gold { color: var(--gold-soft); }
.link-arrow--gold .link-arrow-text { border-color: rgba(176, 138, 85, .6); }
.link-arrow--gold:hover .link-arrow-text { border-color: var(--gold-soft); }

/* 滚动显现动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .52s ease-out, transform .52s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   顶部导航
   ===================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background-color .3s, border-color .3s;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand__cn { font-family: var(--font-serif); font-size: 20px; letter-spacing: .08em; color: var(--ink); }
.brand__en { display: none; font-size: 10px; letter-spacing: .32em; color: var(--ink-faint); }
@media (min-width: 640px) { .brand__en { display: inline; } }
@media (min-width: 768px) { .brand__cn { font-size: 24px; } }

.site-nav { display: none; align-items: center; gap: 36px; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  position: relative; padding: 8px 0;
  font-size: 14px; letter-spacing: .08em;
  color: var(--ink-muted); transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--ink); }
.site-nav .current-menu-item > a { color: var(--ink); }
.site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-header__cta { display: none; }
@media (min-width: 1024px) { .site-header__cta { display: inline-flex; height: 44px; padding: 0 24px; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: none; border: none; cursor: pointer; color: var(--ink);
  padding: 0;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* 手机全屏菜单 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(22, 41, 31, .97);
  color: var(--on-dark);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 20px;
  border-bottom: 1px solid rgba(243, 238, 225, .12);
}
.mobile-menu__brand { font-family: var(--font-serif); font-size: 20px; letter-spacing: .08em; }
.mobile-menu__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: none; border: none;
  color: var(--on-dark); cursor: pointer; padding: 0;
}
.mobile-menu__nav { display: flex; flex-direction: column; margin-top: 56px; padding: 0 20px; }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(243, 238, 225, .12);
  font-family: var(--font-serif); font-size: 26px; letter-spacing: .06em;
  color: var(--on-dark);
}
.mobile-menu__nav a:active { color: var(--gold-soft); }
.mobile-menu__nav .num { font-size: 12px; letter-spacing: .2em; color: var(--gold-soft); }
.mobile-menu__foot { margin-top: auto; padding: 24px 20px 40px; font-size: 12px; letter-spacing: .18em; color: var(--on-dark-muted); }

/* =====================================================
   首页 · 英雄区
   ===================================================== */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  background: var(--moss-deep);
}
.hero__media {
  position: absolute; inset: 0; z-index: -10;
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 66% 42%;
  transform-origin: 62% 50%;
}
@media (min-width: 768px) { .hero__media img { object-position: 62% 50%; } }
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--moss-deep), rgba(22, 41, 31, .55), rgba(22, 41, 31, .2));
}
@media (min-width: 768px) {
  .hero__overlay {
    background: linear-gradient(to right, rgba(22, 41, 31, .7), rgba(22, 41, 31, .15), transparent);
  }
}
.hero__canvas { position: absolute; inset: 0; pointer-events: none; }
.hero__canvas canvas { display: block; width: 100%; height: 100%; }

.hero__content {
  position: relative; z-index: 10;
  display: flex; flex: 1; flex-direction: column; justify-content: flex-end;
  padding: 104px 20px 80px;
}
@media (min-width: 768px) {
  .hero__content { justify-content: center; padding: 104px 80px 96px; }
}
.hero__card { width: 100%; }
@media (min-width: 768px) {
  .hero__card {
    max-width: 560px;
    border: 1px solid rgba(217, 210, 194, .7);
    background: var(--paper);
    padding: 56px;
    box-shadow: var(--shadow-lift);
  }
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .24em; color: var(--gold-soft);
}
.hero__eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
@media (min-width: 768px) { .hero__eyebrow { color: var(--tea-brown); } }
.hero__title {
  margin-top: 20px;
  color: var(--on-dark);
  font-size: 44px; line-height: 1.3; letter-spacing: .02em;
}
@media (min-width: 768px) {
  .hero__title { margin-top: 24px; color: var(--ink); font-size: 48px; line-height: 1.3; }
}
.hero__title span { display: block; }
.hero__desc {
  margin-top: 18px;
  max-width: 40ch;
  color: var(--on-dark-muted);
  font-size: 16px; line-height: 1.85;
}
@media (min-width: 768px) { .hero__desc { margin-top: 22px; color: var(--ink-muted); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
@media (min-width: 768px) { .hero__actions { margin-top: 40px; } }
.hero__scroll {
  position: absolute; right: 20px; bottom: 32px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; color: var(--on-dark-muted);
  writing-mode: vertical-rl;
  animation: hero-scroll 2.6s ease-in-out infinite;
}
@media (min-width: 768px) { .hero__scroll { right: 80px; } }
@keyframes hero-scroll {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-zoom 16s ease-out forwards; }
  .hero__title span { animation: hero-line .52s ease-out both; }
  .hero__title span:nth-child(2) { animation-delay: .12s; }
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes hero-line { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none !important; }
  .hero__scroll { animation: none !important; }
}

/* =====================================================
   区块通用
   ===================================================== */
.band { padding: 64px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .band { padding: 96px 0; } }
.band--muted { background: var(--paper-muted); }
.band--soft { background: var(--paper-soft); }
.band--moss { background: var(--moss); }
.band--dark { background: var(--moss-deep); }
.band--moss .section-h2, .band--dark .section-h2 { color: var(--on-dark); }
.band--moss .section-desc, .band--dark .section-desc { color: var(--on-dark-muted); }
.band__head {
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 768px) {
  .band__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.band__head-main { flex: 1; }
.band__head .link-arrow { flex-shrink: 0; }

/* =====================================================
   关于横幅
   ===================================================== */
.about-band { text-align: center; }
.about-band .eyebrow { justify-content: center; }
.about-band__statement {
  margin: 24px auto 0;
  max-width: 30ch;
  font-family: var(--font-serif);
  font-size: 22px; line-height: 1.6; letter-spacing: .02em;
}
.about-band__lead {
  margin: 20px auto 0;
  max-width: 42ch;
  font-size: 16px; line-height: 1.9; color: var(--ink-muted);
}
.about-band__sub {
  margin: 16px auto 0;
  max-width: 42ch;
  font-size: 14px; line-height: 1.9; color: var(--ink-faint);
}
.about-band .link-arrow { margin-top: 32px; }
@media (min-width: 768px) {
  .about-band__statement { font-size: 28px; }
  .about-band__lead { font-size: 17px; }
  .about-band__sub { font-size: 15px; }
}

/* =====================================================
   茶品体系（左文右三图）
   ===================================================== */
.system-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 1024px) {
  .system-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 48px; }
}
.system-list { border-top: 1px solid var(--line); }
.system-list a {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.system-list a:hover { background: rgba(217, 210, 194, .18); }
.system-list h3 { font-size: 22px; letter-spacing: .05em; }
.system-list p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-muted); max-width: 34ch; }
.system-list svg { flex-shrink: 0; margin-top: 8px; color: var(--gold); transition: transform .25s; }
.system-list a:hover svg { transform: translateX(4px); }
.system-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.system-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-muted); }
.system-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease-out;
}
.system-card:hover img { transform: scale(1.05); }
.system-card span {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 13px; letter-spacing: .14em; color: var(--on-dark);
  text-shadow: 0 1px 8px rgba(22, 41, 31, .55);
}

/* =====================================================
   产品卡
   ===================================================== */
.product-scroll {
  display: flex; gap: 16px;
  margin: 40px -20px 0; padding: 0 20px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }
.product-scroll .product-card {
  width: 76vw; flex-shrink: 0; scroll-snap-start: snap start;
}
@media (min-width: 640px) {
  .product-scroll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; overflow: visible; }
  .product-scroll .product-card { width: auto; }
}
@media (min-width: 1024px) {
  .product-scroll { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(217, 210, 194, .8);
  background: var(--paper-soft);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(156, 58, 46, .4); box-shadow: var(--shadow-lift); }
.product-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-muted); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease-out; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  font-size: 11px; letter-spacing: .14em;
  color: var(--on-dark); background: rgba(22, 41, 31, .78);
}
.product-card__view {
  position: absolute; right: 12px; bottom: 12px;
  padding: 5px 12px;
  font-size: 11px; letter-spacing: .12em;
  color: var(--ink); background: rgba(245, 241, 232, .92);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.product-card:hover .product-card__view { opacity: 1; transform: translateY(0); }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.product-card__body h3 { font-size: 18px; letter-spacing: .04em; }
.product-card__spec { font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); }
.product-card__note { margin-top: 6px; font-size: 13px; line-height: 1.75; color: var(--ink-muted); }

/* 产品中心筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.filter-btn {
  height: 40px; padding: 0 20px;
  font-size: 13px; letter-spacing: .12em;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-muted);
  cursor: pointer; transition: all .25s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-muted); }
.filter-btn.is-active { background: var(--moss); border-color: var(--moss); color: var(--on-dark); }
.filter-count { margin-left: auto; align-self: center; font-size: 13px; letter-spacing: .1em; color: var(--ink-faint); }

/* =====================================================
   NFC 溯源
   ===================================================== */
.trace-grid { display: grid; gap: 40px; margin-top: 0; }
@media (min-width: 1024px) {
  .trace-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
}
.nfc-visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(ellipse at center, var(--moss-soft) 0%, var(--moss-deep) 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.nfc-visual__rings { position: relative; width: 150px; height: 210px; }
.nfc-visual__rings::before, .nfc-visual__rings::after {
  content: ""; position: absolute; inset: -28px;
  border: 1px solid rgba(201, 167, 114, .3); border-radius: 50%;
}
.nfc-visual__rings::after { inset: -60px; border-color: rgba(201, 167, 114, .16); }
.nfc-visual__phone {
  position: relative; width: 110px; height: 190px;
  border: 1.5px solid rgba(243, 238, 225, .75); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.nfc-visual__wave { color: var(--gold-soft); }
@media (prefers-reduced-motion: no-preference) {
  .nfc-visual__rings::before { animation: nfc-pulse 2.6s ease-out infinite; }
  .nfc-visual__rings::after { animation: nfc-pulse 2.6s ease-out .8s infinite; }
}
@keyframes nfc-pulse {
  0% { transform: scale(.82); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.06); opacity: 0; }
}
.nfc-visual__label { font-size: 11px; letter-spacing: .3em; color: var(--gold-soft); }
.trace-steps { display: grid; gap: 24px; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 28px; }
@media (min-width: 768px) { .trace-steps { grid-template-columns: repeat(3, 1fr); } }
.trace-step__num { font-size: 12px; letter-spacing: .22em; color: var(--gold); }
.trace-step h3 { margin-top: 10px; font-size: 19px; }
.trace-step p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-muted); }

.trace-query {
  margin-top: 36px;
  padding: 24px;
  background: var(--paper-muted); border: 1px solid var(--line);
}
.trace-query__title { font-size: 13px; letter-spacing: .18em; color: var(--ink-muted); }
.trace-query__form { display: flex; gap: 10px; margin-top: 14px; }
.trace-query__form input { flex: 1; height: 48px; background: var(--paper-soft); }
.trace-query__note { margin-top: 12px; font-size: 12px; color: var(--ink-faint); line-height: 1.7; }
.trace-result {
  margin-top: 16px; padding: 18px;
  border: 1px solid var(--line-strong); background: var(--paper-soft);
  font-size: 14px; line-height: 1.9;
}
.trace-result--miss { border-color: rgba(156, 58, 46, .5); color: var(--cinnabar); }
.trace-result h4 { font-size: 17px; }
.trace-result .row { display: flex; gap: 12px; }
.trace-result .row b { flex-shrink: 0; font-weight: 600; color: var(--moss); }
@media (min-width: 768px) { .trace-query__form input { height: 48px; } }
.trace-notes { margin-top: 28px; display: grid; gap: 10px; }
.trace-notes p { font-size: 13px; color: var(--ink-faint); display: flex; gap: 8px; }
.trace-notes p::before { content: "·"; color: var(--gold); }

/* 大页头（子页面通用） */
.page-hero { padding: 150px 0 64px; border-bottom: 1px solid var(--line); background: var(--paper-muted); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero__title { margin-top: 20px; font-size: 34px; line-height: 1.35; }
.page-hero__desc { margin: 18px auto 0; max-width: 52ch; font-size: 16px; line-height: 1.9; color: var(--ink-muted); }
@media (min-width: 768px) {
  .page-hero { padding: 190px 0 88px; }
  .page-hero__title { font-size: 42px; }
  .page-hero__desc { font-size: 17px; }
}

/* =====================================================
   工序（图文轮播）
   ===================================================== */
.journey-grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 1024px) {
  .journey-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; margin-top: 48px; }
}
.journey-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-muted); }
.journey-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.journey-media img.is-active { opacity: 1; transform: scale(1); }
.journey-media__index {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 12px; letter-spacing: .22em; color: var(--on-dark);
  text-shadow: 0 1px 8px rgba(22, 41, 31, .6);
}
.journey-media__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(243, 238, 225, .25); }
.journey-media__bar i { display: block; height: 100%; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; }
.journey-media__bar i.is-running { animation: journey-fill 4.2s linear forwards; }
@keyframes journey-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .journey-media__bar i { display: none; } }

.journey-steps { display: flex; flex-direction: column; }
.journey-step {
  display: flex; align-items: flex-start; gap: 16px; width: 100%;
  padding: 14px 0 14px 16px; text-align: left;
  border: none; border-left: 2px solid var(--line); background: none;
  cursor: pointer; transition: border-color .25s, background-color .25s;
}
.journey-step:hover { border-left-color: var(--line-strong); }
.journey-step.is-active { border-left-color: var(--gold); background: rgba(217, 210, 194, .22); }
.journey-step__num { flex-shrink: 0; font-size: 12px; letter-spacing: .18em; color: var(--gold); padding-top: 5px; }
.journey-step__text { display: block; flex: 1; }
.journey-step__title { display: block; font-family: var(--font-serif); font-size: 17px; font-weight: 400; letter-spacing: .04em; color: var(--ink); }
.journey-step__desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.75; color: var(--ink-muted); }

/* =====================================================
   产地横幅（深色大图）
   ===================================================== */
.origin-band {
  position: relative; isolation: isolate;
  min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
}
.origin-band__bg { position: absolute; inset: 0; z-index: -10; }
.origin-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.origin-band__bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(22, 41, 31, .28);
}
.origin-band__card {
  width: 100%;
  background: rgba(31, 58, 46, .92);
  color: var(--on-dark);
  padding: 40px 28px;
}
.origin-band__card .section-h2 { color: var(--on-dark); }
.origin-band__card .section-desc { color: var(--on-dark-muted); }
.origin-band__card .btn { margin-top: 28px; }
@media (min-width: 768px) {
  .origin-band__card { width: 400px; margin-left: 80px; padding: 48px 44px; }
}
@media (min-width: 1024px) {
  .origin-band__card { position: absolute; left: 80px; top: 50%; transform: translateY(-50%); margin-left: 0; }
}

/* =====================================================
   品牌故事横幅
   ===================================================== */
.story-band { padding-bottom: 64px; }
@media (min-width: 768px) { .story-band { padding-bottom: 112px; } }
.story-grid { display: grid; align-items: center; gap: 40px; }
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
}
.story-grid__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-muted); }
.story-grid__img img { width: 100%; height: 100%; object-fit: cover; }
.story-grid__text { border-left: 1px solid rgba(107, 74, 52, .5); padding-left: 24px; }
@media (min-width: 768px) { .story-grid__text { padding-left: 40px; } }
.story-grid__text .section-h2 { margin-top: 16px; }
.story-grid__text .section-desc { max-width: 42ch; }
.story-grid__text .link-arrow { margin-top: 32px; }
@media (min-width: 1024px) {
  .story-grid__img { order: 1; }
  .story-grid__text { order: 2; }
}

/* =====================================================
   联系区块
   ===================================================== */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
}
.contact-info { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; display: grid; gap: 14px; }
.contact-info p { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-muted); }
.contact-info svg { color: var(--gold); flex-shrink: 0; }
.contact-info b { color: var(--ink); font-weight: 500; }
.contact-info .link-arrow { margin-top: 8px; }
.contact-card {
  padding: 28px 24px;
  background: var(--paper-soft); border: 1px solid var(--line);
}
@media (min-width: 768px) { .contact-card { padding: 40px; } }
.contact-card h3 { font-size: 20px; }
.contact-card__hint { margin-top: 8px; font-size: 14px; color: var(--ink-muted); line-height: 1.8; }
.form-row { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 12px; letter-spacing: .16em; color: var(--ink-muted); margin-bottom: 8px; }
.form-field textarea { min-height: 120px; resize: vertical; }
.contact-card__foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.contact-card__foot small { font-size: 12px; color: var(--ink-faint); }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status--ok { color: var(--moss); }
.form-status--err { color: var(--cinnabar); }

/* =====================================================
   页脚
   ===================================================== */
.site-footer { background: var(--moss-deep); color: var(--on-dark); }
.site-footer__rule { height: 1px; background: rgba(176, 138, 85, .25); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  padding: 48px 0 36px;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.05fr; gap: 40px; padding: 80px 0 72px; }
}
.footer-brand { grid-column: span 2; text-align: center; }
@media (min-width: 768px) { .footer-brand { grid-column: auto; text-align: left; } }
.footer-brand__cn { font-family: var(--font-serif); font-size: 24px; letter-spacing: .08em; }
.footer-brand__en { margin-top: 8px; font-size: 10px; letter-spacing: .34em; color: var(--gold-soft); }
.footer-brand__desc { margin: 16px auto 0; max-width: 26ch; font-size: 14px; line-height: 1.95; color: var(--on-dark-muted); }
@media (min-width: 768px) { .footer-brand__desc { margin: 24px 0 0; max-width: 24ch; line-height: 1.9; } }
.footer-brand__tag { display: none; align-items: center; gap: 8px; margin-top: 20px; font-size: 11px; letter-spacing: .14em; color: var(--gold-soft); }
@media (min-width: 768px) { .footer-brand__tag { display: inline-flex; } }
.footer-brand__tag::before { content: ""; width: 4px; height: 4px; background: var(--gold-soft); }
.footer-col__title { font-size: 11px; letter-spacing: .24em; color: var(--gold-soft); }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; }
@media (min-width: 768px) { .footer-col ul { margin-top: 20px; gap: 12px; } }
.footer-col a { font-size: 14px; color: var(--on-dark); transition: color .2s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col dl { margin-top: 16px; display: grid; gap: 12px; }
.footer-col dt { font-size: 11px; letter-spacing: .2em; color: var(--on-dark-muted); }
.footer-col dd { margin: 4px 0 0; font-size: 14px; }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.8; margin-top: 16px; }
.site-footer__bottom {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(243, 238, 225, .12);
  font-size: 12px; color: var(--on-dark-muted);
}
@media (min-width: 768px) {
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__bottom .slogan { color: var(--gold-soft); letter-spacing: .1em; }

/* =====================================================
   产品详情页
   ===================================================== */
.tea-single { padding: 130px 0 80px; }
@media (min-width: 768px) { .tea-single { padding: 170px 0 112px; } }
.tea-single__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .tea-single__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.tea-single__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-muted); }
.tea-single__img img { width: 100%; height: 100%; object-fit: cover; }
.tea-single__cat { display: inline-block; padding: 4px 12px; font-size: 11px; letter-spacing: .16em; color: var(--on-dark); background: var(--moss); }
.tea-single h1 { margin-top: 16px; font-size: 32px; line-height: 1.35; }
@media (min-width: 768px) { .tea-single h1 { font-size: 40px; } }
.tea-single__spec { margin-top: 12px; font-size: 14px; letter-spacing: .1em; color: var(--ink-faint); }
.tea-single__desc { margin-top: 20px; font-size: 16px; line-height: 2; color: var(--ink-muted); }
.tea-meta { margin-top: 28px; border-top: 1px solid var(--line); }
.tea-meta__row { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tea-meta__row dt { flex-shrink: 0; width: 76px; color: var(--ink-faint); letter-spacing: .12em; }
.tea-meta__row dd { margin: 0; color: var(--ink); }
.tea-single__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.tea-breadcrumb { font-size: 13px; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 24px; }
.tea-breadcrumb a:hover { color: var(--ink); }
.tea-single__batch { margin-top: 20px; padding: 16px 18px; background: var(--paper-muted); border: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.tea-single__batch b { color: var(--moss); letter-spacing: .08em; }

/* =====================================================
   故事 / 产地 长页区块
   ===================================================== */
.story-hero { position: relative; isolation: isolate; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; }
.story-hero__bg { position: absolute; inset: 0; z-index: -10; }
.story-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.story-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,41,31,.78), rgba(22,41,31,.15)); }
.story-hero__content { padding: 48px 0 40px; color: var(--on-dark); }
.story-hero__content .page-hero__desc { color: var(--on-dark-muted); }
.story-hero__content h1 { font-size: 32px; line-height: 1.35; }
@media (min-width: 768px) { .story-hero__content h1 { font-size: 44px; } }
.prose { max-width: 720px; }
.prose p { margin-top: 18px; font-size: 16px; line-height: 2; color: var(--ink-muted); }
.prose p:first-child { margin-top: 0; }
.prose blockquote {
  margin: 28px 0 0; padding: 4px 0 4px 24px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif); font-size: 20px; line-height: 1.7; color: var(--ink);
}
.value-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { padding: 28px 24px; border: 1px solid var(--line); background: var(--paper-soft); }
.value-card h3 { font-size: 19px; }
.value-card p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--ink-muted); }
.timeline { margin-top: 40px; border-top: 1px solid var(--line); }
.timeline__item { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline__item h3 { font-size: 18px; }
.timeline__item h3::before { content: "— "; color: var(--gold); }
.timeline__item p { font-size: 14px; line-height: 1.85; color: var(--ink-muted); }
@media (min-width: 768px) {
  .timeline__item { grid-template-columns: 220px 1fr; gap: 24px; }
}
.origin-region { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) {
  .origin-region { grid-template-columns: 1fr 1fr; gap: 56px; }
  .origin-region--flip .origin-region__img { order: 2; }
}
.origin-region__img { aspect-ratio: 9 / 7; overflow: hidden; background: var(--paper-muted); }
.origin-region__img img { width: 100%; height: 100%; object-fit: cover; }
.origin-region__num { font-size: 12px; letter-spacing: .22em; color: var(--gold); }
.origin-region h3 { margin-top: 10px; font-size: 24px; }
.origin-region__tagline { margin-top: 8px; font-size: 14px; letter-spacing: .08em; color: var(--tea-brown); }
.origin-region p.desc { margin-top: 14px; font-size: 15px; line-height: 1.95; color: var(--ink-muted); }
.origin-region .link-arrow { margin-top: 20px; }
.craft-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 640px) { .craft-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1024px) { .craft-grid { grid-template-columns: repeat(3, 1fr); } }
.craft-card { border: 1px solid var(--line); background: var(--paper-soft); }
.craft-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-muted); }
.craft-card__img img { width: 100%; height: 100%; object-fit: cover; }
.craft-card__body { padding: 20px; }
.craft-card__num { font-size: 12px; letter-spacing: .22em; color: var(--gold); }
.craft-card h3 { margin-top: 8px; font-size: 18px; }
.craft-card p { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--ink-muted); }
.shengshu-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 768px) { .shengshu-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.shengshu-card { padding: 32px 28px; border: 1px solid var(--line); background: var(--paper-muted); }
.shengshu-card--dark { background: var(--moss); border-color: var(--moss); color: var(--on-dark); }
.shengshu-card h3 { font-size: 24px; }
.shengshu-card__path { margin-top: 16px; font-size: 13px; letter-spacing: .06em; line-height: 2; color: var(--tea-brown); }
.shengshu-card--dark .shengshu-card__path { color: var(--gold-soft); }
.shengshu-card p { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--ink-muted); }
.shengshu-card--dark p { color: var(--on-dark-muted); }

/* 联系页扩展 */
.contact-page-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-page-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.contact-detail { border-top: 1px solid var(--line); margin-top: 28px; }
.contact-detail__row { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-detail__row dt { font-size: 12px; letter-spacing: .2em; color: var(--ink-faint); }
.contact-detail__row dd { margin: 0; font-size: 16px; }
.contact-detail__row dd small { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.contact-aside { padding: 28px 24px; background: var(--paper-muted); border: 1px solid var(--line); }
@media (min-width: 768px) { .contact-aside { padding: 36px; } }
.contact-aside h3 { font-size: 20px; }
.contact-aside p { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--ink-muted); }
.contact-aside hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.contact-banner { background: var(--moss); color: var(--on-dark); }
.contact-banner .eyebrow { color: var(--gold-soft); }
.contact-banner .section-h2 { color: var(--on-dark); }
.contact-banner p.desc { margin-top: 16px; max-width: 46ch; font-size: 16px; line-height: 1.9; color: var(--on-dark-muted); }

/* =====================================================
   404 / 兜底
   ===================================================== */
.error-404 { padding: 160px 0 120px; text-align: center; }
.error-404 h1 { font-size: 40px; }
.error-404 p { margin-top: 16px; color: var(--ink-muted); }
.error-404 .btn { margin-top: 28px; }
