/**
 * 牽成商城入口樣式 — 「名錄・證書・巡店」編輯式設計（第一期）
 *
 * 設計主軸（全球獨一無二，不用電商模板語彙）：
 *   入口是一本「全台牽成店家名錄」：紙色、襯線標題、細線框；
 *   店家以「證書牌」呈現（雙線框＋朱紅認證印），動線是「巡店」，
 *   付費曝光是同業具名推薦的「放送」短欄。沒有商品格牆、沒有橫幅輪播、
 *   搜尋只作輔助（頁首小字連結）。桌機／平板／手機三段排版各自成立。
 *
 * 色彩：紙 #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: baseline; gap: 18px; flex-wrap: wrap;
  padding: 18px 0 6px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.brand-island { height: 37px; width: auto; flex: none; }
.brand .zh { font-family: var(--serif); font-size: 40px; font-weight: 900; letter-spacing: .22em; }
.brand .en { font-size: 13px; letter-spacing: .42em; color: var(--gold); font-weight: 700; }
.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); }
.sec-sub { color: var(--ink2); max-width: 46em; margin: 4px 0 18px; }

/* ---------- 證書牆 ---------- */
.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 {
  position: absolute; right: 16px; top: 40px; width: 64px; height: 64px;
  border: 2.5px solid var(--seal); border-radius: 50%; color: var(--seal);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--serif); font-weight: 700; font-size: 13px; line-height: 1.25;
  letter-spacing: .08em; transform: rotate(9deg); opacity: .88;
  background: radial-gradient(circle, rgba(179,64,46,.06) 0%, rgba(179,64,46,0) 70%);
}
.founding-mark { color: var(--gold); font-size: 13px; letter-spacing: .14em; font-weight: 700; }

/* ---------- 巡店路線 ---------- */
.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; transform: rotate(-6deg); 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; transform: rotate(-3deg);
  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);
}
.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;
}

/* ---------- 頁尾 ---------- */
.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 .zh { font-size: 32px; }
  .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; font-size: 11.5px; top: 34px; }
  .island { padding: 16px 14px 10px; }
  .map-legend { font-size: 12px; gap: 6px 12px; }
  .brand-island { height: 30px; }
}
