/* ============================================================
   Del Cavallo 网站样式表
   ------------------------------------------------------------
   这个文件控制网站的“外观”：颜色、字体、间距、布局、动画。
   【常用修改】
   - 换主色调：改下面 :root 里的 --olive / --olive-deep / --gold
   - 换页面背景色：改 --cream
   - 换标题字体：改 --serif（同时需修改 index.html 里的字体链接）
   改完保存后刷新网页即可生效。

   【图片说明】
   网页图片为 <img> 标签，统一套 .img-box（裁切容器）+ ratio-*（比例）。
   换图只需替换 assets/img/ 里的同名文件，比例由 class 控制：
     ratio-45 = 4:5 竖图   ratio-11 = 1:1 方图   ratio-34 = 3:4 竖图
   ============================================================ */

:root {
  --cream: #f6f1e7;          /* 页面背景：米白 */
  --cream-soft: #fbf8f1;     /* 浅一档背景 */
  --olive: #4a5a23;          /* 主色：橄榄绿 */
  --olive-deep: #2f3a16;     /* 深橄榄绿（页脚 / 深色区块） */
  --olive-soft: #7a8b4f;     /* 浅橄榄绿 */
  --ink: #2a2a22;            /* 正文文字色 */
  --muted: #6b6b5e;          /* 次要文字色 */
  --gold: #a98a45;           /* 点缀色：金（仅用于装饰线/圆点/边框，不用于文字） */
  --gold-ink: #85652b;       /* 金色文字专用：对米白底对比度约 4.8:1，达 WCAG AA */
  --gold-light: #d9c48a;     /* 浅金（深色底上使用） */
  --line: rgba(47, 58, 22, 0.16); /* 分隔线 */
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 24px 60px -24px rgba(47, 58, 22, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* 锚点跳转时避开固定导航 */
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--olive-deep);
  margin: 0;
}

::selection { background: var(--olive); color: var(--cream); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--olive-deep);
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

/* ============================================================
   阅读进度条（页面最顶部金色细线）
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--olive-soft));
}

/* ============================================================
   顶部导航栏
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  color: #f6f1e7; /* 首屏为深色大图，导航默认浅色字 */
  transition: background 0.4s ease, padding 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.9rem;
  color: var(--ink);
}

/* 品牌标志（橄榄叶 + 文字） */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  transition: transform 0.5s var(--ease-out);
  /* 轻微投影，保证在首屏大图上也清晰 */
  filter: drop-shadow(0 2px 8px rgba(20, 26, 10, 0.35));
}
.brand-mark circle { fill: currentColor; }
/* 叶片颜色与圆形底色错开：
   首屏（圆形为米白）用深绿叶片；滚动后（圆形为深色）用米白叶片 */
.brand-mark path { fill: var(--olive-deep); }
.site-header.scrolled .brand-mark path { fill: var(--cream); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* 导航链接 */
.site-nav { display: flex; gap: 2.2rem; }
.site-nav a {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding-block: 0.3rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.35s ease;
}
.site-nav a:hover::after { width: 100%; }

/* 手机端菜单按钮（默认隐藏，≤960px 显示；三条线 → 点击后变 ×） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto; /* 与语言按钮一起靠右 */
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.nav-toggle:hover { opacity: 1; }
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 语言切换按钮 */
.lang-switch { display: flex; gap: 0.4rem; }
.lang-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
  opacity: 1;
}

/* ============================================================
   首屏 Hero（全屏大图 + 缓慢推近 + 渐显文字）
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: #f6f1e7;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.16); }
}

/* 深色渐变遮罩，保证文字清晰可读 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(38, 46, 20, 0.5) 0%, rgba(38, 46, 20, 0.28) 42%, rgba(38, 46, 20, 0.68) 100%),
    radial-gradient(70% 55% at 50% 45%, rgba(38, 46, 20, 0.15), rgba(38, 46, 20, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 62rem;
  padding: 6rem 1.5rem 5rem;
}
/* 首屏文字依次浮起 */
.hero-content > * { animation: rise 1.1s var(--ease-out) both; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.26s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.85);
  margin-bottom: 1.8rem;
}

.hero-title {
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  color: #f6f1e7;
  line-height: 1;
  letter-spacing: 0.015em;
  margin-bottom: 1.6rem;
  text-shadow: 0 8px 40px rgba(20, 26, 10, 0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.9;
  color: rgba(246, 241, 231, 0.92);
  max-width: 36em;
  margin: 0 auto;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.75);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(246, 241, 231, 0.85), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   走马灯饰带（品牌关键词循环滚动）
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--olive-deep);
  color: rgba(246, 241, 231, 0.82);
  padding: 0.95rem 0;
  border-block: 1px solid rgba(246, 241, 231, 0.12);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   章节（图文板块）
   ============================================================ */
.chapter {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(5.5rem, 11vh, 9rem) clamp(1.25rem, 5vw, 4rem);
}
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.chapter-reversed .media-wrap { order: -1; } /* 图文左右互换 */

/* 小标题：金色短线 + 大写字距文字 */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.kicker-center { justify-content: center; }

.chapter-text h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  margin-bottom: 0.6rem;
}
.chapter-body {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--muted);
  max-width: 32em;
  margin-top: 1.4rem;
}

/* 数据亮点（如 100+ 年） */
.stat {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.stat-value {
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--olive);
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 12em;
}

/* ============================================================
   图片画框（金色描边偏移 + 悬停缓慢放大 + 说明标签）
   ============================================================ */
.frame {
  position: relative;
  margin: 0;
}
/* 偏移的金色细框（现代杂志风） */
.frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  pointer-events: none;
}
.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.img-box:hover img { transform: scale(1.05); }

/* 图片比例（换图时保持版式不塌） */
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-34 { aspect-ratio: 3 / 4; }

/* 图片左下角说明标签 */
.caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 0.45em 1.05em;
  background: rgba(246, 241, 231, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--olive-deep);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(47, 58, 22, 0.5);
}

/* ============================================================
   用心种植（深色引言带）
   ============================================================ */
.care {
  position: relative;
  overflow: hidden;
  background: var(--olive-deep);
  color: var(--cream);
  text-align: center;
  padding: clamp(6rem, 14vh, 9rem) 1.5rem;
}
.care::before {
  content: "“";
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 16rem;
  line-height: 1;
  color: rgba(246, 241, 231, 0.07);
  pointer-events: none;
}
.care-inner { position: relative; max-width: 46rem; margin: 0 auto; }
.kicker-light { color: var(--gold-light); }
.care-title {
  color: #f6f1e7;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 0.4rem 0 1.8rem;
}
.care-quote {
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.92);
  border: none;
}

/* ============================================================
   风味卡片
   ============================================================ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.6rem 2rem;
  margin-top: 2.6rem;
}
.note {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.note-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  transition: color 0.3s ease;
}
.note-name::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.note:hover .note-name { color: var(--olive); }
.note-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   联系我们
   ============================================================ */
.contact {
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  padding: clamp(6rem, 12vh, 9rem) 1.5rem;
  text-align: center;
}
.contact-inner { max-width: 46rem; margin: 0 auto; }
.contact-body { margin-left: auto; margin-right: auto; }

.contact-rows {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 2.5rem 4.5rem;
  margin: 3.2rem 0 0;
}
.contact-row dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.45rem;
}
.contact-row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--olive-deep);
}
.contact-link {
  color: var(--olive-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.contact-link:hover { color: var(--olive); }

.cta {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 2.4rem;
  background: var(--olive-deep);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.cta:hover {
  background: var(--olive);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(47, 58, 22, 0.5);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-top: 2.6rem;
}
.socials a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.socials a:hover { color: var(--olive-deep); border-color: var(--gold); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--olive-deep);
  color: rgba(246, 241, 231, 0.78);
  padding: 4rem clamp(1.25rem, 5vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 3rem;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-brand .brand-name {
  display: block;
  color: #f6f1e7;
  margin-bottom: 0.6rem;
}
.footer-tagline { font-size: 0.92rem; max-width: 24em; }
.footer-nav { display: grid; gap: 0.7rem; }
.footer-nav a {
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  width: fit-content;
}
.footer-nav a:hover { color: #f6f1e7; }
.footer-lang { align-self: start; }
.footer-rights {
  max-width: 1240px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 231, 0.15);
  font-size: 0.78rem;
  color: rgba(246, 241, 231, 0.55);
}

/* ============================================================
   回到顶部按钮
   ============================================================ */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive-deep);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--olive-deep); color: var(--cream); }

/* ============================================================
   滚动显现动画（章节内元素依次浮起）
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* 文字块内部逐条浮现（错落感） */
.chapter-text.reveal > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.chapter-text.reveal.visible > * { opacity: 1; transform: none; }
.chapter-text.reveal.visible > *:nth-child(1) { transition-delay: 0.05s; }
.chapter-text.reveal.visible > *:nth-child(2) { transition-delay: 0.14s; }
.chapter-text.reveal.visible > *:nth-child(3) { transition-delay: 0.23s; }
.chapter-text.reveal.visible > *:nth-child(4) { transition-delay: 0.32s; }

/* ============================================================
   产品页（products.html）
   ============================================================ */
/* 当前页面对应的导航项高亮 */
.site-nav a.current::after { width: 100%; }

/* 页面头部（深色饰带：与全站深色区块一致，同时保证导航浅色字可读） */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--olive-deep);
  color: var(--cream);
  padding: clamp(7rem, 16vh, 10rem) 1.5rem clamp(3.5rem, 8vh, 5rem);
  text-align: center;
}
/* 标题背后的装饰圆环（居中，不压到导航栏） */
.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 82vw);
  height: min(460px, 82vw);
  border: 1px solid rgba(246, 241, 231, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 46rem; margin: 0 auto; }
.page-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #f6f1e7;
  margin: 0.4rem 0 1.2rem;
}
.page-intro {
  font-size: 1.08rem;
  line-height: 1.95;
  color: rgba(246, 241, 231, 0.85);
  max-width: 34em;
  margin: 0 auto;
}

/* ============================================================
   家族根源与全球分支（老照片画廊）
   三张老照片比例不同（竖/横/竖）：采用「等高横排」版式——
   图片高度统一、宽度按各自比例自然展开，整组居中，
   既保留老照片的原始构图，又让画廊整齐美观。
   ============================================================ */
.roots {
  background: var(--cream-soft);
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 5vw, 4rem);
}
.roots-inner { max-width: 1320px; margin: 0 auto; }
.roots-head {
  max-width: 46rem;
  margin: 0 auto clamp(3rem, 6vh, 4.5rem);
  text-align: center;
}
.roots-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.18;
  color: var(--olive-deep);
  margin-top: 0.6rem;
}
.roots-body {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--muted);
}

/* 画廊：flex 横排 + 禁止换行（三张照片永远并排一行）+ 整体居中 */
.roots-gallery {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.roots-photo {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* 关键：弹性增长系数 = 各照片的宽高比（691/1100、1100/779、763/1100）。
   宽度按比例分配 → 三张照片高度严格相等；卡纸边距用百分比，
   同样按比例缩放，不会破坏等高 */
.roots-photo:nth-child(1) { flex: 0.628 1 0; }
.roots-photo:nth-child(2) { flex: 1.412 1 0; }
.roots-photo:nth-child(3) { flex: 0.694 1 0; }
/* 老照片装裱效果：白色卡纸边（百分比，随图宽缩放）+ 轻投影 */
.roots-frame {
  background: #ffffff;
  padding: 3% 3% 3.6%;
  box-shadow: 0 18px 40px -22px rgba(47, 58, 22, 0.35);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.roots-photo:hover .roots-frame {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px -22px rgba(47, 58, 22, 0.42);
}
.roots-frame img {
  display: block;
  width: 100%;
  height: auto;
}
/* 说明文字：居中显示 */
.roots-photo figcaption { padding-top: 1.15rem; text-align: center; }
.roots-photo-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--olive-deep);
}
.roots-photo-desc {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* 平板 / 手机：单列纵排，图片恢复自然比例 */
@media (max-width: 960px) {
  .roots-gallery { flex-direction: column; align-items: center; }
  .roots-photo { width: 100%; max-width: 30rem; flex: 0 0 auto; }
  .roots-frame img { height: auto; width: 100%; }
  .roots-photo figcaption { text-align: center; }
}

/* 产品区 */
.products {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 5vw, 4rem);
}

/* 产品大图版式（所有产品统一）：左图右文。
   文本列比图片列宽——产品文案较长时右侧不会明显高过图片，版面更平衡 */
.product-featured {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
/* 多个产品纵向排列时的间距 */
.product-featured + .product-featured {
  margin-top: clamp(4rem, 9vh, 6rem);
}
.product-type {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.product-name {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin-top: 0.8rem;
}
.product-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--olive);
  margin-top: 0.7rem;
}
.product-desc {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--muted);
  margin-top: 1.2rem;
}
/* 多段落产品描述的段间距 */
.product-desc + .product-desc { margin-top: 0.9rem; }
/* 采收批次行（限量 / 编号 / 批次等信息）：金色小徽章，位于详细介绍与参数表之间 */
.product-release {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.5em 1.2em;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(169, 138, 69, 0.07);
  color: var(--gold-ink);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem 2rem;
  margin: 1.8rem 0 0;
}
.detail-row {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.2rem;
}
.detail-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--olive-deep);
}
.product-cta { margin-top: 2rem; }

/* 桌面端：图片列随右栏文字等高拉伸（object-fit: cover 仅裁掉白底照片的少量留白），
   左图右文完全对齐，文案再长也不会高过图片；移动端单列时不适用 */
@media (min-width: 961px) {
  .product-featured { align-items: stretch; }
  .product-featured .img-box { height: 100%; }
  .product-featured .img-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
}

/* 订购咨询条（深色） */
.order-strip {
  background: var(--olive-deep);
  color: var(--cream);
  text-align: center;
  padding: clamp(4.5rem, 10vh, 7rem) 1.5rem;
}
.order-inner { max-width: 40rem; margin: 0 auto; }
.order-body {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.92);
  margin: 1rem auto 0;
  max-width: 26em;
}
.order-strip .cta {
  background: var(--cream);
  color: var(--olive-deep);
  margin-top: 2.4rem;
}
.order-strip .cta:hover {
  background: var(--gold-light);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}
.order-contact {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(246, 241, 231, 0.75);
}
.order-contact .contact-link {
  color: #f6f1e7;
  border-color: var(--gold);
}
.order-contact .contact-link:hover { color: var(--gold-light); }

/* ============================================================
   响应式（手机 / 平板）
   ============================================================ */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  /* 导航变为下拉面板：默认隐藏，点击汉堡按钮后 .open 显示 */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem clamp(1.25rem, 5vw, 2rem) 1.1rem;
    background: rgba(246, 241, 231, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 40px -18px rgba(47, 58, 22, 0.35);
    color: var(--ink);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a::after { display: none; } /* 面板内不用下划线动画 */
  .site-nav a.current { color: var(--olive); font-weight: 600; } /* 当前页提示 */
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-reversed .media-wrap { order: 0; }
  .contact-rows { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .product-featured { grid-template-columns: 1fr; }
  .frame::before { inset: 10px -10px -10px 10px; }
}

@media (max-width: 640px) {
  .notes-grid { grid-template-columns: 1fr; }
  .lang-btn { padding: 0.32rem 0.55rem; font-size: 0.68rem; }
  .brand-name { font-size: 1.15rem; }
  .hero-title { letter-spacing: 0; }
  .socials { gap: 1.4rem; }
  .stat-value { font-size: 2.8rem; }
  .caption { font-size: 0.64rem; }
}

/* 减少动态效果（照顾系统设置了“减弱动态效果”的访客） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .chapter-text.reveal > * { opacity: 1; transform: none; transition: none; }
  .hero-content > * { animation: none; }
  .hero-bg { animation: none; }
  .marquee-track { animation: none; }
  .scroll-line { animation: none; }
  .brand-mark, .cta, .to-top, .img-box img { transition: none; }
}

/* ============================================================
   访问密码门（私密预览）
   未解锁时整站内容不可见；解锁后 <html> 移除 gate-locked 类即可显示。
   上线公开前按 README 说明整段删除。
   ============================================================ */
.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;
}
/* 默认（未锁定）不显示门；锁定状态下覆盖全屏 */
.gate { display: none; }
html.gate-locked body { overflow: hidden; }
html.gate-locked body > *:not(.gate) { visibility: hidden; }
html.gate-locked .gate { display: flex; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--cream);
  overflow-y: auto;
}
.gate-box {
  width: 100%;
  max-width: 26rem;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.gate-brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--olive-deep);
}
.gate-rule {
  width: 3rem;
  height: 1px;
  margin: 1.15rem auto 1.5rem;
  background: var(--gold);
}
.gate-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.gate-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--olive-deep);
  margin-top: 0.55rem;
}
.gate-text {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}
.gate-field { margin-top: 1.7rem; }
.gate-field input {
  width: 100%;
  padding: 0.85em 1em;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}
.gate-field input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.gate-field .cta {
  width: 100%;
  margin-top: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
}
.gate-field .cta:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
.gate-error {
  margin-top: 1.05rem;
  font-size: 0.85rem;
  color: #a23a2a;
}
.gate-shake { animation: gate-shake 0.4s var(--ease-out); }
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-shake { animation: none; }
}
