/* 既有路線（routes.php，8 語系共用）— 2026-11 */
.rt-page { --ink:#0f172a; --sub:#64748b; --line:#e2e8f0; --bg:#f6f8fb; --blue:#2563eb; --green:#059669; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; max-width: 1200px; }
.rt-page h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.rt-page h1 i { color: var(--blue); }
.rt-page .card { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px rgba(15,23,42,.06); }
.rt-page .card .form-control, .rt-page .card .input-group-text { height: 46px; border: 1.5px solid #cbd5e1; }
.rt-page .card .input-group-text { border-right: 0; border-radius: 12px 0 0 12px; }
.rt-page .card .form-control { border-left: 0; border-radius: 0 12px 12px 0; font-size: 16px; }
.rt-page .card .form-control:focus { box-shadow: none; border-color: #cbd5e1; }
.rt-page .card .input-group:focus-within { box-shadow: 0 0 0 3px rgba(37,99,235,.15); border-radius: 12px; }
.rt-page .card .btn { height: 46px; border-radius: 12px; font-weight: 800; }
.rt-page .btn-outline-primary.btn-sm { border-radius: 999px; font-weight: 700; padding: 6px 14px; }

.rt-page .sort-pills { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.rt-page .sort-pills .btn { margin: 0 !important; border: 0; border-radius: 9px; font-weight: 800; padding: 7px 16px; background: transparent; color: #334155; }
.rt-page .sort-pills .btn:hover { background: #fff; color: var(--blue); }
.rt-page .sort-pills .btn-primary { background: #fff !important; color: var(--blue) !important; box-shadow: 0 1px 3px rgba(15,23,42,.12); }

.rt-page .route-card { display: flex; flex-direction: column; border: 0 !important; border-radius: 18px !important; padding: 0 !important; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 22px rgba(15,23,42,.06); }
.rt-page .route-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.12) !important; }
.rt-page .route-card > :not(.rt-thumb) { padding-left: 18px; padding-right: 18px; }
.rt-page .route-card > .d-flex { padding-top: 14px; }
.rt-page .route-card > .route-meta:last-child { padding-bottom: 16px; }
.rt-page .route-card.is-event { background: #fff !important; }
.rt-page .route-card-title { font-size: 16px !important; font-weight: 800 !important; color: var(--ink) !important; margin-bottom: 8px !important; }
.rt-page .route-usage { background: var(--bg) !important; color: #334155 !important; font-weight: 700; white-space: nowrap; }
.rt-page .route-meta { color: var(--sub) !important; font-size: 13px !important; }
.rt-page .route-event-badge { background: #e11d48; }
.rt-thumb { display: grid; place-items: center; height: 128px; background: radial-gradient(circle at 30% 20%, #eef4ff, #e2e8f0); border-bottom: 1px solid var(--line); }
.rt-thumb svg { width: 86%; height: 86%; overflow: visible; }
.rt-thumb .rt-line { stroke: var(--blue); }
.rt-thumb.is-event { background: radial-gradient(circle at 30% 20%, #fff1f2, #fde2e7); }
.rt-thumb.is-event .rt-line { stroke: #e11d48; }
.rt-thumb.is-empty i { font-size: 32px; color: #cbd5e1; }
.rt-page .route-card:hover .rt-line { stroke-width: 2.8; }

.rt-page .pagination .page-link { border: 0; margin: 0 3px; border-radius: 10px !important; min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #334155; font-weight: 700; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.rt-page .pagination .page-item.active .page-link { background: var(--blue); color: #fff; }
.rt-page .pagination .page-item.disabled .page-link { background: transparent; box-shadow: none; color: #cbd5e1; }
@media (max-width: 575px) {
    .rt-thumb { height: 110px; }
    .rt-page .sort-pills { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
    .rt-page .sort-pills .btn { padding: 7px 4px; }
}
