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

/* ---------- Hero：与专线页 .route-hero 同款深蓝渐变 ---------- */
.tpl-hero {
  background: linear-gradient(110deg, #0d4f86, #136e99);
  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;
}

/* ---------- 信息条：白底卡片，数字用等宽字体 ---------- */
.tpl-facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.tpl-facts-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.tpl-fact { background: #fff; padding: 18px 4px; display: flex; flex-direction: column; gap: 6px; }
.tpl-fact-label { font-size: 12px; color: var(--muted); }
.tpl-fact-value {
  font: 700 17px var(--mono);
  color: var(--blue);
  overflow-wrap: anywhere;
}

/* ---------- 主体：与专线页 .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-index {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 21px;
  margin-right: 2px;
  border-radius: 6px;
  background: #e3eef8;
  color: var(--blue);
  font: 700 11px var(--mono);
  letter-spacing: .04em;
}
.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-dark { background: var(--blue); border-color: var(--blue); }
.tpl-card-muted { background: var(--paper); }
.tpl-card-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.tpl-card-dark .tpl-card-title { color: #fff; }
.tpl-card-sub {
  margin: 0 0 12px;
  font: 600 10px var(--mono);
  letter-spacing: .12em;
  color: var(--muted);
}
.tpl-card-dark .tpl-card-sub { color: var(--yellow); }
.tpl-card-text { margin: 0 0 18px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.tpl-card-dark .tpl-card-text { color: rgba(255, 255, 255, .78); }

.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; }
/* 深蓝卡内的次要按钮 */
.tpl-card-dark .tpl-btn { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.tpl-card-dark .tpl-btn:hover { background: rgba(255, 255, 255, .12); border-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-facts-inner, .tpl-body { padding-left: 18px; padding-right: 18px; }
  .tpl-city-name { font-size: 26px; }
  .tpl-title { font-size: 19px; }
  .tpl-facts-inner { grid-template-columns: repeat(2, 1fr); }
  .tpl-main { padding: 24px 20px; }
  .tpl-section { margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .tpl-facts-inner { grid-template-columns: 1fr; }
  .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}
