@charset "UTF-8";
/* ==========================================================================
   得意中華食品 — 官網樣式表
   版本:v1-three(基礎樣式與 v2-plain 相同,檔案最後段為 three.js 專用樣式)
   ========================================================================== */

/* ---------- 1. 設計變數 ---------- */
:root {
  --red:         #AD342B;
  --red-dark:    #8E2620;
  --red-soft:    #F3E2DE;
  --cream:       #FFFAF1;
  --sand:        #F7F0E3;
  --sand-deep:   #EFE4D2;
  --brown:       #3D2921;
  --brown-deep:  #30211B;
  --green:       #617A59;
  --green-soft:  #E6EDE2;
  --amber:       #F0DCBB;
  --clay:        #EADFD2;
  --ink:         #2A1D16;
  --muted:       #7B6A5E;
  --line:        rgba(61, 41, 33, .12);
  --white:       #FFFFFF;

  --radius-s:  8px;
  --radius:    14px;
  --radius-l:  22px;
  --shadow:    0 10px 30px rgba(61, 41, 33, .07);
  --shadow-h:  0 18px 44px rgba(61, 41, 33, .14);

  --container: 1280px;
  --gutter:    24px;

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  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; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- 3. 共用元件 ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--red); text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow .num { font-variant-numeric: tabular-nums; }
.eyebrow .bar { width: 1px; height: 14px; background: currentColor; opacity: .5; }

.sec-title { font-size: clamp(26px, 3.1vw, 42px); letter-spacing: .02em; }
.sec-lead  { margin-top: 12px; color: var(--muted); font-size: 15px; }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.sec-head .more { font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .2s var(--ease); }
.sec-head .more:hover { color: var(--red); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--sand  { background: var(--sand); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--brown { background: var(--brown); color: #F4EAE2; }
.section--green { background: var(--green); color: #F4F1E9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; transition: all .22s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(173, 52, 43, .28); }
.btn--ghost { background: var(--white); color: var(--red); border-color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--light:hover { background: #fff; color: var(--green); }
.btn--sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
}

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .02em;
}
.badge--light { background: var(--white); color: var(--red); }

.ratio { position: relative; overflow: hidden; background: var(--sand-deep); }
.ratio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio--16x9 { padding-top: 56.25%; }
.ratio--4x3  { padding-top: 75%; }
.ratio--3x2  { padding-top: 66.6%; }
.ratio--21x9 { padding-top: 42.8%; }

/* ---------- 4. 頂部宣告列 ---------- */
.topbar { background: var(--red); color: #FBE9E4; font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; gap: 12px 40px; flex-wrap: wrap; min-height: 46px; padding-block: 8px; }
.topbar__msgs { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.topbar__meta { margin-left: auto; display: flex; align-items: center; gap: 10px; opacity: .92; }
.topbar__meta .sep { opacity: .4; }
.topbar__meta a { padding: 2px 4px; border-radius: 4px; }
.topbar__meta a:hover { background: rgba(255, 255, 255, .15); }
.topbar__meta a.is-active { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. 頁首 ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 22px rgba(61, 41, 33, .08); }
.header .container { display: flex; align-items: center; gap: 20px; min-height: 84px; }

.logo { flex: none; display: block; width: 148px; }
.logo img { width: 100%; height: auto; border-radius: 6px; }

.nav { margin-inline: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 34px); }
.nav a { position: relative; display: block; padding: 8px 2px; font-size: 15.5px; font-weight: 500; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 700; }

.header__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  display: grid; place-items: center; background: var(--white);
  transition: all .2s var(--ease); position: relative;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center;
}
.currency-btn { border-radius: 10px; width: auto; padding: 0 16px; font-size: 14px; font-weight: 700; }

.burger { display: none; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: var(--sand); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 42% 58%; min-height: 620px; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 4vw, 72px) 64px 0; position: relative; z-index: 2; }
.hero__copy-inner { max-width: 520px; margin-left: auto; width: 100%; }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.28; letter-spacing: .02em; }
.hero__lead { margin-top: 26px; font-size: clamp(15px, 1.2vw, 18px); color: #5C4A3E; line-height: 2; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__tags .pill { background: rgba(255, 255, 255, .8); }
.hero__media { position: relative; min-height: 420px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 左側米色欄延伸至畫面邊緣 */
.hero::before {
  content: ""; position: absolute; inset: 0 58% 0 -50vw; background: var(--sand); z-index: 0;
}

/* ---------- 7. 03 生活情境 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scene-card {
  background: var(--white); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.scene-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.scene-card .ratio { position: relative; }
.scene-card__body { padding: 22px 26px 28px; }
.scene-card h3 { font-size: 21px; }
.scene-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

.sec-aside { font-size: 13.5px; color: var(--muted); letter-spacing: .04em; }

/* ---------- 8. 04 依家庭成員 ---------- */
.family-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.family-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 18px 26px;
  text-align: center; box-shadow: var(--shadow); transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  border: 1px solid transparent;
}
.family-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: var(--red-soft); }
.family-card .mark {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 999px;
  display: grid; place-items: center; font-size: 21px; font-weight: 700; color: var(--brown);
}
.mark--green { background: var(--green-soft); }
.mark--red   { background: var(--red-soft); color: var(--red); }
.mark--amber { background: var(--amber); color: #A5601F; }
.mark--sage  { background: #E2E9DE; }
.mark--clay  { background: var(--clay); }
.family-card h3 { font-size: 18px; }
.family-card p  { margin-top: 6px; font-size: 13px; color: var(--muted); }
.family-note { margin-top: 34px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- 9. 05 本月主打組合 ---------- */
.set-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.set-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.set-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.set-card .ratio { position: relative; }
.set-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.set-card h3 { font-size: 17.5px; }
.set-card__meta { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.set-card__meta span + span::before { content: "|"; margin-right: 10px; opacity: .45; }
.set-card__foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price { color: var(--red); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }

/* ---------- 10. 06 商品分類 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.cat-tile img { transition: transform .55s var(--ease); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35, 20, 14, .82) 0%, rgba(35, 20, 14, .35) 45%, rgba(35, 20, 14, 0) 75%);
}
.cat-tile__text { position: absolute; left: 26px; bottom: 22px; z-index: 2; color: #fff; }
.cat-tile__text h3 { font-size: 22px; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.cat-tile__text p { font-size: 13.5px; opacity: .9; margin-top: 4px; }

/* ---------- 11. 07 全齡友善 ---------- */
.friendly { display: grid; grid-template-columns: 45% 55%; gap: clamp(32px, 5vw, 80px); align-items: center; }
.friendly__media { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.friendly__media .tag {
  position: absolute; left: 26px; bottom: 24px; background: var(--white);
  padding: 11px 24px; border-radius: 999px; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 20px; background: var(--white); transition: border-color .2s var(--ease); }
.info-card:hover { border-color: var(--red); }
.info-card h3 { font-size: 16px; }
.info-card p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.friendly__note {
  margin-top: 22px; background: var(--green-soft); border-radius: var(--radius-s);
  padding: 18px 24px; text-align: center; font-weight: 700; font-size: 15px; color: #3F5138;
}

/* ---------- 12. 08 不開爐 ---------- */
.nocook { display: grid; grid-template-columns: 50% 50%; gap: clamp(32px, 5vw, 70px); align-items: center; }
.nocook .sec-title, .nocook p { color: #F6EDE6; }
.nocook__lead { margin-top: 24px; color: #D9C7BB !important; line-height: 2; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-s); padding: 20px 20px 24px; }
.step-card .no { font-size: 22px; font-weight: 700; color: #E2C39C; }
.step-card h3 { font-size: 16px; margin-top: 14px; }
.step-card p { font-size: 12.5px; color: #C3AFA3 !important; margin-top: 8px; }
.nocook__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nocook__tags .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #EFE2D9; }
.nocook__media { border-radius: var(--radius); overflow: hidden; }

/* ---------- 13. 09 安心製程 ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; margin-top: 48px; }
.process::before {
  content: ""; position: absolute; top: 40px; left: 8%; right: 8%; height: 1px;
  background: #DFC9A6; z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-step .no {
  width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 999px;
  border: 1.5px solid #D9BE93; background: var(--cream);
  display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--red);
  transition: all .25s var(--ease);
}
.process-step:hover .no { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-4px); }
.process-step h3 { font-size: 16.5px; }
.process-step p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.cert-bar {
  margin-top: 56px; background: var(--sand); border-radius: var(--radius);
  padding: 24px 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px 32px; flex-wrap: wrap;
}
.cert-bar h3 { font-size: 18px; }
.cert-bar__list { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 14. 10 品牌故事 ---------- */
.story { display: grid; grid-template-columns: 34% 15% 51%; align-items: stretch; }
.story__img { position: relative; overflow: hidden; min-height: 460px; }
.story__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__body { background: var(--sand-deep); padding: clamp(40px, 5vw, 76px) clamp(28px, 4vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.story__quote { margin-top: 28px; color: var(--red); font-weight: 700; font-size: clamp(16px, 1.4vw, 20px); }
.story__body p.body { margin-top: 22px; color: #5C4A3E; font-size: 15px; line-height: 2; }
.story__timeline { display: flex; gap: clamp(24px, 4vw, 64px); margin-top: 40px; flex-wrap: wrap; }
.story__timeline .year { font-size: 26px; font-weight: 700; color: var(--red); }
.story__timeline p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.story__body .btn { margin-top: 40px; align-self: flex-start; }

/* ---------- 15. 11 文章 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.article-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .tag { font-size: 13px; font-weight: 700; color: var(--red); }
.article-card h3 { font-size: 19px; margin-top: 10px; }
.article-card p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.article-card .more { margin-top: auto; padding-top: 20px; text-align: right; font-size: 14px; font-weight: 700; color: var(--red); }

/* ---------- 16. 12 商業合作 ---------- */
.partner { display: grid; grid-template-columns: 47% 53%; gap: clamp(32px, 5vw, 70px); align-items: center; }
.partner .eyebrow { color: #E4D49F; }
.partner .sec-title { color: #FBF7EE; }
.partner__lead { margin-top: 26px; color: #DCE3D6; line-height: 2; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.partner-tile {
  background: rgba(255, 255, 255, .1); border-radius: var(--radius-s);
  padding: 16px 14px; flex: 1 1 92px; min-width: 92px; text-align: center; transition: background .2s var(--ease);
}
.partner-tile:hover { background: rgba(255, 255, 255, .2); }
.partner-tile h3 { font-size: 16px; color: #FBF7EE; }
.partner-tile p { font-size: 12px; color: #D5DECD; margin-top: 2px; }
.partner__media { border-radius: var(--radius); overflow: hidden; }

/* ---------- 17. 頁尾 ---------- */
.footer { background: var(--brown-deep); color: #D9CBC1; padding: 72px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 40px 32px; }
.footer .logo { width: 156px; }
.footer__about { margin-top: 26px; line-height: 2; color: #C2B2A7; }
.footer__pays { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.footer__pays .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #EADFD6; font-weight: 700; }
.footer__col h3 { font-size: 15.5px; color: #F4EAE2; margin-bottom: 20px; }
.footer__col li + li { margin-top: 13px; }
.footer__col a { color: #C2B2A7; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__contact { margin-top: 28px; line-height: 2; color: #C2B2A7; }
.footer__contact a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13px; color: #A6968B;
}
.footer__bottom .langs { display: flex; gap: 10px; align-items: center; }
.footer__bottom .sep { opacity: .4; }

/* ---------- 18. 內頁 ---------- */
.page-hero { background: var(--sand); padding: 56px 0 52px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 42px); }
.page-hero p { margin-top: 12px; color: var(--muted); max-width: 680px; }

.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; color: #5C4A3E; line-height: 2; }
.prose ul { margin-top: 16px; }
.prose ul li { position: relative; padding-left: 20px; margin-top: 10px; color: #5C4A3E; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.news-list { border-top: 1px solid var(--line); }
.news-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 24px 8px; border-bottom: 1px solid var(--line); transition: background .2s var(--ease); }
.news-item:hover { background: var(--sand); }
.news-item time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.news-item .cat { font-size: 12.5px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 4px 12px; border-radius: 999px; }
.news-item h3 { font-size: 17px; font-weight: 500; flex: 1; min-width: 240px; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 24px; font-weight: 700; font-size: 16.5px; }
.faq-q .ico { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-q .ico::before { left: 0; right: 0; top: 10px; height: 2px; }
.faq-q .ico::after  { top: 0; bottom: 0; left: 10px; width: 2px; }
.faq-item.is-open .faq-q .ico::after { transform: scaleY(0); }
.faq-a { display: none; padding: 0 24px 22px; color: #5C4A3E; line-height: 2; }
.faq-item.is-open .faq-a { display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font: inherit; font-size: 15px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(173, 52, 43, .12); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .k { flex: none; width: 88px; font-weight: 700; font-size: 14px; }
.info-list .v { font-size: 15px; color: #5C4A3E; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-bar .pill { cursor: pointer; transition: all .2s var(--ease); }
.filter-bar .pill:hover { border-color: var(--red); color: var(--red); }
.filter-bar .pill.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.empty-hint { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- 19. 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 20. 回頂端 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 46px; height: 46px; border-radius: 999px; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(173, 52, 43, .35);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* ---------- 21. 響應式 ---------- */
@media (max-width: 1180px) {
  .nav ul { gap: 16px; }
  .nav a { font-size: 14.5px; }
  .family-grid, .set-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .header .container { min-height: 72px; }
  .burger {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--white);
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: all .25s var(--ease); }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s var(--ease); }
  .burger span::before { top: -6px; }
  .burger span::after  { top: 6px; }
  .burger.is-open span { background: transparent; }
  .burger.is-open span::before { top: 0; transform: rotate(45deg); }
  .burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--cream);
    padding: 92px 28px 28px; box-shadow: -12px 0 40px rgba(61, 41, 33, .18);
    transform: translateX(105%); transition: transform .32s var(--ease); z-index: 55; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { padding: 16px 4px; font-size: 16px; }
  .nav a::after { display: none; }

  .nav-backdrop { position: fixed; inset: 0; background: rgba(42, 29, 22, .45); opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 54; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero::before { display: none; }
  .hero__copy { padding: 52px 0 46px; }
  .hero__copy-inner { max-width: none; margin: 0; }
  .hero__media { min-height: 340px; height: 46vw; max-height: 460px; }

  .scene-grid, .cat-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .friendly, .nocook, .partner { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); gap: 34px 12px; }
  .process::before { display: none; }
  .story { grid-template-columns: 1fr 1fr; }
  .story__body { grid-column: 1 / -1; }
  .story__img { min-height: 300px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .topbar { font-size: 12.5px; }
  .topbar__msgs { gap: 4px 18px; }
  .topbar__meta { margin-left: 0; width: 100%; }
  .logo { width: 118px; }
  .header__tools .icon-btn:not(.cart-btn) { display: none; }
  .currency-btn { display: none; }

  .scene-grid, .cat-grid, .article-grid, .family-grid, .set-grid, .product-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story__img:nth-of-type(2) { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .cert-bar { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   v1-three 專用:three.js(WebGL)相關樣式
   ========================================================================== */

/* Hero 3D 畫布 — 鋪滿整個 hero,置於文字與照片之下 */
.hero--3d { background: linear-gradient(120deg, #FFFAF1 0%, #F7F0E3 55%, #F0E4D2 100%); }
.hero--3d .hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1);
}
.hero--3d .hero__canvas.is-ready { opacity: .88; }
.hero--3d::before { background: transparent; }
.hero--3d .hero__grid { position: relative; z-index: 2; }

/* 主視覺照片:3D 版加上圓角與浮起陰影,和背景 3D 場景區隔 */
.hero--3d .hero__media { border-radius: 0 0 0 var(--radius-l); overflow: hidden; }
.hero--3d .hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

/* 3D 提示標籤 */
.hero__3dhint {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  background: rgba(48, 33, 27, .62); color: #F6EDE6; backdrop-filter: blur(6px);
  font-size: 12.5px; letter-spacing: .04em; padding: 7px 14px; border-radius: 999px;
  opacity: 0; transition: opacity .6s ease;
}
.hero__3dhint.is-show { opacity: 1; }

/* 「不開爐」區塊的熱氣粒子疊層 */
.steam-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  transition: opacity 1.2s ease;
}
.steam-canvas.is-ready { opacity: .85; }

@media (max-width: 1024px) {
  .hero--3d .hero__canvas { opacity: 0 !important; }   /* 行動裝置省電:不顯示 3D 背景 */
  .hero--3d .hero__media { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--3d .hero__canvas, .steam-canvas { display: none; }
}
