/* ============================================================
 * 遊點香港 POINT OF VISIT · HK
 * 設計語言：紙張 × 墨色 × 印章紅
 * ============================================================ */
:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d7;
  --card: #fffdf8;
  --ink: #241f19;
  --ink-2: #5c5346;
  --ink-3: #8a7f6e;
  --line: #e2d8c4;
  --seal: #a63a2b;        /* 印章紅 */
  --seal-deep: #7f2b20;
  --gold: #b98a2f;
  --green: #4c6b52;       /* 已到訪 */
  --shadow: 0 2px 10px rgba(60, 45, 20, 0.08);
  --shadow-lg: 0 10px 30px rgba(60, 45, 20, 0.14);
  --serif: "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", "PMingLiU", "SimSun", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(185, 138, 47, 0.10), transparent 60%),
    var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0 0 .4em; }
a { color: var(--seal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- 導航列 ---------------- */
#site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; /* 語音設定面板錨點 */
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.12rem;
  color: var(--ink); white-space: nowrap; text-decoration: none !important;
  display: flex; align-items: center; gap: 8px;
}
.brand:hover { color: var(--seal); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--seal); color: #fff8ee;
  font-size: 1rem; box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .35);
}
.brand-en { font-size: .62rem; letter-spacing: .14em; color: var(--ink-3); font-family: var(--sans); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: .95rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--ink-2); padding: 6px 10px; border-radius: 8px; text-decoration: none !important;
}
.nav-links a.active, .nav-links a:hover { color: var(--seal-deep); background: rgba(166, 58, 43, .08); }
.btn-nav-login {
  border: 1.5px solid var(--seal) !important; color: var(--seal) !important; font-weight: 600;
}
button { font-family: inherit; }

/* ---------------- 首頁 ---------------- */
.home-hero { padding: 64px 0 44px; }
.hh-kicker {
  color: var(--seal); letter-spacing: .3em; font-size: .85rem; font-weight: 600;
  margin: 0 0 10px;
}
.home-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 14px; }
.accent { color: var(--seal); }
.home-hero h1 .accent { border-bottom: 6px solid rgba(166, 58, 43, .25); }
.hh-sub { max-width: 640px; color: var(--ink-2); font-size: 1.05rem; margin: 0 0 26px; }
.hh-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.hh-feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.hh-feat b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.hh-feat span { color: var(--ink-2); font-size: .92rem; }

.grid-head { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 16px; }
.grid-head h2 { margin: 0; font-size: 1.5rem; }
.grid-note { color: var(--ink-3); font-size: .85rem; letter-spacing: .2em; }

.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 60px; }
.place-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; color: var(--ink);
  text-decoration: none !important; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.place-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-banner {
  position: relative; height: 110px;
  background:
    repeating-linear-gradient(45deg, rgba(166,58,43,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #efe4cd, #e4d5b8);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.card-banner.has-img {
  background-size: cover; background-position: center;
  height: 160px;
  background-color: #cfc4ab; /* 載入中底色 */
}
.card-banner.has-img .card-emoji { display: none; }
.card-emoji { font-size: 3rem; filter: drop-shadow(0 3px 4px rgba(60,45,20,.25)); }
.card-no {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--serif); font-weight: 700; font-size: .8rem;
  color: var(--seal); border: 1.5px solid var(--seal);
  border-radius: 6px; padding: 1px 8px; background: rgba(255,253,248,.75);
}

/* 景點頁主圖 */
.hero-fig { margin: 0 0 18px; }
.hero-fig img {
  display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--paper-2);
}
.hero-fig figcaption, .sec-fig figcaption {
  font-size: .75rem; color: var(--ink-3); margin-top: 6px; line-height: 1.5;
}

/* 站內配圖 */
.sec-fig { margin: 0 0 14px; }
.sec-fig img {
  display: block; width: 100%; max-height: 400px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2);
}
@media (max-width: 640px) {
  .hero-fig img { aspect-ratio: 16 / 10; }
  .sec-fig img { max-height: 260px; }
}
.card-body { padding: 18px; }
.card-body h2 { font-size: 1.35rem; margin: 0; }
.card-en { margin: 0 0 6px; font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; }
.card-tag { margin: 0 0 10px; color: var(--ink-2); font-size: .95rem; }
.card-district { margin: 0 0 12px; font-size: .85rem; color: var(--ink-2); }
.card-progress { font-size: .85rem; color: var(--seal-deep); }
.card-progress.muted { color: var(--ink-3); }
.bar {
  height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden;
  margin: 4px 0 6px;
}
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--seal), #c96a3d); border-radius: 99px; }

/* ---------------- 景點頁 ---------------- */
.place-hero {
  padding: 40px 0 26px;
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(185,138,47,.12), transparent 60%),
    linear-gradient(180deg, rgba(239,231,215,.8), transparent);
  border-bottom: 1px solid var(--line);
}
.crumb, .crumb-static { font-size: .85rem; color: var(--ink-3); margin: 0 0 14px; display: inline-block; }
.ph-no { color: var(--seal); font-weight: 600; letter-spacing: .18em; font-size: .8rem; margin: 0 0 6px; }
.place-hero h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 0; }
.ph-official { color: var(--ink-3); font-size: .88rem; margin: 2px 0 12px; }
.ph-tagline { font-family: var(--serif); font-size: 1.15rem; color: var(--seal-deep); margin: 0 0 14px; }
.ph-summary { max-width: 760px; color: var(--ink-2); margin: 0 0 20px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 0 0 18px;
}
.fact {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow);
}
.fact b { display: block; font-size: .95rem; line-height: 1.4; }
.fact span { font-size: .78rem; color: var(--ink-2); letter-spacing: .1em; }
.hero-progress { font-size: .9rem; color: var(--seal-deep); font-weight: 600; max-width: 480px; }
.hero-progress.muted { font-weight: 400; color: var(--ink-3); }

/* 站點導覽 chips */
.stops-nav {
  position: sticky; top: 52px; z-index: 40;
  background: rgba(246, 241, 231, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px; align-items: center; }
.chips-label { font-size: .78rem; color: var(--ink-3); white-space: nowrap; letter-spacing: .1em; }
.chip {
  white-space: nowrap; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); border-radius: 99px; padding: 5px 13px; font-size: .88rem;
  cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--seal); color: var(--seal-deep); }
.chip.done { border-color: var(--green); color: var(--green); background: rgba(76,107,82,.08); }
.stops-nav.speaking { box-shadow: inset 0 -3px 0 var(--seal); }

/* 內容區 */
.sections-list { padding: 26px 20px 70px; display: grid; gap: 26px; }
.sections-list.single { max-width: 860px; }

/* 站點摘要卡（景點總覽） */
.stop-teaser {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--seal);
  border-radius: 14px; padding: 16px 18px;
  text-decoration: none !important; color: var(--ink);
  box-shadow: var(--shadow); scroll-margin-top: 120px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stop-teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stop-teaser.visited { border-left-color: var(--green); }
.stop-teaser .stop-badge { margin-top: 0; flex-shrink: 0; }
.teaser-icon { font-size: 1.7rem; flex-shrink: 0; }
.teaser-main { flex: 1; min-width: 0; }
.teaser-main b { font-family: var(--serif); font-size: 1.08rem; display: block; line-height: 1.4; }
.teaser-en { display: block; font-size: .72rem; color: var(--ink-3); letter-spacing: .06em; margin-top: 1px; }
.teaser-ex {
  display: block; font-size: .86rem; color: var(--ink-2); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.teaser-go { font-size: 1.7rem; color: var(--seal); font-weight: 700; flex-shrink: 0; line-height: 1; }
.stop-teaser .stamp.small { flex-shrink: 0; }

/* 站點內頁 */
.sp-hero { padding: 26px 0 18px; }
.sp-hero .crumb { margin-bottom: 8px; white-space: normal; }
.sp-hero .hero-progress { max-width: 100%; }
.pager {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px;
  align-items: center; margin-top: 4px;
}
.pg {
  text-align: center; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 10px 14px; font-size: .88rem; color: var(--ink-2);
  text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pg:hover { border-color: var(--seal); color: var(--seal-deep); }
.pg.prev { text-align: left; }
.pg.next { text-align: right; }
.pg-spacer { display: none; }
.stops-nav.static { position: static; border-top: 1px solid var(--line); border-bottom: none; }
.stops-nav.static .chips { padding: 12px 0 4px; flex-wrap: wrap; overflow: visible; }
.chip.current {
  border-color: var(--seal); color: var(--seal-deep);
  background: rgba(166, 58, 43, .08); font-weight: 700;
}
a.chip { text-decoration: none !important; display: inline-block; }
.section-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
  border-left: 5px solid var(--seal);
  scroll-margin-top: 120px;
}
@media (max-width: 640px) {
  .section-card { scroll-margin-top: 130px; }
}
.section-card.visited { border-left-color: var(--green); }
.section-card.flash { animation: flash 2.2s ease; }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(166,58,43,.35), var(--shadow); }
  60% { box-shadow: 0 0 0 14px rgba(166,58,43,0), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}
.sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.sec-titles { flex: 1; min-width: 0; }
.sec-head h2 { font-size: 1.3rem; margin: 0; }
.sec-en { margin: 2px 0 0; font-size: .78rem; color: var(--ink-3); letter-spacing: .08em; }
.stop-badge {
  flex-shrink: 0; margin-top: 4px;
  font-family: var(--serif); font-weight: 700; font-size: .78rem;
  color: #fff8ee; background: var(--seal);
  padding: 3px 10px; border-radius: 6px; white-space: nowrap;
}
.section-card.visited .stop-badge { background: var(--green); }

/* 印章 */
.stamp {
  flex-shrink: 0; align-self: center;
  font-family: var(--serif); font-weight: 700; font-size: .82rem;
  color: var(--seal); border: 2.5px solid var(--seal);
  border-radius: 8px; padding: 2px 10px;
  transform: rotate(-7deg);
  box-shadow: inset 0 0 0 1.5px rgba(255,248,238,.6);
  opacity: .9; white-space: nowrap;
}
.stamp.small { font-size: .7rem; padding: 0 7px; transform: rotate(-7deg); }

.sec-body { color: var(--ink-2); }
.sec-body p { margin: 0 0 12px; }
.sec-body b { color: var(--ink); }
.sec-body ul { margin: 0 0 12px; padding-left: 22px; }
.sec-body li { margin-bottom: 8px; }
.sec-body a { word-break: break-all; }
ul.refs li { list-style: "— "; }
.note {
  background: rgba(185,138,47,.09);
  border: 1px solid rgba(185,138,47,.3);
  border-radius: 12px; padding: 12px 16px; font-size: .92rem; color: var(--ink-2);
}
.voice-warn {
  max-width: 1000px; margin: 12px auto 0; padding: 8px 20px;
  font-size: .85rem; color: #7a5a17; background: rgba(185,138,47,.12);
}

.login-hint {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  background: rgba(166,58,43,.07); border: 1px dashed rgba(166,58,43,.35);
  font-size: .9rem; color: var(--ink-2);
}

/* 操作按鈕 */
.sec-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.btn {
  border: 1.5px solid var(--ink-2); background: var(--card); color: var(--ink);
  border-radius: 10px; padding: 9px 16px; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-primary { background: var(--seal); border-color: var(--seal); color: #fff8ee; }
.btn-primary:hover { background: var(--seal-deep); border-color: var(--seal-deep); }
.btn-voice { border-color: var(--seal); color: var(--seal-deep); }
.btn-voice:hover { border-color: var(--seal-deep); }
.btn-voice.active { background: var(--seal); border-color: var(--seal); color: #fff8ee; animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166,58,43,.35); }
  50% { box-shadow: 0 0 0 7px rgba(166,58,43,0); }
}
.btn-check { border-color: var(--green); color: var(--green); }
.btn-ghost {
  border: 1.5px solid transparent; background: transparent; color: var(--ink-2);
  border-radius: 8px; padding: 6px 10px; font-size: .9rem; cursor: pointer;
}
.btn-ghost:hover { color: var(--seal); background: rgba(166,58,43,.08); }
.btn-copy { font-size: .82rem; }

/* 語言切換 */
.lang-switch {
  display: inline-flex; gap: 3px; margin-left: 4px;
  border: 1px solid var(--line); border-radius: 8px; padding: 2px;
  background: var(--card); flex-shrink: 0;
}
.lang-pill {
  border: none; background: transparent; color: var(--ink-3);
  font-size: .78rem; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; cursor: pointer; line-height: 1.4;
}
.lang-pill:hover { color: var(--seal-deep); }
.lang-pill.on {
  background: var(--seal); color: #fff8ee;
}

/* 語音設定（🎙️） */
.voice-gear {
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  padding: 3px 8px; cursor: pointer; font-size: .85rem; line-height: 1.5;
  flex-shrink: 0; margin-left: 4px;
}
.voice-gear:hover { background: rgba(166, 58, 43, .08); }
.voice-pop {
  position: absolute; top: calc(100% + 8px); right: 14px; z-index: 80;
  width: min(320px, calc(100vw - 28px));
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 14px 16px 4px;
}
.vp-row { margin: 0 0 12px; }
.vp-row label {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--ink-2); margin-bottom: 6px;
}
.vp-select {
  width: 100%; margin-top: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font-size: .88rem; font-family: inherit;
}
.vp-range {
  border: none; padding: 0; background: transparent;
  accent-color: var(--seal); cursor: pointer; height: auto;
}
.vp-actions .vp-btn { width: 100%; }

/* ---------------- 登入頁 ---------------- */
.auth-wrap { display: grid; place-items: center; padding: 60px 20px 80px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.6rem; }
.auth-sub { color: var(--ink-2); font-size: .92rem; margin: 0 0 18px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  flex: 1; border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 10px; padding: 8px; font-size: .95rem; cursor: pointer; color: var(--ink-2);
}
.tab.on { border-color: var(--seal); color: var(--seal-deep); background: rgba(166,58,43,.06); font-weight: 700; }
label { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: 12px; }
input, select {
  display: block; width: 100%; margin-top: 5px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 1rem; font-family: inherit;
  background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px rgba(166,58,43,.12); }
form .btn { width: 100%; margin-top: 6px; }
.auth-msg { color: var(--seal-deep); font-size: .9rem; min-height: 1.4em; margin: 12px 0 0; }
.auth-note { color: var(--ink-3); font-size: .8rem; margin: 14px 0 0; }

/* ---------------- 我的記錄 ---------------- */
#profile-root { padding: 34px 0 70px; }
.profile-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.profile-head h1 { margin: 0; font-size: 1.8rem; }
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; box-shadow: var(--shadow);
}
.stat b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.stat span { font-size: .78rem; color: var(--ink-3); letter-spacing: .1em; }
.pf-place {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.pf-place-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pf-place-head h2 { margin: 0; font-size: 1.2rem; }
.pf-place-head h2 a { color: var(--ink); }
.pf-place-head h2 a:hover { color: var(--seal); }
.pf-place-head span { color: var(--seal-deep); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.pf-stops { list-style: none; margin: 12px 0 0; padding: 0; }
.pf-stops li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px; border-top: 1px dashed var(--line); font-size: .92rem;
}
.pf-stops li.on .pf-stop-name { color: var(--ink); font-weight: 600; }
.pf-stop-name { flex: 1; color: var(--ink-3); }
.pf-date { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.dot { color: var(--ink-3); }
#profile-root .note { margin-top: 8px; }

/* ---------------- QR 頁 ---------------- */
.qr-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 40px 20px 70px; align-items: start; }
@media (max-width: 760px) { .qr-wrap { grid-template-columns: 1fr; } }
.qr-controls h1 { font-size: 1.6rem; }
.qr-missing { color: var(--seal-deep); background: rgba(166,58,43,.08); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.qr-actions { display: flex; gap: 10px; margin: 8px 0 10px; }
.qr-url {
  font-size: .78rem; color: var(--ink-3); word-break: break-all;
  background: var(--paper-2); border-radius: 8px; padding: 8px 10px;
}
.qr-preview { display: grid; place-items: center; }
.qr-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 22px 26px; text-align: center; box-shadow: var(--shadow-lg);
  max-width: 100%;
}
.qr-brand { font-family: var(--serif); font-weight: 700; font-size: .9rem; letter-spacing: .18em; color: var(--seal); margin: 0 0 10px; }
#qr-canvas { max-width: 100%; height: auto; image-rendering: pixelated; }
.qr-caption { font-weight: 700; margin: 12px 0 2px; font-family: var(--serif); }
.qr-hint { color: var(--ink-3); font-size: .85rem; margin: 0; }

/* ---------------- 頁尾 / Toast ---------------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px; color: var(--ink-3); font-size: .85rem;
  text-align: center;
}
.foot-note { font-size: .75rem; }

#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #f6f1e7;
  border-radius: 99px; padding: 10px 20px; font-size: .92rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: all .25s ease; z-index: 99; max-width: min(88vw, 480px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 小屏 ---------------- */
@media (max-width: 640px) {
  .brand-en { display: none; }
  .nav-inner { padding: 8px 14px; }
  .nav-links {
    flex-wrap: nowrap; overflow-x: auto; font-size: .88rem;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a, .nav-links button { padding: 6px 8px; white-space: nowrap; }
  .home-hero { padding: 40px 0 30px; }
  .pager { grid-template-columns: 1fr; }
  .pg-spacer { display: none; }
  .teaser-ex { white-space: normal; }
  .stop-teaser { gap: 10px; padding: 14px; }
  .stop-teaser .stamp.small { display: none; }
  .section-card { padding: 18px 16px; }
  .sec-head { gap: 10px; }
  .stamp { display: none; }
  .stamp.small { display: inline-block; }
  .stops-nav { top: 49px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
