        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; background-color: #f0f4f8; min-height: 100vh; display: flex; flex-direction: column; }

        /* ===== 顶部标题栏 ===== */
        .header { background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 100%); color: white; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .header h1 { font-size: 20px; font-weight: 600; }
        .header-right { display: flex; align-items: center; gap: 16px; }
        .header-right .current-time { font-size: 15px; font-weight: 500; }
        .online-indicator { display: flex; align-items: center; gap: 6px; font-size: 14px; }
        .online-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.6); animation: pulse 2s infinite; }
        @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

        .container { display: flex; flex: 1; overflow: hidden; }
        .sidebar { width: 220px; background-color: #1a365d; color: white; padding: 0; overflow-y: auto; flex-shrink: 0; }
        .sidebar-title { font-size: 15px; font-weight: 700; padding: 12px 20px; color: #67e8f9; border-bottom: 1px solid #2d4a6f; background: linear-gradient(90deg, rgba(6,182,212,0.18) 0%, transparent 100%); border-left: 3px solid #06b6d4; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
        .nav-item { padding: 12px 24px; cursor: pointer; transition: all 0.3s ease; font-size: 14px; position: relative; }
        .nav-item:hover { background-color: #2c5282; }
        .nav-item.active { background-color: #2c5282; border-left: 4px solid #4facfe; }
        .nav-group-title { padding: 8px 20px 4px; font-size: 12px; color: #6b7280; font-weight: 600; }

        .main-content { flex: 1; padding: 20px; overflow-y: auto; background-color: #f0f4f8; }
        .page { display: none; animation: fadeIn 0.3s ease; }
        .page.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* ===== 统计卡片 ===== */
        .stats-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
        .stat-card { background: white; padding: 16px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; border-top: 3px solid #2E75B6; transition: transform 0.2s; }
        .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .stat-card .label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
        .stat-card .value { font-size: 22px; font-weight: 700; color: #1F4E79; }
        .stat-card .sub { font-size: 11px; margin-top: 4px; color: #6b7280; }
        .stat-card .sub.green { color: #10b981; }
        .stat-card .sub.blue { color: #2E75B6; }
        .stat-card .sub.red { color: #ef4444; }

        /* ===== 搜索筛选栏 ===== */
        .filter-bar { background: white; padding: 14px 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
        .filter-item { display: flex; align-items: center; gap: 5px; }
        .filter-item label { font-size: 12px; color: #4b5563; white-space: nowrap; }
        .filter-item select, .filter-item input { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; }
        .search-box { flex: 1; min-width: 220px; }
        .search-box input { width: 100%; padding: 7px 12px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; }
        .btn { padding: 7px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap; }
        .btn-primary { background: #1F4E79; color: white; }
        .btn-primary:hover { background: #2E75B6; }
        .btn-secondary { background: white; color: #4b5563; border: 1px solid #d1d5db; }
        .btn-secondary:hover { background: #f3f4f6; }

        /* ===== 数据表格 ===== */
        .table-panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; }
        .table-header { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e5e7eb; }
        .table-title { font-size: 15px; font-weight: 600; color: #1F4E79; }
        .table-count { font-size: 13px; color: #6b7280; }
        .table-count strong { color: #1F4E79; font-size: 15px; }
        .table-wrapper { overflow-x: auto; }
        .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
        .data-table th { background: #1F4E79; color: white; padding: 10px 10px; text-align: left; font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 1; font-size: 13px; }
        .data-table td { padding: 9px 10px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
        .data-table tbody tr:hover { background: #E8F4F8; }
        .data-table .row-num { color: #9ca3af; font-size: 11px; }
        .row-alert { background: #fef2f2 !important; }
        .row-alert:hover { background: #fee2e2 !important; }

        .status-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 500; }
        .status-driving { background: #d1fae5; color: #065f46; }
        .status-static { background: #dbeafe; color: #1e40af; }
        .status-parked { background: #f3f4f6; color: #4b5563; }
        .status-offline { background: #f3f4f6; color: #9ca3af; }

        .action-link { font-size: 12px; color: #2E75B6; cursor: pointer; margin-right: 8px; }
        .action-link:hover { text-decoration: underline; }

        /* ===== 分页 ===== */
        .pagination { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e5e7eb; }
        .pagination-info { font-size: 12px; color: #6b7280; }
        .pagination-btns { display: flex; gap: 4px; }
        .pagination-btns button { padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 4px; background: white; cursor: pointer; font-size: 12px; }
        .pagination-btns button.active { background: #1F4E79; color: white; border-color: #1F4E79; }
        .pagination-btns button:disabled { opacity: 0.5; cursor: not-allowed; }

        /* ===== 底部排行面板 ===== */
        .brand-panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 16px 20px; margin-top: 16px; }
        .brand-panel-title { font-size: 15px; font-weight: 600; color: #1F4E79; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; }
        .brand-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
        .brand-item { background: #f8fafc; border-radius: 6px; padding: 10px 12px; border: 1px solid #e5e7eb; }
        .brand-name { display: flex; justify-content: space-between; font-size: 12px; color: #374151; margin-bottom: 6px; }
        .brand-count { font-weight: 700; color: #1F4E79; }
        .brand-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
        .brand-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2E75B6, #1F4E79); transition: width 0.3s; }

        /* ===== 底部辅助区域 ===== */
        .bottom-grid { display: grid; grid-template-columns: 50% 50%; gap: 16px; }
        .panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 20px; }
        .panel-title { font-size: 15px; font-weight: 600; color: #1F4E79; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; }

        /* 地图区域 */
        .map-container { position: relative; height: 320px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #e0f2fe 0%, #f0f4f8 100%); border: 1px solid #e5e7eb; }
        .map-svg { width: 100%; height: 100%; }

        /* 告警列表 */
        .alert-list { max-height: 320px; overflow-y: auto; }
        .alert-item { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #f3f4f6; font-size: 12px; align-items: center; }
        .alert-item:hover { background: #fef2f2; }
        .alert-time { color: #6b7280; font-family: monospace; min-width: 45px; font-size: 11px; }
        .alert-vehicle { font-weight: 600; color: #1F4E79; min-width: 90px; }
        .alert-plate { color: #6b7280; font-family: monospace; min-width: 80px; }
        .alert-desc { color: #374151; flex: 1; }
        .alert-distance { color: #ef4444; font-weight: 600; font-size: 11px; }

        /* 详情侧滑面板 */
        .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 99; display: none; }
        .overlay.show { display: block; }
        .slide-panel { position: fixed; top: 0; right: -520px; width: 500px; height: 100%; background: white; z-index: 100; box-shadow: -4px 0 16px rgba(0,0,0,0.15); transition: right 0.3s ease; overflow-y: auto; }
        .slide-panel.show { right: 0; }
        .slide-panel-header { background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 100%); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
        .slide-panel-header h3 { font-size: 18px; }
        .slide-panel-close { cursor: pointer; font-size: 22px; opacity: 0.8; }
        .slide-panel-close:hover { opacity: 1; }
        .slide-panel-body { padding: 20px; }
        .detail-section { margin-bottom: 20px; }
        .detail-section-title { font-size: 14px; font-weight: 600; color: #1F4E79; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
        .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .detail-item { display: flex; flex-direction: column; gap: 2px; }
        .detail-item .detail-label { font-size: 11px; color: #6b7280; }
        .detail-item .detail-value { font-size: 13px; color: #1f2937; font-weight: 500; }

        /* Embedded模式 */
        body.embedded .header { display: none; }
        body.embedded .sidebar { display: none; }
        body.embedded .container > .main-content { padding: 16px; }

        /* ===== SOC进度条 ===== */
        .soc-bar-container { display: flex; align-items: center; gap: 6px; min-width: 100px; }
        .soc-bar-bg { width: 60px; height: 14px; background: #e5e7eb; border-radius: 7px; overflow: hidden; }
        .soc-bar-fill { height: 100%; border-radius: 7px; transition: width 0.3s; }
        .soc-bar-fill.high { background: linear-gradient(90deg, #10b981, #34d399); }
        .soc-bar-fill.normal { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
        .soc-bar-fill.low { background: linear-gradient(90deg, #f97316, #fb923c); }
        .soc-bar-fill.critical { background: linear-gradient(90deg, #ef4444, #f87171); }
        .soc-text { font-size: 11px; font-weight: 700; min-width: 30px; }

        /* ===== 载重状态标签 ===== */
        .load-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; }
        .load-normal { background: #d1fae5; color: #065f46; }
        .load-over { background: #fee2e2; color: #991b1b; }

        /* ===== SOC低电量行高亮 ===== */
        .row-low-soc { background: #fff7ed !important; }
        .row-low-soc:hover { background: #ffedd5 !important; }

        /* ===== 自动刷新开关 ===== */
        .refresh-toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; cursor: pointer; }
        .toggle-switch { width: 36px; height: 18px; background: #d1d5db; border-radius: 9px; position: relative; transition: background 0.3s; }
        .toggle-switch.on { background: #10b981; }
        .toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: white; border-radius: 50%; transition: left 0.3s; }
        .toggle-switch.on::after { left: 20px; }

        /* ===== 异常事件列表 ===== */
        .event-list { max-height: 160px; overflow-y: auto; }
        .event-item { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #f3f4f6; font-size: 12px; align-items: center; }
        .event-item:hover { background: #fef2f2; }
        .event-time { color: #6b7280; font-family: monospace; min-width: 45px; font-size: 11px; }
        .event-vehicle { font-weight: 600; color: #1F4E79; min-width: 90px; }
        .event-desc { color: #374151; flex: 1; }
        .event-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
        .event-tag-low { background: #fee2e2; color: #991b1b; }
        .event-tag-over { background: #fef3c7; color: #92400e; }
        .event-tag-speed { background: #fef3c7; color: #92400e; }
        .event-tag-fatigue { background: #fef3c7; color: #92400e; }

        /* ===== 状态评估标签 ===== */
        .eval-status { display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
        .eval-normal { background: #d1fae5; color: #065f46; }
        .eval-watch { background: #fef3c7; color: #92400e; }
        .eval-abnormal { background: #fee2e2; color: #991b1b; }

        /* ===== 异常行高亮 ===== */
        .row-watch { background: #fffbeb !important; }
        .row-watch:hover { background: #fef3c7 !important; }
        .row-abnormal { background: #fef2f2 !important; }
        .row-abnormal:hover { background: #fee2e2 !important; }

        /* ===== 电池类型标签 ===== */
        .battery-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 500; }
        .battery-lfp { background: #dbeafe; color: #1e40af; }
        .battery-ncm { background: #fef3c7; color: #92400e; }
        .battery-sodium { background: #d1fae5; color: #065f46; }

        /* ===== 补能类型标签 ===== */
        .energy-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; }
        .energy-charge { background: #dbeafe; color: #1e40af; }
        .energy-swap { background: #d1fae5; color: #065f46; }

        /* ===== 充换电状态标签 ===== */
        .cs-status { display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 500; }
        .cs-charging { background: #dbeafe; color: #1e40af; }
        .cs-done { background: #d1fae5; color: #065f46; }
        .cs-interrupted { background: #fee2e2; color: #991b1b; }
        .cs-swapping { background: #dbeafe; color: #1e40af; }
        .cs-swap-done { background: #d1fae5; color: #065f46; }
        .cs-swap-error { background: #fee2e2; color: #991b1b; }

        /* ===== 正在进行中行高亮 ===== */
        .row-ongoing { background: #eff6ff !important; }
        .row-ongoing:hover { background: #dbeafe !important; }
