/* ==========================================================================
   Posup 2026 — 民生示警 VI
   設計原則：黃黑 25% / 白 75%、細圓體、精緻簡潔
   ========================================================================== */

:root {
  /* Palette */
  --c-bg: #ffffff;
  --c-bg-soft: #faf8ee;           /* 紙白，微帶米黃 */
  --c-bg-warm: #f4ecbb;           /* 淡黃襯底 */
  --c-fg: #1a1a1a;
  --c-fg-soft: #5b5b5b;
  --c-fg-mute: #9a9a9a;
  --c-line: #e8e6da;
  --c-yellow: #e8d81e;            /* 主色，取自 Logo */
  --c-yellow-deep: #c9b800;       /* 文字 / 重點黃 */
  --c-yellow-soft: #f6ec73;
  --c-black: #1a1a1a;

  /* Typography */
  --ff-zh: "Noto Sans TC", "PingFang TC", "Hiragino Sans", "Microsoft JhengHei", sans-serif;
  --ff-en: "M PLUS Rounded 1c", "Noto Sans TC", sans-serif;
  --ff-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Spacing & Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* Layout */
  --container: 1180px;
  --nav-h: 72px;
}

/* 日文：改用日文字型優先，讓「、。」回到左下角。
   中文字型（Noto Sans TC 等）的句讀為置中，套在日文上會顯示在正中央。
   只改寫變數值，所有 var(--ff-zh)/var(--ff-en) 會自動沿用，無 specificity 衝突。 */
html:lang(ja) {
  --ff-zh: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", "Noto Sans TC", sans-serif;
  --ff-en: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", "Noto Sans TC", sans-serif;
  /* 日文斷行（禁則處理）：line-break: strict 為廣泛支援（含 iOS Safari），
     可避免小書きカナ（ィ・ゃ・っ 等）、長音、收尾標點落在行首。屬繼承屬性，套用到所有日文文字。 */
  line-break: strict;
}

/* 日文詞節斷行（跨瀏覽器）：word-break: auto-phrase 僅 Chromium 支援，iOS Safari / Firefox 會忽略，
   故改以 keep-all（CJK 不在任意字間斷行，只在我們插入的 ZWSP 處斷）＋ js/i18n.js 於詞節邊界插入 ZWSP，
   讓「起きたら」「コミュニティ」不被拆開；overflow-wrap: anywhere 為超長字串的保險斷點，避免破版。
   僅限 [data-i18n] 文字，避免影響純中文法律頁（未經 i18n、未插入 ZWSP）的正常排版。 */
html:lang(ja) [data-i18n] {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--ff-zh);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--c-yellow-deep); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-en), var(--ff-zh);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin: 0 0 .5em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 96px 0;
  position: relative;
}
.section--soft { background: var(--c-bg-soft); }
.section--warm { background: var(--c-bg-warm); }
.section--dark { background: var(--c-black); color: #fff; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

/* ---------- Eyebrow / small label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-fg-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--c-yellow);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--c-yellow); }
.section--dark .eyebrow::before { background: var(--c-yellow); }

/* ---------- Typography scale ---------- */
.h-display {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.h-display em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, var(--c-yellow) 60%);
  padding: 0 4px;
}
.h-section {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
}
.h-card {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}
.lead {
  font-size: 18px;
  color: var(--c-fg-soft);
  line-height: 1.9;
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--ff-en);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid var(--c-fg);
  background: var(--c-fg);
  color: #fff;
  border-radius: 999px;
  transition: all .25s ease;
}
.btn:hover {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: var(--c-fg);
}
.btn--yellow {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: var(--c-fg);
}
.btn--yellow:hover {
  background: var(--c-fg);
  border-color: var(--c-fg);
  color: var(--c-yellow);
}
.btn--ghost {
  background: transparent;
  color: var(--c-fg);
}
/* 功能尚未開放的停用態（如：商城測試網頁建構中） */
.btn--disabled {
  background: var(--c-line);
  border-color: var(--c-line);
  color: var(--c-fg-soft);
  cursor: default;
  pointer-events: none;
}
.btn--ghost:hover {
  background: var(--c-fg);
  color: var(--c-yellow);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-en);
  font-weight: 500;
}
.nav__brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  line-height: 1;
}
.nav__brand-text strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav__brand-text span {
  font-size: 11px;
  color: var(--c-fg-soft);
  letter-spacing: 0.12em;
  line-height: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 14px;
  color: var(--c-fg-soft);
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--c-fg);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--c-yellow);
}
.nav__cta {
  font-size: 13px;
  padding: 10px 18px;
}

/* ---------- 頂端社群連結：脆 / IG / FB ---------- */
.nav__social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav__social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--c-fg);
  background: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.nav__social a:hover { background: var(--c-yellow); border-color: var(--c-yellow); }
.nav__brand,
.nav__links a,
.nav__cta { white-space: nowrap; flex-shrink: 0; }
/* 窄桌面：列上放不下，收起「下載 App」（hero 已有下載按鈕） */
@media (min-width: 881px) and (max-width: 1180px) {
  .nav__inner { gap: 16px; }
  .nav__links { gap: 22px; }
  .nav__cta { display: none !important; }
}
@media (max-width: 880px) {
  .nav__inner { gap: 8px; }
  .nav__social { margin-left: auto; gap: 4px; }
  .nav__social ~ .lang-switch--top { margin-left: 0; }
}
/* 小手機：只留 :p 圖示，讓出位置給社群與語言 */
@media (max-width: 440px) {
  .nav__brand-text { display: none; }
  .nav__social a { width: 28px; height: 28px; font-size: 11px; }
}
@media (max-width: 360px) {
  .nav__social { gap: 3px; }
  .nav__social a { width: 26px; height: 26px; }
}

/* ---------- 語言切換 中 / EN / 日 ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
}
.lang-switch button {
  font-family: var(--ff-en);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-fg-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.lang-switch button:hover { color: var(--c-fg); }
.lang-switch button.is-active {
  background: var(--c-yellow);
  color: var(--c-fg);
  font-weight: 500;
}
/* 桌面列上的切換鈕；行動版改放選單內 */
.lang-switch--bar { flex-shrink: 0; }
@media (max-width: 880px) {
  .lang-switch--bar { display: none; }
}

/* 頁尾低調版：融入深色頁尾，不搶視覺 */
.lang-switch--footer {
  background: transparent;
  border-color: #2c2c2c;
  padding: 2px;
}
.lang-switch--footer button {
  color: #888;
  font-size: 11px;
  padding: 5px 9px;
}
.lang-switch--footer button:hover { color: #c9c9c9; }
.lang-switch--footer button.is-active {
  background: var(--c-yellow);
  color: var(--c-fg);
}

/* 行動版頂端列常駐語言切換（桌面改用 nav bar 版，故此處桌面隱藏） */
.lang-switch--top { display: none; }
@media (max-width: 880px) {
  .lang-switch--top {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 110;
  }
  .lang-switch--top button { font-size: 11px; padding: 6px 9px; }
}
@media (max-width: 360px) {
  .lang-switch--top button { padding: 6px 7px; letter-spacing: 0; }
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--c-fg);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 行動版選單遮罩層（覆蓋 nav 以下的頁面內容並暗化） */
.nav__backdrop {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 95;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: navBackdropIn .25s ease;
}
@keyframes navBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 880px) {
  /* 手機版：永遠隱藏 header CTA（hero 已有下載按鈕），避免破版 */
  .nav__cta { display: none !important; }
  .nav__toggle { display: block; }

  /* 平時隱藏連結 */
  .nav__links { display: none; }

  /* 開啟選單時：上層白色卡片下拉，下層頁面以半透明黑遮罩暗化 */
  body.menu-open { overflow: hidden; }
  body.menu-open .nav__backdrop { display: block; }

  /* nav 維持白底，僅 hamburger 變 X（已由全站樣式處理） */
  body.menu-open .nav {
    background: #ffffff;
    border-bottom-color: var(--c-line);
  }

  /* 選單卡：自視窗頂端 nav 下方下拉，自適應高度，全部項目一次展開 */
  body.menu-open .nav__links {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    /* 不設 bottom，高度依內容自適應 */
    margin: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 24px 24px;
    gap: 0;
    z-index: 99;
    list-style: none;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid var(--c-line);
    animation: navSlideDown .3s cubic-bezier(.2, .8, .3, 1);
  }
  body.menu-open .nav__links li {
    list-style: none;
    width: 100%;
  }
  body.menu-open .nav__links a {
    display: block;
    width: 100%;
    font-size: 17px;
    font-weight: 400;
    color: var(--c-fg);
    padding: 18px 4px;
    border-bottom: 1px solid var(--c-line);
    letter-spacing: 0.04em;
  }
  body.menu-open .nav__links li:last-of-type a,
  body.menu-open .nav__links li:nth-last-child(2) a {
    border-bottom: 0;
  }
  body.menu-open .nav__links a:hover { color: var(--c-yellow-deep); }
  body.menu-open .nav__links a.is-active::after { display: none; }
  body.menu-open .nav__links a.is-active {
    color: var(--c-yellow-deep);
    font-weight: 500;
  }
  body.menu-open .nav__links a.is-active::before {
    content: "●";
    color: var(--c-yellow);
    font-size: 10px;
    margin-right: 12px;
    vertical-align: middle;
  }
  /* 內建下載按鈕作為選單最後一項 */
  body.menu-open .nav__links .nav__mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 16px 0 0;
    padding: 18px 24px;
    font-family: var(--ff-en);
    font-size: 16px;
    font-weight: 500;
    background: var(--c-yellow);
    color: var(--c-fg);
    border: 1px solid var(--c-yellow);
    border-radius: 999px;
    letter-spacing: 0.04em;
  }
  body.menu-open .nav__links .nav__mobile-cta:hover {
    background: var(--c-fg);
    color: var(--c-yellow);
    border-color: var(--c-fg);
  }

  /* 選單內語言切換列 */
  body.menu-open .nav__links .lang-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 4px;
    border-bottom: 1px solid var(--c-line);
  }
  body.menu-open .nav__links .lang-switch-row .lang-switch__label {
    font-size: 17px;
    color: var(--c-fg);
    letter-spacing: 0.04em;
  }
  body.menu-open .nav__links .lang-switch-row .lang-switch button {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* 開選單時隱藏 Online Shop 浮動按鈕 */
  body.menu-open .fab { display: none; }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (min-width: 881px) {
  .nav__mobile-only { display: none !important; }
}

@media (max-width: 540px) {
  :root { --nav-h: 64px; }
  .nav__brand-icon { width: 36px; height: 36px; font-size: 20px; }
  .nav__brand-text strong { font-size: 16px; }
  .nav__brand-text span { font-size: 10px; letter-spacing: 0.15em; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-fg-soft);
  border: 1px solid var(--c-line);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-yellow);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.65); }
}
.hero__title {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.hero__title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(180deg, transparent 62%, var(--c-yellow) 62%);
  padding: 0 4px;
}
/* 日文 hero 標題：手機上縮小字級，讓「がすぐ知らせます。」這類長詞節能整段留在同一行，
   避免句點「。」被擠到行首（行頭禁則）形成孤立標點。zh／en 維持原字級。 */
@media (max-width: 540px) {
  html:lang(ja) .hero__title { font-size: 32px; }
}
.hero__sub {
  font-size: 18px;
  color: var(--c-fg-soft);
  line-height: 1.9;
  max-width: 520px;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__visual {
  position: relative;
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  padding: 28px;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__visual::before {
  content: "民生示警通報";
  position: absolute;
  top: 22px;
  left: 28px;
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-fg-soft);
}
.hero__visual::after {
  content: "vol.01";
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-fg-soft);
}
.hero__visual img {
  width: 78%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.hero__meta {
  position: absolute;
  bottom: 22px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c-fg-soft);
}

/* ---------- 強震即時警報（導入中）重點公告 ---------- */
.eew-news {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: -8px 0 26px;
  padding: 8px 16px 8px 8px;
  border-radius: 14px;
  background: var(--c-fg);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55);
}
.eew-news__tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-yellow);
  color: var(--c-fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.eew-news__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A23035;
  animation: pulse 1.6s infinite;
}
.eew-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--c-yellow);
  border-radius: 12px;
  background: rgba(232, 216, 30, .1);
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
}
.alert-card .eew-callout { color: #fff; }
.nowrap { white-space: nowrap; }
@media (max-width: 540px) {
  .eew-news { font-size: 14px; padding: 8px 12px 8px 8px; margin-top: -10px; }
  .eew-callout { font-size: 14.5px; align-items: flex-start; }
  .eew-callout .eew-news__tag { margin-top: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .eew-news__tag::before { animation: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--c-yellow);
  color: var(--c-fg);
  overflow: hidden;
  border-top: 1px solid var(--c-fg);
  border-bottom: 1px solid var(--c-fg);
  padding: 14px 0;
  font-family: var(--ff-en);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.marquee__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after {
  content: "✦";
  color: var(--c-fg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.18);
  border-color: var(--c-yellow);
}
.card__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-fg-mute);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.card__illust {
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  margin-bottom: 24px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card__illust img {
  width: 78%;
  max-height: 86%;
  object-fit: contain;
}
.card__title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
}
.card__body {
  font-size: 15px;
  color: var(--c-fg-soft);
  line-height: 1.85;
  margin: 0;
}

/* ---------- Split feature row ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px 0;
  border-top: 1px solid var(--c-line);
}
.feature:first-of-type { border-top: 0; }
.feature--reverse .feature__visual { order: 2; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
  .feature--reverse .feature__visual { order: 0; }
}
.feature__visual {
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}
.feature__visual img { width: 70%; max-height: 86%; object-fit: contain; }
.feature__visual::before {
  content: attr(data-no);
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-fg-mute);
}
.feature__tag {
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-yellow-deep);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.feature__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 20px;
}
.feature__body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--c-fg-soft);
}
.feature__body p { margin: 0 0 16px; }
.feature__body p:last-child { margin: 0; }

/* ---------- Stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px;
  background: var(--c-fg);
  color: #fff;
  border-radius: var(--r-lg);
}
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); padding: 36px 28px; } }
.stat__num {
  font-family: var(--ff-en);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  color: var(--c-yellow);
  margin-bottom: 4px;
  line-height: 1;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.65);
}

/* ---------- App download ---------- */
.download {
  background: var(--c-bg-warm);
  border-radius: var(--r-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .download { grid-template-columns: 1fr; padding: 40px 28px; } }
.download__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  margin: 0 0 16px;
}
.download__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.download__qr {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--c-line);
}
.download__qr img { margin: 0 auto 12px; max-width: 160px; }
.download__qr small {
  display: block;
  font-size: 12px;
  color: var(--c-fg-soft);
  letter-spacing: 0.08em;
}

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
@media (max-width: 740px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
}
.section-head__left { max-width: 640px; }
.section-head__right a {
  font-family: var(--ff-en);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--c-fg-soft);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 4px;
}
.section-head__right a:hover { color: var(--c-fg); border-color: var(--c-yellow); }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-black);
  color: #c9c9c9;
  padding: 80px 0 36px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2c2c2c;
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.footer__brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.footer__brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer__brand strong {
  font-family: var(--ff-en);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #fff;
}
.footer__brand small {
  display: block;
  font-size: 11px;
  color: var(--c-yellow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__desc {
  font-size: 14px;
  line-height: 1.85;
  color: #a8a8a8;
  max-width: 320px;
}
.footer__col h5 {
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-yellow);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__col li { margin-bottom: 12px; }
.footer__col a {
  font-size: 14px;
  color: #b5b5b5;
}
.footer__col a:hover { color: var(--c-yellow); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #888;
}
@media (max-width: 640px) {
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
}
.footer__social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid #2c2c2c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b5b5b5;
  font-size: 14px;
  font-family: var(--ff-en);
}
.footer__social a:hover { background: var(--c-yellow); color: var(--c-fg); border-color: var(--c-yellow); }

/* ---------- Page head (for subpages) ---------- */
.page-head {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--c-line);
}
.page-head__crumb {
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-fg-soft);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.page-head__title {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 16px;
}
.page-head__title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, var(--c-yellow) 60%);
  padding: 0 4px;
}
.page-head__sub {
  font-size: 17px;
  color: var(--c-fg-soft);
  max-width: 680px;
  margin: 0;
}

/* ---------- Long-form / legal ---------- */
.prose {
  max-width: 820px;
  margin: 0 auto;
  /* 使用 longhand 避免覆蓋 .container 的橫向 padding */
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (max-width: 640px) {
  /* 手機額外加大左右留白，避免內文貼邊 */
  .prose {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 24px;
    padding-right: 24px;
  }
  /* page-head 在手機也需要更明確的呼吸空間 */
  .page-head { padding: 40px 0 32px; }
  /* 縮小條款頁的標題尺寸，避免溢出 */
  .page-head__title { font-size: clamp(28px, 8vw, 40px); }
}
.prose h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 48px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--c-yellow);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 32px 0 12px;
}
.prose p, .prose li {
  font-size: 15px;
  line-height: 2;
  color: var(--c-fg);
}
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .meta {
  font-family: var(--ff-en);
  font-size: 13px;
  color: var(--c-fg-mute);
  letter-spacing: 0.08em;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--c-line);
}
.prose a { color: var(--c-yellow-deep); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sub tabs (about) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 8px;
  background: var(--c-bg-soft);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
}
.tabs a {
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--c-fg-soft);
}
.tabs a:hover { color: var(--c-fg); }
.tabs a.is-active {
  background: var(--c-fg);
  color: var(--c-yellow);
}

/* ---------- Forms ---------- */
.form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.form__row {
  display: grid;
  gap: 8px;
}
.form__row label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-fg-soft);
  font-family: var(--ff-en);
}
.form__row .req { color: var(--c-yellow-deep); }
.form__row input,
.form__row textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-fg);
  width: 100%;
  transition: border-color .2s ease;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 4px rgba(232, 216, 30, 0.18);
}
.form__row textarea { min-height: 160px; resize: vertical; }
.form__hint { font-size: 13px; color: var(--c-fg-mute); }
.form__submit { justify-self: flex-start; }
.form__submit:disabled { opacity: .6; cursor: wait; }
/* 防機器人欄位：畫面外，真人看不到也按不到 */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pricing ---------- */
.price-block {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px;
  background: #fff;
  margin-bottom: 24px;
}
.price-block h3 {
  font-size: 20px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.price-block h3::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--c-yellow);
  display: inline-block;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: 15px;
}
.price-row:last-child { border-bottom: 0; }
.price-row__cat { color: var(--c-fg); font-weight: 400; }
.price-row__price { color: var(--c-yellow-deep); font-family: var(--ff-en); font-weight: 500; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-top: 1px solid var(--c-line);
}
.faq-item:last-child { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 17px;
  font-weight: 400;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--ff-en);
  font-size: 24px;
  font-weight: 300;
  color: var(--c-yellow-deep);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
  padding: 0 0 24px;
  color: var(--c-fg-soft);
  font-size: 15px;
  line-height: 1.95;
}
.faq-item__body ol { padding-left: 18px; }
.faq-item__body ol li { margin-bottom: 6px; }

/* ---------- Cooperation status table ---------- */
.coop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 24px;
}
.coop-table th,
.coop-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.coop-table th {
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-fg-soft);
  text-transform: uppercase;
  background: var(--c-bg-soft);
}
.coop-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.coop-status--joined { background: var(--c-yellow); color: var(--c-fg); }
.coop-status--pending { background: #f0efe7; color: var(--c-fg-soft); }
.coop-status--invite { background: #fff; border: 1px solid var(--c-fg); color: var(--c-fg); }

/* ---------- 民生示警 重點卡 (homepage section 1) ---------- */
.alert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 740px) { .alert-grid { grid-template-columns: 1fr; } }
.alert-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.alert-card--primary {
  background: var(--c-fg);
  color: #fff;
  border-color: var(--c-fg);
}
.alert-card__label {
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.alert-card__label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-yellow);
  border-radius: 50%;
}
.alert-card h3 {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 14px;
}
.alert-card p {
  font-size: 15px;
  color: var(--c-fg-soft);
  line-height: 1.9;
  margin: 0;
}
.alert-card--primary p { color: rgba(255,255,255,.7); }
.alert-card__highlight {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--ff-en);
  font-size: 56px;
  font-weight: 500;
  color: var(--c-yellow);
  line-height: 1;
}
.alert-card--primary .alert-card__highlight { color: var(--c-yellow); }

.beta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-yellow);
  color: var(--c-fg);
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-left: 12px;
  vertical-align: middle;
}

/* ---------- 里長帳號好處與規則 ---------- */
.benefit-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}
.benefit-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  align-items: flex-start;
}
.benefit-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-yellow);
  display: grid;
  place-items: center;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 18px;
  color: var(--c-fg);
}
.benefit-item h4 {
  font-size: 17px;
  font-weight: 500;
  margin: 4px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.benefit-item p {
  font-size: 14px;
  color: var(--c-fg-soft);
  line-height: 1.85;
  margin: 0;
}

.verified-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: var(--c-yellow);
  color: var(--c-fg);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ff-en);
}
.verified-mark::before { content: "✓"; }

.rule-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: rule;
}
.rule-list li {
  position: relative;
  padding: 22px 0 22px 56px;
  border-bottom: 1px solid var(--c-line);
  counter-increment: rule;
}
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 26px;
  font-family: var(--ff-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-yellow-deep);
  letter-spacing: 0.08em;
}
.rule-list strong {
  display: block;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--c-fg);
  line-height: 1.4;
}
.rule-list p {
  font-size: 14px;
  color: var(--c-fg-soft);
  line-height: 1.85;
  margin: 0;
}

/* ---------- Online Shop 浮動按鈕 (固定右下) ---------- */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 14px;
  background: var(--c-fg);
  color: #fff;
  border-radius: 999px;
  border: 1px solid var(--c-fg);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.45);
  font-family: var(--ff-en);
  font-size: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.fab:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 20px 48px -14px rgba(0, 0, 0, 0.55);
}
.fab__icon {
  width: 36px;
  height: 36px;
  background: var(--c-yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-fg);
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
}
.fab__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.fab__text strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
}
.fab__text small {
  font-size: 10px;
  color: var(--c-yellow);
  letter-spacing: 0.22em;
  margin-top: 2px;
  text-transform: uppercase;
}
.fab__dot {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--c-yellow);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@media (max-width: 540px) {
  .fab {
    bottom: 16px;
    right: 16px;
    padding: 10px 18px 10px 12px;
  }
  .fab__icon { width: 32px; height: 32px; font-size: 16px; }
  .fab__text strong { font-size: 12px; }
  .fab__text small { font-size: 9px; letter-spacing: 0.18em; }
}

/* ---------- Online Shop Coming-Soon Modal ---------- */
.shop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.shop-modal-overlay.is-open {
  display: flex;
  animation: shopModalFadeIn .25s ease;
}
@keyframes shopModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.shop-modal {
  position: relative;
  background: #ffffff;
  border-radius: var(--r-xl);
  max-width: 480px;
  width: 100%;
  padding: 48px 36px 32px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  animation: shopModalSlide .32s cubic-bezier(.2, .8, .3, 1);
}
@keyframes shopModalSlide {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.shop-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  font-size: 16px;
  color: var(--c-fg-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s ease;
  font-family: inherit;
}
.shop-modal__close:hover {
  background: var(--c-fg);
  color: var(--c-yellow);
  border-color: var(--c-fg);
}
.shop-modal__icon {
  width: 72px;
  height: 72px;
  background: var(--c-yellow);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--c-fg);
}
.shop-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--c-bg-soft);
  color: var(--c-fg-soft);
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.shop-modal__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-yellow);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
.shop-modal h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.shop-modal p {
  font-size: 14px;
  color: var(--c-fg-soft);
  line-height: 1.9;
  margin: 0 0 28px;
}
.shop-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.shop-modal__actions .btn {
  font-size: 14px;
  padding: 12px 22px;
}
.shop-modal__hint {
  display: block;
  font-size: 11px;
  font-family: var(--ff-en);
  color: var(--c-fg-mute);
  letter-spacing: 0.06em;
}
@media (max-width: 540px) {
  .shop-modal { padding: 40px 24px 28px; }
  .shop-modal h3 { font-size: 19px; }
  .shop-modal p { font-size: 13px; }
  .shop-modal__actions { flex-direction: column-reverse; }
  .shop-modal__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- 關於頁：App Store 風格標頭卡 ---------- */
.appcard {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--c-bg-soft) 0%, #fff 100%);
}
.appcard__icon img {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.35);
  border: 1px solid var(--c-line);
}
.appcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-yellow);
  color: var(--c-fg);
  font-family: var(--ff-en);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.appcard__name {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 4px;
}
.appcard__cat {
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-fg-mute);
  margin: 0 0 14px;
}
.appcard__tagline {
  font-size: 17px;
  color: var(--c-fg-soft);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 540px;
}
.appcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 22px;
}
.appcard__meta span {
  position: relative;
  font-family: var(--ff-en);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--c-fg-soft);
  padding-right: 20px;
}
.appcard__meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: var(--c-line);
}
.appcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 640px) {
  .appcard {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
    padding: 28px 22px;
  }
  .appcard__icon { justify-self: center; }
  .appcard__icon img { width: 104px; height: 104px; border-radius: 22px; }
  .appcard__tagline { margin-left: auto; margin-right: auto; }
  .appcard__meta { justify-content: center; }
  .appcard__actions { justify-content: center; }
}

/* ---------- 關於頁：介紹本文 ---------- */
.about-prose {
  max-width: 760px;
  margin: 8px 0 0;
}
.about-prose p {
  font-size: 16px;
  line-height: 2;
  color: var(--c-fg-soft);
  margin: 0 0 18px;
}
.about-prose p:last-child { margin-bottom: 0; }

/* ---------- 關於頁：示警情境預覽（自動換行格狀，圖片完整顯示） ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.shot {
  margin: 0;
}
.shot__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  aspect-ratio: 4 / 5; /* 直式，配合原圖比例 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot__img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 完整顯示直式原圖，不裁切上下 */
}
.shot__cap {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-fg);
  text-align: center;
}
@media (max-width: 640px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- 關於頁：App 資訊表 ---------- */
.infotable {
  margin: 0;
  border-top: 1px solid var(--c-line);
}
.infotable__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-line);
}
.infotable dt {
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-fg-mute);
  text-transform: uppercase;
}
.infotable dd {
  margin: 0;
  font-size: 15px;
  color: var(--c-fg);
}
@media (max-width: 540px) {
  .infotable__row { grid-template-columns: 130px 1fr; gap: 12px; }
  .infotable dt { font-size: 12px; }
}

/* ---------- 合作洽談：合作說明區 (contact.html) ---------- */
.contact-demo {
  margin: 0 0 64px;
}
/* 上：靜態示意圖；下：動畫示意卡片，版面比照靜態圖（底色、標籤、標題、置中螢幕），
   螢幕寬 57.8%＝靜態圖中電視的寬度比例，兩張一樣大。字級用 cqw 隨卡片寬度縮放 */
.demo-still,
.demo-motion {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.demo-still { height: auto; }
.demo-motion {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 100 / 70; /* 螢幕 27:20（巨幕影片帶到底下車流）；底部說明留兩到三行空間；中英日、靜態與動畫卡都同尺寸 */
  margin-top: 24px;
  background: #fafaf7;
  overflow: hidden;
}
.demo-motion__tag {
  position: absolute;
  left: 4.5cqw;
  top: 3.3cqw;
  padding: .35cqw 1cqw;
  border-radius: .4cqw;
  background: #ffc400;
  color: var(--c-fg);
  font-size: 1.35cqw;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .05em;
}
.demo-motion__title {
  position: absolute;
  left: 4.5cqw;
  top: 6.2cqw;
  margin: 0;
  font-size: 2.6cqw;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-fg);
}
.demo-motion__screen {
  position: absolute;
  left: 21.1cqw;
  top: 10.2cqw;
  width: 57.8cqw;
  padding: .9cqw;
  border-radius: 1cqw;
  background: #2a2a26;
  box-shadow: 0 1.2cqw 3cqw -1.5cqw rgba(0, 0, 0, .35);
}
.demo-motion__screen video,
.demo-motion__screen img {
  display: block;
  width: 100%;
  aspect-ratio: 27 / 20;
  object-fit: cover;
  border-radius: .3cqw;
  background: #0c0c0a;
}
/* 靜態示意：電視畫面內容（16:9）放進同尺寸螢幕，上下留黑邊，與動畫螢幕一樣大 */
.demo-motion--still .demo-motion__screen img { object-fit: contain; }
.demo-motion--still { margin-top: 0; }
.demo-motion__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 56.2cqw;
  text-align: center;
  font-size: 1.3cqw;
  color: var(--c-fg-soft);
}
.demo-motion__brand {
  position: absolute;
  right: 4.5cqw;
  top: 3.6cqw;
  font-family: var(--ff-en);
  font-size: 1.3cqw;
  font-weight: 700;
  color: var(--c-fg-soft);
}
.demo-motion__foot {
  position: absolute;
  left: 4.5cqw;
  right: 4.5cqw;
  bottom: 2.2cqw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4cqw;
  padding-top: 1cqw;
  border-top: 1px solid var(--c-line);
}
.demo-motion__note,
.demo-motion__legal {
  margin: 0;
  line-height: 1.6;
}
.demo-motion__note { flex: 1 1 52%; font-size: 1.15cqw; color: var(--c-fg); }
.demo-motion__legal { flex: 1 1 48%; font-size: .95cqw; color: var(--c-fg-mute); text-align: right; }
/* 手機：動畫卡改成上下排，巨幕佔滿卡片寬度，文字改用固定字級（cqw 在窄螢幕會太小） */
@media (max-width: 640px) {
  .demo-motion {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px 14px;
  }
  .demo-motion__tag,
  .demo-motion__brand,
  .demo-motion__title,
  .demo-motion__screen,
  .demo-motion__label,
  .demo-motion__foot { position: static; }
  .demo-motion__tag { align-self: flex-start; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
  .demo-motion__brand { display: none; }
  .demo-motion__title { font-size: 16px; }
  .demo-motion__screen { position: relative; left: auto; top: auto; width: 100%; padding: 5px; border-radius: 8px; margin-top: 2px; }
  .demo-motion__screen video { border-radius: 4px; }
  .demo-motion__label { font-size: 11px; }
  .demo-motion__foot { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 8px; }
  .demo-motion__note { font-size: 11.5px; }
  .demo-motion__legal { font-size: 9.5px; text-align: left; white-space: normal; }
}
.contact-demo figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--c-fg-mute);
  text-align: center;
}
/* 示意圖標示：疊在示意螢幕／地圖左上角，明確告知非實際畫面
   （桌機螢幕是 absolute、手機螢幕是 relative，都可當定位基準） */
.demo-mark {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffc400;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  font-family: var(--ff-zh);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
}
.demo-mark--map { top: 16px; left: 50%; transform: translateX(-50%); font-size: 12px; }
@media (max-width: 640px) {
  .demo-mark { top: 8px; left: 8px; padding: 3px 8px; font-size: 10.5px; }
}
/* 合作洽談：各類螢幕都能客製化串接 */
.screen-types { margin: 0 0 64px; }
.screen-types__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.screen-types__list li {
  display: grid;
  gap: 6px;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-yellow);
  border-radius: var(--r-md);
}
.screen-types__list strong { font-size: 17px; font-weight: 500; color: var(--c-fg); }
.screen-types__list span { font-size: 14.5px; color: var(--c-fg-soft); line-height: 1.7; }
.screen-types__note { margin: 16px 0 0; font-size: 14.5px; color: var(--c-fg-soft); }
@media (max-width: 880px) {
  .screen-types__list { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .screen-types { margin-bottom: 44px; }
  .screen-types__list li { padding: 16px 16px 14px; }
}
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  margin: 0 0 22px;
}
.block-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--c-yellow);
  flex-shrink: 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.dot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dot-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-top: 1px solid var(--c-line);
  color: var(--c-fg-soft);
  font-size: 16px;
}
.dot-list li:last-child { border-bottom: 1px solid var(--c-line); }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-yellow);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  color: var(--c-fg-soft);
  font-size: 15.5px;
}
.steps li::before {
  content: "0" counter(s);
  display: block;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--c-yellow-deep);
  margin-bottom: 12px;
}
.contact {
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  padding: 40px 44px;
}
.contact__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
}
.contact__row:first-of-type { padding-top: 0; }
.contact__label {
  font-family: var(--ff-en), var(--ff-zh);
  font-weight: 500;
  font-size: 16px;
}
.contact__who { color: var(--c-fg-soft); font-size: 15.5px; }
.contact__org { margin: 22px 0 0; font-size: 14px; color: var(--c-fg-mute); }
.shop-wrap { max-width: 420px; margin: 0 auto; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .contact-demo { margin-bottom: 44px; }
  .block-title { font-size: 20px; }
  .contact { padding: 28px 22px; }
  .contact__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .contact__row .btn { justify-self: start; margin-top: 6px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }
.mt-4 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.divider {
  height: 1px;
  background: var(--c-line);
  margin: 48px auto;
  width: 60px;
}
.divider--yellow { background: var(--c-yellow); height: 3px; width: 48px; margin: 0 auto 24px; }

/* ---------- 首頁 Hero：新版 App V4.2 示警地圖動畫模擬示意 (index.html) ----------
   純 HTML/CSS，無 JS，不用手機外框：地圖畫面直接鋪滿右側視覺區。對齊 V4.2 截圖：
   米色底、縣市分色＋名稱、圓形則數標、上方搜尋列與今日／近3日／近7日、底部「全臺灣 … 63 則」抽屜。
   動態：則數標輪流彈跳、地圖微浮動、狀態卡三張輪流淡入、抽屜內示警類別輪播；prefers-reduced-motion 時全部停住 */
.hero__visual--app { padding: 0; display: block; aspect-ratio: 5 / 7; }
.hero__visual--app::before,
.hero__visual--app::after { content: none; }
.app-demo {
  position: absolute;
  inset: 54px 24px 24px;
  display: flex;
  flex-direction: column;
  background: #f1efe7;
  border: 1px solid #e3dfd3;
  border-radius: 16px;
  overflow: hidden;
  color: #2b2b2b;
  font-family: var(--ff-zh);
  font-weight: 500;
  letter-spacing: 0;
  --ad-olive: #9a8a1f;
  --ad-green: #4e7a4a;
  --ad-ink: #2b2b2b;
  --ad-mute: #6e6e6e;
  --ad-line: #e3dfd3;
}
.app-demo__badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-fg);
  color: var(--c-yellow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.app-demo__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-yellow);
  animation: pulse 1.8s infinite;
}
.app-demo__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 0;
}
.app-demo__ic,
.app-demo__searchbox {
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 10px;
  height: 34px;
}
.app-demo__ic { width: 34px; flex-shrink: 0; display: grid; place-items: center; }
/* 漢堡選單、圖層：標準 SVG 圖示（與 App 頂端工具列一致） */
.app-demo__ic svg { width: 17px; height: 17px; color: var(--ad-ink); display: block; }
.app-demo__searchbox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ad-mute);
}
.app-demo__searchbox svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ad-mute); display: block; }
.app-demo__segrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 0;
}
.app-demo__seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.app-demo__seg span { padding: 4px 10px; border-radius: 999px; color: #444; }
.app-demo__seg span.is-on { background: var(--c-yellow); color: var(--ad-ink); }
.app-demo__date {
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 700;
  color: #444;
}
.app-demo__map {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.app-demo__tw {
  position: absolute;
  left: 50%;
  top: 1%;
  height: 99%;
  aspect-ratio: 515.3 / 760;
  transform: translateX(-44%);
  animation: app-demo-float 7s ease-in-out infinite;
}
@keyframes app-demo-float {
  0%, 100% { transform: translateX(-44%) translateY(-3px); }
  50% { transform: translateX(-44%) translateY(4px); }
}
.app-demo__tw img { width: 100%; height: 100%; display: block; }
.app-demo__pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pin);
  color: #fff;
  font-family: var(--ff-en);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px #f6f3e9, 0 4px 8px -2px rgba(0, 0, 0, .35);
  animation: app-demo-pop 3.6s ease-in-out infinite;
}
.app-demo__pin.is-olive { --pin: var(--ad-olive); }
.app-demo__pin.is-green { --pin: var(--ad-green); }
.app-demo__pin:nth-child(3n + 2) { animation-delay: 1.2s; }
.app-demo__pin:nth-child(3n + 3) { animation-delay: 2.4s; }
.app-demo__pin:nth-child(4n + 1) { animation-delay: .6s; }
@keyframes app-demo-pop {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.28); }
  90% { transform: scale(1); }
}
.app-demo__locate {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.app-demo__locate::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.6px solid var(--ad-ink);
  border-radius: 50%;
}
/* 狀態卡：照 V4.2 .al-safe（C 標籤置頂）；色票取自 App 的 --px-lv-*（important／warning／notice）。
   三張疊在同一位置輪流淡入；容器高度由最高那張撐開 */
.app-demo__status {
  position: relative;
  margin: 10px 14px 0;
  display: grid;
}
.app-demo__status .al-safe {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 13px;
  border: 1px solid var(--sv-line);
  border-radius: 14px;
  background: var(--sv-bg);
  color: var(--sv-ink);
  --sv-tint: color-mix(in srgb, currentColor 10%, transparent);
  --sv-sub: color-mix(in srgb, var(--sv-ink) 88%, var(--sv-bg));
  opacity: 0;
  transform: translateY(6px);
  animation: app-demo-card 12s ease-in-out infinite;
}
.app-demo__status .asv-yellow { --sv-bg: #F2E2A5; --sv-ink: #1A1A1A; --sv-line: #887525; }
.app-demo__status .asv-orange { --sv-bg: #F4AC67; --sv-ink: #1A1A1A; --sv-line: #BC6411; animation-delay: 4s; }
.app-demo__status .asv-red    { --sv-bg: #A23035; --sv-ink: #FFFFFF; --sv-line: #901D27; --sv-tint: color-mix(in srgb, currentColor 18%, transparent); animation-delay: 8s; }
.al-safe__head { display: flex; align-items: center; gap: 5px; }
.al-safe__light {
  border: 1.5px solid currentColor;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.al-safe__type {
  background: var(--sv-tint);
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.al-safe__when {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--sv-sub);
  white-space: nowrap;
}
.al-safe__when b { font-weight: 600; font-variant-numeric: tabular-nums; }
.app-demo__status .al-safe > b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.al-safe__foot { display: flex; align-items: center; gap: 7px; }
.al-safe__ic {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--sv-tint);
}
.al-safe__ic svg { width: 13px; height: 13px; display: block; }
.al-safe__cat { font-size: 11.5px; font-weight: 500; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-safe__more { margin-left: auto; font-size: 11px; font-weight: 700; white-space: nowrap; }
@keyframes app-demo-card {
  0% { opacity: 0; transform: translateY(6px); }
  4%, 30% { opacity: 1; transform: translateY(0); }
  34%, 100% { opacity: 0; transform: translateY(-4px); }
}
.app-demo__sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 18px -10px rgba(0, 0, 0, .25);
  padding: 7px 14px 12px;
}
.app-demo__grip {
  display: block;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: #d8d8d8;
  margin: 0 auto 9px;
}
.app-demo__sheet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.app-demo__sheet-row strong { font-size: 15px; font-weight: 700; }
.app-demo__chips { position: relative; flex: 0 0 auto; width: 92px; height: 22px; }
.app-demo__chip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid #c9b800;
  border-radius: 7px;
  background: #fbf6d6;
  color: #6b6411;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  animation: app-demo-chip 9s ease-in-out infinite;
}
.app-demo__chip:nth-child(2) { animation-delay: 3s; }
.app-demo__chip:nth-child(3) { animation-delay: 6s; }
@keyframes app-demo-chip {
  0% { opacity: 0; transform: translateY(4px); }
  5%, 30% { opacity: 1; transform: translateY(0); }
  35%, 100% { opacity: 0; transform: translateY(-4px); }
}
.app-demo__n { color: #444; font-size: 12.5px; }
.app-demo__caret {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-left: 1.8px solid var(--ad-ink);
  border-top: 1.8px solid var(--ad-ink);
  transform: rotate(45deg) translateY(2px);
}
@media (prefers-reduced-motion: reduce) {
  .app-demo__tw, .app-demo__pin, .app-demo__badge::before, .app-demo__status .al-safe, .app-demo__chip { animation: none; }
  .app-demo__status .asv-yellow, .app-demo__chip:first-child { opacity: 1; transform: none; }
}
@media (max-width: 880px) {
  /* 手機：視覺區拉高、藏搜尋列，把空間留給地圖；底部留位給 hero__meta 兩行 */
  /* 狀態卡＋地圖＋抽屜都要放得下；平板寬度時限制最大寬，避免整塊過高 */
  .hero__visual--app { aspect-ratio: 10 / 18; width: 100%; max-width: 440px; margin: 0 auto; }
  .app-demo { inset: 46px 14px 14px; }
  .demo-mark--map { top: 12px; left: 50%; }
  .app-demo__tools { display: none; }
  .app-demo__segrow { padding-top: 12px; }
}
@media (max-width: 540px) {
  .hero__visual--app::before, .hero__visual--app::after { font-size: 10px; }
  .app-demo__pin { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 9px; }
  .app-demo__status .al-safe > b { font-size: 14px; }
  .app-demo__chips { width: 80px; }
  .app-demo__chip { font-size: 9.5px; }
}
