:root {
  --red: #c8102e; --red-ink: #a00d25; --ink: #16181d; --muted: #5d6573; --line: #e4e6eb;
  --bg: #ffffff; --tint: #f6f5f2; --card: #ffffff; --chip: #f1efe9; --focus: #1f6feb;
  --bot: #ffffff; --me: #e1f2d9; --phone: #eae6df; --on-red: #ffffff;
  --radius: 16px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef2; --muted: #a3abb9; --line: #2b313c; --bg: #101318; --tint: #161a21; --card: #1a1f27;
    --chip: #232933; --bot: #232933; --me: #2b4a2a; --phone: #12161c; --red-ink: #ff6b7f; --focus: #79b8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang HK", "Noto Sans HK",
        "Microsoft JhengHei", sans-serif;
}
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); } .small { font-size: .92rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600;
         font-size: 1.1rem; white-space: nowrap; }
.brand b { color: var(--red-ink); }
.brand-mark { width: 30px; height: 30px; color: var(--red); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; padding: 4px 10px;
                cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .nav { display: none; } .langs { margin-left: auto; } }
@media (max-width: 420px) { .top .btn-small { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
       padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
       border: 1px solid transparent; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: #a90d27; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-light { background: #fff; color: #a00d25; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: .9rem; background: var(--red); color: #fff; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; color: var(--red-ink); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }

/* hero */
.hero { padding: 56px 0 64px; background:
  radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--red) 14%, transparent), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.points { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.points li { background: var(--chip); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.points li::before { content: "✓ "; color: var(--red-ink); font-weight: 700; }
.phone { background: var(--phone); border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow);
         overflow: hidden; max-width: 380px; justify-self: center; width: 100%; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--card);
             border-bottom: 1px solid var(--line); font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.chat { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { margin: 0; padding: 8px 12px; border-radius: 14px; max-width: 85%; font-size: .9rem;
          box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble.bot { background: var(--bot); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--me); align-self: flex-end; border-bottom-right-radius: 4px; }
.pre { white-space: pre-line; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* sections */
.section { padding: 64px 0; }
.section.tint { background: var(--tint); }
.sub { color: var(--muted); max-width: 46em; margin-bottom: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
        box-shadow: var(--shadow); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--tint); border-radius: var(--radius); padding: 20px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red);
       color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
#airport .small { margin-top: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }
.feat .ico { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .95rem; margin: 0; }
.extras ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .extras ul { columns: 1; } }

/* tables */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
#meter-table th[scope="row"] { color: var(--ink); font-weight: 500; font-size: .95rem; min-width: 9em; }
#meter-table td.num-cell { white-space: normal; }
@media (max-width: 520px) { .tbl th, .tbl td { padding: 8px 6px; font-size: .88rem; } }
.tag { display: block; font-size: .78rem; color: var(--red-ink); margin-top: 2px; }
.est-empty { color: var(--muted); text-align: center; padding: 32px 12px; }
.est-empty .ico { font-size: 2rem; display: block; margin-bottom: 8px; }
.est-empty p { margin: 0; max-width: 24em; margin-inline: auto; }
.tbl.airport td:nth-child(2) { font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit;
               padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* estimator */
.est { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .est { grid-template-columns: 1fr; } }
.field { position: relative; margin-bottom: 16px; }
.field label, .label-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted);
                           margin-bottom: 6px; }
.input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px;
         padding: 0 12px; background: var(--bg); }
.input:focus-within { border-color: var(--focus); }
.input input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; padding: 12px 0;
               outline: none; }
.field.chosen .input { border-color: var(--red); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.from { background: #2e9e44; } .dot.to { background: var(--red); border-radius: 2px; }
select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
         border-radius: 12px; padding: 11px 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: .95rem; }
.suggest { list-style: none; margin: 4px 0 0; padding: 0; position: absolute; left: 0; right: 0; z-index: 10;
           background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
           overflow: hidden; }
.suggest:empty { display: none; }
.suggest li { padding: 10px 14px; cursor: pointer; border-top: 1px solid var(--line); }
.suggest li:first-child { border-top: 0; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--tint); }
.suggest .s-main { display: block; } .suggest .s-sub { display: block; font-size: .82rem; color: var(--muted); }
.status { min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.est-result .range { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; }
.est-result .route { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.est-result ul { list-style: none; padding: 0; margin: 0 0 14px; }
.est-result li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.est-result li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-result .note { font-size: .88rem; color: var(--muted); }

/* drivers band */
.band { background: var(--red); color: #fff; }
.band .lead { color: rgba(255,255,255,.9); }
.band-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.band-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; }
.band-steps li { padding-left: 4px; }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; } }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red-ink); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: .9rem; color: var(--muted); }
.small-brand { color: var(--ink); }
