/* ==========================================================================
   线路详情发布页样式
   刻意复用 styles.css 的设计语言：
     主色 --blue #287766（站点薄荷深色，见文件末尾的覆盖层）· 强调 --orange #f47b38
     文字 --ink #193047 · 次要 --muted #75879a · 分割线 --line #dfe6ec
     小标签用等宽字体 + 字间距（DM Mono），大编号用等宽字体加粗
   这样发布页与全国线路页看起来是同一套设计，而不是另一个站点。
   ========================================================================== */

/* ---------- Hero：与专线页 .route-hero 同款深蓝渐变 ---------- */
.tpl-hero {
  background: linear-gradient(110deg, #1f5f52, #287766);
  color: #fff;
  padding: 68px 0 60px;
}
.tpl-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* 面包屑：等宽字体 + 灰蓝，与专线页 .route-breadcrumb 一致 */
.tpl-crumb {
  font: 11px var(--mono);
  color: rgba(255, 255, 255, .62);
  margin-bottom: 26px;
}
.tpl-crumb a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.tpl-crumb a:hover { color: #fff; text-decoration: underline; }
.tpl-crumb span { color: rgba(255, 255, 255, .58); }

/* 始发 → 目的：大字并列，箭头用半透明白 */
.tpl-cities { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.tpl-city { display: flex; flex-direction: column; gap: 6px; }
.tpl-city-label {
  font: 600 10px var(--mono);
  letter-spacing: .12em;
  color: var(--yellow);
}
.tpl-city-name { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.tpl-arrow { font-size: 24px; color: rgba(255, 255, 255, .5); padding-bottom: 6px; }

/* 服务类型：橙底小标签，呼应站内的橙色强调 */
.tpl-service {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border-radius: 2px;
}

.tpl-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  opacity: .94;
}

/* ---------- 主体：与专线页 .route-detail-grid 同构 ---------- */
.tpl-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.tpl-main { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 34px 32px; }

.tpl-section { margin-bottom: 38px; }
.tpl-section:last-child { margin-bottom: 0; }

/* 小标题：橙色等宽英文标签 + 深蓝中文标题，复用专线页 .detail-label */
.tpl-label {
  margin: 0 0 8px;
  color: var(--orange);
  font: 700 10px var(--mono);
  letter-spacing: .12em;
}
.tpl-h2 {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.tpl-p { margin: 0 0 14px; line-height: 1.95; color: #3c5265; overflow-wrap: anywhere; white-space: pre-wrap; }

.tpl-ul { margin: 0; padding-left: 2px; list-style: none; }
.tpl-li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 20px;
  line-height: 1.85;
  color: #3c5265;
}
.tpl-li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.tpl-ul-tight .tpl-li { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tpl-ul-tight .tpl-li::before { background: var(--muted); opacity: .5; }

/* ---------- 问答卡片：浅蓝底 + 左侧深蓝条 ---------- */
.tpl-faq-list { display: grid; gap: 12px; }
.tpl-faq-item { padding: 16px 18px; background: var(--paper); border-left: 3px solid var(--blue); border-radius: 3px; }
.tpl-faq-q {
  margin: 0 0 7px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
  display: flex;
  gap: 8px;
}
.tpl-faq-a { margin: 0 0 0 26px; line-height: 1.85; color: #4d6274; }

/* ---------- 侧栏 ---------- */
.tpl-aside { display: grid; gap: 18px; position: sticky; top: 18px; }

/* 咨询卡：深蓝底白字，与专线页 .consult-card 同款 */
.tpl-card { padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.tpl-card-muted { background: var(--paper); }
.tpl-card-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.tpl-card-sub {
  margin: 0 0 12px;
  font: 600 10px var(--mono);
  letter-spacing: .12em;
  color: var(--muted);
}
.tpl-card-text { margin: 0 0 18px; font-size: 13px; line-height: 1.8; color: var(--muted); }

.tpl-btn {
  display: block;
  padding: 12px 16px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--blue);
  border-radius: 3px;
  color: var(--blue);
  background: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.tpl-btn:last-child { margin-bottom: 0; }
.tpl-btn:hover { background: var(--blue); color: #fff; }
.tpl-btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.tpl-btn-primary:hover { background: #d9662a; border-color: #d9662a; color: #fff; }

/* ---------- 运输流程：编号大字，复用专线页 .route-steps 视觉 ---------- */
.tpl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.tpl-step { padding: 16px 14px; background: var(--paper); border-top: 2px solid var(--blue); border-radius: 2px; }
.tpl-step b { display: block; margin-bottom: 8px; color: var(--orange); font: 800 22px var(--mono); }
.tpl-step span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tpl-step small { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ---------- 空状态 ---------- */
.tpl-empty { max-width: 640px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.tpl-empty-text { margin: 0 0 22px; font-size: 16px; color: var(--muted); }
.tpl-empty .tpl-btn { display: inline-block; padding: 12px 28px; }

/* ---------- 响应式：断点与专线页保持一致 ---------- */
@media (max-width: 980px) {
  .tpl-body { grid-template-columns: 1fr; gap: 24px; }
  .tpl-aside { position: static; }
  .tpl-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .tpl-hero { padding: 44px 0 40px; }
  .tpl-hero-inner, .tpl-body { padding-left: 18px; padding-right: 18px; }
  .tpl-city-name { font-size: 26px; }
  .tpl-title { font-size: 19px; }
  .tpl-main { padding: 24px 20px; }
  .tpl-section { margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .tpl-steps { grid-template-columns: 1fr; }
  .tpl-city-name { font-size: 22px; }
}
/* 加载中提示：用站内灰色文字，不用额外框架 */
.tpl-loading{padding:70px 24px;text-align:center;color:var(--muted);font-size:15px}

/* ==========================================================================
 * 适配站点统一外壳（发布页现在用的是站点页头/页脚与站点样式表）
 *
 * 本文件原先照「--blue = 深蓝」写的，但站点 styles.css 里的 --blue
 * 是浅蓝灰 #84a9b8。两边一起加载时，深蓝卡片会变成浅蓝底白字、数字对比度不够。
 * 变量会沿 DOM 继承，所以在页面容器上把它重新绑回来即可，只影响这一页。
 * ========================================================================== */
.route-detail{--blue:#287766}
/* 站点页头是吸顶的，内容区补一点上边距，避免首屏贴着页头 */
.route-detail .tpl-hero{padding-top:52px}

/* ==========================================================================
 * 版式修正 + 配色（2026-10-12）
 *
 * 用户反馈：hero 蓝底太空、右边没内容、左侧小节像堆在一起、
 * 信息条左边露出一块「透明又突出」的色带、容器太窄两侧留白过多、
 * 右侧报价卡深蓝跟站点不是一套。
 *
 * 配色经过四轮（用户每次给的都是具体色值，只作用于这一页）：
 *   ① 方案 A → 青绿 #078ea7；
 *   ② 用户点名「薄荷青绿」→ 薄荷深色 #287766（正文/链接/序号/电话用色）；
 *   ③ 用户给出 #a6d7c8（站点 --mint）→ hero 底色；
 *   ④ 用户给出 #e2f7fa（页头 TY 徽标的底色）→ **hero 底色定稿**，
 *      并且把 hero 卡片从「半透明玻璃」改成白色实底 + 描边投影——
 *      #e2f7fa 太浅，半透明卡在上面几乎看不出边界。
 * 注意：这一页的正文/侧栏强调色仍是薄荷深色 #287766（第 ② 轮的结论没变），
 * 只有 hero 区域跟着底色走了冰蓝系（服务标签/卡片按钮用 #056c80 呼应徽标）。
 *
 * 那块色带的真实原因：.tpl-facts 用暖白 --paper 打底，而 .tpl-facts-inner
 * 左右各有 24px 内边距、单元格之间还有 1px gap（gap 露出 --line），
 * 在纯白页面上这几处就成了一条条灰带。
 * 处理方式：关键信息整体并进 hero 右侧卡片，这一行信息条不再渲染，
 * 下面的 .tpl-facts* 旧规则也一并删掉。
 *
 * 另外重建两处：hero 改成「左标题 + 右关键信息卡」两列；容器加宽到 1280；
 * 侧栏从深蓝块换成浅底卡片 + 青绿强调。
 * ========================================================================== */
.route-detail .tpl-hero{background:#e2f7fa;color:#13252b;padding:52px 0 46px}
/* 底色是浅色（#e2f7fa / 之前的 #a6d7c8）时，hero 里的文字/描边必须整体翻成深色，
   否则原来那套「深底白字」会全看不清。 */
.route-detail .tpl-crumb{color:rgba(19,37,43,.55)}
.route-detail .tpl-crumb a{color:rgba(19,37,43,.82)}
.route-detail .tpl-crumb a:hover{color:#13252b}
.route-detail .tpl-crumb span{color:rgba(19,37,43,.6)}
.route-detail .tpl-city-name{color:#13252b}
.route-detail .tpl-city-label{color:#9c4a22}
.route-detail .tpl-arrow{color:rgba(19,37,43,.45)}
.route-detail .tpl-title{color:#13252b;opacity:1}
/* 服务标签直接用徽标那个深青，和页头的 TY 呼应 */
.route-detail .tpl-service{background:#056c80;color:#fff}

/* ---------- Hero 放大（用户反馈：左边字太小、上面占比不够） ---------- */
.route-detail .tpl-hero{padding:74px 0 68px}
.route-detail .tpl-crumb{font-size:12px;margin-bottom:30px}
.route-detail .tpl-cities{gap:26px;margin-bottom:20px}
.route-detail .tpl-city-label{font-size:12px;letter-spacing:.14em}
.route-detail .tpl-city-name{font-size:46px;line-height:1.1;letter-spacing:-.02em}
.route-detail .tpl-arrow{font-size:30px;padding-bottom:8px}
.route-detail .tpl-service{margin:0 0 16px;padding:6px 15px;font-size:13px;border-radius:4px}
.route-detail .tpl-title{font-size:29px;line-height:1.45}
.route-detail .tpl-hero-inner{max-width:1280px;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:40px;align-items:end}
/* 关键信息卡：#e2f7fa 已经是很浅的冰蓝，纯白卡在上面几乎看不出边界，
   所以改成白色实底 + 更明显的描边与投影，让卡片立起来。 */
.route-detail .tpl-hero-card{background:#fff;border:1px solid rgba(5,108,128,.18);border-radius:12px;padding:20px 22px;box-shadow:0 1px 2px rgba(19,37,43,.04),0 14px 30px -22px rgba(5,108,128,.5)}
.route-detail .tpl-hero-card-head{margin:0 0 14px;font:700 10px var(--mono);letter-spacing:.12em;color:#056c80}
.route-detail .tpl-hero-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.route-detail .tpl-hero-fact{display:grid;gap:4px;min-width:0}
.route-detail .tpl-hero-fact-label{font-size:11.5px;color:rgba(19,37,43,.6)}
.route-detail .tpl-hero-fact-value{font-size:14.5px;font-weight:600;color:#13252b;line-height:1.5;overflow-wrap:anywhere}
.route-detail .tpl-hero-card-btn{display:inline-block;margin-top:16px;padding:9px 16px;border-radius:999px;background:#056c80;color:#fff;font-size:13px;font-weight:600;text-decoration:none}
.route-detail .tpl-hero-card-btn:hover{background:#045463}

/* 正文段落：段首空两格（中文排版习惯）。
   用 text-indent 而不是在文本里塞全角空格——整理引擎会 trim 每行，
   塞空格也留不住；用 CSS 缩进对历史数据与新建内容一起生效。 */
.route-detail .tpl-p{text-indent:2em}
/* 取送范围是列表项，不缩进（缩进会让「· 」标记与文字错位） */
.route-detail .tpl-ul .tpl-li,
.route-detail .tpl-ul-tight .tpl-li{text-indent:0}
/* FAQ 的问与答本来就有 Q/A 前缀，不缩进 */
.route-detail .tpl-faq-q,
.route-detail .tpl-faq-a{text-indent:0}
.route-detail .tpl-hero-fact-value,
.route-detail .tpl-hero-card-text,
.route-detail .tpl-card-text,
.route-detail .tpl-step small{text-indent:0}

/* 主体：容器加宽，左右留白收窄 */
.route-detail .tpl-body{max-width:1280px;padding:40px 24px 64px;grid-template-columns:minmax(0,1fr) 340px;gap:32px}
.route-detail .tpl-main{padding:38px 40px;border-radius:12px}

/* 小节：序号 + 分隔线，让每块能分开，不再像堆在一起 */
.route-detail .tpl-section{margin-bottom:0;padding-bottom:34px;border-bottom:1px solid var(--line)}
.route-detail .tpl-section:last-child{padding-bottom:0;border-bottom:0}
.route-detail .tpl-section+.tpl-section{margin-top:34px}
.route-detail .tpl-section-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px}
.route-detail .tpl-section-num{flex:0 0 auto;font:700 26px/1 var(--mono);color:#287766;opacity:.5}
.route-detail .tpl-section-titles{min-width:0}
.route-detail .tpl-section-titles .tpl-label{margin-bottom:6px}
.route-detail .tpl-section-titles .tpl-h2{margin:0}

/* 侧栏：浅底卡片 + 青绿强调，替换原来的深蓝块 */
.route-detail .tpl-aside{display:grid;gap:16px;align-content:start;position:sticky;top:104px}
.route-detail .tpl-card{border-radius:12px;padding:20px 22px}
.route-detail .tpl-card-quote{background:linear-gradient(180deg,#f2f9f6,#fff 65%);border:1px solid #cfe3db}
.route-detail .tpl-card-quote .tpl-card-sub{color:#287766}
.route-detail .tpl-card-links,.route-detail .tpl-card-muted{background:#fff;border:1px solid var(--line)}
.route-detail .tpl-phone{display:block;margin:4px 0 14px;font:700 24px/1.2 var(--mono);color:#287766;text-decoration:none;font-variant-numeric:tabular-nums}
.route-detail .tpl-phone:hover{color:#1f5f52}
.route-detail .tpl-link-list{display:grid;gap:2px}
.route-detail .tpl-link{display:block;padding:9px 0;border-bottom:1px dashed var(--line);font-size:13.5px;color:#33404f;text-decoration:none}
.route-detail .tpl-link:last-child{border-bottom:0}
.route-detail .tpl-link:hover{color:#287766}
.route-detail .tpl-aside .tpl-btn{text-decoration:none;text-align:center}

@media(max-width:960px){
  .route-detail .tpl-hero-inner{grid-template-columns:1fr;gap:26px;align-items:start}
  .route-detail .tpl-body{grid-template-columns:1fr;padding:28px 20px 48px;gap:24px}
  .route-detail .tpl-main{padding:26px 22px}
  .route-detail .tpl-aside{position:static;top:auto}
}

/* 页面底色：薄荷浅底，白色内容卡才有层次（只作用于线路发布页） */
.route-detail-page{background:#f3f8f6}
.route-detail .tpl-main{box-shadow:0 1px 2px rgba(31,95,82,.05)}
