/* 交通出行页「交通出行提示」区块（武汉市交通运输局） */
.traffic {
  margin-top: 22px;
}
.traffic__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.tf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.tf-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.tf-item__date {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tf-item__date b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  color: var(--primary);
}
.tf-item__date span {
  font-size: 12px;
  color: var(--muted-foreground);
}
.tf-item__body {
  flex: 1 1 auto;
  min-width: 0;
}
.tf-item__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tf-item__src {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 3px;
}
.tf-item__arrow {
  flex: 0 0 auto;
  color: var(--muted-foreground);
}
.traffic__empty {
  font-size: 13px;
  color: var(--muted-foreground);
  padding: 10px 0;
}
@media (max-width: 600px) {
  .tf-item__date { width: 60px; }
  .tf-item__date b { font-size: 16px; }
}

/* ===== 公交线路详情（方案A：线路卡片 + 站点时间线） ===== */
.bus-detail{background:var(--card);border:1px solid var(--border);border-top:3px solid var(--primary);border-radius:var(--radius-lg);padding:22px 22px 26px;box-shadow:var(--shadow-md);}
.bus-detail__head{display:flex;flex-direction:column;gap:10px;padding-bottom:16px;border-bottom:2px solid var(--primary-soft);margin-bottom:4px;}
.bus-detail__top{display:flex;align-items:center;gap:10px;}
.bus-detail__ico{font-size:22px;line-height:1;}
.bus-detail__type{font-size:12.5px;color:var(--primary);background:var(--primary-soft);border-radius:999px;padding:3px 12px;font-weight:600;}
.bus-detail__title{font-size:24px;line-height:1.25;color:var(--foreground);margin:0;}
.bus-detail__route{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink-soft);flex-wrap:wrap;}
.bus-detail__term{color:var(--ink);font-weight:600;}
.bus-detail__arrow{color:var(--primary);font-weight:700;}
.bus-detail .transit-line__meta{margin-top:16px;}
.bus-detail__stops{margin-top:22px;}
.bus-detail__stops-h{font-size:13px;color:var(--ink-soft);letter-spacing:.02em;margin-bottom:12px;}
.bus-timeline{list-style:none;margin:0;padding:0;}
.bus-tl__item{position:relative;display:flex;align-items:center;gap:12px;padding:10px 0 10px 48px;min-height:24px;}
.bus-tl__item::before{content:"";position:absolute;left:12px;top:0;bottom:0;width:2px;background:var(--line);}
.bus-tl__item:first-child::before{top:50%;}
.bus-tl__item:last-child::before{bottom:50%;}
.bus-tl__dot{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:14px;height:14px;border-radius:50%;background:var(--surface);border:3px solid var(--primary);box-sizing:border-box;z-index:1;}
.bus-tl__item.is-first .bus-tl__dot,.bus-tl__item.is-last .bus-tl__dot{background:var(--primary);}
.bus-tl__idx{position:absolute;left:26px;width:16px;text-align:right;font-size:11px;color:var(--muted-foreground);font-variant-numeric:tabular-nums;}
.bus-tl__name{font-size:14.5px;color:var(--ink);}
.bus-tl__item.is-first .bus-tl__name,.bus-tl__item.is-last .bus-tl__name{font-weight:600;color:var(--foreground);}
@media (max-width:960px){.bus-detail{padding:18px 16px 22px;}.bus-detail__title{font-size:21px;}.bus-tl__item{padding-left:44px;}.bus-tl__idx{left:22px;}}

/* ===== 公交总览仪表盘（方案D 默认右栏） ===== */
.bus-overview{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:22px 22px 26px;box-shadow:var(--shadow-md);}
.bus-ov__head{margin-bottom:18px;}
.bus-ov__title{font-size:22px;line-height:1.25;color:var(--foreground);margin:0 0 6px;}
.bus-ov__sub{font-size:13.5px;color:var(--ink-soft);margin:0;}
.bus-ov__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px;}
.bus-ov__stat{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-md);padding:14px 12px;text-align:center;}
.bus-ov__n{font-size:26px;font-weight:800;line-height:1;color:var(--primary);}
.bus-ov__l{font-size:12.5px;color:var(--ink-soft);margin-top:6px;}
.bus-ov__h{font-size:14px;color:var(--ink);margin:0 0 12px;font-weight:600;}
.bus-ov__dist{margin-bottom:22px;}
.bus-ov__bars{display:flex;flex-direction:column;gap:10px;}
.bus-ov__bar{display:flex;align-items:center;gap:10px;font-size:13px;}
.bus-ov__bar-l{width:72px;flex:0 0 auto;color:var(--ink-soft);}
.bus-ov__bar-track{flex:1 1 auto;height:10px;background:var(--surface-2);border-radius:999px;overflow:hidden;}
.bus-ov__bar-fill{display:block;height:100%;background:var(--primary);border-radius:999px;}
.bus-ov__bar-n{width:42px;flex:0 0 auto;text-align:right;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;}
.bus-ov__chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;}
.bus-ov__info{margin-top:24px;}
.bus-ov__cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media (max-width:920px){.bus-ov__cards{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.bus-ov__cards{grid-template-columns:1fr;}}
.bus-ov__card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:18px 20px;box-shadow:var(--shadow-sm);}
.bus-ov__card-ttl{font-size:15px;font-weight:700;color:var(--ink);margin-bottom:12px;padding-bottom:10px;
  border-bottom:1px solid var(--line);}
.bus-ov__card-row{display:flex;justify-content:space-between;align-items:center;
  font-size:13px;padding:5px 0;border-bottom:1px solid var(--line);}
.bus-ov__card-row:last-child{border-bottom:none;}
.bus-ov__card-row span{color:var(--ink-soft);}
.bus-ov__card-row b{color:var(--ink);font-weight:600;}
.bus-ov__card-tip{font-size:13px;color:var(--ink-soft);line-height:1.6;padding:4px 0;border-bottom:1px solid var(--line);}
.bus-ov__card-tip:last-child{border-bottom:none;}
.bus-ov__chip{border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);font-size:13px;padding:7px 12px;border-radius:999px;cursor:pointer;transition:background .15s,color .15s,border-color .15s;font-family:inherit;}
.bus-ov__chip:hover{background:var(--primary-soft);color:var(--primary);border-color:var(--primary);}
.bus-detail__back{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--surface-2);color:var(--ink);font-size:13.5px;font-weight:600;font-family:inherit;padding:8px 15px 8px 12px;margin:0 0 16px;border-radius:999px;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .12s,box-shadow .15s;}
.bus-detail__back:hover{background:var(--primary-soft);border-color:var(--primary);color:var(--primary);transform:translateX(-2px);box-shadow:none;}
.bus-detail__back:active{transform:translateX(0);box-shadow:none;}
.bus-detail__back-ico{flex:0 0 auto;display:block;}
.bus-detail__back span{line-height:1;}
@media (max-width:960px){.bus-overview{padding:18px 16px 22px;}.bus-ov__title{font-size:20px;}.bus-ov__n{font-size:22px;}.bus-ov__stat{padding:12px 8px;}}
