:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #1c1b19;
  --muted: #66625a;
  --faint: #8d887e;
  --border: #e6e2d9;
  --accent: #0f766e;
  --accent-ink: #0b5e58;
  --accent-soft: #e3f2ef;
  --code-bg: #f3f1ec;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 8px 24px rgba(28, 27, 25, .06);
  --note: #2563eb; --tip: #15803d; --important: #7c3aed; --warning: #b45309; --caution: #dc2626;
  --top: 60px;
  --side: 272px;
  --toc: 232px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412; --surface: #1c1c19; --surface-2: #24241f; --text: #ecebe6; --muted: #a9a59b; --faint: #807c72;
    --border: #33322c; --accent: #2dd4bf; --accent-ink: #5eead4; --accent-soft: #123a36; --code-bg: #24241f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    --note: #60a5fa; --tip: #4ade80; --important: #a78bfa; --warning: #fbbf24; --caution: #f87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141412; --surface: #1c1c19; --surface-2: #24241f; --text: #ecebe6; --muted: #a9a59b; --faint: #807c72;
  --border: #33322c; --accent: #2dd4bf; --accent-ink: #5eead4; --accent-soft: #123a36; --code-bg: #24241f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  --note: #60a5fa; --tip: #4ade80; --important: #a78bfa; --warning: #fbbf24; --caution: #f87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--font); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; stroke: none; }
.brand b { color: var(--accent); font-weight: 700; }
.search-trigger { margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 10px; width: min(380px, 40vw); height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--faint); font: inherit; font-size: 14px; cursor: pointer; }
.search-trigger:hover { border-color: var(--faint); }
.search-trigger span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger kbd { font: 12px var(--mono); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }
.top-actions { display: flex; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ---------- 版面 ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--toc); max-width: 1480px; margin: 0 auto; }
body:not(:has(.toc-col)) .shell { grid-template-columns: var(--side) minmax(0, 1fr); }
.sidebar { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 20px 12px 40px 16px; border-right: 1px solid var(--border); scrollbar-width: thin; }
.nav-group { margin-bottom: 6px; }
.nav-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: .04em; cursor: pointer; user-select: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint); transform: rotate(-45deg); margin-left: 8px; transition: transform .15s; }
.nav-group[open] summary::after { transform: rotate(45deg); }
.nav-group summary:hover { background: var(--surface-2); }
.nav-group .count { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--faint); }
.nav-group ul { list-style: none; margin: 2px 0 8px; padding: 0; }
.nav-group li a { display: block; padding: 5px 10px 5px 14px; border-radius: 7px; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.nav-group li a:hover { background: var(--surface-2); text-decoration: none; }
.nav-group li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.scrim { display: none; }

.main { min-width: 0; padding: 32px 48px 24px; }
.md { max-width: 860px; margin: 0 auto; }
body.wide .md { max-width: 1180px; }
.toc-col { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 28px 16px 40px 8px; scrollbar-width: thin; }
.toc-title { margin: 0 0 8px; font-size: 12px; font-weight: 650; letter-spacing: .08em; color: var(--faint); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc li a { display: block; padding: 3px 0 3px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 13px; line-height: 1.5; }
.toc li.l3 a { padding-left: 24px; font-size: 12.5px; }
.toc li a:hover { color: var(--text); text-decoration: none; }
.toc li a.active { color: var(--accent-ink); border-left-color: var(--accent); }

/* ---------- 正文 ---------- */
.md > :first-child { margin-top: 0; }
.md h1 { font-size: 2.1rem; line-height: 1.3; margin: .4em 0 .5em; letter-spacing: -.01em; }
.md h2 { font-size: 1.5rem; line-height: 1.4; margin: 2.2em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid var(--border); }
.md h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.md h4 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.md h2, .md h3, .md h4 { position: relative; }
.md :is(h2, h3, h4) .hlink { position: absolute; left: -1.1em; opacity: 0; color: var(--faint); font-weight: 400; padding-right: .3em; }
.md :is(h2, h3, h4):hover .hlink { opacity: 1; text-decoration: none; }
.md p, .md ul, .md ol { margin: .8em 0; }
.md ul, .md ol { padding-left: 1.5em; }
.md li + li { margin-top: .25em; }
.md li > p { margin: .3em 0; }
.md strong { font-weight: 650; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.md img { max-width: 100%; height: auto; vertical-align: middle; }
.md img[src*="shields.io"] { height: 22px; margin: 2px 1px; border-radius: 4px; }
.md sub { font-size: .82em; color: var(--muted); vertical-align: baseline; line-height: 1.55; }
.md code { font: .88em var(--mono); background: var(--code-bg); padding: .15em .4em; border-radius: 5px; }
.md pre { background: var(--code-bg); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.md pre code { background: none; padding: 0; font-size: inherit; }
.md [align="center"] { text-align: center; }
.md blockquote { margin: 1.2em 0; padding: .4em 1em; border-left: 3px solid var(--border); color: var(--muted); }

/* 提示框 */
.md blockquote.alert { color: var(--text); background: color-mix(in srgb, var(--c) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border)); border-left: 4px solid var(--c); border-radius: 10px; padding: .7em 1.1em; }
.md blockquote.alert > :last-child { margin-bottom: .2em; }
.alert-note { --c: var(--note); } .alert-tip { --c: var(--tip); } .alert-important { --c: var(--important); } .alert-warning { --c: var(--warning); } .alert-caution { --c: var(--caution); }
.md .alert-title { display: flex; align-items: center; gap: 8px; margin: .1em 0 .3em; font-weight: 650; font-size: .92em; color: var(--c); }
.alert-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }

/* 折叠块 */
.md details { margin: 1em 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.md details > summary { cursor: pointer; padding: .7em 1em; font-weight: 600; list-style-position: inside; }
.md details > summary:hover { background: var(--surface-2); }
.md details[open] > summary { border-bottom: 1px solid var(--border); }
.md details > :not(summary) { margin-left: 1em; margin-right: 1em; }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.md table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.55; }
.md th, .md td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); font-weight: 600; white-space: nowrap; font-size: 13.5px; color: var(--muted); }
.md tr:last-child td { border-bottom: 0; }
.md tbody tr:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.md td[align="center"], .md th[align="center"], .md th[style*="center"], .md td[style*="center"] { text-align: center; }
.md td[style*="right"], .md th[style*="right"] { text-align: right; font-variant-numeric: tabular-nums; }

/* 卡片式版面表格 */
.cards-wrap { border: 0; background: none; overflow: visible; }
.md table.cards { border-collapse: separate; border-spacing: 10px; margin: -10px; width: calc(100% + 20px); table-layout: fixed; }
.md table.cards td { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.md table.cards tr:hover td { background: var(--surface); }
.md table.cards td:empty { border: 0; background: none; }
.md table.cards td:has(a):hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.md table.cards h3 { margin: .1em 0; font-size: 1.6rem; }
.md table.cards td > :first-child { margin-top: 0; }
.md table.cards td > :last-child { margin-bottom: 0; }
.md table.cards td p { margin: .4em 0; }

/* mermaid */
.mermaid-wrap { margin: 1.4em 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow-x: auto; text-align: center; }
.mermaid-wrap pre.mermaid { margin: 0; background: none; padding: 0; color: var(--faint); font-size: 12px; white-space: pre-wrap; text-align: left; }
.mermaid-wrap pre.mermaid[data-processed] { text-align: center; }
.mermaid-wrap svg { max-width: 100%; height: auto; stroke: initial; stroke-width: initial; fill: initial; }

/* ---------- 首页 ---------- */
.hero { padding: 28px 0 8px; margin-bottom: 8px; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: .7em 0 1.4em; max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; }
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #062a27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #062a27; } }
.btn.primary:hover { filter: brightness(1.08); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 0; }
.stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.stat b { display: block; font-size: 1.7rem; line-height: 1.2; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.lead-sm { color: var(--muted); }

/* ---------- 路线总表 ---------- */
.ex-controls { position: sticky; top: var(--top); z-index: 5; background: var(--bg); padding: 12px 0 10px; border-bottom: 1px solid var(--border); }
.ex-q { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.chip span { font-size: 12px; color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.toggles label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.toggles input { accent-color: var(--accent); width: 16px; height: 16px; }
.ex-count { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
.ex-table th[data-k] { cursor: pointer; user-select: none; }
.ex-table th[data-k]:hover { color: var(--text); }
.ex-table th[aria-sort="ascending"]::after { content: " ↑"; color: var(--accent); }
.ex-table th[aria-sort="descending"]::after { content: " ↓"; color: var(--accent); }
.ex-table td.num, .ex-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ex-table td:first-child { white-space: nowrap; }
.ex-table td.n { min-width: 220px; }
.ex-table td.n small { display: block; color: var(--faint); font-size: 12px; }
.ex-table .nowrap { white-space: nowrap; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.open { background: color-mix(in srgb, var(--tip) 14%, transparent); color: var(--tip); }
.pill.closed { background: color-mix(in srgb, var(--caution) 14%, transparent); color: var(--caution); }
.ex-empty { padding: 40px; text-align: center; color: var(--faint); }

/* ---------- 翻页 / 页脚 ---------- */
.pager { max-width: 860px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.wide .pager, body.wide .footer { max-width: 1180px; }
.pager a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; }
.pager .next { text-align: right; }
.footer { max-width: 860px; margin: 32px auto 0; padding: 20px 0 8px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }
.footer p { margin: .3em 0; }

/* ---------- 搜索 ---------- */
.search-modal { position: fixed; inset: 0; z-index: 60; background: rgba(15, 14, 12, .45); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-box { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); overflow: hidden; }
.search-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--faint); }
.search-input input { flex: 1; height: 54px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 17px; }
.search-input input::-webkit-search-cancel-button { display: none; }
.search-close { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 6px; font: 12px var(--mono); padding: 3px 7px; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--text); }
.search-results a:hover, .search-results a.sel { background: var(--accent-soft); text-decoration: none; }
.search-results .r-t { font-size: 12px; color: var(--faint); }
.search-results .r-h { font-weight: 600; }
.search-results .r-x { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results mark { background: color-mix(in srgb, var(--warning) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-hint { margin: 0; padding: 8px 14px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--border); }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .shell, body:not(:has(.toc-col)) .shell { grid-template-columns: var(--side) minmax(0, 1fr); }
  .toc-col { display: none; }
}
@media (max-width: 920px) {
  .shell, body:not(:has(.toc-col)) .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-grid; }
  .sidebar { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; height: auto; width: min(300px, 86vw); background: var(--bg); transform: translateX(-100%); transition: transform .2s ease; padding-top: 16px; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(15,14,12,.4); }
  .main { padding: 24px 16px 16px; }
  .search-trigger { width: auto; flex: 1; }
  .search-trigger kbd { display: none; }
  .md :is(h2, h3, h4) .hlink { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .md h1 { font-size: 1.7rem; }
  .md h2 { font-size: 1.3rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .md table.cards, .md table.cards tbody, .md table.cards tr, .md table.cards td { display: block; width: 100% !important; }
  .md table.cards { margin: 0; border-spacing: 0; }
  .md table.cards td { margin-bottom: 10px; }
  .md table.cards td:empty { display: none; }
  .pager { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .ex-count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   P0：顶部导航 / 底部 Tab / 工具页 / 首页 / 政策动态 / 匹配器
   ===================================================================== */
.topnav { display: flex; gap: 2px; margin-left: 20px; }
.topnav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.topnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.topnav a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.search-trigger { width: min(300px, 26vw); }
.tabbar { display: none; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }

/* 工具页：桌面端隐藏侧栏，全宽 */
@media (min-width: 921px) {
  body.tool .shell { grid-template-columns: minmax(0, 1fr) !important; }
  body.tool .sidebar { display: none; }
}
body.tool .md { max-width: 1120px; }
body.tool .footer { max-width: 1120px; }
.tool-head { margin-bottom: 20px; }
.tool-head h1 { margin: .2em 0 .3em; }
.tool-head p { margin: 0; color: var(--muted); max-width: 46em; }
.disclaimer { margin-top: 32px; font-size: 13px; color: var(--faint); }

/* ---------- 首页 ---------- */
body.home .hero { padding: 40px 0 16px; }
body.home .hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.18; }
body.home .hero .lead { margin: .8em 0 1.6em; }
.quick { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.quick-q { margin: 0 0 14px; font-weight: 650; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.q-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.q-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); transition: border-color .15s, transform .15s; }
.q-opt:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.q-opt span { font-size: 22px; line-height: 1.2; }
.q-opt b { font-size: 14.5px; }
.q-opt small { font-size: 12px; color: var(--faint); line-height: 1.4; }
.hero-alt { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.home-sec { margin-top: 52px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.md .sec-head h2 { margin: 0; padding-bottom: .4em; border: 0; font-size: 1.35rem; }
.sec-head a { font-size: 14px; white-space: nowrap; }
.sec-sub { color: var(--muted); font-size: 14.5px; margin: -4px 0 14px; }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.persona { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
.persona:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); text-decoration: none; box-shadow: var(--shadow); }
.p-ic { grid-row: 1 / 4; font-size: 26px; line-height: 1.3; }
.persona b { font-size: 15.5px; }
.persona span:not(.p-ic) { font-size: 13.5px; color: var(--muted); }
.persona small { font-size: 12px; color: var(--accent-ink); margin-top: 4px; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dest { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.dest:hover { border-color: var(--accent); text-decoration: none; }
.d-flag { grid-row: 1 / 3; font-size: 22px; line-height: 1.3; }
.dest b { font-size: 14.5px; }
.dest small { font-size: 12px; color: var(--faint); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; }
.chip-link:hover { border-color: var(--accent); text-decoration: none; }
.chip-link small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.trust { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 政策变化 ---------- */
.kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; --k: var(--faint); color: var(--k); background: color-mix(in srgb, var(--k) 13%, transparent); }
.kind-closed { --k: var(--caution); } .kind-tighter { --k: var(--warning); } .kind-new { --k: var(--tip); } .kind-info { --k: var(--note); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k); display: inline-block; }
.md .ch-list { list-style: none; padding: 0; margin: 0; }
.md .ch-list li + li { margin-top: 0; }
.m-jump { display: none; }
.ch-item { display: grid; grid-template-columns: 92px auto 1fr; gap: 4px 12px; align-items: baseline; }
.ch-item time { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ch-country { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.ch-item p { grid-column: 2 / -1; margin: 0; font-size: 14.5px; }
.ch-item .kind { justify-self: start; }
.ch-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ch-cards .ch-item { grid-template-columns: auto auto 1fr; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--k, var(--border)); border-radius: 12px; background: var(--surface); }
.ch-cards .ch-item[data-kind="closed"] { --k: var(--caution); } .ch-cards .ch-item[data-kind="tighter"] { --k: var(--warning); }
.ch-cards .ch-item[data-kind="new"] { --k: var(--tip); } .ch-cards .ch-item[data-kind="info"] { --k: var(--note); }
.ch-cards .ch-item p { grid-column: 1 / -1; margin-top: 4px; }
.ch-cards .ch-country { order: -1; }
.ch-timeline { position: relative; }
.ch-timeline .ch-item { padding: 14px 0 14px 24px; border-left: 2px solid var(--border); margin-left: 6px; position: relative; }
.ch-timeline .ch-item::before { content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--k); }
.ch-timeline .ch-item[data-kind="closed"] { --k: var(--caution); } .ch-timeline .ch-item[data-kind="tighter"] { --k: var(--warning); }
.ch-timeline .ch-item[data-kind="new"] { --k: var(--tip); } .ch-timeline .ch-item[data-kind="info"] { --k: var(--note); }
.ch-timeline .ch-item time { grid-row: 1 / 3; }
.ch-item[hidden], .ch-year[hidden] { display: none; }
.md .ch-year h2 { font-size: 1.15rem; border: 0; margin: 1.6em 0 .4em; color: var(--muted); }
.ch-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0; position: sticky; top: var(--top); background: var(--bg); z-index: 5; border-bottom: 1px solid var(--border); }
.ch-filters .chip i { margin-right: 2px; }
.ch-filters .sep { flex: 1; }
.sel select { height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.ch-inline { margin: 18px 0 6px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--warning) 6%, var(--surface)); text-align: left; }
.md .ch-inline-title { margin: 0 0 8px; font-weight: 650; font-size: 14px; display: flex; justify-content: space-between; color: var(--warning); }
.ch-inline-title a { font-weight: 500; font-size: 13px; }
.ch-inline .ch-item { grid-template-columns: 82px auto 1fr; padding: 4px 0; }
.ch-inline .ch-item p { grid-column: 3; }

/* ---------- 匹配器 ---------- */
.matcher { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
.m-form { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); scrollbar-width: thin; }
.m-form fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.m-form fieldset[hidden] { display: none; }
.m-form legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; font-weight: 650; font-size: 15px; }
.m-form legend small { font-weight: 400; color: var(--faint); }
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.src-grid label, .seg label, .prefs label { position: relative; cursor: pointer; }
.src-grid input, .seg input, .prefs input { position: absolute; opacity: 0; pointer-events: none; }
.src-grid span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.src-grid i { grid-row: 1 / 3; font-style: normal; font-size: 19px; line-height: 1.3; }
.src-grid b { font-size: 14px; line-height: 1.35; }
.src-grid small { font-size: 11.5px; color: var(--faint); line-height: 1.35; }
.src-grid label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.seg { display: flex; padding: 3px; border-radius: 10px; background: var(--surface-2); gap: 3px; }
.seg label { flex: 1; }
.seg span { display: block; text-align: center; padding: 7px 6px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.m-form .regs + .prefs { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.regs { display: flex; flex-wrap: wrap; gap: 6px; }
.regs label { position: relative; cursor: pointer; }
.regs input { position: absolute; opacity: 0; pointer-events: none; }
.regs span { display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: 14px; background: var(--surface-2); color: var(--muted); }
.regs input:checked + span { background: var(--accent); color: #fff; font-weight: 600; }
.regs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.region-row + .region-row { margin-top: 16px; }
.md .region-row h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 14.5px; color: var(--muted); }
.region-row h3 span, .h-sub { font-size: 12.5px; font-weight: 400; color: var(--faint); margin-left: 8px; }
.prefs { display: flex; flex-wrap: wrap; gap: 6px; }
.prefs span { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; background: var(--bg); }
.src-grid input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.seg input:checked + span { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.prefs input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.src-grid input:focus-visible + span, .seg input:focus-visible + span, .prefs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.amount { display: flex; align-items: center; height: 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 0 12px; gap: 6px; }
.amount:focus-within { border-color: var(--accent); }
.amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 600 18px var(--font); font-variant-numeric: tabular-nums; }
.amount .cur, .amount .unit { color: var(--faint); font-size: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button { border: 1px solid var(--border); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.presets button.on, .presets button:hover { border-color: var(--accent); color: var(--accent-ink); }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
.m-reset { width: 100%; justify-content: center; height: 38px; font-size: 14px; color: var(--muted); }

.m-empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 16px; }
.m-empty-ic { font-size: 34px; margin: 0; }
.m-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 8px; }
.m-summary p { margin: 0; }
.m-summary b { color: var(--accent-ink); font-size: 1.15em; font-variant-numeric: tabular-nums; }
.m-summary small { display: block; color: var(--muted); font-size: 12.5px; }
.m-group { margin-top: 24px; }
.md .m-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; border: 0; padding: 0; font-size: 1.15rem; }
.m-group h2 span { font-size: 13px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.g-ok h2 span { background: color-mix(in srgb, var(--tip) 15%, transparent); color: var(--tip); }
.g-near h2 span { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.m-gsub { margin: 0 0 10px; font-size: 13.5px; color: var(--faint); }
.m-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.m-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.g-near .m-card { border-style: dashed; }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.m-country { font-weight: 600; color: var(--muted); }
.md .m-card h3 { margin: 6px 0 4px; font-size: 1.05rem; line-height: 1.45; }
.m-card h3 a { color: var(--text); }
.m-sum { margin: 0 0 8px !important; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.md .m-reasons { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.md .m-reasons li { margin: 0; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; line-height: 1.5; }
.m-reasons .ok { background: color-mix(in srgb, var(--tip) 11%, transparent); color: var(--tip); }
.m-reasons .ok::before { content: "✓ "; }
.m-reasons .warn { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }
.m-reasons .warn::before { content: "! "; font-weight: 700; }
.m-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: auto 0 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; }
.m-meta dt { color: var(--faint); font-size: 11.5px; }
.m-local { font-size: 11px; color: var(--faint); font-weight: 400; }
.m-meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.m-more { margin-top: 10px; width: 100%; justify-content: center; }
.m-study { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.md .m-study h2 { margin-top: 0; border: 0; }

/* ---------- 响应式（P0） ---------- */
@media (max-width: 1180px) {
  .search-trigger kbd { display: none; }
  .q-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 920px) {
  .topnav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--faint); font: inherit; font-size: 11px; cursor: pointer; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar [aria-current] { color: var(--accent-ink); font-weight: 600; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .gh { display: none; }
  .matcher { grid-template-columns: minmax(0, 1fr); }
  .m-form { position: static; max-height: none; }
  .m-jump:not([hidden]) { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 34; height: 46px; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--accent); color: #fff; font-weight: 650; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  :root[data-theme="dark"] .m-jump { color: #062a27; }
  .m-jump:hover { text-decoration: none; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .ch-cards { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .q-grid { grid-template-columns: 1fr 1fr; }
  .q-opt { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; }
  .q-opt small { width: 100%; }
  .persona-grid { grid-template-columns: 1fr; }
  .m-cards { grid-template-columns: 1fr; }
  .ch-timeline .ch-item, .ch-inline .ch-item { grid-template-columns: auto 1fr; }
  .ch-timeline .ch-item time, .ch-inline .ch-item time { grid-column: 1 / -1; }
  .ch-item p, .ch-inline .ch-item p { grid-column: 1 / -1; }
  .ch-timeline .ch-item time { grid-row: auto; }
  .ch-filters .sep { display: none; }
}
.m-jump.away { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-jump { color: #062a27; } }
/* 强调色上的文字：深色模式用深色字保证对比度 */
:root[data-theme="dark"] :is(.regs input:checked + span, .chip[aria-pressed="true"]) { color: #062a27; }
:root[data-theme="dark"] .chip[aria-pressed="true"] span { color: rgba(6,42,39,.7); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.regs input:checked + span, .chip[aria-pressed="true"]) { color: #062a27; }
  :root:not([data-theme="light"]) .chip[aria-pressed="true"] span { color: rgba(6,42,39,.7); }
}

.reg-chips { margin-bottom: 0; }
.reg-chips + .type-chips { margin-top: 8px; }

/* =====================================================================
   咨询业务：顶部按钮 / 国家页入口 / 服务页 / 预约表单 / 法律页
   ===================================================================== */
.top-cta { margin-right: 4px; white-space: nowrap; }
.top-actions { align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.foot-links a { color: var(--muted); font-size: 13.5px; }
.cta-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; color: var(--accent-ink); }

/* 国家页 */
.route-cta { font-weight: 600; white-space: nowrap; }
.cta-block { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 8px; padding: 20px 24px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.cta-block p { margin: 0; }
.cta-block p + p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.md .cta-h { font-size: 1.2rem; font-weight: 700; color: var(--text) !important; margin: 0 0 2px !important; }
.cta-block .btn { flex-shrink: 0; }
.cta-referral { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--warning) 9%, var(--surface)), var(--surface)); }
.cta-referral .cta-kicker { color: var(--warning); }
.cta-float { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 650; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cta-float span { font-weight: 400; opacity: .85; }
.cta-float:hover { text-decoration: none; filter: brightness(1.06); }
.ch-ask { font-size: 13px; white-space: nowrap; margin-left: 4px; }

/* 首页服务区块 */
.service-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.md .service-band h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 1.45rem; }
.service-band .sb-text > p:not(.cta-kicker) { margin: 0; color: var(--muted); max-width: 40em; }
.md .sb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; counter-reset: s; }
.md .sb-steps li { margin: 0; counter-increment: s; display: flex; flex-direction: column; padding: 8px 14px 8px 38px; position: relative; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.sb-steps li::before { content: counter(s); position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.sb-steps b { font-size: 14px; }
.sb-steps span { font-size: 12.5px; color: var(--faint); }
.sb-cta { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.sb-cta .btn { justify-content: center; }

/* 服务页 */
.hero-cta { margin-top: 18px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); border-top: 3px solid var(--accent); }
.svc-partner { border-top-color: var(--note); } .svc-referral { border-top-color: var(--warning); }
.svc-partner .cta-kicker { color: var(--note); } .svc-referral .cta-kicker { color: var(--warning); }
.md .svc-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.svc-card > p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.svc-card .svc-count { font-size: 12.5px; color: var(--faint); margin-bottom: 8px; }
.svc-card .chip-link { font-size: 12.5px; padding: 3px 9px; }
.md .flow { list-style: none; padding: 0; counter-reset: f; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.md .flow li { margin: 0; counter-increment: f; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.flow li::before { content: counter(f, decimal-leading-zero); font: 700 13px var(--mono); color: var(--accent-ink); }
.flow b { font-size: 15px; }
.flow span { font-size: 13.5px; color: var(--muted); }
.md .flow.mini { grid-template-columns: 1fr; gap: 6px; }
.flow.mini li { padding: 10px 12px; }
.flow.mini li::before { display: none; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.price b { font-size: 1.3rem; line-height: 1.35; }
.price span { font-size: 13.5px; color: var(--muted); }
.price .btn { margin-top: 8px; align-self: flex-start; }
.md .no-list { list-style: none; padding: 0; }
.md .no-list li { padding-left: 28px; position: relative; }
.no-list li::before { content: "✕"; position: absolute; left: 4px; color: var(--caution); font-weight: 700; }
.hint { font-size: 13px; color: var(--faint); }
.contact-list { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.md .contact-list li { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.contact-list span { color: var(--faint); font-size: 13.5px; }
.draft-note { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--warning); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); font-size: 14px; color: var(--muted); }
.draft-note b { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; background: var(--warning); color: #fff; font-size: 12px; }

/* 预约表单 */
.book { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.bk-form, .bk-done { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); scroll-margin-top: calc(var(--top) + 12px); }
.bk-form[hidden], .bk-done[hidden], .bk-step[hidden], .fld[hidden] { display: none; }
.md .bk-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: b; }
.md .bk-steps li { margin: 0; flex: 1; counter-increment: b; padding-top: 8px; border-top: 3px solid var(--border); font-size: 13px; color: var(--faint); }
.bk-steps li::before { content: counter(b) " · "; }
.bk-steps li.on { border-top-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fld { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.fld > span, .fld > legend { font-weight: 600; font-size: 14.5px; padding: 0; margin-bottom: 0; }
.fld legend { margin-bottom: 6px; }
.fld small { font-weight: 400; color: var(--faint); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.book .seg input { position: absolute; opacity: 0; pointer-events: none; }
.book .seg label { position: relative; cursor: pointer; flex: 1; }
.book .seg input:checked + span { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.book .seg input:focus-visible + span { outline: 2px solid var(--accent); }
.svc-note { margin: -6px 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: var(--muted); background: var(--accent-soft); }
.svc-note b { display: block; color: var(--accent-ink); margin-bottom: 2px; }
.svc-note.svc-referral { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); }
.svc-note.svc-referral b { color: var(--warning); }
.svc-note.svc-partner { background: color-mix(in srgb, var(--note) 10%, var(--surface)); }
.svc-note.svc-partner b { color: var(--note); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bk-nav .btn { min-width: 120px; justify-content: center; }
.bk-summary { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.bk-summary dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.bk-summary dt { font-size: 12px; color: var(--faint); }
.bk-summary dd { margin: 0; font-size: 14.5px; font-weight: 600; word-break: break-word; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; color: var(--muted); cursor: pointer; }
.chk input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.bk-error { color: var(--caution); font-size: 14px; margin: 4px 0; }
.bk-side { position: sticky; top: calc(var(--top) + 16px); }
.md .bk-side h2 { font-size: 1rem; border: 0; margin: 0 0 10px; padding: 0; }
.md .bk-side h2 + * { margin-top: 0; }
.bk-side .flow + h2 { margin-top: 24px; }
.done-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 0 8px; background: color-mix(in srgb, var(--tip) 16%, transparent); color: var(--tip); font-size: 26px; font-weight: 700; }
.done-ic.warn { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.md .bk-done h2 { margin-top: 0; border: 0; padding: 0; }
.done-text { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: 14px/1.6 var(--mono); resize: vertical; }
.ct-list { display: grid; gap: 8px; }
.ct { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.ct span { color: var(--faint); font-size: 13.5px; }
.ct b { word-break: break-all; }

/* 匹配器卡片 */
.m-src { font-size: 13px; align-self: center; margin-left: 4px; }
.md .m-svc { margin: 10px 0 0 !important; font-size: 12px; color: var(--faint); }
.m-svc.svc-referral { color: var(--warning); }

/* 深色模式：强调色上的文字 */
:root[data-theme="dark"] :is(.cta-float, .sb-steps li::before, .draft-note b) { color: #062a27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.cta-float, .draft-note b) { color: #062a27; } }

@media (max-width: 1180px) {
  .topnav a:nth-child(2), .topnav a:nth-child(7) { display: none; }
}
@media (max-width: 920px) {
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .top-cta { display: none; }
  .cta-float { left: 16px; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom)); justify-content: center; }
  body:has(.cta-float) .main { padding-bottom: 72px; }
  .book { grid-template-columns: minmax(0, 1fr); }
  .bk-side { position: static; }
  .svc-grid, .price-grid { grid-template-columns: 1fr; }
  .md .flow { grid-template-columns: 1fr 1fr; }
  .service-band { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .cta-block { flex-direction: column; align-items: stretch; }
  .fld-row, .bk-summary dl { grid-template-columns: 1fr; }
  .md .flow { grid-template-columns: 1fr; }
  .ct { grid-template-columns: 1fr auto; }
  .ct span { grid-column: 1 / -1; }
  .bk-form, .bk-done { padding: 16px; }
}

/* 品牌：Look the World */
.brand svg { width: 32px; height: 32px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { color: var(--text); font-size: 16.5px; font-weight: 700; letter-spacing: .04em; }
.brand-text small.zh { letter-spacing: .12em; font-size: 10px; }
.brand-text small { font-size: 9.5px; font-weight: 700; letter-spacing: .34em; color: var(--accent-ink); margin-top: 2px; }
@media (max-width: 720px) { .brand span.brand-text { display: flex; } .brand-text small { display: none; } }

.svc-grid.two { grid-template-columns: repeat(2, 1fr); }
.svc-pending { border-top-color: var(--warning); }
.svc-pending .cta-kicker { color: var(--warning); }
.svc-note.svc-pending { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); }
.svc-note.svc-pending b { color: var(--warning); }
.m-svc.svc-pending { color: var(--warning); }
.cta-block.cta-pending { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }
.cta-pending .cta-kicker { color: var(--warning); }
.chip-link small { font-size: 10.5px; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: var(--faint); }
@media (max-width: 920px) { .svc-grid.two { grid-template-columns: 1fr; } }

/* =====================================================================
   首页 v2：地图首屏 / 数字带 / 人群卡 / 目的地 / 政策雷达 / 转介色块
   ===================================================================== */
:root { --map-dot: #bfcdc7; --map-arc: #0f766e; --gold: #f5a524; }
:root[data-theme="dark"] { --map-dot: #3a4a46; --map-arc: #2dd4bf; --gold: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-dot: #3a4a46; --map-arc: #2dd4bf; --gold: #fbbf24; } }

body.home .md { max-width: 1320px; }
body.home .main { padding-top: 8px; }
body.home .footer { max-width: 1320px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.light { background: #fff; border-color: #fff; color: #0b5e58; }
.btn.light:hover { filter: brightness(.96); }

/* 首屏 */
.hh { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 16px; align-items: center; min-height: min(680px, calc(100vh - var(--top) - 40px)); padding: 20px 0 32px; }
.hh .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--tip); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tip) 60%, transparent); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.md .hh h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 8px 0 18px; }
.hh h1 .hl { color: var(--accent-ink); background: linear-gradient(transparent 72%, color-mix(in srgb, var(--gold) 26%, transparent) 72%, color-mix(in srgb, var(--gold) 26%, transparent) 94%, transparent 94%); padding: 0 .06em; }
.hh .lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.hh-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hh-search { flex: 1; min-width: 200px; max-width: 300px; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--faint); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.hh-search:hover { border-color: var(--faint); }
.hh-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; font-size: 13.5px; }
.hh-quick span { color: var(--faint); margin-right: 2px; }
.hh-quick a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.hh-quick a:hover { border-color: var(--accent); text-decoration: none; }

.hh-map { position: relative; aspect-ratio: 2 / 1; margin-right: -24px; }
.map-dots { position: absolute; inset: 0; background: var(--map-dot); -webkit-mask: url(world-dots.svg) center / 100% 100% no-repeat; mask: url(world-dots.svg) center / 100% 100% no-repeat; }
.map-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; stroke: none; fill: none; }
.map-arcs .arc { fill: none; stroke: var(--map-arc); stroke-width: 1.5; stroke-linecap: round; opacity: .55; stroke-dasharray: var(--len); stroke-dashoffset: 0; animation: draw 1.3s ease-out backwards; animation-delay: calc(var(--i) * .1s + .2s); }
@keyframes draw { from { stroke-dashoffset: var(--len); } }
.map-arcs .pin { fill: var(--map-arc); animation: pop .35s ease-out backwards; animation-delay: calc(var(--i) * .1s + 1.2s); transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
.map-arcs .plane { fill: var(--gold); }
.map-arcs .origin { fill: var(--gold); stroke: var(--bg); stroke-width: 2; }
.map-arcs .origin-ring { fill: none; stroke: var(--gold); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.map-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 8px 13px 8px 9px; border-radius: 13px; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(15, 40, 36, .14); color: var(--text);
  animation: cardin .5s ease-out backwards; animation-delay: calc(var(--i) * .18s + 1.4s); }
.map-card:hover { text-decoration: none; border-color: var(--accent); z-index: 3; }
.map-card.side-left { transform: translate(calc(-100% - 12px), -50%); }
.map-card.side-right { transform: translate(12px, -50%); }
.map-card.side-top { transform: translate(-50%, calc(-100% - 12px)); }
.map-card.side-bottom { transform: translate(-50%, 12px); }
@keyframes cardin { from { opacity: 0; margin-top: 8px; } }
.mc-flag { font-size: 24px; line-height: 1; }
.mc-body { display: flex; flex-direction: column; line-height: 1.3; }
.mc-body b { font-size: 13.5px; }
.mc-body small { font-size: 12px; color: var(--accent-ink); font-weight: 600; }

/* 数字带 */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.numbers div { padding: 22px 24px; display: flex; flex-direction: column; }
.numbers div + div { border-left: 1px solid var(--border); }
.numbers b { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--muted); font-size: 14px; }

/* 区块标题 */
.hs { margin-top: 96px; }
.hs-head { margin-bottom: 24px; }
.hs-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.md .hs-head h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.015em; font-weight: 800; }
.hs-head > p:not(.cta-kicker) { margin: 8px 0 0; color: var(--muted); }
.hs-head .more { font-weight: 600; white-space: nowrap; }

/* 人群卡 */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard { --pc-bg: hsl(var(--h) 72% 96%); --pc-tile: hsl(var(--h) 68% 89%); --pc-ink: hsl(var(--h) 55% 28%);
  position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--pc-tile) 70%, var(--border));
  background: linear-gradient(160deg, var(--pc-bg), var(--surface) 75%); transition: transform .18s, box-shadow .18s; }
:root[data-theme="dark"] .pcard { --pc-bg: hsl(var(--h) 30% 15%); --pc-tile: hsl(var(--h) 32% 22%); --pc-ink: hsl(var(--h) 70% 78%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard { --pc-bg: hsl(var(--h) 30% 15%); --pc-tile: hsl(var(--h) 32% 22%); --pc-ink: hsl(var(--h) 70% 78%); } }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--pc-tile); font-size: 26px; margin-bottom: 16px; }
.md .pcard h3 { margin: 0 0 6px; font-size: 1.2rem; }
.pcard h3 a { color: var(--text); }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.pcard h3 a:hover { text-decoration: none; }
.md .pcard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.md .pcard .pc-ex { margin: 14px 0 18px; align-self: flex-start; padding: 5px 11px; border-radius: 9px; background: var(--pc-tile); color: var(--pc-ink); font-size: 13px; font-weight: 600; }
.pc-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--pc-tile) 80%, var(--border)); display: flex; justify-content: space-between; font-size: 13.5px; color: var(--faint); }
.pc-foot a { position: relative; z-index: 1; font-weight: 650; color: var(--pc-ink); }

/* 目的地 */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dcard { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.dcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.dc-flag { font-size: 46px; line-height: 1; margin-bottom: 14px; }
.dc-region { position: absolute; top: 18px; right: 18px; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.dcard b { font-size: 1.2rem; }
.md .dcard p { margin: 6px 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.55; min-height: 3.1em; }
.dc-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.dc-meta span { font-size: 12.5px; padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px; }
.rchip b { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rchip:hover { border-color: var(--accent); text-decoration: none; }

/* 政策雷达 */
.radar { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px; padding: 32px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.md .radar-intro h2 { margin: 4px 0 10px; padding: 0; border: 0; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 800; }
.radar-intro p:not(.cta-kicker) { color: var(--muted); margin: 0 0 20px; }
.radar-intro b { color: var(--caution); font-size: 1.15em; }
.md .radar-list { list-style: none; margin: 0; padding: 0; }
.md .radar-list li { margin: 0; border-top: 1px solid var(--border); }
.radar-list li:first-child { border-top: 0; }
.radar-list a { display: grid; grid-template-columns: 76px 92px 1fr auto; align-items: baseline; gap: 12px; padding: 13px 4px; color: var(--text); }
.radar-list a:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 4%, transparent); }
.radar-list .kind { justify-self: start; }
.rd-c { font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.rd-t { font-size: 14.5px; color: var(--muted); }
.radar-list time { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 转介色块 */
.band { margin-top: 96px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 90% 10%, #149082 0, transparent 45%), linear-gradient(135deg, #0f766e, #0a4743); }
.band::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 340px; height: 340px; opacity: .08; background: #fff; -webkit-mask: url(favicon.svg) center / contain no-repeat; mask: url(favicon.svg) center / contain no-repeat; }
.band .cta-kicker { color: #fcd34d; }
.md .band h2 { margin: 4px 0 14px; padding: 0; border: 0; color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.25; font-weight: 800; }
.md .band-text > p:not(.cta-kicker) { color: rgba(255,255,255,.82); margin: 0 0 26px; max-width: 30em; }
.band-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.band-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.md .band-steps { list-style: none; margin: 0; padding: 0; counter-reset: bs; display: grid; gap: 10px; position: relative; z-index: 1; }
.md .band-steps li { margin: 0; counter-increment: bs; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.band-steps li::before { content: counter(bs); grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fcd34d; color: #0a4743; font-weight: 800; }
.band-steps b { font-size: 15.5px; }
.band-steps span { font-size: 13px; color: rgba(255,255,255,.72); }
:root[data-theme="dark"] .band { background: radial-gradient(circle at 90% 10%, #12645b 0, transparent 45%), linear-gradient(135deg, #0d5a54, #082f2c); }
.home-foot { text-align: center; margin: 48px 0 0; font-size: 13px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .map-arcs .arc { stroke-dashoffset: 0; animation: none; }
  .map-arcs .pin, .map-card { opacity: 1; animation: none; }
  .map-arcs .plane, .map-arcs .origin-ring { display: none; }
}
@media (max-width: 1100px) {
  .hh { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hh-map { margin-right: 0; }
  .dgrid { grid-template-columns: repeat(2, 1fr); }
  .radar { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 720px) {
  .md .hh h1 { font-size: 2.5rem; }
  .hh-search { max-width: none; }
  .hh-cta .btn.lg { flex: 1; justify-content: center; }
  .hh-map { margin: 8px -16px 0; }
  .map-card { padding: 5px 9px 5px 6px; gap: 6px; }
  .mc-flag { font-size: 18px; }
  .mc-body b { font-size: 11.5px; } .mc-body small { font-size: 10.5px; }
  .map-card:nth-of-type(n+4) { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .numbers div { padding: 16px; }
  .hs { margin-top: 64px; }
  .pgrid { grid-template-columns: 1fr; }
  .dgrid { gap: 10px; }
  .dcard { padding: 16px; }
  .dc-flag { font-size: 36px; }
  .md .dcard p { display: none; }
  .radar { padding: 20px; }
  .radar-list a { grid-template-columns: auto 1fr; gap: 4px 10px; }
  .rd-t { grid-column: 1 / -1; }
  .radar-list time { grid-column: 1 / -1; }
  .band { padding: 28px 20px; margin-top: 64px; }
  .hs-head.row { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 721px) and (max-width: 1100px) { .pgrid { grid-template-columns: 1fr 1fr; } }
.btn { white-space: nowrap; }
@media (max-width: 720px) {
  .map-card { display: none !important; }
  .hh-cta { flex-direction: column; }
  .hh-cta .btn.lg, .hh-search { width: 100%; max-width: none; flex: none; }
  .hh-map { margin-top: 20px; }
}

/* =====================================================================
   国家页 v2：页头 / 本地标签 / 路线卡片 / 吸顶路线条
   ===================================================================== */
.pill2 { display: inline-flex; align-items: stretch; margin: 2px 3px 2px 0; border-radius: 7px; overflow: hidden; font-size: 12.5px; line-height: 1.7; vertical-align: middle; border: 1px solid var(--pc, var(--border)); --pc: var(--border); --pk: var(--muted); }
.pill2 i { font-style: normal; padding: 0 7px; background: var(--surface-2); color: var(--muted); }
.pill2 b { padding: 0 8px; font-weight: 650; color: var(--pk); background: color-mix(in srgb, var(--pk) 10%, var(--surface)); }
.pill2.c-ok { --pk: var(--tip); --pc: color-mix(in srgb, var(--tip) 30%, var(--border)); }
.pill2.c-info { --pk: var(--note); --pc: color-mix(in srgb, var(--note) 30%, var(--border)); }
.pill2.c-violet { --pk: var(--important); --pc: color-mix(in srgb, var(--important) 30%, var(--border)); }
.pill2.c-teal { --pk: var(--accent-ink); --pc: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.pill2.c-bad { --pk: var(--caution); --pc: color-mix(in srgb, var(--caution) 30%, var(--border)); }
.pill2.c-warn { --pk: var(--warning); --pc: color-mix(in srgb, var(--warning) 30%, var(--border)); }

body.country .md { max-width: 900px; }
.ch-head { margin: 4px 0 8px; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--border);
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%), var(--surface); }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.crumb a { color: var(--muted); }
.crumb b { color: var(--text); font-weight: 600; }
.ch-title { display: flex; align-items: center; gap: 18px; }
.ch-flag { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.15)); }
.md .ch-title h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.md .ch-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ch-pills { display: inline-flex; flex-wrap: wrap; }
.md .ch-tag { margin: 18px 0 0; font-size: 1.08rem; font-weight: 650; line-height: 1.6; }
.ch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 20px 0 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); overflow: hidden; }
.ch-stats div { padding: 12px 14px; min-width: 0; }
.ch-stats div + div { border-left: 1px solid var(--border); }
.ch-stats dt { font-size: 12px; color: var(--faint); }
.ch-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.ch-verified { font-size: 13px; color: var(--faint); margin-left: auto; }
.svc-tag { font-weight: 600; color: var(--accent-ink); }
.svc-tag.svc-pending { color: var(--warning); }
.ch-head .ch-inline { margin: 18px 0 0; }

/* 吸顶路线条 */
.rnav { position: sticky; top: var(--top); z-index: 6; margin: 0 -8px; padding: 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.rnav-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rnav-in::-webkit-scrollbar { display: none; }
.rnav a { flex-shrink: 0; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.rnav a:hover { color: var(--text); text-decoration: none; border-color: var(--faint); }
.rnav a.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .rnav a.on { color: #062a27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rnav a.on { color: #062a27; } }
body.country { scroll-padding-top: calc(var(--top) + 64px); }
html:has(body.country) { scroll-padding-top: calc(var(--top) + 64px); }

/* 路线卡片 */
.rc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 8px; }
.rc { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.rc:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.rc.closed { opacity: .62; }
.rc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.rc-type { color: var(--muted); }
.rc-status { padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.rc-status.open { background: color-mix(in srgb, var(--tip) 13%, transparent); color: var(--tip); }
.rc-status.closed { background: color-mix(in srgb, var(--caution) 13%, transparent); color: var(--caution); }
.rc-name { font-size: 1.05rem; line-height: 1.4; }
.rc-sum { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.rc-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.rc-facts span { font-size: 12.5px; padding: 2px 8px; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.rc-facts span:first-child { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.rc-facts i { font-style: normal; font-weight: 400; margin-right: 4px; opacity: .75; }
.rc-facts span.y { color: var(--tip); background: color-mix(in srgb, var(--tip) 10%, transparent); }

@media (max-width: 720px) {
  .ch-head { padding: 18px 16px; border-radius: 18px; margin: 0 -4px 8px; }
  .ch-flag { font-size: 46px; }
  .ch-stats { grid-template-columns: 1fr 1fr; }
  .ch-stats div:nth-child(3) { border-left: 0; }
  .ch-stats div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .ch-verified { margin-left: 0; width: 100%; }
  .ch-actions .btn { flex: 1; justify-content: center; }
  .rc-grid { grid-template-columns: 1fr; }
  .rnav { margin: 0 -16px; padding: 8px 16px; }
}

/* =====================================================================
   总览页：筛选栏 + 国家卡片网格
   ===================================================================== */
.ov-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.015em; }
.ov-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ov-bar { position: sticky; top: var(--top); z-index: 6; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 18px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.ov-q { height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
.ov-q:focus { outline: 0; border-color: var(--accent); }
.ov-chips { margin: 0; }
.ov-right { display: flex; align-items: center; gap: 10px; }
.ov-count { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.oc[hidden], .oc-group[hidden], .ov-empty[hidden] { display: none !important; }
.oc { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.oc:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.oc-top { display: flex; align-items: center; gap: 12px; }
.oc-flag { font-size: 38px; line-height: 1; }
.oc-head { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.oc-head b { font-size: 1.12rem; }
.oc-head small { font-size: 12.5px; color: var(--faint); }
.oc-tag { font-size: 13.5px; color: var(--muted); line-height: 1.55; min-height: 3.1em; }
.oc-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-stats span { font-size: 12.5px; padding: 2px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.oc-stats i { font-style: normal; font-weight: 400; opacity: .75; margin-right: 3px; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.oc-tags em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.oc-group + .oc-group { margin-top: 36px; }
.md .oc-gh { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; font-size: 1.35rem; font-weight: 800; }
.oc-gh span { font-size: 13px; font-weight: 400; color: var(--faint); }
.ov-empty { padding: 40px; text-align: center; color: var(--faint); border: 1px dashed var(--border); border-radius: 16px; }
body.overview #compare + h2, body.overview #profiles + h2 { margin-top: 64px; }
@media (max-width: 920px) {
  .ov-bar { grid-template-columns: 1fr; position: static; gap: 10px; }
  .ov-right { justify-content: space-between; }
}
@media (max-width: 720px) {
  .oc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .oc { padding: 12px; gap: 8px; }
  .oc-flag { font-size: 28px; }
  .oc-top { gap: 8px; }
  .oc-tag, .oc-tags { display: none; }
  .ov-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
.ov-chips .chip { flex-shrink: 0; white-space: nowrap; }

/* =====================================================================
   统一工具页页头 / 路线总表手机卡片 / 匹配器示例空状态
   ===================================================================== */
.tool-head { padding: 8px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.md .tool-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; margin: 2px 0 10px; }
.tool-head > p:not(.cta-kicker) { font-size: 1.02rem; }
.ov-head { border-bottom: 0; margin-bottom: 0; }
.tool-head .hero-cta { margin-top: 18px; }

.m-empty2 { display: grid; gap: 18px; padding: 26px; border: 1px dashed var(--border); border-radius: 18px; }
.md .m-empty-text h3 { margin: 4px 0 6px; font-size: 1.2rem; }
.m-empty-text p:last-child { margin: 0; color: var(--muted); }
.m-empty2 .m-empty-ic { font-size: 32px; margin: 0; }
.m-sample { position: relative; max-width: 460px; opacity: .92; }
.m-sample .m-card { box-shadow: var(--shadow); }
.m-sample-tag { position: absolute; top: -10px; right: 14px; z-index: 1; padding: 1px 10px; border-radius: 999px; background: var(--gold, #f5a524); color: #3b2500; font-size: 12px; font-weight: 700; }

@media (max-width: 720px) {
  .ex-controls { position: static; }
  .ex-table, .ex-table tbody, .ex-table tr, .ex-table td { display: block; }
  .ex-table thead { display: none; }
  .md .ex-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px; border-bottom: 1px solid var(--border); }
  .md .ex-table td { border: 0; padding: 0; min-width: 0; white-space: normal; }
  .ex-table td.c { order: 1; flex: 1; font-size: 13px; color: var(--muted); }
  .ex-table td.s { order: 2; }
  .ex-table td.n { order: 3; flex-basis: 100%; min-width: 0 !important; font-weight: 650; font-size: 15px; margin-bottom: 2px; }
  .ex-table :is(td.t, td.th, td.num, td.f, td.p) { order: 4; font-size: 12.5px; padding: 2px 8px !important; border-radius: 7px; background: var(--surface-2); }
  .ex-table td.th { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
  .ex-table td.num::before { content: "≈"; }
  .ex-table td.num::after { content: " €/月"; }
  .ex-table td.num.na { display: none; }
  .ex-table td.v { order: 5; flex-basis: 100%; font-size: 12px; }
  .ex-table td.v::before { content: "核查 · "; color: var(--faint); }
  .md .ex-table tbody tr:hover td { background: var(--surface-2); }
  .md .ex-table tbody tr:hover td.th { background: var(--accent-soft); }
  .md .ex-table tbody tr:hover :is(td.c, td.s, td.n, td.v) { background: none; }
}
@media (max-width: 720px) {
  .explorer .chips, .ch-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .explorer .chips::-webkit-scrollbar, .ch-filters::-webkit-scrollbar { display: none; }
  .explorer .chip, .ch-filters .chip { flex-shrink: 0; white-space: nowrap; }
  .ch-filters .sel { flex-shrink: 0; }
}

/* =====================================================================
   免签与签证 / 免签游路线
   ===================================================================== */
.k-ok { --k: var(--tip); } .k-info { --k: var(--note); } .k-teal { --k: var(--accent-ink); } .k-violet { --k: var(--important); } .k-mute { --k: var(--muted); } .k-warn { --k: var(--warning); } .k-bad { --k: var(--caution); }
.vz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 8px; }
.vz-stats a { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.vz-stats a:hover { text-decoration: none; border-color: var(--accent); }
.vz-stats b { font-size: 2.2rem; font-weight: 800; line-height: 1.1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.vz-stats span { font-size: 13.5px; color: var(--muted); }
.how-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.how { padding: 16px; border-radius: 14px; border: 1px solid var(--border); border-top: 3px solid var(--k); background: var(--surface); }
.how b { color: var(--k); }
.md .how p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.vz-bar { margin-top: 4px; }
.vz-group + .vz-group { margin-top: 34px; }
.vz-group[hidden], .vz[hidden] { display: none !important; }
.vz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.vz { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); scroll-margin-top: calc(var(--top) + 90px); }
.vz.hit { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.vz-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vz-flag { font-size: 24px; line-height: 1; }
.vz-name { font-size: 1.02rem; margin-right: auto; }
.vz-kind { font-size: 12.5px; font-weight: 650; padding: 1px 9px; border-radius: 999px; color: var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); white-space: nowrap; }
.vz-stay { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md .vz-note { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.md .vz-flagline { margin: 0; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; align-self: flex-start; }
.vz-flagline.warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); }
.vz-flagline.bad { color: var(--caution); background: color-mix(in srgb, var(--caution) 12%, transparent); }
.vz-flagline.info { color: var(--note); background: color-mix(in srgb, var(--note) 12%, transparent); }
.vz-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; }
.vz-foot a { color: var(--muted); }
.vz-foot .vz-page { color: var(--accent-ink); font-weight: 650; }
.md .vz-foot details { width: 100%; margin: 4px 0 0; border: 0; background: none; }
.md .vz-foot details > summary { padding: 0; font-weight: 400; color: var(--faint); font-size: 12px; }
.md .vz-foot details[open] > summary { border: 0; }
.md .vz-foot details ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 12.5px; color: var(--muted); }
.md .vz-foot details > :not(summary) { margin-left: 0; margin-right: 0; }
.guide { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.guide > p:first-child { margin-top: 0; }
.via-cloud a { padding: 6px 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--note) 35%, var(--border)); background: var(--surface); color: var(--text); font-size: 14px; }
.via-cloud a:hover { border-color: var(--note); text-decoration: none; }
.md .checklist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.md .checklist li { margin: 0; padding: 10px 14px 10px 38px; position: relative; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 14.5px; }
.checklist li::before { content: "✓"; position: absolute; left: 14px; top: 10px; color: var(--tip); font-weight: 800; }
.ch-entry { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 16px 0 0 !important; font-size: 14px; }
.ch-entry > span { color: var(--faint); font-size: 13px; }
.ch-entry a { color: var(--text); }
.ch-entry b { color: var(--k); margin-right: 8px; }
.ch-entry em { font-style: normal; color: var(--muted); }

/* 路线 */
.trip-chips { margin-bottom: 14px; }
.trip-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.trip-index a { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13.5px; }
.trip-index a:hover { border-color: var(--accent); text-decoration: none; }
.trip-list { display: grid; gap: 18px; }
.tcard[hidden] { display: none; }
.tcard { padding: 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); scroll-margin-top: calc(var(--top) + 16px); }
.tc-tags { display: flex; gap: 6px; }
.tc-tags em { font-style: normal; font-size: 12px; font-weight: 650; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.md .tcard h2 { margin: 10px 0 2px; padding: 0; border: 0; font-size: 1.6rem; font-weight: 800; }
.md .tc-sub { margin: 0; color: var(--muted); font-weight: 600; }
.md .tc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: 13.5px; color: var(--faint); }
.md .tc-pitch { font-size: 15.5px; margin: 14px 0; }
.md .tc-stops { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; position: relative; }
.md .tc-stops li { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; position: relative; }
.tc-stops li + li { border-top: 1px dashed var(--border); }
.ts-flag { font-size: 30px; line-height: 1.1; text-align: center; }
.tc-stops b { font-size: 15.5px; margin-right: 8px; }
.ts-days { font-size: 13px; color: var(--faint); margin-right: 8px; }
.ts-entry { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 999px; color: var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); white-space: nowrap; }
.md .tc-stops p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.tc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.md .tc-cols ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 14px; }
.tcard footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tcard.mini { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tcard.mini:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.tcard.mini b { font-size: 1.15rem; margin-top: 6px; }
.tcard.mini .tc-sub { font-size: 13.5px; color: var(--muted); }
.tcard.mini .tc-meta { font-size: 12.5px; color: var(--faint); }
.tc-flags { margin-top: auto; padding-top: 10px; font-size: 24px; letter-spacing: 4px; }
@media (max-width: 1100px) { .how-grid { grid-template-columns: repeat(3, 1fr); } .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .vz-stats { grid-template-columns: 1fr 1fr; }
  .how-grid, .md .checklist, .tc-cols { grid-template-columns: 1fr; }
  .vz-grid { grid-template-columns: 1fr; }
  .tcard { padding: 18px; }
  .tgrid { grid-template-columns: 1fr; }
}

/* =====================================================================
   免签游路线 v2：筛选 / 地图卡片 / 详情面板
   ===================================================================== */
.tf { display: grid; gap: 12px; padding: 18px 20px; margin-bottom: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.tf-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tf-k { width: 64px; flex-shrink: 0; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.tf-months { display: flex; flex-wrap: wrap; gap: 4px; }
.tf-months button { min-width: 44px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tf-months button.now { border-color: color-mix(in srgb, var(--gold) 70%, var(--border)); }
.tf-months button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
:root[data-theme="dark"] .tf-months button[aria-pressed="true"] { color: #062a27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tf-months button[aria-pressed="true"] { color: #062a27; } }
.tf-days { width: auto; }
.tf .seg input { position: absolute; opacity: 0; pointer-events: none; }
.tf .seg label { position: relative; cursor: pointer; }
.tf .seg span { padding: 6px 14px; }
.tf .seg input:checked + span { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tf-area { margin: 0; }
.tf-scout { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14px; color: var(--muted); cursor: pointer; }
.tf-scout input { accent-color: var(--accent); width: 16px; height: 16px; }
.md .tf-count { margin: 0; font-size: 13.5px; color: var(--accent-ink); font-weight: 650; }

.tgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tgrid2.home { grid-template-columns: repeat(4, 1fr); }
.tc2[hidden] { display: none; }
.tc2 { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; scroll-margin-top: calc(var(--top) + 16px); }
.tc2:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.tc2-map { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface-2)); border-bottom: 1px solid var(--border); }
.tmap { display: block; width: 100%; height: 100%; stroke: none; }
.tc2-area { position: absolute; top: 10px; left: 10px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(4px); color: var(--muted); }
.tc2-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tc2-title { font-size: 1.15rem; }
.tc2-sub { font-size: 13.5px; color: var(--muted); }
.tc2-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.tc2-meta > span { padding: 2px 8px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.tc2-meta .tc2-visa { background: color-mix(in srgb, var(--tip) 12%, transparent); color: var(--tip); }
.tc2-meta .tc2-visa.via { background: color-mix(in srgb, var(--note) 12%, transparent); color: var(--note); }
.tc2-meta .tc2-scout { background: var(--accent-soft); color: var(--accent-ink); }
.mbar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: auto; padding-top: 8px; }
.mbar i { font-style: normal; font-size: 10px; line-height: 18px; text-align: center; border-radius: 4px; background: var(--surface-2); color: var(--faint); font-variant-numeric: tabular-nums; }
.mbar i.on { background: color-mix(in srgb, var(--gold) 35%, transparent); color: #7a4b00; font-weight: 700; }
:root[data-theme="dark"] .mbar i.on { color: #fcd34d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mbar i.on { color: #fcd34d; } }

/* 详情面板 */
.tpanel { position: fixed; inset: 0; z-index: 70; }
.tpanel[hidden] { display: none; }
.tp-scrim { position: absolute; inset: 0; background: rgba(12, 14, 13, .5); opacity: 0; transition: opacity .2s; }
.tp-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--bg); box-shadow: -20px 0 50px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.tpanel.in .tp-scrim { opacity: 1; }
.tpanel.in .tp-box { transform: none; }
.tp-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.tp-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
body.tp-open { overflow: hidden; }
.td-map { aspect-ratio: 16 / 9; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface-2)); border-bottom: 1px solid var(--border); }
.tdetail > :not(.td-map) { margin-left: 24px; margin-right: 24px; }
.tdetail header { margin-top: 20px; }
.tdetail .mbar { max-width: 360px; }
.md .tdetail h2 { margin: 10px 0 2px; padding: 0; border: 0; font-size: 1.7rem; font-weight: 800; }
.md .tdetail .cta-kicker { margin-top: 20px; }
.md .tdetail .tc-stops { margin: 6px 24px 0; }
.md .tdetail .tc-stops li { grid-template-columns: 32px 1fr; }
.ts-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #3b2500; font-weight: 800; font-size: 13px; margin-top: 2px; }
.md .td-list { margin-top: 4px; padding-left: 1.2em; font-size: 14.5px; }
.tdetail footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 16px 0 28px; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) { .tp-box, .tp-scrim { transition: none; } }
@media (max-width: 1100px) { .tgrid2.home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .tf { padding: 14px; gap: 10px; }
  .tf-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .tf-k { width: auto; }
  .tf-months, .tf-area { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .tf-months::-webkit-scrollbar, .tf-area::-webkit-scrollbar { display: none; }
  .tf-months button, .tf-area .chip { flex-shrink: 0; }
  .tf .seg { width: 100%; }
  .tf .seg label { flex: 1; } .tf .seg span { padding: 6px 4px; text-align: center; }
  .tf-scout { margin-left: 0; }
  .tgrid2, .tgrid2.home { grid-template-columns: 1fr; }
  .tp-box { top: auto; height: 92vh; width: 100%; border-radius: 20px 20px 0 0; transform: translateY(100%); box-shadow: 0 -20px 50px rgba(0,0,0,.3); }
  .tdetail > :not(.td-map) { margin-left: 16px; margin-right: 16px; }
  .md .tdetail .tc-stops { margin: 6px 16px 0; }
  .td-map { border-radius: 20px 20px 0 0; overflow: hidden; }
}
.tf .seg span { white-space: nowrap; }

/* =====================================================================
   免签游路线 v3：地球仪 + 列表
   ===================================================================== */
.tlayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.tglobe { position: sticky; top: calc(var(--top) + 16px); border-radius: 28px; border: 1px solid var(--border); overflow: hidden;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%); }
:root[data-theme="dark"] .tglobe { background: radial-gradient(circle at 50% 45%, #10241f, #0d1110 72%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tglobe { background: radial-gradient(circle at 50% 45%, #10241f, #0d1110 72%); } }
.tglobe canvas { display: block; width: 100%; aspect-ratio: 1 / 1; max-height: calc(100vh - var(--top) - 90px); cursor: grab; touch-action: none; }
.tglobe canvas:active { cursor: grabbing; }
.md .tglobe-hint { margin: 0; padding: 10px 16px 14px; text-align: center; font-size: 12.5px; color: var(--faint); }
.tcol .tf { margin-bottom: 14px; }
.tcol .tf-row { gap: 10px; }
.tcol .tf-k { width: 56px; }
.tlist { display: grid; gap: 10px; }
.tlist .tc2 { display: grid; grid-template-columns: 74px 1fr; border-radius: 16px; }
.tlist .tc2.on { border-color: color-mix(in srgb, var(--gold) 70%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.tlist .tc2:hover { transform: none; }
.tc2-flags { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 24px; line-height: 1.15; background: var(--surface-2); border-right: 1px solid var(--border); }
.tlist .tc2-body { padding: 12px 14px; gap: 5px; }
.tlist .tc2-title { font-size: 1.05rem; }
.tlist .mbar { padding-top: 4px; max-width: 360px; }
.td-map { aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface-2) 75%); }
:root[data-theme="dark"] .td-map { background: radial-gradient(circle at 50% 45%, #10241f, #0d1110 75%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .td-map { background: radial-gradient(circle at 50% 45%, #10241f, #0d1110 75%); } }
.td-globe { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
@media (max-width: 1000px) {
  .tlayout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tglobe { position: relative; top: 0; }
  .tglobe canvas { aspect-ratio: 4 / 3; max-height: 420px; }
}
@media (max-width: 720px) {
  .tglobe { border-radius: 20px; margin: 0 -4px; }
  .tglobe canvas { aspect-ratio: 1 / 1; max-height: 360px; touch-action: pan-y; }
  .md .tglobe-hint { padding-top: 4px; }
  .tlist .tc2 { grid-template-columns: 58px 1fr; }
  .tc2-flags { font-size: 20px; }
}
.tcol, .tglobe { min-width: 0; }
.tf > *, .tf-row > * { min-width: 0; max-width: 100%; }

/* 英文品牌名较宽：小屏搜索框收成图标，避免顶栏撑出横向滚动 */
.brand { flex-shrink: 0; }
.brand-text b { white-space: nowrap; }
@media (max-width: 480px) {
  .brand-text b { font-size: 15px; letter-spacing: .01em; }
  .search-trigger { flex: 0 0 38px; width: 38px; margin-left: auto; justify-content: center; padding: 0; }
  .search-trigger span { display: none; }
}

/* 国家页：永居 / 入籍 / 双重国籍 */
.ch-id { margin-top: 14px; border: 1px dashed var(--border); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ch-id dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.ch-id dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ch-id dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.ch-id p { margin: 10px 0 0; font-size: 12.5px; color: var(--warning); line-height: 1.5; }
@media (max-width: 720px) { .ch-id dl { grid-template-columns: 1fr; } }
.ch-id.multi p.ch-id-n { margin: 10px 0 6px; color: var(--text); font-weight: 700; font-size: 13px; }
.ch-id.multi p.ch-id-n:first-child { margin-top: 0; }
.tool-head .hh-cta { margin-top: 18px; }

/* 联系我们 */
.ct-card { border: 1px solid var(--border); border-radius: 18px; padding: 22px; background: var(--surface); display: grid; gap: 12px; max-width: 560px; }
.ct-mail { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.ct-mail span { font-size: 12px; color: var(--muted); }
.ct-mail b { font-size: 24px; color: var(--accent-ink); word-break: break-all; }
.ct-resp { margin: 0; font-size: 13px; color: var(--muted); }

/* 资讯 */
.news-list { display: grid; gap: 12px; margin: 16px 0 28px; }
.news-card { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); }
.news-card:hover { border-color: var(--accent); }
.news-card b { font-size: 17px; }
.news-card span:last-child:not(.news-meta) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.news-meta { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.news-card .news-meta { margin: 0; }
