/* UPEE 優皮健康 LIFF — 依墨刀首頁設計稿取樣的色票 */
:root {
  --g-top: #4296d8;     /* 頂部藍 */
  --g-mid: #41c0be;     /* 中段青 */
  --g-low: #5fd3cb;
  --g-fade: #b9eeea;
  --brand: #00779c;     /* 標題深青藍 */
  --brand-2: #389db1;   /* Tab 選中色 / 按鈕 */
  --btn: linear-gradient(90deg, #3aa6c9, #1f8fb3);
  --ink: #333333;
  --ink-2: #555555;
  --muted: #999999;
  --line: #eef2f4;
  --bg: #f4f8fa;
  --card: #ffffff;
  --ok: #3cbf8a;
  --warn: #f2a33a;
  --bad: #e5484d;
  --kidney: #d4f1f7; --kidney-i: #8fd5e0; --kidney-p: #a3e5ef;
  --urin: #e3ecfb;   --urin-i: #98bbef;   --urin-p: #ccdeff;
  --meta: #fff2d4;   --meta-i: #ffd56a;   --meta-p: #ffeabd;
  --liver: #fef0f5;  --liver-i: #f5afc4;  --liver-p: #fddae6;
  --ph: #eefadd;     --ph-i: #9be728;     --ph-p: #d6f7a7;
  --endo: #e8f6ff;   --endo-i: #a1c8ee;   --endo-p: #ccdeff;
  --radius: 16px;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
#app { min-height: 100%; }

/* ---------- 開機畫面 ---------- */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--g-top), var(--g-mid) 60%, var(--g-low)); color: #fff; }
.boot-logo { font-size: 52px; font-weight: 900; letter-spacing: 2px; }
.boot-sub { font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.boot-msg { font-size: 13px; opacity: .85; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.dark { border-color: #d8e6ec; border-top-color: var(--brand-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 頁面骨架 ---------- */
.page { min-height: 100vh; padding-bottom: calc(24px + var(--safe-b)); }
.page.has-tab { padding-bottom: calc(var(--tabbar) + 16px + var(--safe-b)); }
.page.grad { background: linear-gradient(180deg, var(--g-top) 0, var(--g-mid) 300px, var(--g-fade) 420px, var(--bg) 460px); }
.page.grad-short { background: linear-gradient(180deg, #47b3d0 0, #7fd2d5 120px, var(--bg) 220px); }
.topbar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: center;
  padding: 0 52px; color: #fff; font-size: 17px; font-weight: 600; }
.topbar.solid { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.topbar.solid .back { color: var(--ink); }
.topbar .back { position: absolute; left: 6px; top: 0; height: 52px; width: 46px; display: flex; align-items: center; justify-content: center; color: #fff; }
.topbar .back svg { width: 22px; height: 22px; }
.topbar .right { position: absolute; right: 8px; top: 0; height: 52px; display: flex; align-items: center; font-size: 13px; font-weight: 500; }
.wrap { padding: 0 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 10px rgba(0, 80, 110, .06); }
.card + .card { margin-top: 12px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--brand); margin: 22px 0 10px; }
.section-title .bar { width: 4px; height: 18px; border-radius: 2px; background: var(--brand-2); }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: 12px; font-size: 16px; font-weight: 600;
  color: #fff; background: var(--btn); box-shadow: 0 6px 16px rgba(31, 143, 179, .28); transition: transform .08s; }
.btn:active { transform: scale(.985); }
.btn.ghost { background: #fff; color: var(--brand-2); border: 1.5px solid #bfe0ea; box-shadow: none; }
.btn.light { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.55); }
.btn.line { background: #06C755; box-shadow: 0 6px 16px rgba(6,199,85,.25); }
.btn.sm { height: 40px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(180deg, rgba(244,248,250,0), var(--bg) 40%); z-index: 15; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #e6f4f8; color: var(--brand); }
.chip.ok { background: #e4f7ee; color: #1d9a63; } .chip.warn { background: #fff1dd; color: #c97a0e; } .chip.bad { background: #fdeaea; color: #c8353a; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 48px; border-radius: 999px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; font-size: 14px; }
.empty .ico { font-size: 40px; margin-bottom: 8px; }

/* ---------- 底部 Tab ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 30; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #c8c8c8; font-size: 12px; }
.tabbar a svg { width: 28px; height: 28px; }
.tabbar a.on { color: var(--brand-2); }

/* ---------- 首頁 ---------- */
.home-hero { position: relative; padding: 8px 16px 0; color: #fff; }
.home-hero .brand-en { font-size: 46px; font-weight: 900; letter-spacing: 1px; line-height: 1.05; }
.home-hero .brand-zh { font-size: 30px; font-weight: 800; line-height: 1.2; }
.home-hero .hero-img { position: absolute; right: 0; top: -6px; width: 58%; max-width: 260px; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 55% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 60% 60% at 55% 50%, #000 55%, transparent 100%); }
.status-card { margin: 26px 16px 0; background: #fff; border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: 0 6px 20px rgba(0,80,110,.10); position: relative; }
.status-card .st { font-size: 34px; font-weight: 900; color: var(--brand); line-height: 1.15; }
.status-card .st small { font-size: 16px; font-weight: 600; margin-left: 6px; }
.status-card .desc { color: var(--brand); font-size: 15px; margin-top: 4px; }
.status-card .scan { position: absolute; right: 16px; top: 18px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--brand-2); background: #eef8fb; }
.status-card .scan svg { width: 24px; height: 24px; }
.status-card .cta { margin-top: 14px; }
.intro { padding: 0 16px; font-size: 15px; color: var(--ink); line-height: 1.8; }
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; }
.sys-card { position: relative; height: 112px; border-radius: 14px; padding: 16px; overflow: hidden; text-align: left; box-shadow: 0 2px 8px rgba(0,60,90,.06); }
.sys-card .name { font-size: 20px; font-weight: 800; color: var(--ink); position: relative; z-index: 1; }
.sys-card .go { position: absolute; left: 16px; bottom: 16px; width: 48px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; }
.sys-card .go svg { width: 14px; height: 14px; }
.sys-card .icon { position: absolute; right: 12px; bottom: 8px; width: 56px; height: 56px; opacity: .9; }
.sys-card.kidney { background: var(--kidney); } .sys-card.kidney .go { background: var(--kidney-p); } .sys-card.kidney .icon { color: var(--kidney-i); }
.sys-card.urin { background: var(--urin); }   .sys-card.urin .go { background: var(--urin-p); }     .sys-card.urin .icon { color: var(--urin-i); }
.sys-card.meta { background: var(--meta); }   .sys-card.meta .go { background: var(--meta-p); }     .sys-card.meta .icon { color: var(--meta-i); }
.sys-card.liver { background: var(--liver); } .sys-card.liver .go { background: var(--liver-p); }   .sys-card.liver .icon { color: var(--liver-i); }
.sys-card.ph { background: var(--ph); }       .sys-card.ph .go { background: var(--ph-p); }         .sys-card.ph .icon { color: var(--ph-i); }
.sys-card.endo { background: var(--endo); }   .sys-card.endo .go { background: var(--endo-p); }     .sys-card.endo .icon { color: var(--endo-i); }

/* ---------- 掃碼 ---------- */
.scan-frame { position: relative; width: 240px; height: 240px; margin: 36px auto 18px; overflow: hidden; border-radius: 12px; }
.scan-frame::before, .scan-frame::after, .scan-frame i::before, .scan-frame i::after, .scan-frame .laser { z-index: 1; }
.scan-frame::before, .scan-frame::after, .scan-frame i::before, .scan-frame i::after { content: ""; position: absolute; width: 40px; height: 40px; border: 4px solid #fff; }
.scan-frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scan-frame::after { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.scan-frame i::before { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scan-frame i::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scan-frame .laser { position: absolute; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); animation: laser 2.2s ease-in-out infinite; }
@keyframes laser { 0% { top: 12px; } 50% { top: 226px; } 100% { top: 12px; } }
.scan-frame .qr { position: absolute; inset: 40px; opacity: .25; color: #fff; }
.input { width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid #d6e6ec; background: #fff; padding: 0 14px; font-size: 17px; outline: none; letter-spacing: 1px; }
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(56,157,177,.15); }
.input.center { text-align: center; text-transform: uppercase; }
.device-box { border: 1.5px dashed #bfe0ea; border-radius: 12px; padding: 12px; background: #f6fbfd; }

/* ---------- 方案 / 支付 ---------- */
.credit-hero { border-radius: var(--radius); padding: 18px; color: #fff; background: linear-gradient(120deg, #2f9dc6, #3fbfb5); position: relative; overflow: hidden; }
.credit-hero .logo { font-size: 26px; font-weight: 900; }
.credit-hero .n { font-size: 40px; font-weight: 900; line-height: 1; }
.credit-hero .rec { position: absolute; right: 14px; top: 16px; font-size: 13px; color: #fff; display: flex; align-items: center; gap: 4px; }
.credit-hero .coin { position: absolute; right: -10px; bottom: -22px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pkg { border: 2px solid #e3eef2; border-radius: 12px; background: #fff; overflow: hidden; text-align: center; transition: border-color .15s; }
.pkg.on { border-color: var(--brand-2); background: #f2fafc; }
.pkg .t { font-size: 14px; color: var(--ink-2); padding-top: 10px; }
.pkg .n { font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.pkg .p { font-size: 15px; color: #2a8bb0; margin: 4px 0 8px; }
.pkg .p s { color: #bbb; font-size: 12px; margin-right: 4px; }
.pkg .b { background: #e6f2f6; color: var(--brand); font-size: 12px; padding: 5px 0; }
.pkg.on .b { background: var(--brand-2); color: #fff; }
.pkg.wide { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; text-align: left; }
.pkg.wide .n { font-size: 20px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--brand-2); }
.pay-brand { display: flex; align-items: center; gap: 14px; }
.pay-brand .drop { width: 56px; height: 56px; border-radius: 50%; background: #e8f5f8; display: flex; align-items: center; justify-content: center; color: var(--brand-2); }
.pay-brand .drop svg { width: 34px; height: 34px; }
.amount { font-size: 34px; font-weight: 900; color: var(--ink); }
.amount small { font-size: 16px; font-weight: 600; margin-right: 4px; }
.success-ico { width: 88px; height: 88px; border-radius: 50%; background: #e6f7ef; color: #22b573; display: flex; align-items: center; justify-content: center; margin: 40px auto 16px; }
.success-ico svg { width: 46px; height: 46px; }

/* ---------- 檢測 ---------- */
.instr { background: #fff; border-radius: var(--radius); padding: 28px 18px 32px; text-align: center; box-shadow: 0 6px 20px rgba(0,80,110,.10); }
.instr .ico { width: 110px; height: 110px; border-radius: 50%; background: #e6f5fa; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: #4db3d6; }
.instr .ico svg { width: 60px; height: 60px; }
.instr h2 { font-size: 30px; font-weight: 900; color: var(--brand); line-height: 1.35; }
.ring { position: relative; width: 150px; height: 150px; margin: 30px auto 20px; }
.ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .c b { font-size: 46px; font-weight: 900; color: var(--brand); line-height: 1; }
.ring .c span { font-size: 14px; color: var(--brand); }
.analyz-title { color: #fff; text-align: center; font-size: 22px; font-weight: 700; line-height: 1.5; }
.tip-card { background: #fff; border-radius: var(--radius); padding: 16px; }
.tip-card b { display: block; font-size: 16px; margin-bottom: 4px; }

/* ---------- 報告 ---------- */
.rep-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 0; color: #fff; }
.rep-head .lg { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 4px; }
.score-ring { position: relative; width: 190px; height: 190px; margin: 14px auto 6px; }
.score-ring svg { width: 190px; height: 190px; transform: rotate(-90deg); }
.score-ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .c b { font-size: 56px; font-weight: 900; color: var(--brand); line-height: 1; }
.score-ring .c b small { font-size: 16px; font-weight: 600; margin-left: 2px; }
.score-ring .c span { font-size: 15px; color: var(--brand); }
.badge-rating { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--brand); font-weight: 800; font-size: 17px; box-shadow: 0 3px 10px rgba(0,60,90,.12); }
.badge-rating .gender { font-size: 12px; font-weight: 500; color: #fff; background: var(--brand-2); border-radius: 999px; padding: 2px 8px; }
.sum-line { font-size: 17px; font-weight: 700; text-align: center; }
.sum-line .bad { color: var(--bad); } .sum-line .ok { color: var(--brand); }
.note-box { background: #f3f9fb; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-top: 10px; }
.kv { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.kv .k { color: var(--ink); }
.kv .v { color: var(--brand); }
.ind { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ind:last-child { border-bottom: 0; }
.ind .hd { display: flex; align-items: center; justify-content: space-between; }
.ind .nm { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ind .nm .q { width: 18px; height: 18px; border-radius: 50%; background: #e6f2f6; color: var(--brand); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ind .val { font-size: 15px; font-weight: 700; }
.ind .val.warn { color: var(--warn); } .ind .val.abnormal { color: var(--bad); } .ind .val.normal { color: var(--ok); }
.bar { position: relative; height: 8px; border-radius: 4px; margin: 10px 0 4px; background: linear-gradient(90deg, #ffd7a3, #9ee7c9 30%, #9ee7c9 70%, #ffb3b3); }
.bar .dot { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-2); transform: translateX(-50%); }
.bar-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.adv h4 { font-size: 15px; margin: 14px 0 6px; display: flex; align-items: center; gap: 6px; }
.adv ul { padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.seg { display: flex; background: #e9f1f4; border-radius: 10px; padding: 3px; }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------- 清單 / 我的 ---------- */
.me-head { display: flex; align-items: center; gap: 14px; padding: 8px 16px 20px; color: #fff; }
.me-head .av { width: 64px; height: 64px; border-radius: 50%; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--brand-2); font-size: 28px; font-weight: 800; }
.me-head .av img { width: 100%; height: 100%; object-fit: cover; }
.me-head .nm { font-size: 20px; font-weight: 800; }
.me-head .sub { font-size: 13px; opacity: .9; }
.stat3 { display: flex; background: #fff; border-radius: var(--radius); margin: 0 16px; box-shadow: 0 6px 20px rgba(0,80,110,.10); }
.stat3 button { flex: 1; padding: 14px 4px; text-align: center; }
.stat3 b { display: block; font-size: 24px; color: var(--brand); font-weight: 900; }
.stat3 span { font-size: 12px; color: var(--muted); }
.list { background: #fff; border-radius: var(--radius); overflow: hidden; }
.list .it { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: 16px; }
.list .it:last-child { border-bottom: 0; }
.list .it .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #e9f5f9; color: var(--brand-2); }
.list .it .ic svg { width: 20px; height: 20px; }
.list .it .r { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 4px; max-width: 55%; text-align: right; }
.list .it .r img { width: 34px; height: 34px; border-radius: 50%; }
.chev { width: 16px; height: 16px; color: #c4ced3; flex: none; }
.order { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.order .no { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.order .no b { color: var(--brand); font-weight: 600; }
.order .ln { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.order .ln b { color: var(--ink); font-size: 16px; }
.order .btn-o { height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--brand-2); color: var(--brand-2); font-size: 13px; }
.form .f { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.form .f:last-child { border-bottom: 0; }
.form .f label { color: var(--ink); }
.form .f .v { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.form .f input, .form .f select { text-align: right; border: 0; background: transparent; font-size: 16px; color: var(--ink-2); outline: none; max-width: 180px; }
.form .f select { -webkit-appearance: none; appearance: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 7px 12px; border-radius: 999px; border: 1.5px solid #d6e6ec; background: #fff; font-size: 14px; color: var(--ink-2); }
.opt.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.q { font-size: 15px; font-weight: 600; margin: 16px 0 8px; }
textarea.input { height: 90px; padding: 10px 14px; letter-spacing: 0; font-size: 15px; resize: none; }

/* ---------- 附近 ---------- */
#map { height: 300px; border-radius: var(--radius); overflow: hidden; margin: 0 16px; box-shadow: 0 6px 20px rgba(0,80,110,.10); background: #dfe9ee; }
.dev-cur { margin: 12px 16px; background: linear-gradient(90deg, #3aa6c9, #46b8bd); color: #fff; border-radius: 12px; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.dev-cur .loc { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.dev { background: #fff; border-radius: 12px; padding: 14px 16px; margin: 0 16px 12px; display: flex; align-items: center; gap: 12px; }
.dev .nm { font-size: 16px; font-weight: 700; }
.dev .ad { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.dev .ad em { font-style: normal; color: var(--brand-2); }
.dev .nav { margin-left: auto; text-align: center; color: var(--brand-2); font-size: 12px; }
.dev .nav .b { width: 36px; height: 36px; border-radius: 50%; background: #e9f5f9; display: flex; align-items: center; justify-content: center; margin: 0 auto 2px; }
.dev .nav svg { width: 20px; height: 20px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; background: var(--ok); }
.status-dot.off { background: #bbb; } .status-dot.maint { background: var(--warn); }
.city-sel { display: flex; gap: 12px; padding: 0 16px 12px; color: #fff; font-size: 14px; }
.city-sel select { background: transparent; border: 0; color: #fff; font-size: 14px; outline: none; }
.leaflet-container { font: inherit; }

/* ---------- 聯絡 / FAQ ---------- */
.hdr-banner { padding: 10px 16px 22px; color: #fff; position: relative; }
.hdr-banner h2 { font-size: 24px; font-weight: 800; }
.hdr-banner p { font-size: 14px; opacity: .9; margin-top: 2px; }
.hdr-banner .art { position: absolute; right: 18px; top: 0; font-size: 56px; }
.qr-box { display: flex; justify-content: center; padding: 10px 0; }
.qr-box canvas, .qr-box img { width: 180px !important; height: 180px !important; }
.faq-a { font-size: 15px; color: var(--ink-2); line-height: 1.85; }
.faq-a p + p { margin-top: 8px; }
.bullet { display: flex; gap: 8px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.bullet::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); flex: none; margin-top: 9px; }

/* ---------- 同意頁 ---------- */
.consent { min-height: 100vh; background: radial-gradient(120% 60% at 50% 0, #1e6fa8 0, #0e3f66 55%, #0a2b48 100%); color: #fff; padding: 20px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; }
.consent .robot { font-size: 84px; text-align: center; margin: 10px 0; }
.consent h1 { font-size: 26px; font-weight: 900; text-align: center; }
.consent .sdg { font-size: 12px; letter-spacing: 2px; text-align: center; opacity: .8; margin-bottom: 10px; }
.consent .box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.8; margin-top: 12px; }
.consent .box b { color: #ffe08a; }
.consent .fee { text-align: center; margin-top: 14px; }
.consent .fee .big { font-size: 26px; font-weight: 900; }
.consent .fee .big em { font-style: normal; font-size: 40px; color: #7fe3ff; }
.consent .btns { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.consent .btn.no { background: rgba(255,255,255,.12); box-shadow: none; }

/* ---------- 加好友 ---------- */
.follow { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; text-align: center;
  background: linear-gradient(180deg, var(--g-top), var(--g-mid) 60%, var(--g-low)); color: #fff; }
.follow .oa { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--brand-2); margin-bottom: 14px; }
.follow .oa svg { width: 56px; height: 56px; }
.follow h2 { font-size: 24px; font-weight: 800; }
.follow p { font-size: 15px; opacity: .92; margin: 10px 0 24px; line-height: 1.7; }

/* ---------- Modal / Toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 340px; padding: 22px 20px 18px; position: relative; animation: pop .18s; }
.modal h3 { text-align: center; font-size: 18px; margin-bottom: 14px; }
.modal .x { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; color: #999; font-size: 20px; }
.modal .body { font-size: 15px; color: var(--ink); line-height: 1.85; text-align: center; }
.modal .body.left { text-align: left; }
.modal .acts { display: flex; gap: 10px; margin-top: 18px; }
.modal .acts .btn { height: 44px; font-size: 15px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: scale(.94); opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(10px); background: rgba(20,40,50,.92); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: 86vw; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.loading-inline { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); font-size: 14px; }
.login-land { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; text-align: center; color: #fff;
  background: linear-gradient(180deg, var(--g-top), var(--g-mid) 60%, var(--g-low)); }
.login-land .brand-en { font-size: 54px; font-weight: 900; }
.login-land .brand-zh { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.login-land p { font-size: 15px; opacity: .92; margin-bottom: 28px; line-height: 1.7; }
.preview-tag { position: fixed; left: 8px; top: 8px; z-index: 40; background: #ff8a00; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
