/* ============================================================
   惠香柚園 官方網站 — 樣式表
   配色靈感：文旦果皮的青綠、果肉的蜜黃、麻豆的土壤與晨霧
   ============================================================ */

/* ---------- 1. 設計 token ---------- */
:root {
  /* 主色：柚葉綠 */
  --green-900: #1d3524;
  --green-800: #24422c;
  --green-700: #2f5738;
  --green-600: #3d6f47;
  --green-500: #4f8a57;
  --green-300: #9dc4a2;
  --green-100: #e3efe4;

  /* 副色：文旦蜜黃 */
  --gold-600: #b8862f;
  --gold-500: #d9a441;
  --gold-400: #e8bd63;
  --gold-100: #f7ecd4;

  /* 品牌色（取自 logo）*/
  --brand-green: #8fc120;
  --brand-yellow: #fdf003;

  /* 中性 */
  --ink-900: #1a1c17;
  --ink-700: #3c4038;
  --ink-500: #6b7065;
  --ink-300: #a8ada2;
  --paper: #fbf8f1;
  --paper-alt: #f4efe3;
  --white: #ffffff;

  /* 版面 */
  --maxw: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;

  /* 陰影 */
  --shadow-s: 0 1px 3px rgba(29, 53, 36, .07), 0 1px 2px rgba(29, 53, 36, .04);
  --shadow-m: 0 8px 24px rgba(29, 53, 36, .09), 0 2px 6px rgba(29, 53, 36, .05);
  --shadow-l: 0 20px 48px rgba(29, 53, 36, .14), 0 4px 12px rgba(29, 53, 36, .06);

  /* 字體 */
  --font-serif: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. 基礎重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-700);
  background: var(--paper);
  letter-spacing: .02em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--green-900);
  line-height: 1.35;
  letter-spacing: .04em;
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 3. 版面工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--tint { background: var(--paper-alt); }
.section--deep { background: var(--green-900); color: var(--green-100); }
.section--deep h2, .section--deep h3 { color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.section--deep .eyebrow { color: var(--gold-400); }

.section-title { font-size: clamp(1.75rem, 4.2vw, 2.7rem); margin-bottom: .5em; }
.section-lead { font-size: clamp(1rem, 1.8vw, 1.12rem); color: var(--ink-500); margin: 0; }
.section--deep .section-lead { color: var(--green-300); }

/* ---------- 4. 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .9em 1.9em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green-700); color: var(--white); box-shadow: var(--shadow-m); }
.btn--primary:hover { background: var(--green-800); color: var(--white); box-shadow: var(--shadow-l); }

.btn--gold { background: var(--gold-500); color: var(--green-900); box-shadow: var(--shadow-m); }
.btn--gold:hover { background: var(--gold-400); color: var(--green-900); box-shadow: var(--shadow-l); }

.btn--messenger { background: #0084FF; color: #fff; box-shadow: var(--shadow-m); }
.btn--messenger:hover { background: #0072db; color: #fff; box-shadow: var(--shadow-l); }

.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--green-300); }
.btn--ghost:hover { background: var(--green-100); color: var(--green-900); border-color: var(--green-500); }

.section--deep .btn--ghost { color: var(--green-100); border-color: rgba(255,255,255,.35); }
.section--deep .btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* 主視覺是深色底，ghost 按鈕要用淺色，否則深綠字幾乎看不見 */
.hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border-color: rgba(255,255,255,.8);
}

.btn__icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- 5. 頁首導覽 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: box-shadow .3s var(--ease);
}
/* 底色與毛玻璃畫在 ::before，不要直接掛在 .site-header 上。
   backdrop-filter 會讓該元素變成 position:fixed 子孫的 containing block，
   一旦掛在頁首，捲動後（.is-stuck）手機選單的 inset:0 就會從「整個視窗」
   縮成「頁首那 76px 高的一條」，選單整個跑版。 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 248, 241, 0);
  transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-s); }
.site-header.is-stuck::before {
  background: rgba(251, 248, 241, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  position: relative;   /* 疊在 ::before 的底色之上 */
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: .7rem; }
/* logo 是直式的（約 312×399），所以用高度控制、寬度自動，比例才不會被壓扁 */
.brand__mark { height: 46px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: .1em;
  transition: color .3s var(--ease);
}
.brand__tag {
  font-size: .66rem;
  letter-spacing: .3em;
  color: var(--ink-500);
  text-transform: uppercase;
  transition: color .3s var(--ease);
}

.site-header:not(.is-stuck) .brand__name { color: var(--white); }
.site-header:not(.is-stuck) .brand__tag { color: rgba(255,255,255,.75); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-700);
  padding-block: .4em;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--green-800); font-weight: 700; }

.site-header:not(.is-stuck) .nav__link { color: rgba(255,255,255,.9); }
.site-header:not(.is-stuck) .nav__link:hover,
.site-header:not(.is-stuck) .nav__link.is-active { color: var(--white); }

.nav__cta { display: none; }
@media (min-width: 1024px) { .nav__cta { display: inline-flex; padding: .7em 1.5em; font-size: .9rem; } }

/* 漢堡鈕 */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease), background-color .3s var(--ease);
}
.nav__toggle span + span { margin-top: 6px; }
.site-header:not(.is-stuck) .nav__toggle span { background: var(--white); }
/* 選單展開時底下是米白色的全螢幕選單，關閉鈕一律用深色。
   兩條選擇器都要寫：第二條是為了蓋過上面 :not(.is-stuck) 的白色。 */
.nav__toggle[aria-expanded="true"] span,
.site-header:not(.is-stuck) .nav__toggle[aria-expanded="true"] span {
  background: var(--green-900);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 0;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.3rem; font-family: var(--font-serif); }
  .site-header:not(.is-stuck) .nav__menu .nav__link { color: var(--ink-700); }
  body.nav-open { overflow: hidden; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(217,164,65,.42), transparent 58%),
    radial-gradient(110% 80% at 12% 82%, rgba(79,138,87,.55), transparent 60%),
    linear-gradient(155deg, #24422c 0%, #1d3524 45%, #14251a 100%);
}
/* 果園紋理：柚葉輪廓的柔和光斑 */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(232,189,99,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(232,189,99,.12) 0 3px, transparent 4px),
    radial-gradient(circle at 45% 85%, rgba(157,196,162,.14) 0 2px, transparent 3px);
  background-size: 180px 180px, 260px 260px, 200px 200px;
  opacity: .8;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,37,26,.55) 0%, rgba(20,37,26,.15) 40%, rgba(20,37,26,.7) 100%);
}

/* 注意：這裡不能設 max-width，會覆寫 .wrap 的 1160px 讓整塊 hero 置中、
   與導覽列的品牌對不齊。要限寬請對內部元素設。 */
.hero__inner { padding-block: 9rem 5rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .45em 1.1em;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .82rem;
  letter-spacing: .12em;
  margin-bottom: 1.6rem;
}
.hero__badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(232,189,99,.8);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(232,189,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,189,99,0); }
}

.hero__title {
  max-width: 40rem;
  font-size: clamp(2.4rem, 7.5vw, 4.4rem);
  color: var(--white);
  line-height: 1.22;
  letter-spacing: .06em;
  margin-bottom: .5em;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.hero__title em {
  font-style: normal;
  color: var(--gold-400);
  display: block;
}
.hero__lead {
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: rgba(255,255,255,.9);
  max-width: 34rem;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  letter-spacing: .25em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: drift 2.2s var(--ease) infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(8px); opacity: .25; }
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ---------- 7. 產季公告條 ---------- */
.notice {
  background: var(--green-800);
  color: var(--green-100);
  padding-block: 1.4rem;
}
.notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.notice__text { display: flex; align-items: center; gap: .8rem; font-size: .98rem; }
.notice__text strong { color: var(--gold-400); font-weight: 700; }
.notice__icon { width: 1.4rem; height: 1.4rem; flex: none; color: var(--gold-400); }

.countdown-wrap { display: flex; align-items: center; gap: .9rem; }
.countdown__title {
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--green-300);
  white-space: nowrap;
}
.countdown { display: flex; gap: .7rem; }
.countdown__cell {
  min-width: 62px;
  padding: .5rem .6rem;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,.08);
  text-align: center;
  line-height: 1.25;
}
.countdown__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: .68rem; letter-spacing: .18em; color: var(--green-300); }

/* 手機把標題和四格數字疊成兩行。
   橫排時「距最後收單還有」(105px) + 四格(每格最少 62px) + 間距 ≈ 400px，
   但 390px 寬的手機扣掉左右留白只剩 351px，「秒」那一格會被
   body 的 overflow-x:hidden 直接裁掉。 */
@media (max-width: 560px) {
  .countdown-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    width: 100%;
  }
  .countdown { gap: .45rem; }
  .countdown__cell { min-width: 0; flex: 1; padding: .5rem .3rem; }
}

/* ---------- 8. 特色 ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 560px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
.feature { text-align: center; }
.feature__icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
}
.section--deep .feature__icon { background: rgba(255,255,255,.09); color: var(--gold-400); }
.feature__icon svg { width: 30px; height: 30px; }
.feature__title { font-size: 1.15rem; margin-bottom: .5em; }
.feature__desc { font-size: .95rem; color: var(--ink-500); margin: 0; }
.section--deep .feature__desc { color: var(--green-300); }

/* ---------- 9. 產品卡 ---------- */
/* 欄數：1 → 2 → 3 → 4，依可用寬度往上加。
   3 欄時四個一組會變成「3 + 1」，第四張落單 —— 這是空間利用與整齊度的取捨，
   想改回「放不下四欄就直接 2×2」的話，把下面 860px 那段拿掉即可。 */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 560px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .products { grid-template-columns: repeat(4, 1fr); }
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(29,53,36,.08);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }
/* 卡片視覺：外箱照片 + 疊在上面的「顆數」。
   用多重背景，照片排在漸層前面 —— 照片還沒放進 assets/img/ 時 url() 會載入失敗，
   瀏覽器自動往下退到漸層色塊，畫面不會開天窗。把照片丟進去就自動生效，不用改程式。
   10 台斤裝走綠階、20 台斤裝走金階，果實由大到小顏色漸淺；惜福品用暖褐。
   外箱照片用 cover 填滿圖片區。照片是白底的，所以顆數字自己帶一層深色膠囊底，
   不然白字會消失在白底上。
   A3／A4 用 box-10.jpg，B 系列與惜福品用 box-20.jpg；
   A1／A2 的外箱還沒確認，先獨立成 box-10-a12.jpg，跟 A3／A4 同款的話複製一份即可。 */
.product__media--g1 { background: url("../img/box-10-a12.jpg") center/cover no-repeat, linear-gradient(150deg, #2f5738, #24422c); }
.product__media--g2 { background: url("../img/box-10-a12.jpg") center/cover no-repeat, linear-gradient(150deg, #3d6f47, #2f5738); }
.product__media--g3 { background: url("../img/box-10.jpg") center/cover no-repeat, linear-gradient(150deg, #4f8a57, #3d6f47); }
.product__media--g4 { background: url("../img/box-10.jpg") center/cover no-repeat, linear-gradient(150deg, #6ba173, #4f8a57); }

.product__media--y1 { background: url("../img/box-20.jpg") center/cover no-repeat, linear-gradient(150deg, #b8862f, #96691f); }
.product__media--y2 { background: url("../img/box-20.jpg") center/cover no-repeat, linear-gradient(150deg, #cc9436, #b8862f); }
.product__media--y3 { background: url("../img/box-20.jpg") center/cover no-repeat, linear-gradient(150deg, #d9a441, #c08f31); }
.product__media--y4 { background: url("../img/box-20.jpg") center/cover no-repeat, linear-gradient(150deg, #e8bd63, #d0a03f); }

.product__media--n1 { background: url("../img/box-20.jpg") center/cover no-repeat, linear-gradient(150deg, #8d7a5e, #6d5d45); }

/* 由下往上的漸層：白色顆數字壓在上面，白底照片也吃不掉它。
   上半部幾乎全透明，照片本身不會變暗。 */
.product__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, .28) 72%,
    rgba(0, 0, 0, .58) 100%);
}
.product__grain, .product__flag { position: relative; z-index: 1; }

.product__media svg { width: 42%; height: auto; opacity: .9; }

/* 顆數：放在圖片區左下角，靠下方那道漸層把白字托住 —— 
   不用加框或膠囊，照片和色塊底下都讀得清楚。 */
.product__grain {
  position: absolute;
  left: .95rem;
  bottom: .7rem;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .16em;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 12px rgba(0, 0, 0, .35);
}
.product__grain b {
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.product__grain b i {
  font-style: normal;
  font-size: .48em;
  opacity: .82;
  margin: 0 .04em;
}
.product__grain span { font-size: .85rem; opacity: .92; }

.product__flag {
  position: absolute;
  top: .9rem; left: .9rem;
  padding: .28em .75em;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--green-800);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  box-shadow: var(--shadow-s);
}

/* 庫存告急的標籤：用暖紅底才看得出急迫感，白底綠字會被當成一般說明 */
.product__flag--low {
  background: #b4442a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .45em;
}
.product__flag--low::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd9a0;
  box-shadow: 0 0 0 0 rgba(255, 217, 160, .9);
  animation: pulse 2.4s infinite;
}

.product__body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product__name { font-size: 1.12rem; margin-bottom: .3em; }
.product__spec {
  font-size: .77rem;
  color: var(--gold-600);
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: .75em;
}
.product__desc { font-size: .87rem; line-height: 1.75; color: var(--ink-500); margin-bottom: 1.1em; }

.product__meta {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px dashed rgba(29,53,36,.15);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
}
.product__price {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--green-800);
}
.product__price small { font-size: .7rem; font-weight: 400; color: var(--ink-500); letter-spacing: .1em; }
.product__unit { font-size: .78rem; color: var(--ink-500); }

/* 依斤數分組：10 台斤裝、20 台斤裝、惜福品 */
.product-group + .product-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.product-group__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .9rem;
  font-size: 1.22rem;
  margin-bottom: 1.3rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(29, 53, 36, .14);
}
.product-group__title span {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-500);
}

/* 只有一張卡的分組（惜福品）：別讓它撐滿整行，維持跟其他卡差不多的寬度 */
.products--single { grid-template-columns: minmax(0, 260px); }

.price-note {
  margin-top: 2.5rem;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--gold-500);
  background: var(--gold-100);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .92rem;
  color: var(--ink-700);
}
.price-note strong { color: var(--green-800); }

/* ---------- 10. 故事區 ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) { .story { grid-template-columns: 1.05fr 1fr; } }

.story__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  background: linear-gradient(165deg, #3d6f47, #1d3524);
  display: grid;
  place-items: center;
}
.story__figure img { width: 100%; height: 100%; object-fit: cover; }
.story__figure svg { width: 50%; opacity: .55; }
/* 節氣輪是滿版資訊圖，不套上面的佔位圖尺寸 */
.story__figure svg.story__art { width: 100%; height: 100%; opacity: 1; display: block; }

.story__body p { font-size: 1.02rem; }
.story__quote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--green-800);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(29,53,36,.12);
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--green-700);
  line-height: 1.2;
}
.stat__num small { font-size: .55em; }
.stat__label { font-size: .82rem; color: var(--ink-500); letter-spacing: .06em; }

/* ---------- 11. 流程時間軸 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 3.6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}
.step::after {
  content: "";
  position: absolute;
  top: 1.35rem; left: 4rem; right: -1rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--green-300) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
@media (max-width: 780px) { .step::after { display: none; } }
.step__title { font-size: 1.1rem; margin-bottom: .45em; }
.step__desc { font-size: .93rem; color: var(--ink-500); margin: 0; }

/* ---------- 12. FAQ（原生 details，不依賴 JS） ---------- */
.faq { max-width: 48rem; margin-inline: auto; }

.faq__item { border-bottom: 1px solid rgba(29, 53, 36, .13); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem .2rem;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--green-900);
  cursor: pointer;
  list-style: none;                 /* 拿掉預設三角形 */
  transition: color .2s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--gold-600); }

.faq__sign {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: var(--gold-600);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0); }

.faq__a p {
  padding: 0 .2rem 1.5rem;
  font-size: .95rem;
  color: var(--ink-500);
  margin: 0;
}
.faq__item[open] .faq__a { animation: faqIn .32s var(--ease); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 13. 聯絡 ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; } }

.contact__list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact__row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact__row:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.contact__ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: var(--gold-400);
}
.contact__ico svg { width: 19px; height: 19px; }
.contact__k {
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--green-300);
  text-transform: uppercase;
  margin-bottom: .15rem;
}
.contact__v { font-size: 1.02rem; color: var(--white); line-height: 1.6; }
.contact__v a { color: var(--white); border-bottom: 1px solid rgba(232,189,99,.5); }
.contact__v a:hover { color: var(--gold-400); border-color: var(--gold-400); }

.contact__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.map {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  background: var(--green-800);
  min-height: 380px;
  position: relative;
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; background: var(--green-800); }
/* ---------- 14. 頁尾 ---------- */
.site-footer {
  background: #14251a;
  color: var(--green-300);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: .9rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__tag { color: var(--green-300); }

.social { display: flex; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--green-100);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }

.footer__bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  font-size: .82rem;
  color: rgba(157,196,162,.75);
}

/* ---------- 15. 浮動聯絡鈕 ---------- */
.fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.fab a {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-m);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab a:hover { transform: scale(1.08); box-shadow: var(--shadow-l); color: #fff; }
.fab svg { width: 25px; height: 25px; }
.fab__msg { background: #0084FF; }

/* ---------- 16. 進場動畫 ---------- */
/* 只有在 JS 正常運作時（<html class="js">）才把元素藏起來等進場動畫。
   若 JS 載入失敗或被封鎖，內容仍然完整可見，不會變成一片空白。 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ---------- 17. 無障礙 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  padding: .7em 1.4em;
  background: var(--green-800);
  color: #fff;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ---------- 18. 列印 ---------- */
@media print {
  .site-header, .fab, .hero__scroll, .map { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
