/* =========================================================
   DuckDuo — 全站共享設計系統 V2（規格書 §2，嚴格使用，未自行發明顏色）
   合併自 index.html / duowave.html 的 :root token 與組件類別，
   並擴充場景 / 分類 / 文章 / 測驗 / 政策 / 404 頁所需類別。
   所有新頁面統一 <link rel="stylesheet" href="/assets/css/style.css">。
   既有 index.html / duowave.html 仍內聯各自 <style>，遷移時直接改引用本檔即可。
   ========================================================= */

:root {
  /* §2.1 色彩系統 */
  --bg-base: #FBF6F2;        /* 全局背景（奶油白） */
  --bg-rose: #F9EEEA;        /* 板塊交替背景（霧玫瑰） */
  --bg-lavender: #F2EFF7;    /* 內容/文章板塊背景（淡薰衣草） */
  --ink-primary: #3B2F2C;    /* 主文字（暖棕黑） */
  --ink-secondary: #8A7A73;  /* 次要文字 */
  --brand-main: #D98E96;     /* 主品牌色（蜜桃玫瑰）CTA/強調 */
  --brand-deep: #B96A74;     /* hover/重要強調 */
  --brand-blush: #F5DCDD;    /* chip/標籤/點綴 */
  --accent-sage: #9DB5A0;    /* 信任/健康相關標籤 */
  --accent-gold: #D4B483;    /* 禮品/會員/禮盒點綴（小面積） */
  --line: #EBE0D9;           /* 分隔線 */

  /* §2.2 字體 */
  --font-head: "Fraunces", "Noto Sans TC", Georgia, serif;
  --font-body: "Inter", "Noto Sans TC", system-ui, -apple-system, sans-serif;

  /* §2.3 間距/圓角 */
  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-img: 16px;
  --section-pad-y: 64px;     /* 板塊上下間距 64 */
  --section-pad-y-sm: 48px;  /* 窄屏 48 */
  --card-pad: 20px;          /* 卡片內邊距 20/24 */
  --maxw: 1200px;            /* xl 最大 1200 居中 */
  --header-h: 56px;          /* §4.1 高 56 (移動) */
  --tap: 44px;               /* §3 觸控目標 ≥44px */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;        /* 安全網：375px 無橫向滾動 */
  background: var(--bg-base);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;         /* 正文 16/26 */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-primary); margin: 0; }
h1 { font-size: 32px; line-height: 40px; font-weight: 600; }   /* H1 32/40 */
h2 { font-size: 26px; line-height: 34px; font-weight: 600; }   /* H2 26/34 */
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }   /* H3 20/28 */
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-pad-y-sm) 0; }
.section--rose { background: var(--bg-rose); }
.section--lavender { background: var(--bg-lavender); }
.eyebrow {
  font-size: 14px; line-height: 22px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-deep); font-weight: 600; margin-bottom: 8px;
}
.muted { color: var(--ink-secondary); font-size: 14px; line-height: 22px; }

/* 麵包屑（視覺，JSON-LD 另見 head） */
.breadcrumb { font-size: 13px; line-height: 20px; color: var(--ink-secondary); padding: 14px 0 0; }
.breadcrumb a { color: var(--brand-deep); }
.breadcrumb span { padding: 0 6px; color: var(--line); }

/* 按鈕（膠囊 999px，觸控 ≥44px） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand-main); color: var(--ink-primary); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--ink-primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-main); color: var(--brand-deep); }
.btn--block { width: 100%; }

/* 圖片佔位（本輪全部用 div + 註釋標明尺寸；不引用外部圖片） */
.ph {
  background:
    repeating-linear-gradient(45deg, var(--bg-rose) 0 12px, var(--brand-blush) 12px 24px);
  border-radius: var(--radius-img);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-secondary); font-size: 12px; line-height: 16px; text-align: center;
  border: 1px dashed var(--brand-main);
}

/* 裝飾性品牌圖（編輯型佔位，待實攝圖替換） */
img.deco { display: block; object-fit: cover; width: 100%; }
.ugc-wall img.deco { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 12px; }

/* ===== §4.1 Header ===== */
.topbar {
  background: var(--ink-primary); color: var(--bg-base);
  font-size: 13px; line-height: 20px; text-align: center;
  padding: 6px 12px;
}
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251,246,242,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.nav { display: none; gap: 18px; margin-left: 12px; font-size: 15px; }
.nav a { color: var(--ink-primary); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.iconbtn {
  width: var(--tap); height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); color: var(--ink-primary); font-size: 18px;
}
.iconbtn:hover { background: var(--brand-blush); }

/* ===== 1. Hero ===== */
.hero { padding: var(--section-pad-y-sm) 0 0; }
.hero__media {
  width: 100%; height: 420px;            /* 佔位圖尺寸：全寬柔光生活方式圖，建議 1200×800（1.5:1） */
  border-radius: var(--radius-img);
}
.hero__inner { padding: 24px 0 0; }
.hero h1 { margin-bottom: 12px; }
.hero__sub { color: var(--ink-secondary); margin-bottom: 20px; max-width: 34ch; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (min-width: 480px) { .hero__cta { flex-direction: row; } }

/* 通用頁面 hero（分類/文章/品牌/評價/政策） */
.page-hero { padding: 28px 0 8px; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero__sub { color: var(--ink-secondary); max-width: 52ch; }

/* ===== 2. Trust Bar ===== */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust__item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 14px;
}
.trust__icon {
  flex: 0 0 40px; height: 40px; border-radius: 12px;
  background: var(--brand-blush); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.trust__label { font-size: 14px; line-height: 20px; font-weight: 600; }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ===== 3. Shop by Scene（橫滑 5 卡） ===== */
.scenes {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;  /* 允許橫向滑動容器本身（非頁面橫向滾動） */
}
.scenes::-webkit-scrollbar { display: none; }
.scene-card {
  flex: 0 0 200px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
}
.scene-card__img { height: 150px; border-radius: 0; }  /* 佔位圖：場景卡圖，建議 400×300（4:3） */
.scene-card__body { padding: 14px; }
.scene-card__title { font-family: var(--font-head); font-size: 18px; }
.scene-card__cap { font-size: 13px; color: var(--ink-secondary); margin-top: 4px; }

/* ===== 4. Best Sellers / 產品卡（雙列→四列） ===== */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column;
}
.product-card__img { height: 160px; border-radius: 0; }  /* 佔位圖：產品圖 1:1，建議 600×600 */
.product-card__body { padding: var(--card-pad); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__name { font-family: var(--font-head); font-size: 17px; line-height: 22px; }
.rating { font-size: 13px; color: var(--ink-secondary); }
.rating b { color: var(--accent-gold); }
.recommend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--accent-sage); font-weight: 600; }
.recommend::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-sage); }
.product-card__price { font-weight: 600; font-size: 16px; margin-top: auto; }
.product-card .btn { margin-top: 10px; }

/* ===== 5. The Journal（文章卡） ===== */
.journal { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .journal { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.post-card__img { height: 170px; border-radius: 0; }  /* 佔位圖：文章封面 16:9，建議 800×450 */
.post-card__body { padding: var(--card-pad); }
.post-card__cat { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); font-weight: 600; }
.post-card__title { font-family: var(--font-head); font-size: 18px; line-height: 24px; margin: 6px 0; }
.post-card__read { font-size: 13px; color: var(--ink-secondary); }

/* ===== 6. Gift Guide 橫幅 ===== */
.gift { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .gift { grid-template-columns: repeat(3, 1fr); } }
.gift-tile { position: relative; border-radius: var(--radius-card); overflow: hidden; min-height: 180px; }
.gift-tile__img { position: absolute; inset: 0; border-radius: 0; opacity: .9; }
.gift-tile__body { position: relative; z-index: 1; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 180px; }
.gift-tile__title { font-family: var(--font-head); font-size: 22px; color: var(--ink-primary); }
.gift-tile__sub { font-size: 13px; color: var(--ink-secondary); }

/* ===== 7. UGC Reviews（圖片牆 + 橫滑評價） ===== */
.ugc-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.ugc-wall .ph { aspect-ratio: 1 / 1; height: auto; border-radius: 12px; }
.reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.reviews::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 260px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: var(--card-pad);
}
.review-card__stars { color: var(--accent-gold); font-size: 14px; }
.review-card__text { font-size: 14px; line-height: 22px; margin: 8px 0; }
.review-card__who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-blush); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.review-card__name { font-size: 14px; font-weight: 600; }
.review-card__meta { font-size: 12px; color: var(--ink-secondary); }

/* ===== 8. Our Story ===== */
.story__media { width: 100%; height: 280px; border-radius: var(--radius-img); margin-bottom: 20px; }
.story__body { max-width: 60ch; }
.story__body p + p { margin-top: 12px; }

/* ===== 9. Newsletter ===== */
.news { background: var(--brand-blush); border-radius: var(--radius-card); padding: 28px 20px; text-align: center; }
.news h2 { margin-bottom: 8px; }
.news p { color: var(--ink-secondary); margin-bottom: 16px; }
.news__form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; }
@media (min-width: 480px) { .news__form { flex-direction: row; } }
.news__input {
  flex: 1; min-height: var(--tap); padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; font-family: var(--font-body); font-size: 15px; color: var(--ink-primary);
}

/* ===== 10. Footer ===== */
.footer { background: var(--ink-primary); color: var(--bg-base); padding: 48px 0 28px; font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--bg-base); margin: 0 0 12px; letter-spacing: .04em; }
.footer a { color: var(--bg-base); display: block; min-height: var(--tap); line-height: var(--tap); }
.footer a:hover { color: var(--brand-blush); }
.footer__pay { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
.pay-chip { background: var(--brand-blush); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--ink-primary); }
.footer__legal {
  border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px;
  display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--brand-blush);
}
.footer__billing { color: var(--accent-gold); font-weight: 600; }

/* ===== WhatsApp 浮標 ===== */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-sage); color: var(--ink-primary);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 6px 18px rgba(59,47,44,.25);
}

@media (min-width: 768px) {
  .header { height: 72px; }                 /* §4.1 桌面 72 */
  :root { --header-h: 72px; }
  .nav { display: flex; }
  .section { padding: var(--section-pad-y) 0; }
  .hero { padding: var(--section-pad-y) 0 0; }
}

/* ===== 手機菜單抽屜（home.js 控制） ===== */
.nav-toggle { display: inline-flex; }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px;
  background: var(--bg-base); z-index: 70; padding: 72px 20px 20px;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: -8px 0 24px rgba(59,47,44,.18);
}
.drawer--open { transform: none; }
.drawer a {
  display: block; font-family: var(--font-head); font-size: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-primary);
}
.drawer__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  border: none; background: transparent; font-size: 24px; cursor: pointer; color: var(--ink-primary);
}
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(59,47,44,.4); z-index: 65;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.drawer-overlay.is-visible { opacity: 1; visibility: visible; }

/* ===== 場景卡左右箭頭（桌面，home.js 注入按鈕） ===== */
.scenes__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.scenes__head h2 { margin: 0; }
.scene-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-primary);
}
.scene-nav:hover { border-color: var(--brand-main); }
@media (max-width: 767px) { .scene-nav { display: none; } }

/* ===== 郵件訂閱彈窗（home.js 控制，每會話一次） ===== */
.news-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(59,47,44,.5); opacity: 0; visibility: hidden; transition: opacity .2s ease; padding: 20px;
}
.news-modal.is-open { opacity: 1; visibility: visible; }
.news-modal__card {
  background: #fff; border-radius: var(--radius-card); max-width: 420px; width: 100%;
  padding: 28px 24px; text-align: center; position: relative;
}
.news-modal__close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
  border: none; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink-secondary);
}
.news-modal__form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.news-modal__input {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; font-family: var(--font-body); font-size: 15px; color: var(--ink-primary);
}
.news-modal__msg { font-size: 13px; min-height: 18px; margin-top: 8px; }
.news-modal__msg--ok { color: var(--accent-sage); }
.news-modal__msg--err { color: var(--brand-deep); }

/* =========================================================
   以下為本輪新增頁面（場景/分類/文章/測驗/政策/404）專用類別
   ========================================================= */

/* ===== 場景頁 ===== */
.scene-hero { padding: var(--section-pad-y-sm) 0 0; }
.scene-hero__media { width: 100%; height: 360px; border-radius: var(--radius-img); }
.scene-hero__inner { padding: 24px 0 0; }
.scene-hero h1 { margin-bottom: 10px; }
.scene-hero__sub { color: var(--ink-secondary); max-width: 50ch; margin-bottom: 18px; }
.scene-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.scene-intro { max-width: 64ch; }
.scene-intro p + p { margin-top: 14px; }
.scene-moment { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .scene-moment { grid-template-columns: repeat(2, 1fr); align-items: center; } }
.scene-moment__media { height: 280px; border-radius: var(--radius-img); }
.scene-moment__body h3 { margin-bottom: 8px; }
.scene-rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .scene-rec { grid-template-columns: repeat(3, 1fr); } }

/* ===== 分類頁：篩選底部彈層 + 加載更多 ===== */
.cat-hero { padding: 28px 0 12px; }
.cat-hero h1 { margin-bottom: 8px; }
.cat-hero__sub { color: var(--ink-secondary); max-width: 52ch; }
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-primary);
}
.filter-btn:hover { border-color: var(--brand-main); }
.filter-btn__count { margin-left: auto; font-size: 13px; color: var(--ink-secondary); }
.filter-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .25s ease; max-height: 84vh; overflow: auto;
  box-shadow: 0 -8px 24px rgba(59,47,44,.18);
}
.filter-sheet.is-open { transform: none; }
.filter-sheet__overlay { position: fixed; inset: 0; background: rgba(59,47,44,.4); z-index: 85; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.filter-sheet__overlay.is-open { opacity: 1; visibility: visible; }
.filter-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-sheet__head h2 { font-size: 22px; }
.filter-sheet__close { width: 44px; height: 44px; border: none; background: transparent; font-size: 24px; cursor: pointer; color: var(--ink-primary); }
.filter-group { margin-bottom: 20px; }
.filter-group h3 { font-size: 16px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff;
  font-size: 14px; cursor: pointer; color: var(--ink-primary);
}
.chip.is-active { background: var(--brand-blush); border-color: var(--brand-main); color: var(--brand-deep); font-weight: 600; }
.sort-select {
  min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: #fff; font-family: var(--font-body); font-size: 14px; color: var(--ink-primary);
}
.loadmore { display: flex; justify-content: center; padding: 28px 0 8px; }
.loadmore__note { text-align: center; color: var(--ink-secondary); font-size: 14px; padding: 16px 0; }

/* ===== 文章頁（Journal Article） ===== */
.article-hero { padding: 24px 0 8px; }
.article-hero__cat { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); font-weight: 600; }
.article-hero h1 { font-size: 30px; line-height: 38px; margin: 8px 0; }
.article-hero__meta { color: var(--ink-secondary); font-size: 14px; }
.article-hero__cover { width: 100%; height: 360px; border-radius: var(--radius-img); margin: 18px 0 24px; }
/* 正文 17px（規格書要求） */
.article-body { font-size: 17px; line-height: 28px; max-width: 68ch; }
.article-body h2 { font-size: 24px; line-height: 32px; margin: 28px 0 10px; }
.article-body h3 { font-size: 20px; line-height: 28px; margin: 22px 0 8px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
/* 文內產品卡位（每 600-800 字插入一張） */
.product-slot {
  display: flex; gap: 14px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; margin: 24px 0;
}
.product-slot__img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 14px; }
.product-slot__body { flex: 1; min-width: 0; }
.product-slot__name { font-family: var(--font-head); font-size: 18px; }
.product-slot__price { font-weight: 600; margin: 4px 0 10px; }
/* 右下浮動 Chat to Order */
.cta-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 52px;
  border-radius: var(--radius-pill); background: var(--brand-main); color: var(--ink-primary);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(59,47,44,.25);
}
.cta-float:hover { background: var(--brand-deep); }
@media (min-width: 768px) { .cta-float { right: 24px; bottom: 24px; } }

/* ===== 測驗頁（Quiz） ===== */
.quiz { max-width: 640px; margin: 0 auto; padding: 24px 0 48px; }
.quiz__progress { height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; margin-bottom: 24px; }
.quiz__progress span { display: block; height: 100%; background: var(--brand-main); transition: width .25s ease; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__q { font-family: var(--font-head); font-size: 24px; line-height: 32px; margin-bottom: 18px; }
.quiz__opts { display: flex; flex-direction: column; gap: 12px; }
.quiz__opt {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px;
  border-radius: var(--radius-card); border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 16px; cursor: pointer; color: var(--ink-primary);
  text-align: left; width: 100%;
}
.quiz__opt:hover { border-color: var(--brand-main); }
.quiz__opt.is-selected { background: var(--brand-blush); border-color: var(--brand-main); font-weight: 600; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.quiz__result { display: none; text-align: center; }
.quiz__result.is-active { display: block; }
.quiz__result .product-card { max-width: 280px; margin: 18px auto; text-align: left; }

/* ===== 品牌故事頁（Story） ===== */
.story-section { max-width: 64ch; }
.story-section p + p { margin-top: 14px; }
.story-values { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 768px) { .story-values { grid-template-columns: repeat(3, 1fr); } }
.story-value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; }
.story-value__ic { font-size: 22px; margin-bottom: 8px; }
.story-value h3 { font-size: 18px; margin-bottom: 6px; }

/* ===== 評價頁（Reviews） ===== */
.rev-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .rev-grid { grid-template-columns: repeat(2, 1fr); } }
.rev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px; }
.rev-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rev-card__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-blush); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.rev-card__name { font-weight: 600; font-size: 14px; }
.rev-card__verified { font-size: 11px; color: var(--accent-sage); font-weight: 600; }
.rev-card__stars { color: var(--accent-gold); font-size: 13px; }
.rev-card__body { font-size: 14px; line-height: 22px; color: var(--ink-primary); }

/* ===== 政策 / 法律頁 ===== */
.prose { max-width: 70ch; }
.prose h2 { font-size: 22px; line-height: 30px; margin: 26px 0 10px; }
.prose h3 { font-size: 18px; line-height: 26px; margin: 18px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--brand-deep); text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin-top: 16px; }
.contact-form label { font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-family: var(--font-body); font-size: 15px; color: var(--ink-primary); width: 100%;
}
.contact-form textarea { min-height: 120px; }

/* ===== 404 頁 ===== */
.err { text-align: center; padding: 80px 0; }
.err__code { font-family: var(--font-head); font-size: 96px; line-height: 1; color: var(--brand-main); }
.err__title { font-size: 26px; margin: 12px 0 8px; }
.err__sub { color: var(--ink-secondary); max-width: 40ch; margin: 0 auto 24px; }
.err__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
