/* ============================================================
   BeSIM 流量卡 · 香港電訊公司風格設計系統
   品牌色集中於 --brand* 變數，改色只需改這幾行
   ============================================================ */
:root {
  /* 品牌色（藍色 / 淺藍：清爽科技感） */
  --brand: #1E63B3;       /* 深藍 */
  --brand-600: #2F80ED;   /* 藍 */
  --brand-500: #3B82F6;   /* 亮藍 */
  --brand-400: #60A5FA;   /* 淺藍 */
  --brand-100: #E8F1FD;   /* 極淺藍底 */
  --brand-50: #F2F8FE;
  --grad: linear-gradient(135deg, #1E63B3 0%, #2F80ED 50%, #3B82F6 100%);
  --grad-soft: linear-gradient(135deg, #F2F8FE 0%, #E8F1FD 100%);

  /* 中性色 */
  --ink: #16161d;
  --ink-2: #3a3a46;
  --muted: #6b6f7c;
  --line: #e7e6ef;
  --line-2: #efedf5;
  --bg: #f6f7fb;
  --surface: #ffffff;

  /* 語義色 */
  --ok: #0f9d58;
  --ok-bg: #e7f7ee;
  --warn: #d9360b;
  --warn-bg: #fdeee9;
  --info: #1c6fd6;

  /* 排版 */
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* 圓角 / 陰影 / 間距 */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(20,20,40,.06), 0 1px 2px rgba(20,20,40,.04);
  --shadow: 0 8px 24px rgba(43,17,90,.08);
  --shadow-lg: 0 18px 48px rgba(43,17,90,.16);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ============================================================
   站點頂部導航（注入）
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 21px; color: var(--brand);
  letter-spacing: .3px; white-space: nowrap;
}
.nav-logo .dot {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 16px; box-shadow: var(--shadow-sm);
}
.nav-logo span { color: var(--ink); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2); font-weight: 600; font-size: 15.5px;
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--brand-50); color: var(--brand-600); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: var(--brand-100); }
.nav-cta {
  margin-left: 6px; background: var(--grad); color: #fff !important;
  padding: 10px 18px !important; font-weight: 700; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { filter: brightness(1.06); }
/* 悬停时保持渐变底 + 白字（否则会被 .nav-links a:hover 的浅色背景覆盖，变成白底白字） */
.nav-links a.nav-cta:hover,
.nav-links.open a.nav-cta:hover {
  background: var(--grad); color: #fff;
  filter: brightness(1.06);
  box-shadow: var(--shadow);
}
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-weight: 600; font-size: 15.5px;
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
}
.nav-back:hover { background: var(--brand-50); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 20px; cursor: pointer; color: var(--brand);
}
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; position: relative; }

/* ============================================================
   英雄區（首頁）
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad);
  color: #fff;
  padding: 56px 20px 100px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
}
.hero::before {
  content: ""; position: absolute; left: -100px; bottom: -140px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.35), rgba(59,130,246,0) 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px; font-weight: 900;
  text-shadow: 0 2px 18px rgba(0,0,0,.12);
}
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); opacity: .92; max-width: 640px; margin: 0 auto 30px; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px;
}
.hero-trust .tb {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}

/* 首頁查詢卡（覆蓋在英雄區底緣） */
.hero-query {
  position: relative; z-index: 2; max-width: 720px; margin: -60px auto 0; padding: 0 16px;
}
.query-card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 30px 26px; text-align: left;
}
.query-card h2 { margin: 0 0 4px; font-size: 22px; color: var(--brand); }
.query-card .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

/* 營銷佈局：首屏雙 CTA */
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-cta .btn { width: auto; min-width: 208px; }
.btn-outline {
  width: auto; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75);
  padding: 13px 22px; font-size: 17px; font-weight: 800; border-radius: 14px; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.btn-outline:hover { background: rgba(255,255,255,.14); text-decoration: none; }

/* 查詢卡：輸入框 + 按鈕並排（等高） */
.qrow { display: flex; gap: 12px; align-items: flex-end; }
.qrow > div { flex: 1 1 auto; min-width: 0; }
.qrow > div input { width: 100%; height: 54px; padding: 0 16px; }
.qrow .btn { flex: 0 0 auto; width: auto; height: 54px; margin: 0; white-space: nowrap; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.center { text-align: center; margin-top: 22px; }

/* 底部轉化帶 */
.cta-band { background: var(--grad); color: #fff; padding: 46px 20px; text-align: center; margin-top: 8px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 8px; font-weight: 900; }
.cta-band p { opacity: .92; margin: 0 0 20px; font-size: 16.5px; }
.cta-band .btn-light { display: inline-flex; width: auto; padding: 14px 38px; }

/* ============================================================
   通用佈局 / 區塊
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; }
.section.tight { padding: 30px 20px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.section-head .kicker { color: var(--brand-500); font-weight: 800; letter-spacing: 1px; font-size: 14px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 8px; color: var(--ink); font-weight: 900; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

.wrap { max-width: 720px; margin: 24px auto; padding: 0 16px; }

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.card.flush { padding: 0; overflow: hidden; }
.hidden { display: none !important; }

/* ============================================================
   按鈕
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-family: inherit;
  font-size: 19px; font-weight: 800; letter-spacing: .3px;
  padding: 15px 18px; border: none; border-radius: 14px; cursor: pointer;
  text-decoration: none; text-align: center; transition: transform .08s, filter .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(91,33,182,.28); }
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn-primary:active { filter: brightness(.97); }
.btn-ghost {
  width: auto; background: var(--brand-50); color: var(--brand-600);
  font-size: 15px; font-weight: 700; padding: 10px 16px; border-radius: 12px;
}
.btn-ghost:hover { background: var(--brand-100); text-decoration: none; }
.btn-light { background: #fff; color: var(--brand); width: auto; padding: 11px 18px; font-size: 16px; box-shadow: var(--shadow-sm); }
.btn-light:hover { text-decoration: none; filter: brightness(.98); }
.btn-pay { background: var(--grad); color: #fff; margin-top: 16px; }
.btn-pay:active { filter: brightness(.97); }
.btn-paybig { background: var(--warn); color: #fff; font-size: 21px; margin-top: 18px; box-shadow: 0 10px 24px rgba(217,54,11,.28); }
.btn-paybig:active { filter: brightness(.96); }
.btn-copy { background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: 10px 16px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-wide { width: 100%; margin-top: 14px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ============================================================
   表單控制
   ============================================================ */
label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 12px 13px; border: 2px solid var(--line); border-radius: 12px;
  outline: none; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(124,58,237,.14); background: #fff;
}
input::placeholder, textarea::placeholder { color: #aaa4bd; font-weight: 400; }
input:placeholder-shown { text-align: center; }
textarea { resize: vertical; font-weight: 500; line-height: 1.6; }
.ofield { margin-bottom: 14px; }
.ofield label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field { margin: 6px 0 4px; }
.field label { margin-top: 8px; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* 首頁查詢輸入框 */
#msisdn {
  font-size: 28px; font-weight: 800; letter-spacing: 3px;
  padding: 18px; border-radius: 14px; text-align: center;
}

/* ============================================================
   訊息 / 標籤 / 提示
   ============================================================ */
.msg { margin-top: 14px; font-size: 15.5px; min-height: 22px; }
.msg.err { color: var(--warn); }
.msg.ok { color: var(--ok); }
.alert {
  background: var(--warn-bg); border: 1px solid #f3c4b8; color: #8a1f16;
  border-radius: 12px; padding: 12px 14px; font-size: 15.5px; margin-top: 12px; line-height: 1.7;
}
.tips { margin: 0; padding-left: 22px; line-height: 1.95; font-size: 16px; color: #444; }
.tips li { margin-bottom: 2px; }
.tips-ok li { list-style: none; margin-left: -14px; }
.tips-ok li::before { content: "•"; color: var(--brand-500); font-weight: 800; display: inline-block; width: 14px; margin-left: -14px; }
.sec-title { font-weight: 800; font-size: 18px; margin: 20px 0 10px; color: var(--brand); }
.sec-label { font-weight: 800; font-size: 18px; margin: 20px 0 10px; color: var(--brand); }
.red { color: var(--warn); }
.mono { font-family: ui-monospace, Consolas, Menlo, monospace; letter-spacing: .5px; }
.money { color: var(--warn); font-size: 20px; }
.pay-support { margin-top: 12px; text-align: center; font-size: 15px; color: var(--muted); line-height: 1.7; }
.pay-notice { background: #fff8e6; border: 1px solid #ffe2a8; color: #7a5200; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 12px; line-height: 1.75; }

/* ============================================================
   查詢結果
   ============================================================ */
.numcard {
  border: 2px solid var(--brand-100); border-radius: 16px;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #faf8ff, #fff);
}
.numcard .numlabel { font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.numcard .num { font-size: 22px; font-weight: 800; color: var(--ink); }
.numcard .data { font-size: 30px; font-weight: 900; color: var(--brand); text-align: right; }
.numcard .sub { font-size: 14px; color: var(--muted); }
.rows { margin-top: 14px; border-top: 1px solid rgba(0,0,0,.06); }
.rows .row { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; font-size: 17px; border-bottom: 1px solid rgba(0,0,0,.05); }
.rows .row span { color: #555; }
.rows .row b { font-size: 19px; }
.rows .row.updated-row { font-size: 13.5px; color: var(--muted); padding: 10px 2px 2px; border-bottom: none; }
.rows .row.updated-row span { color: var(--muted); font-size: 13.5px; }
.rows .row.updated-row b { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rows .row.updated-row b .rel { font-style: normal; opacity: .85; }
.rows .row.warn {
  display: block; text-align: center; color: var(--warn);
  font-weight: 700; background: var(--warn-bg); border-radius: 12px;
  margin-top: 12px; padding: 12px 10px; border-bottom: none;
}

/* ============================================================
   特性 / 服務網格
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(91,33,182,.25);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 800; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* 首頁快捷入口（覆用 .tiles，重新設計） */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 16px; transition: transform .12s, box-shadow .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); text-decoration: none; }
.tile:active { transform: translateY(1px); }
.tile-ico {
  width: 50px; height: 50px; border-radius: 14px; margin: 0; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.tile-ico svg { width: 26px; height: 26px; display: block; }
.tile-ico .emoji { font-size: 26px; line-height: 1; display: block; }
.tile-ico img { width: 30px; height: 30px; object-fit: contain; display: block; border-radius: 6px; }
.tile-t { font-size: 18px; font-weight: 800; }
.tile-d { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.tile-a .tile-ico { background: var(--brand); }
.tile-b .tile-ico { background: #185fa5; }
.tile-c .tile-ico { background: #2F80ED; }
.tile-d .tile-ico { background: #3B82F6; }
.tile-e .tile-ico { background: #2e7d32; }
.tile-f .tile-ico { background: #00697b; }
.tile-g .tile-ico { background: #8e2f7a; }
.mgt-tiles .tile { font-family: inherit; cursor: pointer; width: 100%; }

/* ============================================================
   套餐卡（首頁 / 購卡）
   ============================================================ */
.plan3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p3 {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); position: relative;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 24px 18px 18px;
  text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.p3:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); text-decoration: none; }
.p3:active { transform: translateY(1px); }
.p3-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.p3-rec {
  position: absolute; top: -15px; right: -8px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd257, #e8940c);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(232,148,12,.45); border: 2px solid #fff;
}
.p3-rec svg { width: 22px; height: 22px; fill: #fff; }
.p3-title { font-size: 18px; font-weight: 800; line-height: 1.4; margin-top: 6px; }
.p3-sum { font-size: 15px; color: var(--brand-600); font-weight: 700; margin-top: 6px; }
.p3-desc { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; flex: 1; }
.p3-price { font-size: 16px; color: var(--ink); font-weight: 700; margin-top: 12px; }
.p3-price b { font-size: 32px; color: var(--brand); }
.p3-more {
  margin-top: 12px; background: var(--grad); color: #fff;
  border-radius: 12px; padding: 11px; font-size: 15px; font-weight: 800;
}
.pform { border: 2px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; background: var(--brand-50); }

/* 套餐詳情 */
.pd-head { text-align: center; padding: 4px 0 10px; border-bottom: 1px dashed var(--line); }
.pd-title { font-size: 22px; font-weight: 800; line-height: 1.4; }
.pd-sum { font-size: 16px; color: var(--brand-600); font-weight: 700; margin-top: 6px; }
.pd-price { font-size: 18px; color: var(--brand-600); font-weight: 700; margin-top: 8px; }
.pd-price b { font-size: 38px; }
.pd-desc { font-size: 16px; color: #444; margin-top: 14px; line-height: 1.85; }

/* ============================================================
   套餐選擇列表（付款 / 選項）
   ============================================================ */
.plans { display: grid; gap: 12px; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; font-family: inherit;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.plan:hover { border-color: var(--brand-100); }
.plan.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.plan-title { font-size: 19px; font-weight: 800; }
.plan-sum { font-size: 15px; color: var(--muted); margin-top: 2px; }
.plan-desc { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.plan-price { font-size: 16px; font-weight: 800; color: var(--brand-600); white-space: nowrap; }
.plan-price b { font-size: 28px; }
.plan-empty { color: var(--muted); font-size: 16px; padding: 8px 0; }

/* ============================================================
   信任數據 / 統計
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 10px; text-align: center; }
.s-n { font-size: 26px; font-weight: 900; color: var(--brand); }
.s-l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust {
  text-align: center; padding: 10px;
}
.trust .t-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 22px; }
.trust .t-t { font-weight: 800; font-size: 15.5px; }
.trust .t-d { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   頁腳（注入）
   ============================================================ */
.site-footer {
  background: #1E63B3; color: #dbeafe; margin-top: 40px;
  padding: 48px 20px 28px; font-size: 14.5px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand .fnav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
.footer-brand .fnav-logo .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; }
.footer-brand p { color: #bcd4f5; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 12px; font-weight: 800; }
.footer-col a { display: block; color: #dbeafe; padding: 5px 0; font-size: 14.5px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--maxw); margin: 30px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22); text-align: center; color: #a9c7f0; font-size: 13px;
}
.footer-bottom a { color: #cfe0fb; }

/* ============================================================
   付款 / 二維碼 / 備註
   ============================================================ */
.qrnudge {
  background: linear-gradient(135deg, #d92b1f, #ff5a3c); color: #fff; font-weight: 800; font-size: 16px;
  text-align: center; padding: 12px; border-radius: 12px; margin-bottom: 10px;
  border: 2px dashed rgba(255,255,255,.75); box-shadow: 0 4px 14px rgba(217,43,31,.35);
}
.memo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--brand-50); border: 2px dashed var(--brand-400); border-radius: 12px;
  padding: 14px 16px; margin-top: 4px;
}
.memo span { font-size: 22px; font-weight: 800; letter-spacing: 1px; font-family: ui-monospace, Consolas, Menlo, monospace; color: var(--brand); }
.qr-sec { margin-top: 6px; border-top: 1px dashed var(--line); }
.qrbox { display: flex; align-items: center; justify-content: center; background: #fafafa; border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; }
.qrbox img { width: 300px; height: 300px; object-fit: contain; }
.qr-dl { text-align: center; }
.qr-fallback { text-align: center; color: var(--muted); font-size: 15px; padding: 40px 10px; line-height: 1.9; }
.pay-amount { text-align: center; font-size: 17px; margin-top: 14px; color: var(--muted); }
.pay-amount b { font-size: 32px; color: var(--brand); margin-left: 4px; }
.pm-item { flex-direction: column; margin-bottom: 16px; }
.pm-name { font-weight: 600; margin-bottom: 8px; text-align: center; }
.pm-item img { margin-bottom: 10px; }
.pm-thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #fff; }

/* ============================================================
   彈層 / 完成
   ============================================================ */
.modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(20,18,30,.55); display: flex; padding: 18px; overflow-y: auto; z-index: 50;
}
.modal-box {
  background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 520px; margin: auto;
  padding: 20px 22px 26px; box-shadow: 0 12px 48px rgba(0,0,0,.28);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 22px; font-weight: 800; color: var(--brand); }
.modal-x { background: none; border: none; color: #888; font-size: 32px; line-height: 1; cursor: pointer; padding: 0 6px; }
.modal-box label { margin-top: 12px; }
.done-badge {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 4px auto 10px;
}
.done-title { text-align: center; font-size: 21px; font-weight: 800; color: var(--ok); }
.done-tip { text-align: center; margin-top: 12px; font-size: 15px; color: var(--muted); border-bottom: none; padding-top: 0; }

/* ============================================================
   頂部按鈕組 / OTP / 雜項
   ============================================================ */
.topbtns { display: flex; gap: 14px; align-items: center; }
.topbtns .back { font-size: 15px; }
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.otp-box { width: 52px; height: 64px; font-size: 30px; text-align: center; border: 2px solid var(--line); border-radius: 12px; }
.otp-box:focus { border-color: var(--brand-500); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input { flex: 1 1 200px; margin: 0; }
.toolbar .btn { width: auto; margin: 0; }
.refine { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 16px; }
.raw-actions { display: flex; gap: 10px; margin: 10px 0; }
.raw { max-height: 320px; overflow: auto; background: #1e1e1e; color: #d6d6d6; font-size: 12px; padding: 12px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; }
.foot { text-align: center; margin-top: 18px; font-size: 14px; }
.foot a { color: var(--brand-600); }
.foot a:hover { text-decoration: underline; }

/* 首頁最近查詢 */
.recent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.recent-l { font-size: 13px; color: var(--muted); }
.rchip {
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 1px;
  padding: 7px 14px; border-radius: 999px; border: 2px solid var(--brand-100);
  background: #fff; color: var(--brand); cursor: pointer;
}
.rchip:active { background: var(--brand-50); }
.rclear { border-style: dashed; color: var(--muted); font-weight: 400; }

/* 卡片形式選擇（實體卡 / eSIM） */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: inherit; font-size: 16px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid var(--line); background: #fff; color: #333; cursor: pointer;
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .field { margin: 0; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

/* 護照照片上傳預覽 */
.upprev { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.upitem { width: 96px; text-align: center; }
.upitem img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); display: block; }
.upitem span { font-size: 11px; color: var(--muted); word-break: break-all; display: block; margin-top: 4px; }
input[type="file"] { padding: 8px; background: #fff; }

/* ============================================================
   管理後台
   ============================================================ */
.mgt-head { display: flex; align-items: center; justify-content: space-between; }
.mgt-head h1 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { font-size: 15px; padding: 9px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.filters input { flex: 1 1 160px; }
.filters .btn { width: auto; margin: 0; padding: 9px 14px; font-size: 15px; }
.olist { display: grid; gap: 12px; }
.ocard { border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: #fff; }
.ocard.olow { background: #fff8e6; border-color: #f0d69a; }
.ocard.odone { background: #f4faf6; border-color: #c6e7db; }
.o-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; color: #fff; font-weight: 600; }
.t-card { background: var(--brand); }
.t-rec { background: #185fa5; }
.t-paid { background: var(--ok); }
.t-wait { background: #f5a623; color: #3d2b00; }
.t-done { background: #0f6e56; }
.o-row { align-items: flex-start; }
.o-l { display: flex; flex-direction: column; gap: 2px; }
.o-l i { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.5; }
.o-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.o-r .money { font-size: 18px; }
.o-line { font-size: 15px; margin-top: 6px; line-height: 1.6; }
/* 号码管理：有效期颜色分级 */
.exp-black { color: #16161d; font-weight: 700; }
.exp-blue { color: #1c6fd6; font-weight: 700; }
.exp-green { color: #0f9d58; font-weight: 700; }
.exp-red { color: #d9360b; font-weight: 700; }
.o-dim { color: var(--muted); font-size: 13px; }
.o-err { color: var(--warn); font-size: 13px; }
.o-act { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.o-act label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 0; }
.o-act input { width: 20px; height: 20px; }
.o-act .btn-ghost { width: auto; }
.o-ok { color: var(--ok); font-size: 13px; font-weight: 700; }
.proc-box { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--brand-50); }
.proc-box .fld { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.proc-box .inp { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.proc-box input[type=file] { display: block; margin-top: 4px; font-size: 13px; }
.proc-box .btn-primary { margin-top: 10px; }

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu { position: relative; }
}
@media (max-width: 720px) {
  /* 热门套餐：手机上整列竖排，一次性全部显示（不滑動，避免后面套餐被藏住） */
  .plan3 { grid-template-columns: 1fr; gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 48px 16px 104px; }
  .query-card { padding: 24px 18px; }
}
@media (max-width: 560px) {
  .hero-cta { gap: 10px; }
  .hero-cta .btn { min-width: 0; flex: 1 1 0; width: auto; padding-left: 14px; padding-right: 14px; font-size: 16px; }
  .hero-cta .btn-outline { flex: 1 1 0; min-width: 0; padding-left: 14px; padding-right: 14px; font-size: 16px; }
}
@media (max-width: 420px) {
  .qrbox img { width: 240px; height: 240px; }
  .modal-box { padding: 16px 14px 20px; }
  .tiles { grid-template-columns: 1fr; }
  .feature { padding: 16px 13px; }
  .feature .ico { width: 42px; height: 42px; border-radius: 12px; }
  .feature .ico svg { width: 22px; height: 22px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 13px; line-height: 1.55; }
}
@media (max-width: 380px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid.cols-2 { grid-template-columns: 1fr; }
}
