/*
Theme Name: eSIMii v2
Description: 2026-11 改版。配色取自 App 與 Logo：App 主色藍、Logo 的青→藍→紫漸層，以及 App 行銷圖的粉橘漸層（只用在價格與「熱銷」）。核心意象是 App 裡的「專屬票夾」——每個目的地都是一張票。
Version: 2.0.0
Text Domain: esimii
*/

/* ================================================================
   設計代號
   ================================================================ */
:root {
  --ink: #10203D;
  --ink-2: #3B4A66;
  --muted: #6B7894;
  --line: #E2E9F5;
  --bg: #F5F8FE;
  --card: #FFFFFF;
  --tint: #EEF4FF;

  --blue: #1D6BEA;
  --blue-d: #1553C0;
  --teal: #1FBFCB;
  --violet: #8B5CF6;
  --pink: #FF4F8B;
  --orange: #FFA238;

  --brand: linear-gradient(100deg, #1FBFCB 0%, #3B82F6 52%, #8B5CF6 100%);
  --warm: linear-gradient(100deg, #FF4F8B 0%, #FFA238 100%);

  --f-head: "Nunito", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  /* 拉丁字型放前面：英文與彎引號（’）用拉丁字型，中文字元瀏覽器會自動往後找到 Noto Sans TC。
     反過來排的話，Noto Sans TC 會把 ’ 當全形標點，英文裡出現 you’ re 這種空隙。 */
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --f-num: "Nunito", system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(16, 32, 61, .28);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.75 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* 中英切換：兩種語言都在 HTML 裡，由 <html data-lang> 決定顯示哪一個 */
.t-en { display: none; }
html[data-lang="en"] .t-en { display: revert; }
html[data-lang="en"] .t-zh { display: none; }

/* ================================================================
   按鈕
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(29, 107, 234, .7); }
.btn-blue:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 18px 10px 14px; border-radius: 14px; min-width: 168px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(16, 32, 61, .6); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .7rem; opacity: .75; }
.store small .t-zh, .store small .t-en { display: inline; }
html[data-lang="zh"] .store small .t-en, html[data-lang="en"] .store small .t-zh { display: none; }
.store b { font: 800 1.08rem/1.1 var(--f-num); letter-spacing: .01em; }

/* ================================================================
   頁首
   ================================================================ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(16, 32, 61, .4); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.hdr-logo img { width: 91px; height: 36px; object-fit: contain; }
.hdr-nav { display: flex; gap: 22px; margin-right: auto; }
.hdr-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.hdr-nav a:hover { color: var(--blue); }
.hdr-right { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; background: var(--tint); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(16, 32, 61, .12); }

.hdr-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--tint); cursor: pointer; position: relative; }
.hdr-burger i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.hdr-burger i:nth-of-type(1) { top: 14px; }
.hdr-burger i:nth-of-type(2) { top: 20px; }
.hdr-burger i:nth-of-type(3) { top: 26px; }
.hdr.is-open .hdr-burger i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.hdr.is-open .hdr-burger i:nth-of-type(2) { opacity: 0; }
.hdr.is-open .hdr-burger i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================================================================
   首屏
   ================================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 460px at 88% 8%, rgba(139, 92, 246, .16), transparent 62%),
    radial-gradient(720px 480px at 6% -6%, rgba(31, 191, 203, .20), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(29, 107, 234, .10) 1px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(180deg, #EAF3FF 0%, var(--bg) 100%);
}
.hero-in {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px;
  padding-block: 64px 84px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; font-weight: 500; color: var(--ink-2);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31, 191, 203, .2); }
.hero h1 { margin-top: 22px; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.01em; line-height: 1.08; }
.hero h1 em, .grad {
  font-style: normal;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 20px; max-width: 34em; font-size: 1.08rem; color: var(--ink-2); }
.hero-stores { margin-top: 30px; }
.hero-facts {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  border-top: 1px dashed #C9D6EC; padding-top: 22px; max-width: 34em;
}
.hero-facts li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .92rem; }
.hero-facts b { font: 900 1.55rem/1 var(--f-num); color: var(--ink); font-variant-numeric: tabular-nums; }

/* 票夾 */
.hero-wallet { position: relative; height: 470px; max-width: 420px; justify-self: center; width: 100%; }
.hero-route { position: absolute; inset: -20px -40px auto auto; width: 120%; height: auto; pointer-events: none; }
.hero-route path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .45; }
.wallet-card {
  position: absolute; left: 50%; width: 330px; border-radius: var(--r-lg);
  transform-origin: center;
}
.wallet-back {
  height: 150px; padding: 18px 22px; color: #fff;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow);
}
.wallet-back-1 { top: 18px; transform: translateX(-50%) rotate(-7deg) translateX(-26px); background: linear-gradient(120deg, #8B5CF6, #3B82F6); }
.wallet-back-2 { top: 52px; transform: translateX(-50%) rotate(5deg) translateX(22px); background: linear-gradient(120deg, #1FBFCB, #3B82F6); }
.wallet-back .wc-code { background: rgba(255, 255, 255, .22); color: #fff; }
.wallet-back .wc-name { font-weight: 700; padding-top: 4px; }
.wallet-front {
  top: 104px; transform: translateX(-50%) rotate(-1.5deg);
  background: #fff; padding: 20px 22px 22px; box-shadow: 0 30px 60px -24px rgba(16, 32, 61, .4);
}
.wc-top { display: flex; justify-content: space-between; align-items: center; }
.wc-brand { font: 900 1rem/1 var(--f-num); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wc-status {
  font-size: .78rem; font-weight: 700; color: #0E8A5F; background: #E3F8EF;
  padding: 4px 10px; border-radius: 999px;
}
.wc-status::before { content: "✓ "; }
.wc-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.wc-row b { display: block; font-size: 1.25rem; font-family: var(--f-head); font-weight: 900; }
.wc-row small { color: var(--muted); font-size: .85rem; }
.wc-code {
  display: inline-grid; place-items: center; min-width: 48px; height: 32px; padding-inline: 8px;
  border-radius: 9px; background: var(--tint); color: var(--blue);
  font: 900 .95rem/1 var(--f-num); letter-spacing: .04em;
}
.wc-code-lg { min-width: 62px; height: 52px; font-size: 1.35rem; border-radius: 14px; background: var(--brand); color: #fff; }
/* 撕線：左右兩個半圓缺口 + 虛線 */
.wc-perf { position: relative; height: 1px; margin: 22px -22px 20px; border-top: 2px dashed var(--line); }
.wc-perf::before, .wc-perf::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #EDF3FE;
}
.wc-perf::before { left: -11px; }
.wc-perf::after { right: -11px; }
.wc-qr { display: flex; align-items: center; gap: 18px; }
.wc-qr img { width: 104px; height: 104px; padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.wc-qr p { color: var(--ink-2); font-size: .92rem; font-weight: 500; line-height: 1.55; }

/* ================================================================
   區段
   ================================================================ */
.sec { padding-block: 88px; }
.sec-tint { background: #fff; border-block: 1px solid var(--line); }
.sec-hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; margin-bottom: 34px; }
.sec-hd h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; }
.sec-hd p { color: var(--muted); max-width: 40em; font-size: .95rem; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 地區分頁 ---------- */
.tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px 26px; padding: 2px 20px 6px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tabs button small { font: 800 .75rem/1 var(--f-num); color: var(--muted); }
.tabs button:hover { border-color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs button[aria-selected="true"] small { color: rgba(255, 255, 255, .7); }

/* ---------- 目的地票卡 ---------- */
.tix-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px;
  filter: drop-shadow(0 10px 18px rgba(16, 32, 61, .07));
}
.tix {
  --stub: 88px;
  position: relative; display: grid; grid-template-columns: var(--stub) 1fr auto; align-items: center;
  min-height: 112px; background: #fff; border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  /* 票根兩側的半圓缺口 */
  -webkit-mask:
    radial-gradient(circle at var(--stub) 0, transparent 10px, #000 10.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent 10px, #000 10.5px) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle at var(--stub) 0, transparent 10px, #000 10.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent 10px, #000 10.5px) bottom / 100% 51% no-repeat;
  transition: transform .18s ease, background .18s ease;
}
.tix[hidden] { display: none; }
.tix:hover { transform: translateY(-3px); background: #FBFDFF; }
.tix-stub {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-right: 2px dashed var(--line);
  background: linear-gradient(180deg, var(--tint), #F7FAFF);
}
.tix-stub b { font: 900 1.45rem/1 var(--f-num); letter-spacing: .03em; color: var(--blue); }
.tix-stub small { font-size: .7rem; color: var(--muted); text-align: center; line-height: 1.2; padding-inline: 4px; }
.tix-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 16px 18px; min-width: 0; }
.tix-name { font: 900 1.15rem/1.3 var(--f-head); }
.tix-sub { font-size: .85rem; color: var(--ink-2); }
.tix-meta { font-size: .8rem; color: var(--muted); }
.tix-price { padding-right: 20px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.tix-price small { font-size: .75rem; color: var(--muted); }
.tix-price b {
  font: 900 1.4rem/1.1 var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tix-stamp {
  position: absolute; top: 10px; right: 14px;
  font-size: .7rem; font-weight: 900; letter-spacing: .06em; color: #fff;
  background: var(--warm); padding: 2px 9px; border-radius: 999px; transform: rotate(4deg);
}
.tix:has(.tix-stamp) .tix-price { padding-top: 14px; }
.tix-empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- 步驟（真的有先後順序，所以用編號）---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  background: var(--bg); border-radius: var(--r-lg); padding: 30px 26px 28px;
}
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 18px;
  background: var(--brand); color: #fff; font: 900 1.25rem/1 var(--f-num);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 51px; right: -20px; width: 20px; border-top: 2px dashed #C9D6EC;
}
.steps h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .95rem; }
.steps-more { margin-top: 26px; }

/* ---------- 特色 ---------- */
.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.why li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
.why svg {
  grid-row: span 2; width: 46px; height: 46px; padding: 10px; border-radius: 14px;
  background: var(--tint); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.why h3 { font-size: 1.08rem; font-weight: 900; margin: 4px 0 6px; }
.why p { color: var(--ink-2); font-size: .93rem; }

/* ---------- App 畫面 ---------- */
.sec-blue {
  background:
    radial-gradient(700px 400px at 90% 0, rgba(139, 92, 246, .35), transparent 60%),
    radial-gradient(700px 400px at 0 100%, rgba(31, 191, 203, .32), transparent 60%),
    var(--blue);
  padding-bottom: 72px;
}
.sec-hd-light h2 { color: #fff; }
.sec-hd-light p { color: rgba(255, 255, 255, .8); }
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 14px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent;
}
.shots figure { margin: 0; flex: 0 0 auto; width: min(240px, 62vw); scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 22px; box-shadow: 0 24px 40px -20px rgba(4, 18, 60, .55); background: #fff; }

/* ---------- 常見問題 ---------- */
.faq-in { max-width: 880px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.faq details[open] { border-color: #C9D6EC; box-shadow: 0 10px 24px -18px rgba(16, 32, 61, .35); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }
.faq code { font-family: var(--f-num); font-weight: 800; background: var(--tint); padding: 1px 6px; border-radius: 6px; color: var(--ink); }

/* ---------- 下載 ---------- */
.cta { padding-block: 0 88px; }
.cta-in {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  background: var(--brand); color: #fff; border-radius: 28px; padding: 40px 44px;
  box-shadow: 0 30px 60px -30px rgba(29, 107, 234, .7);
}
.cta-icon { width: 96px; height: 96px; border-radius: 24px; background: #fff; box-shadow: 0 12px 24px -10px rgba(16, 32, 61, .45); }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 900; }
.cta-copy p { margin-top: 8px; opacity: .9; }
.cta-stores { margin-top: 20px; }
.cta .store { background: #fff; color: var(--ink); }
.cta-qr { text-align: center; }
.cta-qr img { width: 120px; height: 120px; padding: 10px; background: #fff; border-radius: 18px; }
.cta-qr p { font-size: .82rem; margin-top: 8px; opacity: .9; }

/* ================================================================
   頁尾
   ================================================================ */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 56px; font-size: .92rem; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.ftr-brand img { width: 91px; height: 36px; object-fit: contain; filter: brightness(1.1); }
.ftr-brand p { margin-top: 12px; max-width: 26em; }
.ftr-stores { display: flex; gap: 14px; margin-top: 14px; }
.ftr-stores a, .ftr-col a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.ftr-stores a:hover, .ftr-col a:hover { color: #fff; text-decoration: underline; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr-col h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 4px; font-weight: 800; }
.ftr-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 44px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem;
}
.ftr-bottom a { color: rgba(255, 255, 255, .72); text-decoration: none; }

/* ================================================================
   一般頁面（常見問題、安裝教學、隱私政策）
   ================================================================ */
/* 注意：不能叫 .page —— WordPress 會在所有「頁面」的 <body> 自動加上 page 這個 class，
   會連 body 一起吃到這裡的 padding（內頁頂端曾因此多出 48px 空白）。 */
.page-main { padding-block: 48px 88px; background: linear-gradient(180deg, #EAF3FF 0, var(--bg) 280px); }
.page-in { max-width: 820px; }
.page-hd { margin-bottom: 24px; }
.crumb { font-size: .85rem; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.page-hd h1 { margin-top: 10px; font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 900; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); color: var(--ink-2); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.8em 0 .6em; line-height: 1.35; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.2rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 14px; margin-block: 1em; }
.prose a { word-break: break-word; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.page-help {
  margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--tint); border-radius: var(--r-md); padding: 18px 22px; color: var(--ink-2);
}

/* ================================================================
   App 付款跳轉頁（/checkout/order-pay/）與忘記密碼
   ================================================================ */
.woo-page { background: var(--bg); }
.woo-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.woo-bar img { width: 81px; height: 32px; object-fit: contain; }
.woo-secure { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.woo-secure svg { width: 16px; height: 16px; fill: none; stroke: #0E8A5F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.woo-main { max-width: 760px; margin: 32px auto; padding: 0 20px; }
.woo-main .woocommerce { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 32px); }
.woo-main .button, .woo-main button[type="submit"], .woo-main #place_order {
  background: var(--blue) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  padding: 12px 22px !important; font-weight: 700 !important;
}
.woo-main input[type="text"], .woo-main input[type="email"], .woo-main input[type="password"] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit;
}
.woo-foot { text-align: center; padding: 24px 20px 36px; font-size: .82rem; color: var(--muted); }

/* ================================================================
   響應式
   ================================================================ */
@media (max-width: 980px) {
  .hdr-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(16, 32, 61, .35); padding: 8px 20px 16px;
  }
  .hdr-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .hdr-nav a:last-child { border-bottom: 0; }
  .hdr.is-open .hdr-nav { display: flex; }
  .hdr-burger { display: block; }
  .hdr-in { gap: 14px; }
  .hdr-right { margin-left: auto; }

  .hero-in { grid-template-columns: 1fr; gap: 20px; padding-block: 44px 64px; }
  .hero-wallet { height: 420px; }
  .steps, .why { grid-template-columns: 1fr 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .cta-in { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 36px 24px; }
  .cta-stores { justify-content: center; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .sec { padding-block: 64px; }
  .tix-grid { grid-template-columns: 1fr; }
  .tix { --stub: 74px; min-height: 104px; }
  .tix-body { padding-left: 14px; }
  .steps, .why { grid-template-columns: 1fr; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { min-width: 0; }
  .hero-wallet { height: 390px; }
  .wallet-card { width: 296px; }
  .wc-qr img { width: 88px; height: 88px; }
}
@media (max-width: 420px) {
  .hdr-right > .btn { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-route path { animation: dash 26s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -440; } }
  .wallet-front { animation: float 7s ease-in-out infinite; }
  @keyframes float {
    0%, 100% { transform: translateX(-50%) rotate(-1.5deg) translateY(0); }
    50%      { transform: translateX(-50%) rotate(-1.5deg) translateY(-8px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
