/* ============================================================
   彰顯豐味 · 數位暖心 — 主樣式
   扁平化設計 · UX 優先 · CSS icon · 紙墨色系
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 排版（活潑、大氣）---------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.28; letter-spacing: .01em; }
.display { font-size: 58px; font-weight: 800; letter-spacing: -.01em; line-height: 1.12; }
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.body { font-family: var(--font-serif); font-weight: 500; line-height: 1.85; }
.caption { font-size: 12px; font-family: var(--font-sans); color: var(--ink3); }
/* eyebrow：從冷調 mono 標籤改為活潑的圓角藥丸徽章 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: none;
  color: #b45309; background: var(--gold-bg);
  padding: 5px 13px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.text-center > .eyebrow, .eyebrow.text-center { } /* keep inline-flex centering via parent text-align */
code, .code { font-family: var(--font-mono); font-size: 13px; }

/* ---------- Material Symbols（圓角 CSS 圖示）---------- */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal;
  direction: ltr; -webkit-font-smoothing: antialiased; vertical-align: -.18em;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding-block: var(--space-16); }      /* 只設上下，避免覆蓋 .container 的左右留白 */
.section-sm { padding-block: var(--space-10); }
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 可調比例的兩欄版面（手機自動收成單欄）*/
.split { display: grid; gap: var(--space-6); align-items: start; grid-template-columns: var(--split, 1fr 1fr); }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2{margin-top:var(--space-2)} .mt-4{margin-top:var(--space-4)} .mt-6{margin-top:var(--space-6)}
.mb-2{margin-bottom:var(--space-2)} .mb-4{margin-bottom:var(--space-4)} .mb-6{margin-bottom:var(--space-6)}
.text-center { text-align: center; }
.muted { color: var(--ink3); }
/* 活潑的段落標題裝飾：標題下方金色短線 */
.title-accent { display: block; }
.title-accent::after {
  content: ""; display: block; width: 56px; height: 5px; margin: 14px auto 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold2));
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(253,245,232,0.9);
  backdrop-filter: saturate(170%) blur(10px);
  border-bottom: 2px solid var(--gold);
}
.site-header .container { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-logo { height: 52px; width: auto; display: block; }
.logo-mark { display: block; flex: none; filter: drop-shadow(0 2px 4px rgba(239,154,30,.25)); }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--ink); color: var(--gold2);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 16px; font-weight: 700;
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 19px; color: var(--ink); letter-spacing: .02em; line-height: 1.15; }
.brand-sub { font-size: 11px; font-family: var(--font-mono); color: var(--ink3); letter-spacing: .15em; text-transform: uppercase; line-height: 1.2; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { color: var(--ink2); font-family: var(--font-sans); font-size: 14px; }
.nav-links a:hover { color: var(--gold); }
.nav-account { display: inline-flex; align-items: center; gap: 5px; color: var(--ink2); font-family: var(--font-sans); font-size: 14px; }
.nav-account:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; line-height: 0; }
.nav-toggle .ms { font-size: 26px; }

/* ---------- Buttons（5 層級）---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; line-height: 1;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lg:hover, .btn-gold:hover, .btn-primary:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink2); color: var(--paper); }
.btn-gold { background: linear-gradient(180deg, #fbab1f, #e08c08); color: #fff; font-weight: 700;
  text-shadow: 0 1px 2px rgba(110,55,0,.3); box-shadow: 0 3px 10px rgba(239,154,30,.34); }
.btn-gold:hover { background: linear-gradient(180deg, #ffb733, #d97706); color: #fff; }
/* 柔和金：與主色和諧的次要按鈕（取代刺眼的金＋黑配對） */
.btn-gold-soft { background: var(--gold-bg); color: #b45309; font-weight: 700; border-color: rgba(239,154,30,.45); }
.btn-gold-soft:hover { background: rgba(239,154,30,.22); color: #7a4d08; border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--ink2); border-color: var(--paper3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink2); }
.btn-ghost:hover { background: var(--paper2); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a93226; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; color:#fff; }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(120,60,0,.12); }
.btn-white:hover { background: #fff7ea; color: var(--ink); }
/* 灰藍：與橘黃互補的次要按鈕 */
.btn-slate { background: linear-gradient(180deg, #5d7e99, #44637e); color: #fff; font-weight: 700;
  box-shadow: 0 3px 10px rgba(79,111,138,.30); }
.btn-slate:hover { background: linear-gradient(180deg, #6b8ca8, #3a566e); color: #fff; }
.btn-slate-soft { background: var(--slate-bg); color: var(--slate2); font-weight: 700; border-color: rgba(79,111,138,.40); }
.btn-slate-soft:hover { background: rgba(79,111,138,.20); color: #2c4256; border-color: var(--slate); }

/* ---------- Hero 區塊（淺灰底 + 框景照片 + 橘黃重點 + 灰藍點綴）---------- */
.hero {
  background: linear-gradient(170deg, var(--paper2) 0%, var(--paper) 55%);
  color: var(--ink); position: relative; overflow: hidden;
}
.hero::before { /* 左上暖橘光暈（淡） */
  content: ""; position: absolute; left: -140px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(239,154,30,.16), transparent 70%); pointer-events: none;
}
.hero::after { /* 右下灰藍光暈（淡） */
  content: ""; position: absolute; right: -120px; bottom: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(79,111,138,.16), transparent 70%); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-16); align-items: center; }
.hero-media { position: relative; }
.hero-frame {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 5/4;
  border: 7px solid #fff; box-shadow: var(--shadow-lg); z-index: 1; transform: rotate(-1.4deg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame::after { /* 灰藍薄膜：把暖照片壓涼一點 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(58,86,110,.10), rgba(58,86,110,.42));
  mix-blend-mode: multiply; pointer-events: none;
}
.hero-blob { /* 照片後方灰藍色塊 */
  position: absolute; right: -26px; top: -26px; width: 60%; height: 86%;
  background: linear-gradient(150deg, #5d7e99, #3a566e); border-radius: 26px;
  transform: rotate(3deg); z-index: 0; opacity: .9;
}
.hero-float { /* 浮出的橘黃溫度卡 */
  position: absolute; left: -22px; bottom: -22px; z-index: 2;
  background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--paper3);
}
.hero-float .ht { font-family: var(--font-serif); font-weight: 800; font-size: 30px; line-height: 1;
  color: var(--gold); }
.hero-float .hl { font-size: 12px; color: var(--ink3); font-weight: 700; }
.hero-float .ms { color: var(--gold); font-size: 30px; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-media { margin-top: var(--space-4); max-width: 460px; }
  .hero-frame { transform: none; }
  .hero-float { left: 8px; }
}

/* ---------- Tags（語意固定）---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 999px; line-height: 1.5;
}
.tag-gold   { background: var(--gold-bg);   color: #b45309; }
.tag-blue   { background: var(--blue-bg);   color: var(--blue); }
.tag-slate  { background: var(--slate-bg);  color: var(--slate2); }
.tag-teal   { background: var(--teal-bg);   color: var(--teal); }
.tag-red    { background: var(--red-bg);    color: var(--red); }
.tag-purple { background: var(--purple-bg); color: var(--purple); }
.tag-ink    { background: var(--paper3);    color: var(--ink2); }
.tag-mono   { font-family: var(--font-sans); font-weight: 700; letter-spacing: .02em; font-size: 12.5px; padding: 5px 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper2); border: 1px solid var(--paper3);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card-hover { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-hover:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-accent { border-left: 3px solid var(--gold); }
.card-warn { border: 1px solid var(--red); background: var(--red-bg); }

/* ---------- 店家卡片 ---------- */
.store-card {
  background: var(--paper2); border: 1px solid var(--paper3);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.store-card .thumb {
  aspect-ratio: 16/10; background: var(--paper3) center/cover;
  display: grid; place-items: center; color: var(--ink3);
  font-family: var(--font-mono); font-size: 28px; position: relative;
  overflow: hidden;   /* 等比裁切，所有卡縮圖一致 16:10 */
}
/* 封面照片：填滿 16:10 框並等比裁切（object-fit:cover），不撐高卡片 */
.store-card .thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.store-card .thumb > svg { width: 100%; height: 100%; display: block; }
.store-card .thumb .ph-emoji { font-size: 42px; }
.store-card .body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.store-card .name { font-size: 18px; color: var(--ink); line-height: 1.3; }
.store-card .meta { font-size: 12px; font-family: var(--font-sans); color: var(--ink3); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.store-card .rating { color: var(--gold); font-weight: 600; font-family: var(--font-sans); }

/* ---------- Alert ---------- */
.alert {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  font-size: 14px; font-family: var(--font-sans);
}
.alert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; }
.alert-info    { background: var(--blue-bg); color: var(--blue); }
.alert-info::before { background: var(--blue); }
.alert-success { background: var(--teal-bg); color: var(--teal); }
.alert-success::before { background: var(--teal); }
.alert-notice  { background: var(--gold-bg); color: #b45309; }
.alert-notice::before { background: var(--gold); }
.alert-error   { background: var(--red-bg); color: var(--red); }
.alert-error::before { background: var(--red); }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-4); }
.label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); margin-bottom: 6px;
}
.input, .select, .textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: #fdfcfa; border: 1px solid var(--paper3); border-radius: var(--radius-md);
  padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: var(--focus-ring);
}
.input.error, .select.error { border-color: var(--red); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink3); text-align: left; padding: 10px 14px; background: var(--paper2);
  border-bottom: 1px solid var(--paper3);
}
.table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--paper3); font-family: var(--font-sans); }
.table tbody tr:hover { background: var(--paper2); }

/* ---------- Stat card（數據展示）---------- */
.stat {
  background: var(--paper2); border: 1px solid var(--paper3);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6) var(--space-3);
}
.stat .stat-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); }
.stat .stat-value { font-family: var(--font-serif); font-size: 40px; color: var(--ink); line-height: 1.1; margin: 4px 0 8px; }
.stat .stat-bar { height: 3px; background: var(--paper3); border-radius: 2px; overflow: hidden; }
.stat .stat-bar > i { display: block; height: 100%; background: var(--gold); }

/* ---------- 溫度計（可重用元件）---------- */
.thermo-card { padding-top: var(--space-6); }
.thermo-svg { width: 180px; max-width: 100%; height: auto; display: block; margin: 0 auto var(--space-2); }
.thermo-read { font-family: var(--font-serif); line-height: 1; margin-top: var(--space-2); }
.thermo-deg { font-size: 46px; font-weight: 700; }
.thermo-unit { font-size: 22px; color: var(--ink3); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper2); padding: var(--space-16) 0 var(--space-6); margin-top: var(--space-16); }
.site-footer a { color: var(--paper3); }
.site-footer a:hover { color: var(--gold2); }
.site-footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-10); }
.site-footer h4 { color: var(--gold2); font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-4); font-weight: 500; }
.site-footer .copyright { border-top: 1px solid #2a2824; margin-top: var(--space-10); padding-top: var(--space-6); font-size: 12px; color: var(--ink3); font-family: var(--font-sans); }

/* ---------- Hero 上下留白 ---------- */
.hero { padding-block: calc(var(--space-16) + 6px); }

/* ---------- 圖示圓環（通用：圓形＋置中，可獨立於步驟卡使用）---------- */
.ring {
  width: 88px; height: 88px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 6px 16px rgba(120,72,10,.2);
}
.ring .ms { color: #fff; font-size: 42px; line-height: 1; }

/* ---------- 活動玩法 步驟卡（活潑可愛）---------- */
.steps { position: relative; }
.step-card {
  text-align: center; position: relative;
  background: var(--sc-bg, var(--paper2)); border: 2px solid var(--sc-bd, var(--paper3));
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6) var(--space-6);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.step-card:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: 0 20px 44px var(--sc-sh, var(--shadow-lg)); }
.step-ring-wrap { position: relative; width: 96px; margin: 0 auto var(--space-4); }
/* 圖示後方柔光圈 */
.step-ring-wrap::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: var(--sc, var(--gold)); opacity: .14;
}
.step-card .ring {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 10px 22px var(--sc-sh, rgba(120,72,10,.25));
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.step-card:hover .ring { transform: scale(1.1) rotate(-7deg); }
.step-card .ring .ms { font-size: 48px; color: #fff; }
.step-num {
  position: absolute; top: -6px; right: -6px;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--sc, var(--gold)); display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 800; font-size: 18px;
  border: 3px solid var(--sc, var(--gold)); box-shadow: var(--shadow-sm);
}
.step-card h3 { font-size: 22px; margin-bottom: var(--space-2); }
.step-card .body { font-size: 15px; }
/* 步驟連接箭頭（桌機，呈現 1→2→3 流程感） */
.steps .step-card:not(:last-child)::after {
  content: ""; position: absolute; top: 84px; right: -26px; z-index: 2;
  width: 16px; height: 16px; border-top: 4px solid var(--gold); border-right: 4px solid var(--gold);
  transform: rotate(45deg); opacity: .55;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr !important; }   /* 手機：三步驟改為單欄堆疊，標題不再被擠斷 */
  .steps .step-card:not(:last-child)::after { display: none; }
  .steps .step-card { padding: var(--space-6) var(--space-6); }
}
.ring-gold  { background: linear-gradient(135deg, #fbbf24, #ef9a1e); }
.ring-slate { background: linear-gradient(135deg, #6f8fac, #4f6f8a); }
.ring-teal  { background: linear-gradient(135deg, #2aa897, #1a7a6e); }
.ring-red   { background: linear-gradient(135deg, #e1685b, #c0392b); }
.c-gold  { --sc:#ef9a1e; --sc-bg:#fdf4e3; --sc-bd:#f3d59a; --sc-sh:rgba(239,154,30,.26); }
.c-slate { --sc:#4f6f8a; --sc-bg:#eef2f6; --sc-bd:#c4d3df; --sc-sh:rgba(79,111,138,.24); }
.c-teal  { --sc:#1a7a6e; --sc-bg:#e8f6f2; --sc-bd:#a9ded4; --sc-sh:rgba(26,122,110,.24); }
.c-red   { --sc:#c0392b; --sc-bg:#fdeeeb; --sc-bd:#f3c3bc; --sc-sh:rgba(192,57,43,.22); }

/* ---------- 公益亮點 深色大色塊 ---------- */
.band {
  background: radial-gradient(120% 140% at 0% 0%, #2c3e4d 0%, #1b2731 60%);
  color: var(--paper2); border-radius: var(--radius-xl);
  padding: var(--space-16); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.band::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(239,154,30,.35), transparent 70%); pointer-events: none;
}
.band h2 { color: #fff; font-size: 34px; line-height: 1.3; }
.band .big-temp { font-size: 92px; font-weight: 800; color: var(--gold2); line-height: 1; letter-spacing: -.02em; }

/* ---------- 公益感謝狀（網頁版・活動風，原生清晰）---------- */
.cert2 {
  background: radial-gradient(140% 120% at 50% -10%, #fffefb 0%, #faf5ea 70%);
  border: 1px solid var(--paper3); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 10px;
}
.cert2-frame {
  border: 2px solid var(--gold); border-radius: var(--radius-sm);
  padding: var(--space-10) var(--space-10) var(--space-6); text-align: center;
}
.cert2-badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--space-3);
  background: linear-gradient(135deg, #fbbf24, #e2880f); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(226,136,15,.3);
}
.cert2-badge .ms { font-size: 34px; font-variation-settings: 'FILL' 1; }
.cert2-kicker { font-size: 13px; color: var(--slate2); font-weight: 700; }
.cert2-title {
  font-size: 38px; font-weight: 800; color: var(--gold);
  letter-spacing: .18em; text-indent: .18em; margin: var(--space-2) 0 var(--space-2);
}
.cert2-title::after {
  content: ""; display: block; width: 90px; height: 4px; margin: var(--space-2) auto 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--slate));
}
.cert2-sub { font-size: 15px; color: var(--slate2); margin-bottom: var(--space-4); }
.cert2-to { font-size: 26px; color: var(--ink); font-weight: 800; margin-bottom: var(--space-4); }
.cert2-to-l { font-size: 15px; color: var(--ink3); font-weight: 700; margin-right: 8px; }
.cert2-body { max-width: 48ch; margin: 0 auto var(--space-6); font-size: 16px; line-height: 2; color: var(--ink2); }
.cert2-body strong { color: var(--gold); }
.cert2-pill {
  display: inline-block; background: var(--gold-bg); color: #b45309; font-weight: 700;
  border-radius: 999px; padding: 8px 22px; font-size: 15px; margin-bottom: var(--space-6);
}
.cert2-sign { font-size: 13px; color: var(--ink3); margin-bottom: var(--space-1); }
.cert2-date { font-size: 16px; color: var(--ink2); font-weight: 700; letter-spacing: .06em; }
@media (max-width: 560px) {
  .cert2-frame { padding: var(--space-6); }
  .cert2-title { font-size: 30px; }
  .cert2-to { font-size: 22px; }
  .cert2-body { font-size: 15px; line-height: 1.9; }
  .cert2-sign { font-size: 11px; }
}

/* ---------- 圖形驗證碼 ---------- */
.captcha-row { display: flex; gap: var(--space-3); align-items: stretch; }
.captcha-row .input { flex: 1; margin-bottom: 0; letter-spacing: .15em; font-weight: 700; }
.captcha-img {
  width: 150px; height: 50px; flex: none; border-radius: var(--radius-sm);
  border: 1px solid var(--paper3); cursor: pointer; display: block;
  background: var(--paper); box-shadow: var(--shadow-sm);
}

/* ---------- 公益捐款 感謝狀（正式證書）---------- */
/* 感謝狀：直接顯示後端產生的圖片，網頁與分享圖完全一致 */
.cert-img {
  display: block; width: 100%; max-width: 760px; margin: 0 auto;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.cert {
  position: relative; overflow: hidden;
  background:
    radial-gradient(140% 120% at 50% -10%, #fffefb 0%, #faf5ea 70%);
  border: 1px solid var(--paper3); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.cert-inner { /* 金色雙框（感謝狀外框） */
  margin: 14px; padding: var(--space-16) var(--space-16) var(--space-10);
  border: 2px solid var(--gold); border-radius: var(--radius-sm);
  position: relative;
}
.cert-inner::before { /* 內側細灰藍線 */
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border: 1px solid rgba(79,111,138,.40); border-radius: 3px;
}
.cert-inner > * { position: relative; z-index: 1; }
.cert-kicker {
  text-align: center; font-size: 13px; letter-spacing: .06em;
  color: var(--slate2); font-weight: 700; margin-bottom: var(--space-6);
}
.cert-title {
  text-align: center; font-size: 44px; font-weight: 800; color: var(--ink);
  letter-spacing: .2em; text-indent: .2em; margin: var(--space-2) 0 var(--space-3);
}
.cert-title::after { /* 標題下短飾線 */
  content: ""; display: block; width: 70px; height: 4px; margin: var(--space-3) auto 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--slate));
}
.cert-to { text-align: center; color: var(--ink3); font-size: 14px; margin-top: var(--space-6); }
.cert-recipient {
  text-align: center; font-size: 30px; font-weight: 800; color: var(--ink);
  margin: var(--space-1) 0 var(--space-6); border-bottom: 2px solid var(--paper3);
  display: inline-block; left: 50%; position: relative; transform: translateX(-50%);
  padding: 0 var(--space-6) 4px;
}
.cert-jun { font-size: 20px; color: var(--ink2); font-weight: 700; }
.cert-body {
  font-size: 17px; line-height: 2.4; color: var(--ink); text-align: justify;
  text-indent: 2em; margin: var(--space-4) 0 var(--space-10);
}
.cert-body strong { color: var(--gold); }
.cert-sign {
  position: relative; text-align: right; line-height: 1.6;
  padding-right: 96px; min-height: 84px;
}
.cert-sign-unit { line-height: 1.7; }
.cert-sign-l { font-size: 12px; letter-spacing: .1em; color: var(--ink3); font-weight: 700; margin-right: 8px; }
.cert-sign-org { font-size: 18px; font-weight: 800; color: var(--ink); }
.cert-seal { /* 紅色篆印 */
  position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(-8deg);
  width: 70px; height: 70px; border-radius: 10px; display: grid; place-items: center;
  border: 3px solid var(--red); color: var(--red);
  font-family: var(--font-serif); font-weight: 800; font-size: 34px;
  opacity: .82; box-shadow: inset 0 0 0 4px rgba(192,57,43,.16);
}
.cert-date {
  text-align: center; margin-top: var(--space-10); padding-top: var(--space-6);
  border-top: 1px dashed var(--paper3); color: var(--ink2);
  font-size: 17px; letter-spacing: .08em; font-weight: 700;
}
/* 感謝狀分享列 */
.cert-share {
  margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--space-3);
  background: var(--paper2); border: 1px solid var(--paper3);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6);
}
.cert-share-l { font-weight: 700; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.cert-share-btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sh-fb   { background: #1877f2; color: #fff; } .sh-fb:hover   { background: #1466d8; color: #fff; }
.sh-line { background: #06c755; color: #fff; } .sh-line:hover { background: #05b34c; color: #fff; }
.sh-x    { background: #111;    color: #fff; } .sh-x:hover    { background: #000;    color: #fff; }
@media (max-width: 560px) {
  .cert-inner { margin: 8px; padding: var(--space-10) var(--space-6); }
  .cert-title { font-size: 32px; }
  .cert-recipient { font-size: 24px; }
  .cert-body { font-size: 15px; line-height: 2.1; }
  .cert-sign { padding-right: 64px; }
  .cert-seal { width: 54px; height: 54px; font-size: 26px; }
}

/* ---------- 活動標頭（淺底＋灰藍點綴，橘黃只當重點）---------- */
.band-gold {
  background: linear-gradient(150deg, var(--paper2) 0%, var(--paper) 60%);
  color: var(--ink); border: 1px solid var(--paper3); border-radius: var(--radius-xl);
  padding: var(--space-10); position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.band-gold::before { /* 左側灰藍直條 */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, #5d7e99, #3a566e);
}
.band-gold::after { /* 右上灰藍＋左下橘黃光暈，冷暖平衡 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(320px 320px at calc(100% + 30px) -50px, rgba(79,111,138,.16), transparent 70%),
    radial-gradient(300px 300px at -50px calc(100% + 50px), rgba(239,154,30,.12), transparent 70%);
}
.band-gold > * { position: relative; z-index: 1; }
.thermo-panel { background: #fff; border: 1px solid var(--paper3); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-4) var(--space-3); text-align: center; box-shadow: var(--shadow-md); }

/* ---------- 集點卡（5 格印章）---------- */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.stamp {
  aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; padding: 6px; text-align: center;
  transition: transform .18s;
}
.stamp.done { background: linear-gradient(135deg, #f3a836, #e2880f); color: #fff; box-shadow: 0 8px 18px rgba(226,136,15,.30); }
.stamp.done:hover { transform: translateY(-3px) rotate(-3deg); }
.stamp.todo { background: #fff; border: 2px dashed var(--paper3); color: var(--ink3); }
.stamp .ms { font-size: 32px; }
.stamp-no { font-size: 30px; font-weight: 800; font-family: var(--font-sans); opacity: .45; }
.stamp-name { font-size: 11px; font-family: var(--font-sans); font-weight: 700; line-height: 1.15; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .stamp-name { display: none; } .stamp .ms { font-size: 24px; } .stamp-no { font-size: 22px; } }

/* ---------- 裝飾大圓點 ---------- */
.deco { position: relative; }
.deco-dot { position: absolute; border-radius: 50%; opacity: .5; pointer-events: none; z-index: 0; }

/* ---------- 搜尋框（藥丸樣式）---------- */
.search-box { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--paper3); border-radius: 999px; padding: 7px 16px; transition: border-color .15s, box-shadow .15s; }
.search-box .ms { color: var(--ink3); font-size: 19px; }
.search-box input { border: none; outline: none; background: none; font-family: var(--font-sans); font-size: 14px; width: 170px; max-width: 46vw; color: var(--ink); }
.search-box:focus-within { border-color: var(--gold); box-shadow: var(--focus-ring); }

/* ---------- Modal 視窗（含搜尋的店家選擇器）---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,14,6,.55); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative; z-index: 1; width: min(560px, 92vw); max-height: 82vh;
  margin: 6vh auto 0; background: var(--paper); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--paper3); }
.modal-head strong { font-size: 18px; color: var(--ink); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--ink3); display: grid; place-items: center; padding: 4px; }
.modal-close:hover { color: var(--ink); }
.modal-close .ms { font-size: 24px; }
.modal-search { padding: var(--space-4) var(--space-6) var(--space-2); }
.modal-list { overflow-y: auto; padding: var(--space-2) var(--space-4) var(--space-4); }
.picker-item { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border-radius: var(--radius-md); cursor: pointer; color: var(--ink2); }
.picker-item:hover { background: var(--gold-bg); }
.picker-item .ring { width: 42px; height: 42px; box-shadow: none; }
.picker-item .ring .ms { font-size: 21px; }
.picker-item strong { color: var(--ink); }

/* ---------- 回到頂部 浮動按鈕 ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1200;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: #fff; border: none;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(239,154,30,.45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold2); color: var(--ink); }
.to-top .ms { font-size: 24px; }
@media print { .to-top { display: none; } }

/* ---------- CSS Icons（純 CSS 圖示）---------- */
.ic { display: inline-block; width: 1em; height: 1em; position: relative; vertical-align: -.125em; }
.ic-pin::before { content: ""; position: absolute; inset: 0 .12em .25em .12em; border: .14em solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.ic-phone::before { content: "\260E"; }
.ic-clock::before { content: ""; position: absolute; inset: 0; border: .14em solid currentColor; border-radius: 50%; }
.ic-clock::after { content: ""; position: absolute; left: 50%; top: 22%; width: .1em; height: .3em; background: currentColor; transform-origin: bottom; }
.ic-star::before { content: "\2605"; }
.ic-arrow::before { content: "\2192"; }

/* ---------- 地圖標記（Leaflet divIcon）---------- */
.store-pin .pin {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 0;
  background: var(--pin, var(--gold)); transform: rotate(-45deg);
  border: 2px solid #fff; box-shadow: 0 3px 8px rgba(15,14,12,.35);
  display: grid; place-items: center;
}
.store-pin .pin-emoji { transform: rotate(45deg); color: #fff; line-height: 1; }
.store-pin .pin-emoji.ms { font-size: 20px; font-variation-settings: 'FILL' 1, 'wght' 500; }
.store-pin .pin:hover { filter: brightness(1.08); }

/* 地圖彈窗 */
.map-pop { font-family: var(--font-sans); text-align: center; padding: 4px 2px; min-width: 160px; }
.map-pop-emoji { font-size: 30px; }
.map-pop-name { font-family: var(--font-serif); font-size: 17px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.map-pop-cat { font-size: 12px; color: var(--gold); margin: 2px 0; }
.map-pop-addr { font-size: 12px; color: var(--ink3); margin-bottom: 8px; line-height: 1.4; }
.map-pop-btn {
  display: inline-block; background: var(--ink); color: var(--paper) !important;
  font-size: 13px; padding: 7px 14px; border-radius: var(--radius-md); width: 100%;
}
.map-pop-btn:hover { background: var(--gold); color: var(--ink) !important; }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-container { font-family: var(--font-sans); }

/* ---------- 響應式 ---------- */
@media (max-width: 880px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .split  { grid-template-columns: 1fr !important; }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .display { font-size: 34px; }
  h1 { font-size: 26px; }
  .nav { gap: var(--space-3); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--paper3);
    box-shadow: var(--shadow-md); padding: var(--space-2) var(--space-6);
    display: none; z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid var(--paper3); font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .section { padding-block: var(--space-10); }
  .container, .container-narrow { padding: 0 var(--space-4); }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  /* 寬表格在小螢幕可橫向捲動，不撐破版面 */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .display { font-size: 30px; }
  .brand-logo { height: 40px; }
  .nav-account-name { display: none; }
  .btn-lg { padding: 12px 18px; font-size: 15px; }
  .section { padding-block: var(--space-6); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: var(--space-6); page-break-inside: avoid; }
}
