/* 珍珍麵包食品行 — 全站樣式（色彩／字體依設計規範） */
:root {
  --cream: #FBF6EC;
  --cream-2: #FFF9EF;
  --paper: #FFFFFF;
  --ink: #2B2013;
  --ink-2: #3D3220;
  --body: #6B5C44;
  --muted: #8A7A5F;
  --gold: #C8892A;
  --gold-dark: #A16D1E;
  --brown: #8C5A1E;
  --line: #F0E4CE;
  --line-2: #E7D2A6;
  --tint: #FBECD1;
  --dark: #2B2013;
  --dark-2: #211a15;
  --dark-text: #CBB99A;
  --dark-muted: #B3A184;
  --gutter: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  font-family: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.heading, h1, h2, h3 { font-family: "Noto Serif TC", serif; }
.display-num { font-family: "Playfair Display", "Noto Serif TC", serif; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream-2); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* 待確認內容：上線前必須換成店家真實資料 */
.tbd { outline: 2px dashed #D9534F; outline-offset: 2px; border-radius: 3px; }
.tbd-banner { background: #D9534F; color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding-top: 96px; padding-bottom: 96px; }

/* Buttons */
.btn { display: inline-block; font-weight: 700; border-radius: 10px; padding: 16px 32px; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; border: 0; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--cream-2); }
.btn-gold:hover { color: var(--cream-2); background: var(--gold-dark); }
.btn-light { background: var(--cream-2); color: var(--brown); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--cream-2); border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { color: var(--cream-2); }
.btn-pill { border-radius: 999px; padding: 11px 26px; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,246,236,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(200,137,42,.18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: auto; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 18px; font-weight: 700; font-family: "Noto Serif TC", serif; }
.brand-sub { font-size: 10px; letter-spacing: 2.5px; color: #A38B63; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a { color: #5A4B35; position: relative; padding: 4px 0; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: var(--ink); font-family: inherit; cursor: pointer; }

/* Hero */
.hero { position: relative; background: linear-gradient(120deg, rgba(43,32,19,.72), rgba(43,32,19,.42)), linear-gradient(160deg, #E4B876 0%, #C8892A 55%, #8C5A1E 100%); color: var(--cream-2); }
.hero .wrap { min-height: 640px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.badge { align-self: flex-start; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 999px; }
.hero h1 { word-break: keep-all; margin: 0; font-size: 50px; line-height: 1.35; font-weight: 700; }
.hero h1 small { display: block; font-size: .56em; font-weight: 600; color: #F7E9D2; margin-top: 8px; }
.hero p { margin: 0; font-size: 17px; line-height: 1.85; color: #F7E9D2; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.stat-stack { display: flex; flex-direction: column; gap: 16px; min-width: 220px; }
.stat-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.stat-card .display-num { font-size: 30px; font-weight: 700; }
.stat-card span:last-child { font-size: 13px; color: #F7E9D2; line-height: 1.5; }
.hero-short .wrap { min-height: 420px; }

/* Section heads */
.sec-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; margin-bottom: 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--gold); }
.sec-head h2 { margin: 0; font-size: 32px; font-weight: 700; }
.sec-head p { margin: 0; font-size: 15px; color: var(--muted); max-width: 640px; }

/* Tabs + products */
.tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.tab { padding: 12px 30px; border-radius: 999px; font-size: 15px; font-weight: 700; background: var(--paper); color: var(--body); border: 1px solid var(--line-2); cursor: pointer; font-family: inherit; }
.tab[aria-selected="true"] { background: var(--gold); color: var(--cream-2); border-color: var(--gold); }
.panel h3.panel-title { font-size: 20px; margin: 0 0 20px; color: var(--ink); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.product { background: var(--paper); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.ph { width: 100%; aspect-ratio: 4 / 2.5; display: flex; align-items: center; justify-content: center; color: var(--cream-2); font-size: 13px; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.product h4 { margin: 0; font-size: 18px; font-weight: 700; font-family: "Noto Serif TC", serif; }
.product p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--body); }
.spec { margin: 6px 0 0; font-size: 13px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; }
.spec dt { margin: 0; }
.spec dd { margin: 0; text-align: right; color: var(--ink-2); }

/* Trust / factory */
.dark { background: var(--dark); color: var(--cream-2); }
.factory { display: flex; gap: 56px; align-items: center; margin-bottom: 48px; }
.factory > * { flex: 1 1 0; }
.factory-copy { display: flex; flex-direction: column; gap: 18px; }
.factory-copy .eyebrow { color: #E3B15F; }
.factory-copy h2 { margin: 0; font-size: 30px; font-weight: 700; }
.factory-copy p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--dark-text); max-width: 480px; }
.factory-photo { aspect-ratio: 4 / 2.9; border-radius: 18px; background: linear-gradient(160deg, #6B4A26, #3A2814); display: flex; align-items: center; justify-content: center; color: #E3B15F; font-size: 14px; border: 1px solid rgba(227,177,95,.3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.trust-card { background: rgba(255,255,255,.05); border: 1px solid rgba(227,177,95,.25); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.trust-card .ico { font-size: 22px; }
.trust-card h3 { margin: 0; font-size: 15px; font-family: inherit; font-weight: 700; }
.trust-card p { margin: 0; font-size: 13px; color: var(--dark-muted); line-height: 1.6; }
.numbers { display: flex; justify-content: center; gap: 80px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(227,177,95,.2); flex-wrap: wrap; }
.numbers div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.numbers .display-num { font-size: 30px; font-weight: 700; color: #E3B15F; }
.numbers span:last-child { font-size: 13px; color: var(--dark-muted); }

/* Audience */
.aud-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.aud-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.aud-card h3 { margin: 0; font-size: 16px; }
.aud-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.aud-card.featured { grid-column: span 3; flex-direction: row; align-items: center; gap: 24px; border-color: var(--line-2); background: linear-gradient(120deg, #FFFFFF, #FBF1DE); }
.aud-card.featured .aud-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* Process */
.white { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; position: relative; }
.steps::before { content: ""; position: absolute; top: 25px; left: 10%; right: 10%; height: 2px; background: #EFDFBB; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; position: relative; padding: 0 8px; }
.steps .num { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; z-index: 1; }
.steps strong { font-size: 14.5px; }
.steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 170px; }

.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--tint); color: #6B5424; text-align: left; padding: 14px 20px; font-size: 13.5px; }
td { padding: 16px 20px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }

.summary-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px; padding: 36px 40px; }
.summary-card h2 { margin: 0 0 8px; font-size: 26px; }
.summary-card p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.8; }
.summary-card ol { margin: 12px 0 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--brown); }
.summary-card ol li { background: var(--tint); padding: 4px 12px; border-radius: 999px; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.white .faq details { background: var(--cream); }
.faq summary { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 22px 18px; font-size: 14px; color: var(--body); line-height: 1.75; }

/* Contact */
.contact { background: linear-gradient(160deg, #C8892A, #8C5A1E); color: var(--cream-2); }
.contact .wrap { display: flex; gap: 56px; }
.contact .wrap > * { flex: 1 1 0; }
.contact .eyebrow { color: var(--tint); }
.contact h2 { margin: 16px 0; font-size: 30px; }
.contact-intro { margin: 0 0 24px; font-size: 15px; line-height: 1.8; color: #F7E9D2; max-width: 420px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.contact-list small { display: block; font-size: 12px; color: #F0DCB8; }
.contact-list b { font-size: 15px; font-weight: 600; }
.form-card { background: var(--cream-2); border-radius: 18px; padding: 32px; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.form-card h3 { margin: 0; font-size: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--body); font-weight: 600; }
.field input, .field textarea { padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
.thanks { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.thanks .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, #C8892A, #8C5A1E); color: var(--cream-2); text-align: center; }
.cta-band h2 { margin: 0 0 12px; font-size: 30px; }
.cta-band p { margin: 0 auto 28px; color: #F7E9D2; max-width: 560px; }

/* Breadcrumb */
.crumb { font-size: 13px; color: #F7E9D2; }
.crumb a { color: #FFF9EF; text-decoration: underline; }

/* Footer */
.site-footer { background: var(--dark); color: #D8CBBB; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.foot-brand .brand-mark { width: 36px; }
.foot-brand p { margin: 0; font-size: 13px; line-height: 1.7; color: #A6957F; }
.foot-cols { display: flex; gap: 64px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.foot-cols strong { color: var(--cream-2); margin-bottom: 4px; }
.foot-cols a, .foot-cols span { color: #A6957F; }
.foot-cols a:hover { color: var(--cream-2); }
.copyright { background: var(--dark-2); text-align: center; font-size: 12px; color: #8A7D72; padding: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .nav { gap: 20px; }
  .hero .wrap { flex-direction: column; align-items: flex-start; }
  .stat-stack { flex-direction: row; flex-wrap: wrap; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line-2); box-shadow: 0 12px 24px rgba(43,32,19,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a[aria-current="page"]::after { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .factory, .contact .wrap, .summary-card { flex-direction: column; align-items: stretch; }
  .aud-card.featured { grid-column: span 2; }
  .steps { flex-direction: column; gap: 20px; }
  .steps::before { top: 25px; bottom: 25px; left: 25px; right: auto; width: 2px; height: auto; }
  .steps li { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 0; }
  .steps li > div { display: flex; flex-direction: column; gap: 2px; }
  .steps p { max-width: none; }
  .site-footer .wrap { flex-direction: column; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  section { padding-top: 64px; padding-bottom: 64px; }
  .brand-sub { display: none; }
  .hero .wrap { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
  .stat-stack { flex-direction: column; width: 100%; }
  .sec-head h2 { font-size: 26px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .aud-card.featured { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .numbers { gap: 32px; }
  .tab { padding: 10px 20px; font-size: 14px; }
  .summary-card { padding: 24px; }
  .form-card { padding: 22px; }
  .foot-cols { flex-direction: column; gap: 28px; }
  /* 表格改卡片式 */
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { border-top: 1px solid var(--line); padding: 12px 16px; }
  tr:first-child { border-top: 0; }
  td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 7em 1fr; gap: 8px; }
  td::before { content: attr(data-label); font-weight: 700; color: #6B5424; font-size: 13px; }
}

/* ---------- 2026-10-02：真實照片與店家資料 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
img.ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
img.factory-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo { background: linear-gradient(110deg, rgba(43,32,19,.86) 0%, rgba(43,32,19,.62) 55%, rgba(43,32,19,.35) 100%), url("img/hero.jpg") center 55% / cover no-repeat; }
.note { text-align: center; margin: 32px 0 0; color: var(--muted); font-size: 14px; }
.contact-link { color: var(--cream-2); text-decoration: underline; text-underline-offset: 3px; }
.contact-link:hover { color: #fff; }
.foot-brand p + p { font-size: 12px; color: #8A7D72; }
.factory-copy p + p { margin-top: -6px; }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.factory > * { min-width: 0; }
