/* No external fonts/CDNs: the site must load inside mainland China. */
:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6a64;
  --line: #e3e1d9;
  --accent: #c8102e;
  --accent-soft: #fbe9ec;
  --ok: #1f7a4d;
  --ok-soft: #e5f4ec;
  --warn: #9a6400;
  --warn-soft: #fdf3dd;
  --no: #8a1c1c;
  --no-soft: #f9e6e6;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --card: #1e1e1b;
    --text: #ecebe6;
    --muted: #a3a29b;
    --line: #34332e;
    --accent: #ff5a6e;
    --accent-soft: #3a1e23;
    --ok: #5fd39a;
    --ok-soft: #173326;
    --warn: #f0b84a;
    --warn-soft: #362a12;
    --no: #ff8a8a;
    --no-soft: #3a1c1c;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }

.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--text); letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.tag { color: var(--muted); font-size: 14px; }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(26px, 6vw, 36px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.field { margin-bottom: 20px; }
.field > label, .label, .more label { display: block; font-weight: 650; margin-bottom: 8px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two label { display: block; font-weight: 650; margin-bottom: 8px; }

input[type=text], input[type=search], input:not([type]), input[type=date], select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 15px;
}
.chips input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); }

.more summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.more select { margin-bottom: 12px; }
.check { display: flex !important; gap: 8px; align-items: center; font-weight: 500 !important; }

.btn {
  width: 100%; font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--accent);
  border: 0; border-radius: 12px; padding: 14px; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }

.verdict { border-radius: var(--radius); padding: 18px 20px; margin: 20px 0 12px; border: 1px solid transparent; }
.verdict h2 { margin: 0 0 4px; font-size: 22px; }
.verdict p { margin: 0; }
.verdict.ok { background: var(--ok-soft); border-color: var(--ok); }
.verdict.ok h2 { color: var(--ok); }
.verdict.no { background: var(--no-soft); border-color: var(--no); }
.verdict.no h2 { color: var(--no); }
.verdict.warn { background: var(--warn-soft); border-color: var(--warn); }
.verdict.warn h2 { color: var(--warn); }

.opt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 10px 0; }
.opt h3 { margin: 0 0 6px; font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.no { background: var(--no-soft); color: var(--no); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.opt ul { margin: 8px 0 0; padding-left: 20px; }
.opt li { margin: 3px 0; }
.opt .src { font-size: 13px; color: var(--muted); margin-top: 8px; }
.opt.dim { opacity: .75; }
.opt summary { cursor: pointer; }

.note h2 { margin-top: 0; font-size: 18px; }
.note p { color: var(--muted); }
.meta { font-size: 13px; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 32px; }

@media (max-width: 420px) {
  .two { grid-template-columns: 1fr; }
  .card { padding: 16px; }
}

/* ---- article pages (generated by tools/build.py) ---- */
.article { padding-top: 8px; }
.article h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 6px; }
.article h2 { font-size: 20px; margin: 28px 0 10px; }
.article .verdict h2 { margin: 0 0 4px; }
.article ul { padding-left: 20px; }
.article li { margin: 5px 0; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.src { font-size: 13px; color: var(--muted); }
.btn.cta { display: block; text-align: center; text-decoration: none; margin: 16px 0 8px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.yes { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--no-soft); color: var(--no); }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 10px 0 0; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: 14px; }
.related a:hover { border-color: var(--accent); color: var(--accent); }
.related small { color: var(--muted); }

/* ---- site nav ---- */
.nav { display: flex; gap: 14px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--accent); }
@media (max-width: 420px) { .top .tag { display: none; } .nav { margin-left: 0; } }

/* ---- taxi cards ---- */
.h2s { font-size: 18px; margin: 0 0 12px; }
textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 6px; }
.more input, .more textarea { margin-bottom: 10px; }
#q { margin-bottom: 10px; }
#cities { margin-bottom: 6px; }
#cities span { padding: 6px 12px; font-size: 14px; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.city { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 2px; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.prow:hover { border-color: var(--accent); }
.prow .ic { font-size: 20px; width: 26px; text-align: center; flex: none; }
.prow .tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.prow .tx strong { font-weight: 600; }
.prow .tx span { color: var(--muted); font-size: 15px; }
.prow .del { flex: none; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.prow .del:hover { color: var(--no); background: var(--no-soft); }
.empty { color: var(--muted); margin: 0; }
.note ul { color: var(--muted); padding-left: 20px; }

.show { position: fixed; inset: 0; z-index: 50; background: #fff; color: #111; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 20px; text-align: center; overflow: auto; }
.show .close { position: absolute; top: 10px; right: 14px; font-size: 34px; line-height: 1; background: none; border: 0; color: #666; cursor: pointer; padding: 8px; }
.show .greet { font-size: clamp(20px, 5.5vw, 32px); margin: 0 0 12px; color: #444; }
.show .zh { font-weight: 800; line-height: 1.2; margin: 0 0 18px; word-break: break-all; }
.show .en { color: #666; font-size: 16px; margin: 0 0 28px; }
.show .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn.ghost { width: auto; background: #fff; color: #c8102e; border: 1.5px solid #c8102e; padding: 10px 18px; font-size: 15px; text-decoration: none; display: inline-block; }
.more .btn { margin-top: 4px; }

/* ---- checklist ---- */
.progress { position: relative; height: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ok-soft); transition: width .25s; }
.progress span { position: relative; display: block; text-align: center; line-height: 28px; font-size: 14px; font-weight: 600; }
.todo { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.todo li { margin: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.todo label { display: flex; gap: 12px; padding: 12px 14px; cursor: pointer; align-items: flex-start; }
.todo input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ok); }
.todo li.done { border-color: var(--ok); }
.todo li.done strong { text-decoration: line-through; text-decoration-color: var(--ok); }
.todo a.src { font-size: 13px; color: var(--muted); }

/* ---- guides ---- */
.article ol { padding-left: 22px; }
.article ol li { margin: 6px 0; }
.srcs { font-size: 14px; }
.glist { display: grid; gap: 10px; margin: 16px 0; }
.gcard { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.gcard:hover { border-color: var(--accent); }
.gcard strong { display: block; font-size: 17px; margin-bottom: 4px; }
.gcard span { color: var(--muted); font-size: 14px; }
.nav { gap: 12px; }
.tcount { flex: none; font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 999px; }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { position: relative; width: 100%; max-width: 560px; max-height: 85vh; overflow: auto; background: var(--card); color: var(--text);
  border-radius: 18px 18px 0 0; padding: 20px 16px 28px; }
.sheet-box h2 { font-size: 19px; margin: 0 40px 6px 0; }
.sheet-box .close { position: absolute; top: 8px; right: 10px; font-size: 30px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.muted { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-box { border-radius: 18px; } }

/* ---- start page & cities ---- */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-btn { font: inherit; text-align: left; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; }
.choice-btn strong { display: block; font-size: 17px; margin-bottom: 4px; }
.choice-btn span { color: var(--muted); font-size: 14px; }
.choice-btn.on, .choice-btn:hover { border-color: var(--accent); }
.choice-btn.on { background: var(--accent-soft); }
.steps { padding-left: 0 !important; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: s; }
.steps a { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 48px; position: relative; }
.steps a::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.steps a:hover { border-color: var(--accent); }
.steps span { color: var(--muted); font-size: 14px; }
.label.sp { margin-top: 16px; }
.zhs { color: var(--muted); font-weight: 400; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.facts b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 420px) { .choice { grid-template-columns: 1fr; } }

.starthint { margin-top: 10px !important; font-weight: 600; }
.gcard.off { opacity: .8; }

/* ---- images ---- */
.hero-img { margin: 16px 0; }
.hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.hero-img figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.hero-img figcaption a { color: var(--muted); }
.gcard.has-thumb { overflow: hidden; padding-top: 0; }
.gcard .thumb { display: block; width: calc(100% + 32px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 -16px 12px; background: var(--line); }
.glist { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
