/* 15 · 地铁换乘路线 ——「线路图导乘台」：白底线路图 / 彩色线 / 换乘双环 / 路线卡 */
.gl12[data-page="metro-transfer-plan"] {
    --a1: #2f62c9;
    --a1-deep: #1e4294;
    --a1-soft: #e7eefc;
    --a2: #e2762e;
    --a2-soft: #fdf0e5;
    --font-display: var(--gl-font);
    --font-num: var(--gl-mono);
    --page-bg: linear-gradient(180deg, #eef3fd 0, #f7f9fd 300px), #f7f9fd;
    --l1: #2f7ee0; --l2: #e58a2b; --l3: #2b9e78; --l4: #8a63d2;
}
:root[data-theme="dark"] .gl12[data-page="metro-transfer-plan"] {
    --a1: #8db0f5;
    --a1-deep: #b6cbfb;
    --a1-soft: rgba(141, 176, 245, .15);
    --a2: #f0a76b;
    --a2-soft: rgba(240, 167, 107, .15);
    --page-bg: linear-gradient(180deg, #111a2b 0, #0d1117 300px), #0d1117;
    --l1: #6aa8f5; --l2: #f0b060; --l3: #61cba5; --l4: #b699ef;
}

.mt-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); gap: 32px; padding: 28px 0 26px; align-items: center; }
.mt-hero .gl-h1 { font-size: clamp(33px, 4.3vw, 50px); font-weight: 850; letter-spacing: -.04em; }
.mt-hero .gl-h1 em { font-size: .7em; color: var(--a1); }
.mt-hero .gl-sub { max-width: 48ch; }
.mt-hero .gl-value { border-radius: 5px; font-weight: 600; }
.mt-hero-note { margin-top: 18px; font-size: 13px; color: var(--gl-mute); border-left: 3px solid var(--a2); padding-left: 12px; }
.mt-hero-note b { color: var(--a2); }

.mt-console {
    background: var(--gl-card); border: 1px solid var(--gl-line); border-radius: 20px;
    padding: 22px; box-shadow: 0 16px 44px rgba(37, 76, 150, .11);
}
:root[data-theme="dark"] .mt-console { box-shadow: var(--gl-shadow-2); }
.mt-console-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.mt-console-h b { font-size: 18px; font-weight: 800; }
.mt-console-h span { font-size: 12px; color: var(--gl-mute); }
.mt-od { display: grid; grid-template-columns: 1fr 38px 1fr; gap: 8px; align-items: end; }
.mt-swap {
    height: 41px; border: 1px solid var(--gl-line); background: var(--gl-card-2); color: var(--a1);
    border-radius: 10px; cursor: pointer; font-size: 18px; transition: transform .2s;
}
.mt-swap:hover { transform: rotate(180deg); }
.mt-weights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.mt-weights .gl-input { font-family: var(--font-num); }
.mt-avoid { margin: 13px 0 0; }
.mt-console-actions { margin-top: 16px; }
.mt-console-actions .gl-btn-main { flex: 1 1 160px; }
.mt-console .gl-msg { border-top: 1px dashed var(--gl-line); padding-top: 10px; margin-top: 13px; }

.mt-map-panel { padding: 22px 24px; }
.mt-net { min-height: 108px; font-family: var(--font-num); }
.mt-diagram { margin-top: 18px; display: grid; gap: 10px; }
.mt-line-row {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px;
    background: var(--gl-card-2); border-radius: 12px; overflow-x: auto;
}
.mt-line-name {
    flex: 0 0 62px; font-size: 12px; font-weight: 800; color: #fff;
    background: var(--lc, var(--a1)); border-radius: 6px; padding: 4px 6px; text-align: center;
}
.mt-line-stations { display: flex; align-items: center; flex: 1 1 auto; min-width: max-content; }
.mt-seg { width: 22px; height: 5px; background: var(--lc, var(--a1)); flex: 0 0 22px; }
.mt-station { position: relative; display: grid; place-items: center; }
.mt-station i {
    display: block; width: 13px; height: 13px; border-radius: 50%;
    background: var(--gl-card); border: 3px solid var(--lc, var(--a1));
}
.mt-station.is-transfer i { width: 18px; height: 18px; border-width: 3px; box-shadow: 0 0 0 3px var(--gl-card), 0 0 0 5px var(--a2); }
.mt-station.is-on i { background: var(--a2); border-color: var(--a2); }
.mt-station span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--gl-mute); white-space: nowrap; }
.mt-line-row { padding-bottom: 27px; }

.mt-kpis { margin-bottom: 18px; }
.mt-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.mt-route {
    border: 1px solid var(--gl-line); border-radius: 16px; background: var(--gl-card-2);
    padding: 16px; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.mt-route:hover, .mt-route.is-active { transform: translateY(-3px); border-color: var(--a1); box-shadow: var(--gl-shadow); }
.mt-route-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mt-route-h b { font-size: 15px; font-weight: 800; }
.mt-route-h span { font-family: var(--font-num); font-size: 20px; font-weight: 800; color: var(--a1); }
.mt-route-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.mt-route-path { font-size: 12.5px; color: var(--gl-sub); line-height: 1.8; word-break: break-all; }
.mt-route-path b { color: var(--a2); }
.mt-segline { display: flex; align-items: center; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.mt-segline i { height: 6px; width: 28px; border-radius: 99px; display: inline-block; }

.mt-batch { min-height: 76px; }
.mt-batch-actions { margin-top: 12px; }
.mt-batch-table { margin-top: 14px; }
.mt-ai-panel { border-style: dashed; }
.mt-ai-out {
    margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--a1-soft);
    color: var(--gl-ink); font-size: 14px; line-height: 1.9; white-space: pre-wrap;
}

@media (max-width: 980px) {
    .mt-hero { grid-template-columns: 1fr; gap: 20px; }
    .mt-console { max-width: 660px; }
}
@media (max-width: 560px) {
    .mt-od { grid-template-columns: 1fr; gap: 10px; }
    .mt-swap { height: 32px; width: 44px; justify-self: center; }
    .mt-weights { grid-template-columns: repeat(3, 1fr); }
    .mt-hero .gl-h1 { font-size: 32px; }
}
