/**
 * 牽成商城入口樣式 — 「名錄・證書・巡店」編輯式設計（第一期）
 *
 * 設計主軸（全球獨一無二，不用電商模板語彙）：
 *   入口是一本「全台牽成店家名錄」：紙色、襯線標題、細線框；
 *   店家以「證書牌」呈現（雙線框＋朱紅認證印），動線是「巡店」，
 *   付費曝光是同業具名推薦的「放送」短欄。沒有商品格牆、沒有橫幅輪播、
 *   搜尋只作輔助（頁首小字連結）。桌機／平板／手機三段排版各自成立。
 *
 * 色彩：紙 #f7f2e7／深紙 #efe7d3／墨 #22302a／墨綠 #1f3a30／金 #b98a44／朱印 #b3402e／海霧 #5b7a72
 *
 * 台灣意象系統（2026-10-28 強化，皆為原創手繪，不用圖庫與現成紋樣）：
 *   手繪台灣島圖（實際海岸取形＋中央山脈淡墨稜線＋等深點線圈＋離島）、
 *   山稜線分隔帶、海湧單筆曲線、巡店帶的茶園梯田等高線環、縣市朱印小方印。
 */
:root {
  --paper: #f7f2e7;
  --paper2: #fffdf6;
  --paper-dk: #efe7d3;
  --ink: #22302a;
  --ink2: #4d5a50;
  --muted: #8a8271;
  --green: #1f3a30;
  --green2: #2c5243;
  --gold: #b98a44;
  --seal: #b3402e;
  --sea: #5b7a72;
  --line: #d9cfb6;
  --line2: #e6dcc4;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
::selection { background: rgba(185,138,68,.3); }
body {
  margin: 0; color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.85;
  background:
    radial-gradient(1200px 500px at 50% -12%, #fffdf4 0%, rgba(255,253,244,0) 55%),
    var(--paper);
}
a { color: var(--green2); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .86em; }

/* ---------- 頁首：名錄刊頭 ---------- */
.masthead { border-bottom: 3px double var(--green); }
.masthead-top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 0 6px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; flex: none; }
.brand-lockup { height: 58px; width: auto; display: block; }
.masthead nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.masthead nav a {
  color: var(--ink2); text-decoration: none; font-size: 16px; padding: 4px 12px;
  letter-spacing: .06em; border-radius: 6px;
}
.masthead nav a:hover { color: var(--green); background: rgba(31,58,48,.06); }
.masthead nav a.search-link { color: var(--muted); font-size: 14px; border: 1px solid var(--line); border-radius: 999px; }
.masthead-sub {
  display: flex; gap: 14px; flex-wrap: wrap; padding: 2px 0 12px;
  font-size: 13.5px; color: var(--muted); letter-spacing: .14em;
}
.masthead-sub .rule { flex: 1; border-bottom: 1px solid var(--line); transform: translateY(-4px); }

/* ---------- 首屏：宣言＋島嶼地圖 ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; padding: 44px 0 30px; align-items: start; }
.hero h1 {
  font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1.35;
  letter-spacing: .04em; margin: 6px 0 16px;
}
.hero h1 .hl { color: var(--green); box-shadow: inset 0 -0.42em 0 rgba(185,138,68,.28); }
.hero .kicker { font-size: 14px; letter-spacing: .34em; color: var(--seal); font-weight: 700; }
.hero p.lede { font-size: 18.5px; color: var(--ink2); max-width: 34em; }
.hero-stats { display: flex; gap: 34px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats .n { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--green); }
.hero-stats .l { font-size: 13px; color: var(--muted); letter-spacing: .18em; }
.hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-size: 16px; letter-spacing: .05em;
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--green);
  background: var(--green); color: #f5efe0;
}
.btn:hover { background: var(--green2); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: rgba(31,58,48,.07); }

/* 地圖（2026-10-28 重畫）：裝裱掛畫式雙線框＋手繪島圖＋圖例 */
.island {
  background: linear-gradient(180deg, #fdfaf1, var(--paper2));
  border: 1.5px solid var(--green); border-radius: 10px;
  padding: 20px 20px 12px; position: relative;
  box-shadow: 0 10px 28px rgba(34,48,42,.08);
}
.island::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(185,138,68,.65);
  border-radius: 5px; pointer-events: none;
}
.island-head { display: flex; align-items: baseline; gap: 12px; }
.island h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; letter-spacing: .12em; }
.island-head .en { font-size: 11px; letter-spacing: .34em; color: var(--gold); font-weight: 700; }
.island .cap { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.island-map {
  position: relative; border: 1px solid var(--line); border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(31,58,48,.045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(31,58,48,.045) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, #fdfaf1, #f2ead3);
}
.island svg { width: 100%; height: auto; display: block; }
.island svg text { font-family: var(--serif); }
.map-word { fill: var(--sea); }
.map-word.sea { font-size: 15px; }
.map-word.ridge-word { font-size: 10.5px; fill: var(--ink); opacity: .55; }
.compass-n { font-size: 9.5px; fill: var(--green); font-weight: 700; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink2); }
.map-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--seal); border: 2px solid #fdfaf1; box-shadow: 0 0 0 1px rgba(179,64,46,.45); flex: none; }
.lg-ridge { width: 26px; height: 10px; flex: none; }
.lg-ring { width: 12px; height: 12px; border-radius: 50%; border: 1.6px dotted var(--sea); flex: none; }
.lg-isle { width: 12px; height: 8px; border-radius: 50%; background: #e9dcbc; border: 1px solid var(--gold); flex: none; }
.map-note { font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--seal); border: 2.5px solid #fdfaf1;
  box-shadow: inset 0 0 0 1.5px rgba(253,250,241,.55), 0 0 0 1px rgba(179,64,46,.45), 0 2px 8px rgba(179,64,46,.35);
  text-decoration: none; z-index: 2;
}
.pin::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid rgba(179,64,46,.5); animation: pinpulse 2.6s ease-out infinite;
}
@keyframes pinpulse { 0% { transform: scale(.45); opacity: .9; } 70% { transform: scale(1); opacity: 0; } 100% { opacity: 0; } }
.pin .pin-name {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; color: var(--ink); line-height: 1.3;
  background: rgba(255,253,246,.94); border: 1px solid var(--line2);
  padding: 3px 10px 4px; border-radius: 10px;
  display: flex; flex-direction: column;
}
.pin .pn-store { font-size: 13px; font-weight: 700; }
.pin .pn-county { font-size: 10.5px; color: var(--muted); letter-spacing: .18em; }
.pin.flip .pin-name { left: auto; right: 20px; }

/* ---------- 台灣意象分隔：山稜線／海湧曲線 ---------- */
.ridge-divider { line-height: 0; }
.ridge-divider svg { width: 100%; height: 36px; display: block; }
.wave-line { line-height: 0; margin: 30px 0 0; }
.wave-line svg { width: 100%; height: 22px; display: block; }

/* ---------- 段落標題 ---------- */
.sec-head { display: flex; align-items: baseline; gap: 16px; margin: 46px 0 6px; }
.sec-head h2 { font-family: var(--serif); font-size: 29px; letter-spacing: .08em; margin: 0; }
.sec-head .en { font-size: 12px; letter-spacing: .34em; color: var(--gold); font-weight: 700; }
.sec-head .rule { flex: 1; border-bottom: 1px solid var(--line); transform: translateY(-5px); }
@media (max-width: 719px) {
  .sec-head { flex-wrap: wrap; row-gap: 4px; }
  .sec-head h2 { white-space: nowrap; word-break: keep-all; }
  .sec-head .rule { flex-basis: 100%; }
}
.sec-sub { color: var(--ink2); max-width: 46em; margin: 4px 0 18px; }
.nobr { white-space: nowrap; }

/* ---------- 證書牆 ---------- */
.cert-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert {
  position: relative; background: var(--paper2);
  border: 1.5px solid var(--green); border-radius: 6px;
  padding: 22px 22px 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 3px 10px rgba(34,48,42,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cert::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--gold);
  border-radius: 3px; pointer-events: none; opacity: .75;
}
.cert:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(34,48,42,.12); }
.cert .cert-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; letter-spacing: .3em; color: var(--muted);
  border-bottom: 1px solid var(--line2); padding-bottom: 8px;
}
.cert h3 { font-family: var(--serif); font-size: 24px; margin: 4px 0 0; letter-spacing: .05em; }
.cert .meta { font-size: 14.5px; color: var(--sea); letter-spacing: .08em; }
.cert .quote { font-family: var(--serif); font-size: 17.5px; line-height: 1.7; color: var(--ink2); margin: 2px 0; }
.cert .spec { font-size: 14.5px; color: var(--ink2); }
.cert .cert-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 10px; font-size: 14.5px;
}
.cert .go { font-weight: 700; color: var(--green); letter-spacing: .06em; }
.seal-stamp {
  /* 認證章（2026-10-28 定版）：台灣圖樣章。此 class 只用於店家證書本體
     （證書牆／名錄的證書卡、單店頁證書大牌）——證書視為真的蓋印，保留
     斜蓋 9 度；其他展示情境不得使用斜蓋（見 mini-seal、county-seal 皆正放）。
     位置跨壓證書右上角框線（部分超出卡外）；印泥透感由圖檔
     assets/seal-taiwan.svg 內部以「章心濃、外圈薄」分布，被章輕壓到的
     「第 ○○○ 號」透過印泥仍清楚可讀（Mars 定版：壓到可以，看不見不行）。 */
  position: absolute; right: -14px; top: -14px; width: 64px; height: 64px;
  transform: rotate(9deg); opacity: .88;
}
.seal-stamp img { width: 100%; height: 100%; display: block; }
.founding-mark { color: var(--gold); font-size: 13px; letter-spacing: .14em; font-weight: 700; }

/* 示範店家標示（2026-10-28 Mars 指示：虛擬店家做示範，須明確標示、不用認證章）。
   範例標記為展示用，一律正放、不傾斜（比照展示情境規則）。 */
.demo-tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--clay, #C08552); border: 1px solid var(--clay, #C08552); border-radius: 999px;
  padding: 1px 8px; white-space: nowrap;
}
.demo-stamp {
  transform: none; opacity: 1;
  border: 2px solid rgba(160, 60, 40, .55); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(160, 60, 40, .75); background: rgba(255, 252, 246, .65);
  font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .28em; text-indent: .28em;
}
.demo-note {
  margin: 18px 0 4px; padding: 12px 16px; font-size: 14.5px; line-height: 1.8;
  background: #FBF6EA; border: 1px dashed var(--clay, #C08552); border-radius: 10px; color: #5c4a33;
}

/* ---------- 巡店路線 ---------- */
.route-band {
  /* 茶園梯田等高線：右上角同心弧環（原創紋理，只作氣氛不搶內容） */
  background:
    repeating-radial-gradient(circle at 94% -20%, rgba(240,217,168,.12) 0, rgba(240,217,168,.12) 1.2px, transparent 1.2px, transparent 36px),
    linear-gradient(180deg, var(--green) 0%, #173025 100%);
  color: #efe9d6; border-radius: 20px; padding: 30px 34px 26px; margin-top: 8px;
}
.route-band h3 { font-family: var(--serif); font-size: 25px; margin: 0 0 2px; letter-spacing: .06em; }
.route-band .theme { color: #cfd8c2; font-size: 15.5px; }
.route-stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; position: relative; }
.route-stops::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 17px;
  border-top: 2px dashed rgba(185,138,68,.65);
}
.stop { position: relative; padding: 0 12px; text-decoration: none; color: inherit; }
.stop .no {
  width: 35px; height: 35px; border-radius: 50%; background: var(--paper);
  color: var(--green); font-family: var(--serif); font-weight: 900; font-size: 17px;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  border: 2px solid var(--gold);
}
.stop .s-name { font-family: var(--serif); font-size: 19px; margin-top: 12px; }
.stop .s-meta { font-family: var(--serif); font-size: 13.5px; color: #b9c4ae; letter-spacing: .14em; }
.stop .s-note { font-size: 14.5px; color: #e6dfc9; margin-top: 4px; line-height: 1.65; }
.route-band .more { margin-top: 20px; }
.route-band .more a { color: #f0d9a8; }

/* ---------- 牽成放送 ---------- */
.broadcast {
  display: grid; grid-template-columns: 92px 1fr; gap: 0; margin-top: 6px;
  background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.broadcast .b-label {
  background: linear-gradient(180deg, #8c3a2a, var(--seal)); color: #fdf3ec;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; letter-spacing: .5em; font-family: var(--serif);
  font-weight: 700; font-size: 19px; padding: 18px 0;
}
.broadcast .b-label.free { background: linear-gradient(180deg, #68795f, var(--sea)); }
.broadcast .b-body { padding: 20px 26px 16px; }
.broadcast .b-store { font-family: var(--serif); font-size: 22px; }
.broadcast .b-store a { text-decoration: none; }
.broadcast .b-story { color: var(--ink2); font-size: 16.5px; margin: 6px 0 10px; }
.broadcast .b-sign { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink2); border-top: 1px dashed var(--line); padding-top: 10px; }
.broadcast .b-sign .mini-seal {
  width: 30px; height: 30px; border: 1.6px solid var(--seal); border-radius: 50%;
  color: var(--seal); font-size: 10px; font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
  text-align: center; line-height: 1.15;
}

/* ---------- 縣市索引 ---------- */
.county-index { columns: 4; column-gap: 34px; }
.county-index a {
  display: flex; justify-content: space-between; padding: 7px 2px;
  border-bottom: 1px solid var(--line2); text-decoration: none; color: var(--ink);
  break-inside: avoid; font-size: 16px;
}
.county-index a span:first-child { font-family: var(--serif); font-size: 16.5px; letter-spacing: .14em; }
.county-index a:hover { color: var(--green); border-bottom-color: var(--gold); }
.county-index .cnt { color: var(--muted); font-size: 14px; }

/* ---------- 單店頁 ---------- */
.store-cert { max-width: 860px; margin: 34px auto 0; }
.store-cert .cert { padding: 34px 40px 24px; }
.store-cert .cert h3 { font-size: 34px; }
.statement-box {
  max-width: 860px; margin: 22px auto 0; background: var(--paper2);
  border: 1px solid var(--line2); border-radius: 14px; padding: 22px 28px;
}
.statement-box h4 { font-family: var(--serif); margin: 0 0 8px; font-size: 20px; letter-spacing: .06em; }

/* ---------- 名錄頁 ---------- */
.dir-group h3 { font-family: var(--serif); font-size: 22px; margin: 30px 0 12px; letter-spacing: .06em; display: flex; align-items: center; gap: 11px; }
.county-seal {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 5px;
  background: linear-gradient(180deg, #c04a36, var(--seal)); color: #fdf3ec;
  font-size: 16px; font-weight: 700; letter-spacing: 0;
  box-shadow: 0 1px 4px rgba(179,64,46,.35);
  transform: rotate(-3deg); /* 縣市方印保留微傾（Mars 2026-10-28：原本的沒問題） */
}
/* 兩字簡稱（新北／竹市／竹縣／嘉市／嘉縣）：縮小字級並列，維持印面平衡 */
.county-seal.two { font-size: 12px; letter-spacing: .01em; }
.search-form { display: flex; gap: 10px; max-width: 560px; margin: 18px 0; }
.search-form input {
  flex: 1; padding: 10px 14px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; font-family: inherit;
}

/* ---------- 申請／推薦表單（apply.php、recommend.php） ----------
 * 2026-10-28 重排（Mars 指示：排版加強、高質感、一看就愛上）：
 * 紙面卡片比照證書卡語言——墨綠框＋金色內線＋柔影＋紙色漸層；
 * 表格以「表單頭＋編號分組小標」分段，欄位聚焦以金色描邊與柔光過渡，
 * 必填改低調小籤，聲明區獨立成面板，送出區以金線菱形收尾、按鈕置中。
 * 溢出硬化：卡片與欄位補 width／max-width、grid 子項補 min-width:0、
 * 蜜罐欄改 clip 收納（不再用 -9999px 定位外擴捲動區）。 */
.apply-card {
  position: relative; width: 100%; max-width: 800px; margin: 30px auto 0;
  background: linear-gradient(180deg, #fffef9 0%, var(--paper2) 55%, #fbf6e9 100%);
  border: 1.5px solid var(--green); border-radius: 10px;
  padding: 38px 44px 34px;
  box-shadow: 0 16px 36px rgba(34,48,42,.10), 0 2px 8px rgba(34,48,42,.05);
}
.apply-card::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(185,138,68,.55);
  border-radius: 5px; pointer-events: none;
}
.apply-done-title { font-family: var(--serif); font-size: 24px; margin: 0 0 10px; letter-spacing: .05em; }
.apply-steps { margin: 10px 0 14px; padding-left: 22px; }
.apply-steps li { margin: 6px 0; }

/* 表單頭：襯線標題＋英文小標寬字距＋細線，與段落標題同語彙 */
.app-form .form-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px;
}
.app-form .form-head h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 900;
  letter-spacing: .1em; margin: 0; color: var(--green);
}
.app-form .form-head .en { font-size: 11px; letter-spacing: .34em; color: var(--gold); font-weight: 700; }
.app-form .form-head-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 2px; letter-spacing: .02em; }

/* 分組：編號（金・襯線）＋分組名（襯線）＋英文小標＋髮絲線 */
.app-form .f-group { margin-top: 34px; }
.app-form .f-group-first { margin-top: 24px; }
.app-form .f-group-head {
  display: flex; align-items: baseline; gap: 11px; margin-bottom: 18px;
}
.app-form .f-group-head .no {
  font-family: var(--serif); font-size: 15px; font-weight: 900; color: var(--gold);
  border: 1px solid rgba(185,138,68,.6); border-radius: 50%;
  width: 27px; height: 27px; flex: none; display: inline-flex;
  align-items: center; justify-content: center; transform: translateY(6px);
  background: rgba(185,138,68,.07);
}
.app-form .f-group-head h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  letter-spacing: .12em; margin: 0; color: var(--ink); white-space: nowrap;
}
.app-form .f-group-head .en { font-size: 10px; letter-spacing: .3em; color: var(--gold); font-weight: 700; white-space: nowrap; }
.app-form .f-group-head .rule { flex: 1; min-width: 12px; border-bottom: 1px solid var(--line2); transform: translateY(-4px); }
.app-form .f-group-head .opt { font-size: 12px; color: var(--muted); letter-spacing: .14em; white-space: nowrap; }

.app-form .f-field { margin-bottom: 20px; min-width: 0; }
.app-form .f-group .f-field:last-child { margin-bottom: 2px; }
.app-form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-form .f-row .f-field { margin-bottom: 20px; }
.app-form label.f {
  display: block; font-weight: 700; margin-bottom: 7px;
  font-size: 15px; letter-spacing: .05em; color: var(--ink);
}
.app-form .req {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-indent: .02em;
  color: var(--seal); border: 1px solid rgba(179,64,46,.45);
  background: rgba(179,64,46,.05); border-radius: 999px; padding: 0 7px; line-height: 1.7;
}
.app-form input[type="text"], .app-form input[type="email"], .app-form input[type="url"],
.app-form select, .app-form textarea {
  width: 100%; max-width: 100%; min-width: 0;
  padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  border: 1px solid #cfc4a6; border-radius: 6px; background: #fffefb;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.app-form input::placeholder, .app-form textarea::placeholder { color: #ab9c7c; }
.app-form textarea { line-height: 1.75; resize: vertical; }
.app-form input:hover, .app-form select:hover, .app-form textarea:hover { border-color: #b3a377; }
.app-form input:focus, .app-form select:focus, .app-form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(185,138,68,.18), 0 1px 4px rgba(185,138,68,.12);
}
.app-form .f-note { font-size: 13px; color: var(--muted); margin: 7px 0 0; line-height: 1.7; letter-spacing: .01em; }
.app-form .f-err { color: var(--seal); font-size: 14px; margin: 6px 0 0; font-weight: 500; }
.app-form .f-err-top {
  border: 1px solid rgba(179,64,46,.45); background: rgba(179,64,46,.07);
  border-radius: 8px; padding: 10px 14px; margin: 0 0 18px;
}

/* 聲明勾選：獨立面板，讓「自我聲明」有與其重要性相稱的份量 */
.app-form .f-declare {
  background: rgba(185,138,68,.07); border: 1px solid rgba(185,138,68,.5);
  border-radius: 8px; padding: 17px 19px 15px; margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,253,246,.6);
}
.app-form .f-check { margin-bottom: 0; }
.app-form .f-check label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 15.5px; line-height: 1.75; }
.app-form .f-check input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--green); }
.app-form .f-radio { display: block; padding: 4px 0; cursor: pointer; font-size: 15.5px; }
.app-form .f-radio:hover { color: var(--green); }
.app-form .f-radio input { accent-color: var(--green); margin-right: 6px; }

/* 送出區：金線＋中央小菱形收尾，按鈕品牌化置中 */
.app-form .f-submit { margin-top: 38px; text-align: center; border-top: 1px solid var(--line); }
.app-form .f-submit::before {
  content: ""; display: block; width: 9px; height: 9px; margin: -5px auto 24px;
  background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 0 4px #fbf6e9, 0 0 0 5px rgba(185,138,68,.5);
}
.btn-submit {
  font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .18em; text-indent: .1em;
  padding: 13px 42px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, var(--green2), var(--green)); color: #f5efe0;
  border: 1px solid var(--green);
  box-shadow: inset 0 0 0 1px rgba(240,217,168,.4), 0 10px 22px rgba(31,58,48,.22);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(240,217,168,.55), 0 14px 26px rgba(31,58,48,.26);
}
.btn-submit:focus-visible { outline: 2px solid rgba(185,138,68,.6); outline-offset: 3px; }
.app-form .f-submit .f-note { max-width: 36em; margin: 14px auto 0; }

.app-form .hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
@media (max-width: 900px) {
  .apply-card { padding: 32px 28px 28px; }
}
@media (max-width: 719px) {
  .apply-card { padding: 26px 20px 24px; margin-top: 22px; }
  .apply-card::before { inset: 5px; }
  .app-form .f-row { grid-template-columns: 1fr; gap: 0; }
  .app-form .f-group { margin-top: 28px; }
  .app-form .f-group-head .en { display: none; }
  .app-form .f-submit .btn-submit { display: block; width: 100%; }
}

/* ---------- 頁尾 ---------- */
.mall-footer { margin-top: 64px; border-top: 3px double var(--green); padding: 26px 0 40px; }
.mall-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.mall-footer h5 { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; letter-spacing: .08em; }
.mall-footer p, .mall-footer a { font-size: 14.5px; color: var(--ink2); }
.mall-footer a { display: block; text-decoration: none; padding: 2px 0; }
.mall-footer a:hover { color: var(--green); }
.mall-footer .fine { margin-top: 22px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line2); padding-top: 12px; }

/* ---------- RWD：平板 ---------- */
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero h1 { font-size: 36px; }
  .cert-wall { grid-template-columns: repeat(2, 1fr); }
  .route-stops { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .route-stops::before { display: none; }
  .county-index { columns: 3; }
  .mall-footer .cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- RWD：手機 ---------- */
@media (max-width: 719px) {
  body { font-size: 16px; }
  .brand-lockup { height: 42px; }
  .masthead nav { margin-left: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero h1 { font-size: 31px; }
  .cert-wall { grid-template-columns: 1fr; }
  .route-stops { grid-template-columns: 1fr; gap: 20px; }
  .route-band { padding: 24px 20px; }
  .broadcast { grid-template-columns: 1fr; }
  .broadcast .b-label { writing-mode: horizontal-tb; letter-spacing: .5em; padding: 10px 0; }
  .county-index { columns: 2; }
  .mall-footer .cols { grid-template-columns: 1fr; }
  .store-cert .cert { padding: 24px 20px 18px; }
  .seal-stamp { width: 54px; height: 54px; top: -12px; right: -11px; }
  .island { padding: 16px 14px 10px; }
  .map-legend { font-size: 12px; gap: 6px 12px; }
}
