:root {
  --paper: #f5f3ee;
  --card: #ffffff;
  --ink: #141c2e;
  --muted: #566074;
  --line: #e2ded4;
  --deep: #14213d;
  --deep-2: #1c2e54;
  --primary: #1f4b99;
  --primary-ink: #ffffff;
  --accent: #ff7a1a;
  --wa: #1d9e52;
  --wa-hover: #188a47;
  --focus: #ff9a3c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 28, 46, .06), 0 8px 24px rgba(20, 28, 46, .07);
  --wrap: 1160px;
  --font: "Noto Sans HK", system-ui, -apple-system, "PingFang HK", "Microsoft JhengHei", sans-serif;
  --display: "Bricolage Grotesque", var(--font);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; word-break: keep-all; overflow-wrap: break-word; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #183d7e; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.btn-tel { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-tel:hover { background: rgba(31, 75, 153, .08); }
.btn-tel-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-tel-light:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-fb { padding: 0; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #1877f2; }
.btn-fb svg { width: 38px; height: 38px; }
.btn-fb:hover { color: #0f5fd0; }
.btn-lg { padding: 15px 28px; font-size: 18px; }
.btn-block { width: 100%; padding: 14px 22px; font-size: 17px; }

/* ---------- 頁首 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand picture { display: block; }
.brand-logo { display: block; height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); background: rgba(20, 28, 46, .05); }
.header-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-tel span { font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
@media (max-width: 1260px) {
  .site-header .btn-tel span { display: none; }
  .site-header .btn-tel { padding: 9px; }
}
@media (max-width: 1000px) {
  html { scroll-padding-top: 112px; }
  .header-in { justify-content: space-between; flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 10px; }
}
@media (max-width: 540px) {
  .header-in { gap: 12px; }
  .brand-logo { height: 26px; }
  .site-header .btn-wa > span { display: none; }
  .site-header .btn-wa { padding: 9px; }
}
@media (max-width: 400px) { .wa-more { display: none; } }
@media (max-width: 340px) {
  .site-header .btn-sm span { display: none; }
  .site-header .btn-sm { padding: 9px; }
}
@media (max-width: 370px) {
  .header-in { gap: 8px; }
  .brand-logo { height: 22px; }
  .header-cta { gap: 6px; }
  .site-header .btn-sm { padding: 7px; }
  .site-header .btn-fb, .site-header .btn-fb svg { width: 34px; height: 34px; }
}

/* ---------- 首屏 ----------
   電腦：左邊標題＋表格，右邊相片貼到畫面邊；手機：相片喺頂，下面標題同表格 */
.hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; isolation: isolate; }
.hero-in { display: grid; grid-template-columns: minmax(0, 600px); gap: 28px; padding: 56px 0 64px; }
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; width: calc(100% - (100% - min(var(--wrap), 100% - 40px)) / 2 - 640px); margin: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 0%, rgba(20, 33, 61, 0) 18%); }
.hero-photo figcaption, .how-photo figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 6px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--primary); margin-bottom: 10px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; letter-spacing: .01em; }
.hero h1 .hl { color: var(--accent); }
.lead { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 500; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

@media (max-width: 980px) {
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 0 40px; }
  .hero-photo { position: relative; top: auto; bottom: auto; width: auto; height: 240px; z-index: 0; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(20, 33, 61, 0) 45%, var(--deep) 100%); }
  .hero-copy { margin-top: -40px; position: relative; }
  .ticks { flex-direction: column; }
}

/* ---------- 卡片、表格 ---------- */
.card { background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.check { padding: 24px 24px 20px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.check-title { font-size: 20px; font-weight: 900; word-break: normal; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
legend small { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field select { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #cfcac0; border-radius: 10px; background: #fff; font-size: 16px; }
.field input[type="text"]:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(31, 75, 153, .18); }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field-error { color: #b3261e; font-size: 14px; font-weight: 500; }
.field-hint { color: var(--muted); font-size: 14px; }
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 20; max-height: 320px; overflow: auto; }
.combo-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; display: grid; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: #eef2f9; }
.combo-list .opt-name { font-weight: 700; }
.combo-list .opt-meta { font-size: 13px; color: var(--muted); }
.combo-list mark { background: #ffe0c7; color: inherit; border-radius: 3px; }
.combo-note { color: var(--muted); font-size: 14px; cursor: default !important; background: none !important; }
.spinner { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #d6d1c6; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid #cfcac0; font-size: 15px; font-weight: 500; transition: background-color .15s, border-color .15s; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip:hover span { border-color: var(--primary); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.55; }
.tel-alt { text-align: center; font-size: 15px; color: var(--muted); margin-top: -4px; }
.tel-alt a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 700; text-decoration: none; font-family: var(--display); letter-spacing: .02em; white-space: nowrap; }
.tel-alt a:hover { text-decoration: underline; }
.tel-alt svg { width: 16px; height: 16px; }

/* ---------- 區塊 ---------- */
.section { padding: 80px 0; }
.section-alt { background: #ebe8e0; }
.sec-head { margin-bottom: 32px; max-width: 40em; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.sec-sub { margin-top: 10px; color: var(--muted); font-size: 17px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* 品牌 */
.brands { padding: 64px 0; }
.brands .sec-head { margin-bottom: 24px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.logo-row li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); height: 112px; display: flex; align-items: center; justify-content: center; padding: 16px 20px; }
.logo-row img { width: auto; max-width: 100%; object-fit: contain; }
.logo-hkbn { height: 72px; }
.logo-hgc { height: 50px; }
.logo-icable { height: 68px; }
.logo-3hk { height: 72px; }
.logo-row .logo-more { background: transparent; box-shadow: none; border: 1.5px dashed #c9c3b6; padding: 0; }
.logo-more a { width: 100%; height: 100%; display: grid; place-content: center; gap: 2px; text-align: center; text-decoration: none; font-weight: 700; font-size: 17px; border-radius: inherit; }
.logo-more a:hover { background: var(--card); }
.logo-more small { color: var(--primary); font-size: 14px; }
@media (max-width: 760px) {
  .brands { padding: 48px 0; }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-row li { height: 92px; padding: 12px 14px; }
  .logo-hkbn { height: 60px; } .logo-hgc { height: 38px; } .logo-icable { height: 56px; } .logo-3hk { height: 60px; }
  .logo-row .logo-more { grid-column: 1 / -1; height: 64px; }
}

/* 篩選 */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-label { font-weight: 700; width: 3em; flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1.5px solid #cfcac0; background: var(--card); border-radius: 999px; padding: 7px 15px; cursor: pointer; font-weight: 500; font-size: 15px; }
.seg button:hover { border-color: var(--primary); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
@media (max-width: 560px) {
  .filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .seg { width: 100%; }
}

/* 計劃卡 */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--primary); font-family: var(--display); letter-spacing: .02em; }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.term { font-size: 13px; font-weight: 700; color: var(--muted); background: #f1eee7; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.plan-speed { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.plan-speed small { font-size: 20px; font-weight: 700; margin-left: 2px; }
.plan-name { font-weight: 700; margin-top: -6px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.plan-ask { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 2px; }
.plan-ask b { font-size: 16px; }
.plan-ask span { font-size: 13px; color: var(--muted); }
.plan .btn { margin-top: 2px; }
.plan-5g .plan-speed { color: var(--primary); }
.plans-note { margin-top: 18px; }
.empty { grid-column: 1 / -1; background: var(--card); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 980px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

/* 點揀速度 */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 22px 20px; cursor: pointer; display: grid; gap: 6px; align-content: start; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.guide-card { color: inherit; text-decoration: none; }
.guide-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.g-who { font-size: 22px; font-weight: 900; }
.g-what { color: var(--muted); font-size: 15px; }
.g-rec { margin-top: 8px; font-weight: 700; color: var(--primary); }
.g-rec::after { content: " →"; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }

/* 流程 */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; display: grid; gap: 2px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--deep); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.steps b { font-size: 19px; }
.steps span { color: var(--muted); }
.how-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.how-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 32px; } }

/* 常見問題 */
.faq-list { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
.faq details p a { color: var(--primary); font-weight: 700; }

/* 行動呼籲 */
.cta-band { background: var(--deep); color: #fff; padding: 56px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: 6px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btns .js-tel-num { font-family: var(--display); letter-spacing: .02em; }
@media (max-width: 560px) { .cta-btns { width: 100%; flex-direction: column; } .cta-btns .btn { width: 100%; } }

/* 頁尾 */
.site-footer { background: #0f1930; color: rgba(255, 255, 255, .78); padding: 44px 0 90px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; }
.footer-brand p { margin-top: 12px; }
.footer-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.footer-contact a > span:last-child { display: grid; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .66); }
.footer-contact b { color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.footer-contact a:hover b { text-decoration: underline; }
.fc-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .12); color: #fff; }
.fc-ic svg { width: 20px; height: 20px; }
.fc-wa { background: var(--wa); }
.fc-wa svg { width: 22px; height: 22px; }
.fc-fb { background: #fff; color: #1877f2; }
.fc-fb svg { width: 40px; height: 40px; }
.footer-note { display: grid; gap: 10px; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; gap: 24px; } }

/* 浮動 WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-hover); }
.wa-float { transition: opacity .2s, transform .2s; }
.wa-float.off { opacity: 0; transform: scale(.8); pointer-events: none; }

/* 示範版訊息預覽 */
.preview { border: 0; border-radius: 16px; padding: 24px; max-width: min(460px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.preview::backdrop { background: rgba(12, 20, 38, .55); }
.preview h2 { font-size: 19px; margin-bottom: 8px; }
.preview pre { white-space: pre-wrap; font-family: var(--font); background: #eef2f9; border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 12px 0 16px; }

/* ---------- 分頁（索取報價、商業寬頻、村屋／5G） ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(20, 28, 46, .06); }
@media (max-width: 1180px) { .nav .nav-x { display: none; } }
@media (max-width: 1080px) { .nav a { padding: 8px 9px; } }
@media (max-width: 1080px) { .site-header .wa-more { display: none; } }
.nav a { white-space: nowrap; }
.field > label small { font-weight: 500; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .66); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 980px) { .crumbs { margin-bottom: 10px; } .hero-copy { z-index: 1; } }
.photo-business img { object-position: 72% 50%; }
.photo-village img { object-position: 8% 50%; }
.photo-estates img { object-position: 50% 50%; }

/* 商業服務卡 */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.svc h3 { font-size: 20px; font-weight: 900; }
.svc p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.svc .btn { margin-top: auto; align-self: flex-start; }
.svc .btn svg { color: var(--wa); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.steps-wide { max-width: 860px; }
.steps-wide span { font-size: 16px; }
.price-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.price-cta .btn-ghost svg { color: var(--wa); }
.prose { max-width: 44em; display: grid; gap: 14px; font-size: 17px; color: var(--muted); }
@media (max-width: 560px) { .price-cta { flex-direction: column; } .price-cta .btn { width: 100%; } }

/* 5G 優點、試機、比較 */
.perks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.perks li { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 16px 52px; position: relative; display: grid; gap: 4px; }
.perks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.perks b { font-size: 17px; }
.perks span { color: var(--muted); font-size: 14px; }
@media (max-width: 980px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }
.trial { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-left: 5px solid var(--accent); }
.trial h3 { font-size: 19px; font-weight: 900; }
.trial p { color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (max-width: 640px) { .trial { flex-direction: column; align-items: stretch; } }
.plans-head { margin: 48px 0 18px; }
.plans-head h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; }
.compare { padding: 22px 22px 20px; }
.compare h3 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.compare li { padding-left: 22px; position: relative; }
.compare li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }

/* 屋苑名單 */
.estate-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.estate-search { position: relative; flex: 1 1 320px; max-width: 520px; }
.estate-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); }
.estate-search input { width: 100%; height: 50px; padding: 0 14px 0 44px; border: 1.5px solid #cfcac0; border-radius: 999px; background: var(--card); font-size: 16px; }
.estate-search input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(31, 75, 153, .18); }
.estate-count { color: var(--muted); font-size: 15px; }
.estate-jump { display: flex; gap: 8px; margin-bottom: 24px; }
.estate-jump a { font-size: 15px; font-weight: 700; color: var(--primary); text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.estate-jump a:hover { text-decoration: underline; }
.estate-kind { margin-bottom: 32px; scroll-margin-top: 84px; }
.estate-kind h3 { font-size: 22px; font-weight: 900; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.estate-kind h3 small, .estate-group summary small { font-size: 14px; font-weight: 500; color: var(--muted); }
.estate-groups { display: grid; gap: 8px; }
.estate-group { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.estate-group summary { cursor: pointer; padding: 14px 48px 14px 20px; font-weight: 700; font-size: 17px; list-style: none; position: relative; display: flex; align-items: baseline; gap: 10px; }
.estate-group summary::-webkit-details-marker { display: none; }
.estate-group summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.estate-group[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.estate-list { list-style: none; margin: 0; padding: 0 12px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.estate { width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; gap: 1px; }
.estate:hover { background: #eef2f9; }
.estate-name { font-weight: 700; }
.estate-addr { font-size: 13px; color: var(--muted); }
.estates-note { margin-top: 18px; }
@media (max-width: 980px) { .estate-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .estate-list { grid-template-columns: 1fr; } }

/* 頁尾導覽 */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 6px; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- 本月優惠頁（broadband-offers，由 .claude/offers/build.py 砌） ---------- */
.hero-split { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; padding: 48px 0 60px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.low-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; }
.low-panel h2 { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .72); letter-spacing: .06em; margin-bottom: 4px; }
.low-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; transition: background-color .15s; }
.low-row:hover { background: rgba(255, 255, 255, .13); }
.low-row .sp { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; display: grid; }
.low-row .sp small { font-family: var(--font); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .68); }
.low-row .pr { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--accent); white-space: nowrap; }
.low-row .pr small { font-family: var(--font); font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .78); margin: 0 1px; }
.low-note { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
@media (max-width: 980px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0 44px; }
  .hero-split .hero-copy { margin-top: 0; }
}
@media (max-width: 560px) { .hero-btns .btn { width: 100%; } .low-row .pr { font-size: 28px; } .hero-split .ticks { display: none; } .hero-split .lead { font-size: 16px; } }

.seg button small { font-family: var(--display); font-size: 13px; font-weight: 700; margin-left: 6px; opacity: .6; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--accent); scroll-margin-top: 90px; }
.offer:target { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.offer-head { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.offer-logo { flex: none; background: #fff; border-radius: 10px; height: 48px; padding: 4px 8px; display: flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.offer-logo img { width: auto; height: 40px; }
.offer-logo .ol-hgc { height: 26px; }
.offer-logo .ol-icable { height: 36px; }
.offer-co { margin-right: auto; display: grid; font-weight: 900; font-size: 16px; line-height: 1.25; }
.offer-co small { font-size: 13px; font-weight: 700; color: var(--primary); }
.offer-flag { font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.offer-title { display: grid; gap: 2px; }
.offer-speed { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.01em; color: var(--deep); }
.offer-name { font-size: 18px; font-weight: 900; }
.offer-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.offer-prices.op-one { grid-template-columns: minmax(0, 1fr); }
.op { background: #f2f5fa; border-radius: 12px; padding: 10px 12px 11px; display: grid; gap: 2px; align-content: start; }
.op-lab { font-size: 13px; font-weight: 700; color: var(--muted); }
.op-pr { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.05; color: var(--deep); letter-spacing: -.02em; white-space: nowrap; }
.op-pr small { font-size: 18px; font-weight: 700; margin-right: 1px; }
.op-pr .per { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.op-note { font-size: 13px; font-weight: 700; color: #c4560a; }
.offer-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.offer-points li { padding-left: 22px; position: relative; }
.offer-points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.offer-extra { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.offer-extra + .btn-block { margin-top: 0 !important; }
.offer-extra summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.offer-extra summary::-webkit-details-marker { display: none; }
.offer-extra summary small { font-weight: 500; color: var(--muted); font-size: 13px; }
.offer-extra summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); margin-left: auto; transition: transform .2s; }
.offer-extra[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.offer-extra ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.offer-extra li { display: flex; align-items: center; gap: 10px; }
.offer-extra .amt { flex: none; min-width: 50px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 13px; color: #fff; background: var(--accent); border-radius: 7px; padding: 2px 6px; }
.offer .btn-block { margin-top: auto; font-size: 16px; padding: 12px 18px; }
@media (max-width: 1040px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .offer-grid { grid-template-columns: 1fr; } }

.ask { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: start; }
.ask .sec-head, .ask-copy .sec-sub { margin-bottom: 28px; }
.ask-copy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.ask-more { color: var(--muted); }
.ask-more a { color: var(--primary); font-weight: 700; text-decoration: none; }
.ask-more a:hover { text-decoration: underline; }
.ask .check { box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 900px) { .ask { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- 深色模式 ---------- */
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1420; --card: #171e2e; --ink: #e9edf4; --muted: #a3acbd; --line: #2a3346; --primary: #6f9cf0; --primary-ink: #0a1630; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark; }
  .site-header { background: rgba(15, 20, 33, .9); }
  .section-alt { background: #0c111c; }
  .field input[type="text"], .field select, .combo-list { background: #0f1420; border-color: #3a4458; }
  .combo-list li[aria-selected="true"], .combo-list li:hover { background: #1f2a3e; }
  .combo-list mark { background: #6b3510; }
  .chip span, .seg button { border-color: #3a4458; }
  .seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
  .term { background: #222a3b; }
  .preview { background: var(--card); color: var(--ink); }
  .preview pre { background: #0f1420; }
  .btn-primary:hover { background: #86adf3; }
  .btn-tel { color: var(--ink); }
  .btn-tel:hover { background: rgba(111, 156, 240, .12); }
  .site-footer { background: #0a0f1a; }
  .estate-search input { border-color: #3a4458; }
  .estate:hover { background: #1f2a3e; }
  .nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); }
  .logo-row .logo-more { border-color: #3a4458; }
  .op { background: #0f1420; }
  .offer-speed, .op-pr { color: var(--ink); }
  .op-note { color: #ff9a4d; }
}

/* 手機版選單：頂欄第二行，可以左右碌 */
@media (max-width: 1000px) {
  .nav { display: flex; order: 3; flex: 0 0 calc(100% + 40px); margin: 6px -20px 0; padding: 0 20px 8px; scroll-padding-inline: 20px; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 6px 13px; font-size: 14px; color: var(--ink); background: rgba(20, 28, 46, .06); border-radius: 999px; }
  .nav .nav-x { display: inline-block; }
  .nav a[aria-current="page"] { background: var(--deep); color: #fff; }
}
@media (max-width: 1000px) and (prefers-color-scheme: dark) {
  .nav a { background: rgba(255, 255, 255, .08); }
  .nav a[aria-current="page"] { background: var(--primary); color: var(--primary-ink); }
}

/* 首頁「其他寬頻服務」四張卡 */
.guide-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .guide-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .guide-grid-4 { grid-template-columns: 1fr; } }
.sec-sub a { color: var(--primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.sec-sub a:hover { text-decoration: underline; }
