/* 設計原則：一個主色（深青綠）、中性灰白、黃色只作點綴；字夠大、對比夠高、留白夠闊。 */
:root {
  --ink: #12313b;        /* 文字、標題 */
  --ink-2: #2f464e;      /* 次要文字（對比 > 9:1） */
  --muted: #4f656c;      /* 說明文字（對比 > 5.8:1） */
  --paper: #f5f8f8;
  --card: #ffffff;
  --rule: #cdd9d8;
  --brand: #0f6f64;      /* 主按鈕、重點 */
  --brand-dark: #0a564d;
  --brand-tint: #e3f2ef;
  --sign: #ffc700;       /* 只用在 Logo 縫線、WhatsApp 按鈕 */
  --sign-ink: #1c1500;
  --danger: #a4231b;
  --focus: #0a5bd8;
  --font: "Archivo", "PingFang HK", "Noto Sans HK", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--font); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sign); color: var(--sign-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* 頂部 */
.top { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; margin-right: auto; }
.logo-mark { color: var(--ink); flex: none; }
.logo-name small { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 8px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 1rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.lang { border: 1.5px solid var(--ink); padding: 4px 14px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 600; }
.lang:hover { background: var(--ink); color: #fff; }

/* 目的地代號方塊：全部同一個中性顏色，不再用多種顏色 */
.badge { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 7px; border-radius: 5px; background: var(--ink); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .03em; margin-right: 10px; vertical-align: middle; }
.badge-lg { min-width: 54px; height: 38px; font-size: 1.05rem; margin-right: 14px; }

/* 首頁頂部：簡潔 */
.hero { background: #fff; border-bottom: 1px solid var(--rule); padding: 28px 0 26px; }
.sentence { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pick { position: relative; display: inline-block; max-width: 100%; }
.pick::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pick select { appearance: none; -webkit-appearance: none; font: inherit; color: var(--ink); background: var(--brand-tint); border: 2px solid var(--brand); border-radius: 12px; padding: .08em 1.5em .1em .5em; width: 7.5em; max-width: 100%; text-overflow: ellipsis; cursor: pointer; }
.pick select:hover { background: #d3ece7; }
.pick select option, .pick select optgroup { font-size: 1rem; font-weight: 500; color: #000; background: #fff; }
html[lang="en"] .pick select { width: 9.5em; font-size: .85em; }
.hero-sub { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; padding: 7px 16px 7px 8px; border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; text-decoration: none; font-size: 1rem; font-weight: 600; }
.chip:hover { border-color: var(--brand); background: var(--brand-tint); }
.chip .badge { margin-right: 8px; border-radius: 999px; min-width: 34px; }

/* 套餐 */
section.plans { padding-top: 26px; padding-bottom: 8px; }
.ack-wrap { margin-bottom: 22px; background: #fff; border: 1.5px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.ack { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; cursor: pointer; max-width: 72ch; }
.ack input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.ack-msg { color: var(--danger); font-weight: 700; margin: 10px 0 0; }
.board-title { display: flex; align-items: center; font-size: 1.7rem; margin-bottom: 16px; }
.board-title a { text-decoration: none; }
.fares { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fare-head { display: none; }
.fare { background: #fff; border: 1.5px solid var(--rule); border-radius: 16px; padding: 22px 26px 18px; }
.fare.rec { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-tint) 0, #fff 90px); }
.fare-row { display: grid; grid-template-columns: 1fr 1.2fr auto auto; align-items: center; gap: 8px 24px; }
.gb b { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.gb small { font-size: 1.05rem; font-weight: 700; margin-left: 5px; }
.days { color: var(--ink-2); font-size: 1.05rem; }
.pick-tag { font-style: normal; font-size: .85rem; font-weight: 700; background: var(--brand); color: #fff; padding: 3px 12px; border-radius: 999px; margin-left: 12px; }
.price { font-size: 1.6rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.buy { font: inherit; font-weight: 700; font-size: 1.05rem; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 13px 30px; min-width: 120px; cursor: pointer; }
.buy:hover { background: var(--brand-dark); }
.buy[disabled] { opacity: .6; cursor: progress; }
/* 標籤：與上面的流量留出距離，單獨一行 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tags i { font-style: normal; font-size: .9rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--rule); color: var(--ink-2); background: #fff; }
.tags i:first-child { border-color: var(--ink-2); color: var(--ink); }
/* 套餐詳情：與標籤再分開，頂部加分隔線 */
.fare details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.fare summary { cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--brand-dark); padding: 4px 0; width: fit-content; }
.fare details[open] summary { margin-bottom: 8px; }
.facts { margin: 14px 0 0; padding-left: 1.3em; font-size: 1rem; color: var(--ink-2); }
.facts li { margin-bottom: 8px; }
.board[hidden] { display: none; }
@media (max-width: 640px) {
  .fare { padding: 18px 18px 14px; }
  .fare-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .gb { grid-column: 1; grid-row: 1; }
  .price { grid-column: 2; grid-row: 1; }
  .days { grid-column: 1 / -1; grid-row: 2; }
  .buy { grid-column: 1 / -1; grid-row: 3; width: 100%; margin-top: 8px; }
  .tags { margin-top: 16px; }
}

/* 網絡與速度 */
.spec { display: grid; grid-template-columns: max-content 1fr; margin: 0 0 16px; border-top: 1px solid var(--rule); font-size: 1rem; max-width: 760px; }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--muted); padding-right: 28px; }
.spec dd { font-weight: 600; }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; } .spec dt { padding-bottom: 0; border-bottom: 0; font-size: .9rem; } .spec dd { padding-top: 2px; } }

/* 區塊 */
section.wrap, article.wrap { padding-block: 40px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { display: flex; gap: 16px; }
.steps li > b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; }
.steps h3 { font-size: 1.1rem; margin-bottom: .25em; }
.steps p { color: var(--ink-2); margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.checks { margin: 0 0 1em; padding: 0; list-style: none; }
.checks li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); position: relative; max-width: 72ch; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 14px; height: 8px; border: solid var(--brand); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.grps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.grp h3 { font-size: 1rem; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 0; }
.grp ul { list-style: none; margin: 0; padding: 0; }
.grp li a { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.grp li a:hover .dn { text-decoration: underline; }
.dn { font-weight: 600; margin-right: auto; }
.dp { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; max-width: 72ch; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 13px 26px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn:hover { background: var(--brand-dark); }
.btn-quiet { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.help-sec { border-top: 1px solid var(--rule); }

/* 目的地頁 */
.dest-hero { padding: 24px 0 28px; background: #fff; border-bottom: 1px solid var(--rule); }
.dest-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.dest-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); display: flex; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.dest-hero .lead { margin: 0; }
.stamp { color: var(--ink); opacity: .7; width: clamp(96px, 12vw, 130px); transform: rotate(-7deg); }
.stamp-svg { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .dest-grid { grid-template-columns: 1fr; } .stamp { display: none; } }
.crumb { font-size: .95rem; margin-bottom: 0; }
.crumb a { color: var(--muted); }
.cover { display: flex; flex-wrap: wrap; gap: 8px; }
.cover span { padding: 4px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: .95rem; background: #fff; }

/* 內容頁 */
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.prose h2 { margin-top: 1.9em; font-size: 1.3rem; }
.prose ul, .prose ol { max-width: 68ch; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.num { counter-reset: n; list-style: none; padding: 0 !important; }
.num li { counter-increment: n; position: relative; padding-left: 48px; margin-bottom: 16px; }
.num li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; font-size: 1.1rem; }
.contact dt { color: var(--muted); } .contact dd { margin: 0; font-weight: 600; }

/* 成功頁 */
.success { max-width: 640px; }
.esim-card { background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.esim-card img { display: block; background: #fff; padding: 8px; border: 1px solid var(--rule); margin-bottom: 16px; max-width: 100%; height: auto; }
.esim-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 1rem; margin: 16px 0; }
.esim-dl dt { color: var(--muted); } .esim-dl dd { margin: 0; word-break: break-all; font-variant-numeric: tabular-nums; }

/* 頁腳 */
.foot { background: var(--ink); color: #d5e1e0; margin-top: 48px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; padding-block: 36px; align-items: start; }
.foot-brand { font-weight: 800; color: #fff; margin-bottom: 4px; }
.foot-note { font-size: .95rem; margin: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1rem; }
.wa { background: var(--sign); color: var(--sign-ink); padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 800; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .wa { justify-self: start; } }

@media (prefers-reduced-motion: no-preference) {
  .buy, .btn, .chip { transition: background .15s, border-color .15s; }
}
