/* =========================================
   大哥榴槤 Durian Brother — 全站樣式
   色系參考 logo：奶油米 + 深綠 + 金黃 + 棕
   ========================================= */

:root {
  --cream: #F8EFD4;
  --cream-light: #FDF8E8;
  --cream-dark: #F0E2B0;
  --green-dark: #2D4A1F;
  --green: #4A6B3A;
  --green-olive: #6B7F3A;
  --green-light: #8FA868;
  --gold: #E5B23E;
  --gold-dark: #C9962A;
  --brown: #8B5A2B;
  --brown-dark: #5C3A1A;
  --ink: #1F2A12;
  --ink-soft: #4A5236;
  --shadow: 0 8px 30px rgba(45, 74, 31, 0.12);
  --shadow-soft: 0 4px 14px rgba(45, 74, 31, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-zh: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", "STHeiti", serif;
  --font-en: "Playfair Display", "Georgia", serif;
  --font-sans-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-sans-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans-zh);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-sans-en);
}

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

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-zh);
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 {
  font-family: var(--font-en);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 頂部導航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 239, 212, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 107, 58, 0.12);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 20px;
  color: var(--green-dark);
}
html[lang="en"] .brand { font-family: var(--font-en); }
.brand img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .zh { font-size: 18px; }
.brand-text .en { font-size: 11px; color: var(--brown); letter-spacing: 1px; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.lang-switch {
  display: flex;
  background: var(--green-dark);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.lang-switch button.active {
  background: var(--gold);
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--green-dark);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(74,107,58,0.12); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ============ Hero 主視覺 ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 20% 30%, rgba(229, 178, 62, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74, 107, 58, 0.15), transparent 50%),
    var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='%23E5B23E' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-text .eyebrow {
  display: inline-block;
  background: var(--green-dark);
  color: var(--cream);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-weight: 600;
}
.hero-text h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.hero-text h1 .accent { color: var(--gold-dark); display: block; font-size: 0.7em; letter-spacing: 4px; }
.hero-text p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--green-dark);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--green);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: var(--cream);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--font-en);
  display: block;
  line-height: 1;
}
.stat .lbl { font-size: 13px; color: var(--ink-soft); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .logo-frame {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: var(--cream-light);
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(45, 74, 31, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 6px solid var(--cream-light);
  outline: 2px solid var(--gold);
  outline-offset: 8px;
}
.hero-visual .logo-frame img { width: 90%; height: 90%; object-fit: contain; }
.hero-visual .badge {
  position: absolute;
  background: var(--cream-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge.top { top: 8%; right: -8%; }
.badge.bottom { bottom: 12%; left: -6%; }
.badge .dot { width: 8px; height: 8px; background: #58B368; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 179, 104, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(88, 179, 104, 0); }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .badge.top { right: 4%; }
  .badge.bottom { left: 4%; }
}

/* ============ 通用區段 ============ */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .eyebrow {
  color: var(--gold-dark);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section-head p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 17px; }

/* ============ 特色卡片 ============ */
.features {
  background: var(--cream-light);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(74, 107, 58, 0.1);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green-olive));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 64px; height: 64px;
  background: var(--green-dark);
  color: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 14px; }

/* ============ 產品卡片 ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--cream-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(74, 107, 58, 0.1);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img svg { width: 60%; height: 60%; }
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green-dark);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.product-tag.hot { background: #C84A3A; color: var(--cream); }
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 22px; margin-bottom: 6px; }
.product-body .origin { color: var(--brown); font-size: 13px; margin-bottom: 12px; font-style: italic; }
.product-body p { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-meta-single { justify-content: center; }
.product-cta { width: 100%; justify-content: center; }
.product-price { font-family: var(--font-en); font-size: 22px; font-weight: 700; color: var(--gold-dark); }
.product-price small { font-size: 12px; color: var(--ink-soft); font-weight: 400; }

/* ============ 流程 ============ */
.steps { background: var(--green-dark); color: var(--cream); }
.steps .section-head h2 { color: var(--cream); }
.steps .section-head p { color: rgba(248, 239, 212, 0.75); }
.steps .section-head .eyebrow { color: var(--gold); }
.steps .section-head h2::after { background: var(--gold); }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step {
  text-align: center;
  position: relative;
  padding: 20px;
}
.step-num {
  width: 60px; height: 60px;
  background: var(--gold);
  color: var(--green-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 4px solid rgba(229, 178, 62, 0.2);
}
.step h3 { color: var(--cream) !important; margin-bottom: 8px; font-size: 20px; }
.step p { color: rgba(248, 239, 212, 0.75); font-size: 14px; }

/* ============ 客戶評價 ============ */
.testimonials { background: var(--cream-light); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi {
  background: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(74, 107, 58, 0.1);
  position: relative;
}
.testi::before {
  content: "❝";
  position: absolute;
  top: 0; right: 16px;
  font-size: 80px;
  color: var(--gold);
  opacity: 0.2;
  font-family: serif;
  line-height: 1;
}
.testi p { color: var(--ink); font-size: 15px; margin-bottom: 16px; position: relative; z-index: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-olive);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-en);
}
.testi-name { font-weight: 600; color: var(--green-dark); }
.testi-loc { font-size: 12px; color: var(--ink-soft); }
.stars { color: var(--gold); margin-bottom: 8px; }

/* ============ FAQ ============ */
.faq { background: var(--cream); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--cream-light);
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid rgba(74, 107, 58, 0.1);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-size: 24px;
  color: var(--gold-dark);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding: 0 28px;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 28px 22px; }
.faq-a p { color: var(--ink-soft); }

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--cream);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(229, 178, 62, 0.2), transparent 60%);
}
.cta-section h2 { color: var(--cream); font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(248, 239, 212, 0.85); font-size: 17px; margin-bottom: 32px; position: relative; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn { position: relative; }
.cta-section .btn-gold { font-size: 16px; padding: 16px 40px; }

/* ============ 表單 ============ */
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============ 頁腳 ============ */
.site-footer {
  background: var(--green-dark);
  color: var(--cream);
  padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-brand .name { font-family: var(--font-zh); font-size: 20px; font-weight: 700; }
html[lang="en"] .footer-brand .name { font-family: var(--font-en); }
.footer-about { color: rgba(248, 239, 212, 0.7); font-size: 14px; line-height: 1.7; max-width: 360px; }
.footer-col h4 { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(248, 239, 212, 0.75); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-contact { color: rgba(248, 239, 212, 0.75); font-size: 14px; }
.footer-contact div { margin-bottom: 8px; }
.footer-contact strong { color: var(--cream); display: block; font-size: 12px; letter-spacing: 1px; margin-bottom: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(248, 239, 212, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(248, 239, 212, 0.55);
}

/* ============ 頁面 Hero（內頁） ============ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--cream);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(229, 178, 62, 0.18), transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero .crumb { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.page-hero h1 { color: var(--cream); font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.page-hero p { color: rgba(248, 239, 212, 0.85); max-width: 640px; margin: 0 auto; font-size: 17px; }

/* ============ 資訊卡 (物流/售後) ============ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; gap: 20px; }
}
.info-card {
  background: var(--cream-light);
  border: 1px solid rgba(74, 107, 58, 0.12);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green-olive));
}
.info-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--green-dark);
}
.info-card .info-icon {
  width: 40px; height: 40px;
  background: var(--green-dark);
  color: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.info-card .info-intro {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(74, 107, 58, 0.15);
}
.info-list { list-style: none; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 107, 58, 0.08);
  font-size: 14px;
  line-height: 1.6;
}
.info-list li:last-child { border-bottom: none; }
.info-list .lbl {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.info-list .desc { color: var(--ink-soft); }
@media (max-width: 500px) {
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
  .info-list .lbl { font-size: 12px; }
}

/* ============ 時間軸 ============ */
.timeline { max-width: 720px; margin: 0 auto; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 30px; top: 0; bottom: 0;
  width: 2px;
  background: var(--green-olive);
}
.timeline-item { position: relative; padding-left: 80px; margin-bottom: 36px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 20px; top: 4px;
  width: 22px; height: 22px;
  background: var(--gold);
  border: 4px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green-dark);
}
.timeline-year { font-family: var(--font-en); font-size: 14px; color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; }
.timeline-item h3 { font-size: 20px; margin: 4px 0 8px; }
.timeline-item p { color: var(--ink-soft); }

/* ============ 關於區 ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-img {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--green-olive), var(--green-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.about-img img {
  width: 82%;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}
.about-text h2 { font-size: 36px; margin-bottom: 20px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 16px; }
.about-text .signature { font-family: var(--font-en); font-size: 22px; color: var(--gold-dark); font-style: italic; margin-top: 20px; }

/* ============ 動畫 ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 防止 JS 失效 / 慢載入時元素永久隱藏 */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
/* 兜底：3 秒後未觀察到的元素強制顯示 */
.fade-in.fallback-show { opacity: 1; transform: none; }

/* ============ WhatsApp 浮動按鈕 ============ */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: inherit;
}
.wa-float-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  position: relative;
  flex-shrink: 0;
}
.wa-float-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: waPulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-float:hover .wa-float-btn {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  display: block;
}
.wa-float-label {
  background: #fff;
  color: #075E54;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s;
  pointer-events: none;
}
.wa-float:hover .wa-float-label {
  opacity: 1;
  transform: translateX(0);
}
.wa-float-label::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
@media (max-width: 600px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
  }
  .wa-float-label { display: none; }
  .wa-float-btn { width: 56px; height: 56px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ====== Cookie Consent Banner ====== */
.consent-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: #ffffff;
  border: 1px solid rgba(45, 74, 31, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 720px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.5;
}
.consent-bar.show {
  transform: translateY(0);
}
.consent-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.consent-text {
  color: #2D2D2D;
  flex: 1;
  min-width: 0;
}
.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.consent-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.consent-deny {
  background: #f0f0f0;
  color: #2D2D2D;
}
.consent-deny:hover {
  background: #e0e0e0;
}
.consent-accept {
  background: #2D4A1F;
  color: #ffffff;
}
.consent-accept:hover {
  background: #1f3a14;
}
@media (max-width: 600px) {
  .consent-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 14px 16px;
  }
  .consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .consent-actions {
    width: 100%;
  }
  .consent-btn {
    flex: 1;
    padding: 10px;
  }
}

/* ====== Shop Address Card ====== */
.addr-card {
  background: linear-gradient(135deg, #FFFDF7 0%, #F8EFD4 100%);
  border: 1.5px solid rgba(229, 178, 62, 0.45);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 28px;
  box-shadow: 0 4px 18px rgba(139, 90, 43, 0.08);
}
.addr-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.addr-card-head svg { color: #C89A2E; flex-shrink: 0; }
.addr-card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 16px;
}
.addr-card-hint {
  font-size: 14px;
  font-weight: 400;
  color: #6B5A45;
  line-height: 1.6;
}
.addr-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.addr-card-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #7A6A55;
}
@media (max-width: 600px) {
  .addr-card { padding: 18px 18px; }
  .addr-card-main { font-size: 16px; }
}

/* ====== WhatsApp-First Panels ====== */
.wa-panel {
  background: linear-gradient(160deg, #F4FBF0 0%, #FFFFFF 55%, #FFFDF5 100%);
  border: 1.5px solid rgba(37, 211, 102, 0.28);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(45, 74, 31, 0.09);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wa-panel::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,0.10) 0%, rgba(37,211,102,0) 70%);
  pointer-events: none;
}
.wa-panel-head { position: relative; z-index: 1; margin-bottom: 26px; }
.wa-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
}
.wa-panel-title {
  font-size: 28px;
  line-height: 1.35;
  color: var(--green-dark, #2D4A1F);
  margin-bottom: 10px;
}
.wa-panel-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #5C6B57;
  max-width: 560px;
  margin: 0 auto;
}
.wa-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
  text-align: left;
}
.wa-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid rgba(45, 74, 31, 0.13);
  border-radius: 13px;
  padding: 15px 16px;
  text-decoration: none;
  color: var(--ink, #2D2D2D);
  transition: all 0.22s ease;
  min-height: 62px;
}
.wa-quick-card:hover {
  border-color: #25D366;
  background: #F6FDF4;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.18);
}
.wa-quick-card:active { transform: translateY(0); }
.wa-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(37, 211, 102, 0.12);
  color: #1FA855;
  border-radius: 11px;
  flex-shrink: 0;
}
.wa-quick-label {
  flex: 1;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}
.wa-quick-arrow {
  color: #A8B5A3;
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.22s ease;
}
.wa-quick-card:hover .wa-quick-arrow { transform: translateX(3px); color: #25D366; }
.wa-panel-note {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #6E7A69;
}
@media (max-width: 640px) {
  .wa-panel { padding: 26px 18px; border-radius: 16px; }
  .wa-panel-title { font-size: 22px; }
  .wa-panel-sub { font-size: 14.5px; }
  .wa-quick-grid { grid-template-columns: 1fr; gap: 10px; }
  .wa-quick-card { padding: 13px 14px; }
  .wa-quick-label { font-size: 15px; }
}

/* ====== WhatsApp QR Card ====== */
.wa-qr-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #DCF8C6 0%, #F4FBF0 100%);
  border: 2px solid #25D366;
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 28px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.14);
  position: relative;
  overflow: hidden;
}
.wa-qr-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,0.13) 0%, rgba(37,211,102,0) 70%);
  pointer-events: none;
}
.wa-qr-figure {
  flex-shrink: 0;
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  line-height: 0;
  position: relative;
  z-index: 1;
}
.wa-qr-figure img { display: block; width: 180px; height: 180px; }
.wa-qr-body { position: relative; z-index: 1; }
.wa-qr-body h3 {
  font-size: 22px;
  color: var(--green-dark, #2D4A1F);
  margin-bottom: 8px;
}
.wa-qr-body p {
  font-size: 15px;
  line-height: 1.65;
  color: #4A5C46;
  margin-bottom: 14px;
}
.wa-qr-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0;
}
.wa-qr-steps li {
  font-size: 13px;
  font-weight: 600;
  color: #2D4A1F;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(37,211,102,0.35);
  border-radius: 999px;
  padding: 6px 14px;
}
.wa-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 700px) {
  .wa-qr-card { flex-direction: column; text-align: center; gap: 20px; padding: 24px 20px; }
  .wa-qr-figure img { width: 160px; height: 160px; }
  .wa-qr-steps { justify-content: center; }
  .wa-qr-btn { width: 100%; }
}

/* ====== Reply-time badge ====== */
.wa-reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 74, 31, 0.08);
  border: 1.5px solid rgba(45, 74, 31, 0.20);
  color: #3A5628;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .wa-reply-badge { margin-left: 0; margin-top: 8px; }
}

/* ====== Copyable FAQ Templates ====== */
.tpl-card {
  background: #fff;
  border: 1.5px solid rgba(45, 74, 31, 0.14);
  border-radius: 18px;
  padding: 28px 26px;
  margin-top: 28px;
  box-shadow: 0 6px 22px rgba(45, 74, 31, 0.07);
}
.tpl-head { text-align: center; margin-bottom: 20px; }
.tpl-head h3 {
  font-size: 22px;
  color: var(--green-dark, #2D4A1F);
  margin-bottom: 6px;
}
.tpl-head p { font-size: 14.5px; color: #6B7A66; line-height: 1.6; }
.tpl-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.tpl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FBFDF9;
  border: 1.5px solid rgba(45, 74, 31, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s ease;
  width: 100%;
}
.tpl-item:hover {
  border-color: #25D366;
  background: #F6FDF4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.16);
}
.tpl-q { font-size: 15px; font-weight: 700; color: #2D4A1F; flex-shrink: 0; }
.tpl-preview {
  font-size: 13px;
  color: #77836F;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpl-copy {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #2D4A1F;
  border-radius: 6px;
  padding: 4px 11px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.tpl-item:hover .tpl-copy { background: #1f3a14; }
.tpl-item.copied { border-color: #25D366; background: #F0FBF2; }
.tpl-item.copied .tpl-copy { background: #25D366; }
.tpl-toast {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1FA855;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s;
  min-height: 21px;
  line-height: 1.5;
  word-break: break-word;
}
.tpl-toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) {
  .tpl-card { padding: 22px 16px; }
  .tpl-list { grid-template-columns: 1fr; }
  .tpl-preview { display: none; }
  .tpl-item { justify-content: space-between; }
}

/* ====== Legal / Privacy Page ====== */
.legal-body {
  padding: 56px 0 72px;
  background: var(--cream, #F8EFD4);
}
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(45, 74, 31, 0.10);
  border-radius: 18px;
  padding: 40px 44px;
  box-shadow: 0 6px 26px rgba(45, 74, 31, 0.06);
}
.legal-updated {
  font-size: 14px;
  color: #8A9A82;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(45, 74, 31, 0.10);
}
.legal-wrap section { margin-bottom: 34px; }
.legal-wrap section:last-child { margin-bottom: 0; }
.legal-wrap h2 {
  font-size: 21px;
  color: var(--green-dark, #2D4A1F);
  margin-bottom: 12px;
  line-height: 1.4;
}
.legal-wrap p,
.legal-wrap li {
  font-size: 15.5px;
  line-height: 1.8;
  color: #43503D;
}
.legal-wrap ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}
.legal-wrap ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.legal-wrap ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #E5B23E);
}
.legal-wrap a { color: var(--green-dark, #2D4A1F); text-decoration: underline; }
.legal-wrap strong { color: #2D4A1F; }
.legal-contact { margin-top: 14px; }
.legal-contact li { margin-bottom: 8px; }
.legal-wrap .btn-outline { margin-top: 8px; }
@media (max-width: 640px) {
  .legal-body { padding: 32px 0 48px; }
  .legal-wrap { padding: 26px 20px; border-radius: 14px; }
  .legal-wrap h2 { font-size: 19px; }
  .legal-wrap p, .legal-wrap li { font-size: 15px; }
}
