        * { 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; flex-direction: column; align-items: flex-end; gap: 2px; }
        .header-right .current-time { font-size: 15px; font-weight: 500; }
        .header-right .update-time { font-size: 12px; opacity: 0.8; }

        .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.red { color: #ef4444; }
        .stat-card .sub.split { display: flex; gap: 8px; }

        /* ===== 搜索筛选栏 ===== */
        .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-success { background: #10b981; color: white; }
        .btn-success:hover { background: #059669; }
        .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: 12px; }
        .data-table th { background: #1F4E79; color: white; padding: 9px 8px; text-align: left; font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
        .data-table td { padding: 8px 8px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
        .data-table tbody tr:hover { background: #E8F4F8; }
        .data-table .row-num { color: #9ca3af; font-size: 11px; }

        .status-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 500; }
        .status-active { background: #d1fae5; color: #065f46; }
        .status-stopped { background: #f3f4f6; color: #4b5563; }
        .status-scrapped { background: #fee2e2; color: #991b1b; }
        .status-repair { background: #fef3c7; color: #92400e; }

        .battery-tag { display: inline-block; padding: 1px 6px; 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; }

        .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: 20px; }
        .brand-panel-title { font-size: 15px; font-weight: 600; color: #1F4E79; margin-bottom: 14px; }
        .brand-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
        .brand-item { display: flex; flex-direction: column; gap: 4px; }
        .brand-name { display: flex; justify-content: space-between; font-size: 12px; }
        .brand-name .brand-count { color: #2E75B6; font-weight: 600; }
        .brand-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }

        /* ===== SOH颜色 ===== */
        .soh-excellent { color: #10b981; font-weight: 700; }
        .soh-good { color: #f97316; font-weight: 700; }
        .soh-warn { color: #ef4444; font-weight: 700; }

        /* ===== 电池状态标签 ===== */
        .batt-status-normal { background: #d1fae5; color: #065f46; }
        .batt-status-decay { background: #fef3c7; color: #92400e; }
        .batt-status-retired { background: #f3f4f6; color: #4b5563; }
        .batt-status-cascade { background: #dbeafe; color: #1e40af; }

        /* ===== 梯次利用评估标签 ===== */
        .eval-tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; }
        .eval-excellent { background: #d1fae5; color: #065f46; }
        .eval-good { background: #dbeafe; color: #1e40af; }
        .eval-medium { background: #fef3c7; color: #92400e; }
        .eval-poor { background: #fee2e2; color: #991b1b; }

        /* ===== 运营场景标签 ===== */
        .scene-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 500; }
        .scene-trunk { background: #dbeafe; color: #1e40af; }
        .scene-short { background: #d1fae5; color: #065f46; }
        .scene-mine { background: #fef3c7; color: #92400e; }
        .scene-port { background: #cffafe; color: #155e75; }
        .scene-city { background: #ffedd5; color: #9a3412; }

        /* ===== 运营评级标签 ===== */
        .grade-tag { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; font-size: 12px; font-weight: 700; }
        .grade-a { background: #d1fae5; color: #065f46; }
        .grade-b { background: #dbeafe; color: #1e40af; }
        .grade-c { background: #fef3c7; color: #92400e; }
        .grade-d { background: #fee2e2; color: #991b1b; }

        /* ===== 合同到期预警行 ===== */
        .contract-warn { background: #fffbeb !important; }
        .contract-warn:hover { background: #fef3c7 !important; }
        .brand-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2E75B6, #1F4E79); }

        /* ===== 详情侧滑面板 ===== */
        .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; }
