@charset "UTF-8";
/*!
 * 线路通 · route.css
 *
 * 只给线路频道：城市页、线路页、省页、方式页与三个列表页。含线路布局、途经点时间线、方式切换、FAQ、报价提示。
 *
 * 拆分依据：19 类页面 × 2 个视口实测的 CSS coverage。
 * 本文件是拆分的产物，之后直接在这里改样式；重新跑 .tools/css-split.mjs 会覆盖它。
 */



/* 带运输方式选择的查询框：起点 / 交换 / 终点 / 方式 / 查询 */
.search-grid.has-mode {
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 132px 142px;
}


.swap-btn:hover {
  color: var(--navy);
  border-color: var(--navy);
}


.route-card:hover {
  border-color: var(--navy-line);
  box-shadow: var(--shadow-sm);
  color: inherit;
}


.mode-card:hover {
  border-color: var(--navy-line);
}


table.data td.num {
  font-variant-numeric: tabular-nums;
}


.answer-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}


.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


.answer-cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
}


.answer-cell:last-child {
  border-right: 0;
}


.answer-cell .label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}


.answer-cell .value {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}


.answer-cell .value small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}


.answer-note {
  border-top: 1px solid var(--line-soft);
  background: #fbfcfe;
  padding: 10px 18px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}


/* ---------- route layout ---------- */
.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding: 26px 0 60px;
}


.route-main {
  min-width: 0;
}


.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}


.panel h3 {
  font-size: 14px;
  margin-bottom: 10px;
}


/* 标题带了右侧徽标时，h2 被包进 .sec-title，上面那条选不中它——
   字号与下边距在这里补一份，两个写法看起来必须一样 */
.block > .sec-title {
  margin-bottom: 6px;
}


.block > .sec-title h2 {
  font-size: 19px;
}


.prose strong {
  color: var(--navy);
  font-weight: 600;
}


/* ---------- waypoints ---------- */
.timeline {
  /* 竖线与圆点共用一条中线：--tl-axis 是它到列表左边缘的距离。
     两端都从它推算，改轴的位置不用分别调两处 left。
     圆点 8px 是含边框的外径（全局 border-box），半径按 4 算。 */
  --tl-axis: 7px;
  --tl-dot: 8px;
  --tl-indent: 22px;
  position: relative;
  padding-left: var(--tl-indent);
  margin: 0;
  list-style: none;
}


.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--tl-axis) - 1px);
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed #cbd8e6;
}


.timeline li {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}


.timeline li::before {
  content: "";
  position: absolute;
  /* li 的 padding box 起点在 --tl-indent 处，圆点要退回到中线上 */
  left: calc(var(--tl-axis) - var(--tl-indent) - var(--tl-dot) / 2);
  top: 14px;
  box-sizing: border-box;
  width: var(--tl-dot);
  height: var(--tl-dot);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy-mute);
}


.timeline li.start::before,
.timeline li.end::before {
  background: var(--navy);
  border-color: var(--navy);
}


.timeline .km {
  color: var(--muted-2);
  font-size: 12px;
}


/* ---------- faq ---------- */
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  margin-bottom: 8px;
}


details.faq summary {
  cursor: pointer;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}


details.faq summary::after {
  content: "+";
  color: var(--muted-2);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}


details.faq[open] summary::after {
  content: "\2212";
}


details.faq .faq-body {
  padding: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}


/* ---------- 报价提示 ---------- */

/* 标题 + 右侧徽标的一行。徽标必须是 <h2> 的兄弟而不是子元素：
   展开的说明留在标题里的话，整段文字会被算进标题的可读名里。
   定位基准放在这里（而不是徽标本身），说明才能比徽标宽。 */
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  min-width: 0;
}


/* 价格区块抬头的小徽标。挂在标题行里，让「参考价」三个字和价格同一个视区——
   以前是页面顶部一条橙色横幅，滚到价格时早出屏了，等于没提醒。
   点它展开说明：<details> 原生可点、可键盘操作，没 JS 也不失效。 */
.price-tag {
  flex: none;
  margin: 0;
  /* 故意不设 position：展开的说明以 .sec-title 为基准，宽度不受徽标本身限制 */
}


.price-tag > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}


.price-tag > summary::-webkit-details-marker {
  display: none;
}


.price-tag > summary:hover,
.price-tag[open] > summary {
  border-color: var(--accent);
  background: #fff;
}


.price-tag > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}


.price-tag > summary svg {
  width: 12px;
  height: 12px;
  flex: none;
}


/* 展开的说明压在下面的内容上，所以要有实底、描边和投影，否则和表格线糊在一起。
   小尖角指向标题，让人一眼看出这块是「从这个标题长出来的」，而不是盖在表格上的异物。 */
.price-tag-pop {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 60;
  width: 420px;
  /* 窄屏留 40px：这一层块的左边距通常是 15–31px，再留 9px 才不会贴到屏幕边 */
  max-width: calc(100vw - 40px);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(var(--navy-rgb), 0.14);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
  text-align: left;
  white-space: normal;
  animation: price-tag-in 0.14s ease-out;
}


.price-tag-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}


.price-tag-pop-title {
  color: var(--navy);
  font-weight: 600;
}


.price-tag-pop-text {
  margin-top: 3px;
  color: var(--muted);
}


.price-tag-pop-links {
  margin-top: 7px;
  font-size: 12.5px;
}


.price-tag-pop-links a {
  color: var(--accent-dark);
}


.price-tag-pop-links a:hover {
  color: var(--accent);
}


/* 贴在价格卡里时（线路页 / 城市页的首屏概览卡），它是卡片的最后一行：
   左右留白交给卡片，底色对齐 .answer-note，只靠一条实线跟上面的数字隔开。 */
.answer-card > .price-note {
  margin: 0;
  padding: 0 18px;
  border-top: 1px solid var(--line-soft);
  background: #fbfcfe;
}


.answer-card > .price-note > summary {
  padding: 9px 0 10px;
}


.answer-card > .price-note .price-note-body {
  margin: 0 0 12px;
}


@media (max-width: 1080px) {
  .route-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ---------- 线路页：运输方式切换 ---------- */
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  margin: 14px 0 16px;
  background: #f1f4f9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}


.mode-tab {
  flex: 1 1 auto;
  min-width: 84px;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}


.mode-tab:hover {
  background: #e6ebf3;
  color: var(--navy);
}


.mode-tab.is-active {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(var(--shade-rgb), 0.12);
}


.mode-panel {
  margin-top: 6px;
}


.mode-panel[hidden] {
  display: none;
}


.mode-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}


.mode-head h3 {
  margin: 0;
  font-size: 17px;
}


.mode-lead,
.mode-speed {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}


.mode-speed {
  margin: 0 0 12px;
}


.mode-more {
  font-size: 13px;
  color: var(--blue);
  white-space: nowrap;
  padding-top: 4px;
}


.mode-sub {
  margin: 20px 0 8px;
  font-size: 15px;
}


.mode-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}


.mode-split {
  margin-top: 18px;
}


.mode-label {
  margin: 10px 0 4px;
  font-size: 12px;
  color: var(--muted-2);
}


/* 键值对照表：只有两列，不套 .table-scroll —— 取消 table.data 的 560px 最小宽度，
   窄屏让说明文字换行，而不是把整页撑宽（选择器要压过 table.data，故写成双类） */
table.data.data-plain {
  min-width: 0;
}


table.data.data-plain th {
  background: transparent;
  font-weight: 600;
  white-space: normal;
}


/* 说明文字换行后，标签顶对齐比居中对齐更好读 */
table.data.data-plain th,
table.data.data-plain td {
  vertical-align: top;
}


.tight-list-num {
  padding-left: 20px;
}


.tight-list-warn li::marker {
  color: var(--muted-2);
}


.mode-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}


/* 线路页两端的物流设施（紧凑列表，不用大卡片，避免把线路页撑长） */
.facility-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}


.facility-mini-list li {
  border-bottom: 1px solid var(--line-soft);
}


.facility-mini-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px;
  text-decoration: none;
  color: inherit;
}


.fm-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.fm-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}


.fm-meta .badge {
  font-size: 11px;
  padding: 1px 6px;
}


.fm-place {
  color: var(--muted-2);
}


@media (max-width: 720px) {
  .mode-tab {
    flex: 0 0 calc(33.333% - 4px);
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
  }
  .mode-head {
    flex-direction: column;
    gap: 2px;
  }
  .fm-name {
    white-space: normal;
  }
  .facility-mini-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* ---------- 运输方式：滑块式切换 ---------- */
.mode-tabs {
  position: relative;
}


.mode-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}


.mode-tab:hover {
  background: transparent;
  color: var(--navy);
}


.mode-tab.is-active {
  background: transparent;
  box-shadow: none;
}


.mode-glider {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 1px 3px rgba(var(--shade-rgb), 0.12);
  pointer-events: none;
  transition:
    transform 0.3s var(--ease-out),
    width 0.3s var(--ease-out),
    height 0.3s var(--ease-out);
}


.mode-panel {
  animation: panel-in 0.28s var(--ease-out) both;
}


/* 5 个方式标签按 3 列换行，第二行只剩 2 个：允许拉伸填满，不留空槽 */
@media (max-width: 720px) {
  .mode-tab {
    flex: 1 1 calc(33.333% - 4px);
  }
}


/* ============================================================
   线路页：两端地址条 / 线路工具入口
   地址条放在标题下面，是因为「货从哪个镇发、送到哪个镇」才是这条线路的
   真实起点，比一个城市名有用得多。
   ============================================================ */

.ends-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}


.ends-cell {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}


.ends-from {
  border-left: 3px solid var(--blue);
}


.ends-to {
  border-left: 3px solid var(--accent);
}


.ends-tag {
  flex: none;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}


.ends-from .ends-tag {
  background: var(--blue-soft);
  color: var(--blue);
}


.ends-to .ends-tag {
  background: var(--accent-soft);
  color: var(--accent-ink);
}


.ends-body {
  min-width: 0;
}


.ends-addr {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}


.ends-chain {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}


.ends-chain a {
  color: var(--muted);
}


.ends-chain .sep {
  margin: 0 5px;
  color: var(--muted-2);
}


.ends-note {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.65;
}


/* 服务信息表左侧的二级说明（乡镇名） */
.th-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 400;
}


/* 线路专属工具入口 */
.route-tool {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-fast) ease,
    transform var(--t-base) var(--ease-out);
}


.route-tool strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}


.route-tool span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}


.route-tool em {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-style: normal;
}


@media (max-width: 720px) {
  .ends-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 16px;
  }

  .ends-cell {
    padding: 12px 13px;
  }

  .ends-addr {
    font-size: 14px;
  }
}


/* ==========================================================================
   线路页：两列布局与右侧栏
   长页面右栏放「继续查」与「要报价」两件事，正文只留这条线路本身。
   ========================================================================== */

.container-route {
  max-width: 1180px;
}


.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 26px;
  align-items: start;
}


.route-main {
  min-width: 0;
}


/* 正文模块统一外框：地址条、摘要卡、查询框、各内容块都在同一张「纸」上，
   不再出现有的模块有边框、有的模块直接铺在背景上 */
.route-main > .block {
  margin-top: 20px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}


.route-main > .block > h2:first-child,
.route-main > .block > .section-head:first-child {
  margin-top: 0;
}


.search-card-route {
  margin-top: 16px;
}


/* 页内锚点：固定页头 64px，不设偏移会把标题顶到导航底下 */
[id^='route-'] {
  scroll-margin-top: 84px;
}


/* 发货前对照清单 */
.tip-grid {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}


.tip-grid li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}


.tip-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
}


.tip-grid strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 1px;
}


.tip-more {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}


/* ---------------- 右侧栏 ---------------- */

.route-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}


.side-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}


.side-text {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}


.side-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}


.side-cta {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 62%);
  border-color: var(--accent-line);
}


.side-cta .btn-block {
  width: 100%;
}


.side-promise {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}


.side-promise li::before {
  content: '\2713';
  margin-right: 7px;
  color: var(--green);
  font-weight: 700;
}


.side-hours {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: center;
}


.side-toc,
.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}


.side-toc a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
}


.side-toc li:last-child a {
  border-bottom: 0;
}


.side-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6.5px 0;
  font-size: 12.8px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
}


.side-links li:last-child a {
  border-bottom: 0;
}


.side-links li a span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.side-links li a em {
  flex: none;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted-2);
}


.side-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
}


/* 页脚样式统一在上面「footer（极简三行）」一节，这里不再重复定义
   —— 旧版这里还有一整套 .footer-note 覆盖值（rgba 白 0.6 / 12px），会把规范里的
   var(--on-navy-2) / 12.5px 盖掉，第九轮已删。 */

/* 平板：侧栏落到正文下面，两列排；手机上一列 */
@media (max-width: 1080px) {
  .route-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .route-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .route-side .side-cta {
    grid-column: 1 / -1;
  }
}


@media (max-width: 720px) {
  .route-main > .block {
    padding: 16px 14px;
  }

  .tip-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}


@media (max-width: 640px) {
  .route-side {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* 线路页正文窄了一列，模块标题与右侧说明容易挤在一起：
   标题按内容宽度固定，说明换行到下一行，不再把「物流服务信息一览」压成两行 */
.route-main .section-head {
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 16px;
}


.route-main .section-head > * {
  flex: 0 1 auto;
  min-width: 0;
}


.route-main .section-head h2,
.route-main .section-head > div > h2 {
  flex: none;
  font-size: 19px;
  white-space: nowrap;
}


.route-main .section-head p {
  flex: 1 1 240px;
  max-width: 100%;
  margin: 0;
}


/* 窄屏别再强撑一行 */
@media (max-width: 720px) {
  .route-main .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 上面那条 flex: 1 1 240px 是给「行方向」写的 240px 最小宽度。
     一旦容器转成 column，flex-basis 就作用在**高度**上：
     说明文字只有两行，盒子却被撑到 240px，页面里就是一块大白（截图里红框那块）。
     列方向必须回收成按内容高度。 */
  .route-main .section-head p {
    flex: 0 1 auto;
  }

  .route-main .section-head h2,
  .route-main .section-head > div > h2 {
    white-space: normal;
  }
}