/* ==========================================================================
   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;
}

/* ---------- 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;
}

/* ---------- 語言切換 中 / 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; }
}

/* line break shown only on desktop */
.br-desktop { display: none; }
@media (min-width: 881px) {
  .br-desktop { display: inline; }
}

@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__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);
}

/* ---------- 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; }

/* ---------- 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; }
}

/* ---------- 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; }
.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; }
