:root{--primary-color:#17bebb;--secondary-color:#2ec4b6;--danger-color:#ef4444;--warning-color:#f59e0b;--bg-light:#f8fafc;--text-dark:#1e293b;--card-bg:#ffffff;--timeline-color:#e2e8f0}*{box-sizing:border-box}body{margin:0;font-family:'Noto Sans TC',-apple-system,sans-serif;background:var(--bg-light);color:var(--text-dark);height:100vh;display:flex;flex-direction:column;overflow:hidden}.bus-header{margin-top:60px;padding:1.5rem 5%;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;display:flex;justify-content:space-between;align-items:center;box-shadow:0 4px 12px rgba(0,0,0,.1);z-index:1000}.bus-title{display:flex;flex-direction:column;gap:8px}.bus-name{font-size:24px;font-weight:800;letter-spacing:.5px}.bus-no{font-size:48px;font-weight:900;opacity:.95}.route-selector{display:flex;gap:10px;margin-top:5px}.route-btn{padding:6px 18px;border-radius:50px;border:1.5px solid rgba(255,255,255,.4);background:0 0;color:#fff;cursor:pointer;font-weight:700;transition:.3s}.route-btn.active{background:#fff;color:var(--primary-color);border-color:#fff}.fare-btn{background:#fc0;color:#6d4c00;padding:6px 15px;border-radius:50px;border:none;cursor:pointer;font-weight:700;transition:.3s}.bus-layout{flex:1;display:grid;grid-template-columns:400px 1fr}.stop-panel{background:#fff;border-right:1px solid #eef2f6;display:flex;flex-direction:column}.stop-panel h3{margin:0;padding:18px 25px;font-size:17px;font-weight:800;border-bottom:1px solid #f1f5f9;background:#fff}#stop-list{list-style:none;flex:1;min-height:100%}.bus-layout{display:grid;grid-template-columns:400px 1fr;height:calc(100vh - 160px);overflow:hidden}.stop-panel{display:flex;flex-direction:column;height:100%;overflow:hidden}#stop-list{flex:1;overflow-y:auto;padding:0 0 100px;margin:0}.stop{min-height:80px;display:flex;align-items:center;padding:15px 25px;border-bottom:1px solid #f8fafc;transition:background .3s;cursor:pointer}.stop:hover{background:#f1faff}.timeline{width:35px;display:flex;flex-direction:column;align-items:center;position:relative;margin-right:15px}.timeline .dot{width:12px;height:12px;border-radius:50%;background:#cbd5e1;z-index:2;border:2.5px solid #fff;box-shadow:0 0 0 1px #cbd5e1}.timeline .line{position:absolute;top:15px;bottom:-20px;width:2px;background:var(--timeline-color)}.stop:last-child .line{display:none}.stop-content{flex:1;display:flex;justify-content:space-between;align-items:center}.stop-name{font-size:16px;font-weight:600;color:#475569}.eta-badge{padding:6px 14px;border-radius:8px;font-size:13px;font-weight:800;min-width:80px;text-align:center;background:#f1f5f9;color:#94a3b8}.stop.arriving .dot{background:var(--danger-color);box-shadow:0 0 0 1px var(--danger-color)}.stop.arriving .stop-name{color:var(--danger-color)}.stop.arriving .eta-badge{background:var(--danger-color);color:#fff;animation:1s infinite alternate blink}.stop.next .dot{background:var(--warning-color);box-shadow:0 0 0 1px var(--warning-color)}.stop.next .stop-name{color:var(--text-dark)}.stop.next .eta-badge{background:var(--warning-color);color:#fff}@keyframes blink{from{opacity:1;transform:scale(1)}to{opacity:.8;transform:scale(1.02)}}.map-panel{position:relative}#bus-map{width:100%;height:100%;background:#f5f6fa}.bus-stop-icon .bus-stop{width:22px;height:22px;background:#334155;color:#fff;border:2px solid #fff;border-radius:50%;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 5px rgba(0,0,0,.2)}.bus-marker-icon{display:flex;flex-direction:column;align-items:center}.bus-pointer{width:32px;height:32px;background:var(--danger-color);border:2px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 8px rgba(239,68,68,.4)}.bus-pointer i{transform:rotate(45deg);color:#fff;font-size:15px}.bus-plate{background:#1e293b;color:#fff;padding:2px 7px;border-radius:4px;font-size:11px;margin-top:5px;font-weight:700;white-space:nowrap}@media (max-width:800px){.bus-layout{grid-template-columns:1fr}.map-panel{height:45vh;order:1}.stop-panel{height:55vh;order:2;border-right:none}.bus-header{padding:12px 15px}.bus-no{font-size:32px}}.visitor-section{background:#fff;border-top:1px solid #eee;padding:10px;font-size:13px;text-align:center;color:#94a3b8}