/* 萬利龍官網 8 頁共享樣式——照《一分菜，滿分愛》視覺規範
   三色紀律：墨綠 #1E3A32｜米白 #FAF8F4｜啞金 #C9A227
   標題 Noto Serif TC｜正文 Noto Sans TC｜行高 1.8｜段間 ≥80px｜左右留白 ≥8% */
:root {
  --green: #1E3A32;
  --cream: #FAF8F4;
  --gold: #C9A227;
  --ink: #26332E;
  --muted: #5D6B64;
  --line: #D8DDD8;
  --pad: 8vw;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); font-weight: 600; }

/* ---------- 頂部導航 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  height: 64px;
  background: rgba(250,248,244,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand {
  font-family: var(--serif);
  font-size: 22px; letter-spacing: .18em; font-weight: 700;
  color: var(--green); text-decoration: none;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-size: 14px; text-decoration: none; color: var(--muted);
  letter-spacing: .06em; padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold); font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; font-size: 20px; line-height: 1;
  padding: 6px 12px; color: var(--green); cursor: pointer;
}

/* ---------- 首頁首屏 ---------- */
.hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: flex-end;
  background-image: url("/assets/site/hero.jpg");
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,58,50,.38) 0%, rgba(30,58,50,.62) 62%, rgba(30,58,50,.78) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 96px var(--pad) 88px;
  max-width: 980px;
}
.hero h1 {
  color: #fff; font-size: clamp(40px, 5vw, 60px);
  letter-spacing: .1em; line-height: 1.25; margin-bottom: 14px;
}
.hero .sub {
  color: var(--gold); font-size: clamp(17px, 2vw, 22px);
  letter-spacing: .28em; margin-bottom: 22px;
}
.hero .lead {
  color: rgba(255,255,255,.92); font-size: 18px; margin-bottom: 40px; max-width: 560px;
}
.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-size: 17px; letter-spacing: .12em; font-weight: 600;
  padding: 14px 34px; border-radius: 4px;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .88; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-line { border: 1px solid rgba(255,255,255,.75); color: #fff; }
.btn-green { background: var(--green); color: #fff; }

/* ---------- 內頁橫幅（矮幅壓字） ---------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(30,58,50,.45); }
.page-hero-inner { position: relative; z-index: 2; padding: 84px var(--pad) 56px; }
.page-hero h1, .page-hero h2 { color: #fff; font-size: clamp(30px, 3.6vw, 40px); letter-spacing: .12em; }
.page-hero.tall { min-height: 45vh; }
.page-hero.short { min-height: 25vh; }
.page-hero.mid { min-height: 34vh; }

/* ---------- 通用段落 ---------- */
.section { padding: 80px var(--pad); }
.section.tight { padding: 64px var(--pad); }
.kicker {
  font-size: 14px; letter-spacing: .3em; color: var(--gold);
  font-weight: 700; margin-bottom: 10px;
}
.page-title { font-size: clamp(30px, 3.4vw, 38px); letter-spacing: .1em; margin-bottom: 18px; }
.page-intro { color: var(--muted); font-size: 17px; max-width: 640px; margin-bottom: 48px; }

/* ---------- 首頁 4 格賣點（細線分隔，不用卡片） ---------- */
.selling-points {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.selling-points div { padding: 8px 28px; border-left: 1px solid var(--line); }
.selling-points div:first-child { border-left: none; padding-left: 0; }
.selling-points .num { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .2em; }
.selling-points .pt { font-family: var(--serif); font-size: 21px; color: var(--green); margin-top: 4px; }

/* ---------- 優勢頁：左文右圖 55/45 ---------- */
.split { display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: center; }
.split.rev { grid-template-columns: 45fr 55fr; }
.adv-list { list-style: none; }
.adv-list li { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.adv-list li:last-child { border-bottom: 1px solid var(--line); }
.adv-num { font-family: var(--serif); font-size: 24px; color: var(--gold); line-height: 1.4; min-width: 44px; }
.adv-list h3 { font-size: 20px; margin-bottom: 2px; }
.adv-list p { color: var(--muted); font-size: 16px; }
.figure-stack img { width: 100%; margin-bottom: 20px; }
.figure-stack img:last-child { margin-bottom: 0; }
.figure-side img { width: 100%; }

/* ---------- 產品網格 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 40px; max-width: 1040px; }
.prod-card { display: block; text-decoration: none; }
.prod-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prod-card .tag {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px;
}
.prod-card .tag .name { font-family: var(--serif); font-size: 20px; color: var(--green); }
.prod-card .tag .ask { font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.prod-card:hover .tag .ask { text-decoration: underline; }

/* ---------- 配送三欄 ---------- */
.tri-col { display: grid; grid-template-columns: repeat(3, 1fr); }
.tri-col > div { padding: 8px 32px; border-left: 1px solid var(--line); }
.tri-col > div:first-child { border-left: none; padding-left: 0; }
.tri-col h3 { font-size: 21px; margin-bottom: 8px; }
.tri-col p { color: var(--muted); font-size: 16px; }

/* ---------- 售後（淺墨綠底純文字） ---------- */
.guarantee { background: #EDF1EC; text-align: center; }
.guarantee h1 { margin-bottom: 56px; }
.guar-list { list-style: none; max-width: 760px; margin: 0 auto; text-align: left; }
.guar-list li {
  display: flex; gap: 18px; font-size: 18px; line-height: 1.9;
  padding: 30px 6px; border-top: 1px solid #C9D4C9;
}
.guar-list li:last-child { border-bottom: 1px solid #C9D4C9; }
.guar-list .tick { color: var(--gold); font-weight: 800; font-size: 20px; }
.guar-note { margin-top: 40px; color: var(--muted); font-size: 14px; }

/* ---------- 聯絡 ---------- */
.contact-list { list-style: none; max-width: 560px; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 17px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--serif); color: var(--green); font-weight: 600; min-width: 92px; }
.contact-big { margin-top: 40px; }

/* ---------- CMS 行（空值預設隱藏） ---------- */
.cms-line { display: none !important; }
.cms-line.has { display: flex !important; }

/* ---------- CTA 橫帶（每頁尾） ---------- */
.cta-band { background: var(--green); padding: 64px var(--pad); text-align: center; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 19px; letter-spacing: .08em; margin-bottom: 28px; }
.cta-band .btn { background: var(--gold); color: #fff; }

/* ---------- 頁尾 ---------- */
.site-foot { background: var(--green); color: rgba(255,255,255,.8); }
.foot-nav {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  padding: 44px var(--pad) 8px; font-size: 13px;
}
.foot-nav a { color: rgba(255,255,255,.75); text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.foot-legal {
  padding: 10px var(--pad) 40px; font-size: 13px;
  color: rgba(255,255,255,.55); letter-spacing: .05em;
}

/* ---------- 浮動 WhatsApp ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(30,58,50,.35);
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.06); }
.float-wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- RWD（手機優先反推） ---------- */
@media (max-width: 900px) {
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px var(--pad); border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav-toggle { display: block; }
  .selling-points { grid-template-columns: 1fr; gap: 22px; }
  .selling-points div { border-left: none; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .selling-points div:first-child { border-top: none; padding-top: 0; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 36px; }
  .tri-col { grid-template-columns: 1fr; gap: 26px; }
  .tri-col > div { border-left: none; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .tri-col > div:first-child { border-top: none; padding-top: 0; }
  .prod-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { min-height: 78vh; }
  .hero .sub { letter-spacing: .14em; }
  .section { padding: 56px var(--pad); }
  .hero-inner { padding: 72px var(--pad) 60px; }
}

/* ---------- Scrollytelling 首頁（溫和敘事——非 scroll-jacking，守「不要花哨動畫」底線） ---------- */
.scene { scroll-margin-top: 64px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.dot-nav {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 70; display: flex; flex-direction: column; gap: 12px;
}
.dot-nav a {
  width: 8px; height: 8px; border-radius: 50%;
  background: #B9C4BC; display: block;
  transition: background .2s ease, transform .2s ease;
}
.dot-nav a.on { background: var(--gold); transform: scale(1.35); }
.inline-cta { margin-top: 34px; }
.inline-cta a {
  color: var(--gold); font-weight: 700; text-decoration: none;
  font-size: 16px; letter-spacing: .08em;
}
.inline-cta a:hover { text-decoration: underline; }
.scene-more { display: inline-block; margin-top: 18px; font-size: 14px; letter-spacing: .12em; color: var(--muted); text-decoration: none; }
.scene-more:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 900px) {
  .dot-nav { right: 8px; gap: 10px; }
  .dot-nav a { width: 6px; height: 6px; }
}
