@charset "UTF-8";
/*!
 * 线路通 · doc.css
 *
 * 只给文档频道：指南、工具、关于/免责/联系、三张技术说明、404。含正文排版、长表格、结论框、目录。
 *
 * 拆分依据：19 类页面 × 2 个视口实测的 CSS coverage。
 * 本文件是拆分的产物，之后直接在这里改样式；重新跑 .tools/css-split.mjs 会覆盖它。
 */



/* ---------- 404 ----------
   线索只有一个：让人三秒内认出「这是错误页」，然后有地方可去。
   所以 404 的数字是最大的一行字，说明只有两行，兜底入口全部压在下面一小块，
   不做插图、不做大 hero —— 救命入口一旦比错误信息还抢眼，用户会以为这就是主页。 */
.nf {
  max-width: 720px;
  margin: 0 auto;
  padding: 54px 0 72px;
}


.nf-code {
  margin: 0 0 10px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}


.nf-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}


.nf-lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}


.nf-search {
  margin-bottom: 26px;
}


.nf-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}


.nf-help h2 {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-3);
}


.nf-help .link-list {
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}


/* 城市名只有 2–5 个字，单列会把这栏拉成整页最高的一块，两列刚好收回来 */
.nf-help-col--cities .link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}


.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}


@media (max-width: 720px) {
  .nf {
    padding: 34px 0 46px;
  }

  .nf-code {
    font-size: 36px;
  }

  .nf-help {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}


/* ---------- 指南：结论框与目录 ---------- */
.guide-points {
  margin-top: 20px;
  padding: 16px 18px 14px 18px;
  background: #f8fafd;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
}


.guide-points h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--navy);
}


.guide-points ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.85;
  font-size: 14px;
  color: var(--ink-2);
}


.guide-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}


.guide-toc-label {
  color: var(--muted-2);
  font-size: 12px;
}


.guide-toc a {
  color: var(--blue);
  text-decoration: none;
}


.guide-toc a:hover {
  text-decoration: underline;
}


@media (max-width: 720px) {
  .guide-points ul {
    padding-left: 16px;
    font-size: 13.5px;
  }
}


/* ==========================================================================
   文档页（数据口径与免责说明）
   一屏能扫完的目录 + 分节卡片 + 关键数字，比一整段 prose 好读。
   ========================================================================== */

.doc-lead {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}


.doc-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}


.doc-meta-item {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}


.doc-meta-item span {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  margin-bottom: 4px;
}


.doc-meta-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}


.doc-toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}


.doc-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color var(--t-fast, 0.15s) var(--ease-out, ease), color var(--t-fast, 0.15s) var(--ease-out, ease);
}


.doc-toc a em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.8;
}


.doc-toc a:hover {
  border-color: #c9d8e8;
  color: var(--blue);
}


.doc-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.doc-card {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}


.doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}


.doc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}


.doc-card h2 {
  margin: 0;
  font-size: 17px;
}


.doc-card p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}


.doc-card p:last-child {
  margin-bottom: 0;
}


.doc-facts {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fbfcfe;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}


.doc-facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.doc-facts dt {
  font-size: 11.5px;
  color: var(--muted-2);
}


.doc-facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}


.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}


/* ---------- 说明页的补充件 ----------
   说明页里有大量「主值 + 一行小字」的结构（类别副标题、规模拆解、来源链接）
   和并列面板。这些以前靠内联 style 撑，现在收成三个类，改一次就全站生效。 */

/* 小字补充行。压在 600 字重的标题下面也要显轻，所以单独压字重 */
.doc-sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted-3);
}


/* 并列面板：卡片里的标题与段落不再需要逐个清 margin */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}


.doc-grid .panel h3 {
  margin-top: 0;
}


.doc-grid .panel p {
  margin: 0;
}


/* 表格/清单后面紧跟的一段说明，与上方留出呼吸 */
.doc-after {
  margin-top: 12px;
}


/* 页脚「相关页面」三连卡。不复用 .route-card —— 那是线路页带里程与价签的卡片，
   这里每次都要用内联样式把它的字号和内边距改回来，说明两套版式本来就不该共用 */
.doc-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}


.doc-nav a {
  display: block;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}


.doc-nav a:hover {
  border-color: var(--navy-line);
  box-shadow: var(--shadow-sm);
}


.doc-nav b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}


.doc-nav span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-3);
}