* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { width: 100%; height: 100%; font-family: "PingFang SC","Microsoft YaHei",sans-serif; }
body { background: #0b1220; color: #d7e3f4; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
/* 地图容器必须隔离层级，否则天地图内部图层会盖住顶栏/面板 */
.mapbox { position: absolute; inset: 0; z-index: 1; isolation: isolate; }
.topbar, .cmd-left, .cmd-right, .veh-statuses, .veh-top, .taskbar { z-index: 30 !important; }
.panel { position: absolute; background: rgba(10,22,44,.92); border: 1px solid #1f4f8f; border-radius: 10px; padding: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.45); }

/* 登录 */
.login-wrap { display: flex; align-items: center; justify-content: center; height: 100%; background: radial-gradient(1200px 500px at 20% 0%, #123a6b 0%, #0b1220 55%); }
.login-card { width: 340px; background: rgba(10,22,44,.92); border: 1px solid #1f4f8f; border-radius: 14px; padding: 28px 24px; }
.login-card h1 { font-size: 20px; margin-bottom: 4px; color: #7fd0ff; }
.login-card .sub { font-size: 12px; color: #7b93b5; margin-bottom: 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: #9fb6d4; margin-bottom: 5px; }
.field input, .field select { width: 100%; padding: 9px 10px; border-radius: 7px; border: 1px solid #2b538c; background: #0e1b33; color: #e8f2ff; font-size: 14px; }
.role-cards { display: flex; gap: 8px; margin-bottom: 14px; }
.role-card { flex:1; padding: 10px 6px; text-align:center; border:1px solid #2b538c; border-radius:9px; font-size:12px; color:#9fb6d4; background:#0e1b33; }
.role-card.sel { border-color:#31b0ff; color:#7fd0ff; background:#123056; }
.btn { display:inline-block; border:0; border-radius:8px; padding:10px 14px; font-size:14px; background:#0d5fa8; color:#fff; }
.btn:hover { background:#0e6ec0; }
.btn.block { width:100%; }
.btn.primary { background:#0d8a5f; }
.btn.danger { background:#b33a3a; }
.btn.warn { background:#c07c16; }
.btn.ghost { background:transparent; border:1px solid #2b538c; color:#bcd2ec; }
.btn.sm { padding:5px 9px; font-size:12px; border-radius:6px; }
.err { color:#ff8b8b; font-size:12px; min-height:16px; margin-top:6px; }

/* 顶部 */
.topbar { position:absolute; top:0; left:0; right:0; height:48px; display:flex; align-items:center; gap:12px; padding:0 14px; background:linear-gradient(90deg,#0a162e,#12355f); border-bottom:1px solid #1f4f8f; z-index:20; }
.topbar .t { font-size:17px; font-weight:700; color:#7fd0ff; }
.topbar .who { font-size:12px; color:#8fb0d8; }
.topbar .sp { flex:1; }
.topbar button { border:1px solid #2b538c; background:#0e1b33; color:#cfe4fb; border-radius:7px; padding:5px 11px; font-size:12px; }

/* 指挥端左栏 */
.cmd-left { left:10px; top:58px; bottom:10px; width:280px; display:flex; flex-direction:column; z-index:15; }
.cmd-left h2 { font-size:14px; color:#9fd4ff; margin-bottom:8px; }
.veh-list { flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:7px; }
.veh { border:1px solid #244a7d; background:#0e1c36; border-radius:9px; padding:8px 9px; }
.veh .r1 { display:flex; justify-content:space-between; align-items:center; }
.veh .code { font-weight:700; font-size:14px; }
.veh .st { font-size:11px; padding:2px 7px; border-radius:20px; color:#0b1220; font-weight:600; }
.veh .meta { font-size:11px; color:#8fb0d8; margin:5px 0; }
.veh .ops { display:flex; gap:6px; flex-wrap:wrap; }
.dot-on { width:7px;height:7px;border-radius:50%;background:#1fd665;display:inline-block;margin-right:5px; }
.dot-off { width:7px;height:7px;border-radius:50%;background:#6b7b92;display:inline-block;margin-right:5px; }

.cmd-right { right:10px; top:58px; bottom:10px; width:230px; z-index:15; overflow-y:auto; }
.cmd-right h2 { font-size:13px; color:#9fd4ff; margin-bottom:7px; }
.task-item { font-size:11px; border:1px solid #244a7d; border-radius:7px; padding:6px 7px; margin-bottom:6px; background:#0e1c36; }
.calls-now { font-size:12px; }

/* 车载端 */
.veh-statuses { position:absolute; left:50%; transform:translateX(-50%); bottom:12px; display:flex; gap:6px; flex-wrap:wrap; justify-content:center; max-width:96%; z-index:15; }
.veh-statuses .sbtn { border:1px solid #2b538c; background:#0e1c36; color:#dcebff; border-radius:18px; padding:7px 12px; font-size:12px; }
.veh-statuses .sbtn.cur { background:#0d8a5f; border-color:#0d8a5f; color:#fff; }
.veh-top { left:10px; top:58px; width:250px; z-index:15; font-size:12px; }
.veh-top .gps { margin:6px 0; color:#9fe8c0; }
.veh-top .misc { color:#8fb0d8; }
.taskbar { position:absolute; top:58px; right:10px; width:270px; z-index:15; font-size:12px; }
.taskbar .dest { color:#ffd27f; margin:4px 0; }
.mini-btn { margin-top:6px; }

/* 弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; z-index:100; }
.modal { width:min(430px,92vw); background:#0e1c36; border:1px solid #2b5d9c; border-radius:12px; padding:18px; }
.modal h3 { font-size:15px; margin-bottom:10px; color:#9fd4ff; }
.modal p { font-size:13px; color:#c7d9f0; }
.modal .row { margin:9px 0; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.modal input[type=text], .modal input[type=password] { flex:1; min-width:120px; background:#0a1730; border:1px solid #2b538c; color:#eef; padding:8px; border-radius:7px; }

.toast { position:fixed; top:60px; left:50%; transform:translateX(-50%); z-index:200; background:#0d2f52; border:1px solid #31b0ff; padding:8px 16px; border-radius:20px; font-size:13px; display:none; }
.badge { display:inline-block; padding:1px 6px; border-radius:9px; font-size:10px; margin-left:5px; vertical-align:1px; }
.ringing { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* 指挥端大屏专注模式 */
#app.big .cmd-left, #app.big .cmd-right { display: none; }
#app.big .topbar { background: linear-gradient(90deg, rgba(10,22,46,.88), rgba(18,52,92,.88)); }
#app.big .topbar .t, #app.big .topbar .who { font-size: 13px; }

/* 管理弹窗/赛事筛选 */
.evfrow { margin: 4px 0 6px; }
.evfrow select { width: 100%; background: #0c1b33; color: #d7e6ff; border: 1px solid #1c3a63; border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.adm-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.adm-scroll { max-height: 230px; overflow: auto; border: 1px solid #1c3a63; padding: 6px; border-radius: 6px; background: rgba(10, 22, 46, .4); margin-top: 4px; }
.modal select { background: #0c1b33; color: #d7e6ff; border: 1px solid #1c3a63; border-radius: 6px; padding: 5px; font-size: 12px; }
