        * { 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-left h1 { font-size: 20px; font-weight: 600; }
        .header-left .subtitle { font-size: 12px; opacity: 0.8; margin-top: 2px; }
        .header-right { display: flex; align-items: center; gap: 16px; }
        .period-switch { display: flex; gap: 0; border-radius: 4px; overflow: hidden; }
        .period-switch button { padding: 6px 14px; border: none; background: rgba(255,255,255,0.15); color: white; cursor: pointer; font-size: 12px; transition: all 0.2s; }
        .period-switch button.active { background: rgba(255,255,255,0.35); font-weight: 600; }
        .period-switch button:hover { background: rgba(255,255,255,0.25); }
        .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; }
        .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); } }

        .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; display: flex; justify-content: space-between; align-items: center; }

        .filter-bar { background: white; padding: 12px 16px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 12px; display: flex; gap: 10px; 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: 5px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; }
        .search-box { flex: 1; min-width: 180px; }
        .search-box input { width: 100%; }
        .btn { padding: 6px 14px; border-radius: 4px; font-size: 12px; 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 { border-color: #2E75B6; color: #2E75B6; }

        .table-wrapper { overflow-x: auto; max-height: 360px; overflow-y: 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; }

        .status-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; }
        .status-active { background: #d1fae5; color: #065f46; }
        .status-expiring { background: #fef3c7; color: #92400e; }
        .status-expired { background: #fee2e2; color: #991b1b; }
        .status-pending { background: #dbeafe; color: #1e40af; }

        .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; }

        body.embedded .header { display: none; }
        body.embedded .sidebar { display: none; }
        body.embedded .main-content { padding: 16px; }

        /* ===== 2.5.1 因子库样式 ===== */
        .factor-layout { display: grid; grid-template-columns: 35% 65%; gap: 16px; }

        .factor-left { display: flex; flex-direction: column; gap: 12px; }
        .factor-left-head { display: flex; justify-content: space-between; align-items: center; }
        .factor-left-title { font-size: 15px; font-weight: 700; color: #1F4E79; }
        .factor-version-badge { font-size: 11px; padding: 3px 10px; background: linear-gradient(135deg, #10b981, #059669); color: white; border-radius: 10px; font-weight: 600; box-shadow: 0 2px 4px rgba(16,185,129,0.3); }

        .factor-search-box { position: relative; }
        .factor-search-box input { width: 100%; padding: 8px 12px 8px 32px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; }
        .factor-search-box input:focus { outline: none; border-color: #2E75B6; box-shadow: 0 0 0 2px rgba(46,117,182,0.15); }
        .factor-search-box::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: 0.5; }

        .factor-tree { flex: 1; overflow-y: auto; }
        .factor-tree::-webkit-scrollbar { width: 4px; }
        .factor-tree::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

        .tree-node { margin-bottom: 2px; }
        .tree-node-header { display: flex; align-items: center; gap: 6px; padding: 8px 8px; cursor: pointer; border-radius: 4px; transition: background 0.2s; user-select: none; }
        .tree-node-header:hover { background: #f0f7ff; }
        .tree-node-header.active { background: #E8F4F8; }
        .tree-toggle { font-size: 10px; color: #6b7280; width: 12px; transition: transform 0.2s; }
        .tree-node.expanded .tree-toggle { transform: rotate(90deg); }
        .tree-icon { font-size: 14px; }
        .tree-label { font-size: 13px; font-weight: 600; color: #1F4E79; flex: 1; }
        .tree-count { font-size: 11px; color: #6b7280; background: #f3f4f6; padding: 1px 6px; border-radius: 8px; }

        .tree-children { margin-left: 22px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
        .tree-node.expanded .tree-children { max-height: 800px; }

        .tree-leaf { display: flex; align-items: center; gap: 6px; padding: 6px 8px; cursor: pointer; border-radius: 4px; transition: all 0.2s; font-size: 12px; }
        .tree-leaf:hover { background: #f0f7ff; }
        .tree-leaf.active { background: #dbeafe; border-left: 3px solid #1F4E79; }
        .tree-leaf-name { flex: 1; color: #374151; }
        .tree-leaf-value { font-size: 11px; color: #6b7280; font-family: 'Consolas', monospace; }
        .tree-leaf-status { font-size: 11px; }

        .factor-stat-bar { display: flex; gap: 0; background: white; padding: 10px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-size: 11px; }
        .factor-stat-item { flex: 1; text-align: center; border-right: 1px solid #e5e7eb; }
        .factor-stat-item:last-child { border-right: none; }
        .factor-stat-item .num { font-size: 16px; font-weight: 700; }
        .factor-stat-item .lbl { font-size: 10px; color: #6b7280; margin-top: 2px; }

        .factor-right { display: flex; flex-direction: column; gap: 16px; }
        .factor-charts { display: grid; grid-template-columns: 50% 50%; gap: 16px; }

        .footer-tip { background: linear-gradient(90deg, #E8F4F8 0%, transparent 100%); border-left: 3px solid #2E75B6; padding: 10px 16px; border-radius: 6px; font-size: 11px; color: #4b5563; display: flex; gap: 24px; align-items: center; }
        .footer-tip strong { color: #1F4E79; }

        /* ===== 2.5.2 单车碳排核算样式 ===== */
        .calc-layout { display: grid; grid-template-columns: 38% 62%; gap: 16px; }
        .calc-left { display: flex; flex-direction: column; gap: 12px; }
        .calc-left-title { font-size: 15px; font-weight: 700; color: #1F4E79; }

        .calc-filter-bar { background: white; padding: 10px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
        .calc-filter-bar .search-box input { width: 100%; padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; }
        .calc-filter-bar .search-box { flex: 1; min-width: 140px; }
        .calc-filter-bar select { padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; }

        .calc-stat-row { display: flex; gap: 0; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-size: 11px; padding: 8px 12px; }
        .calc-stat-row .stat-item { flex: 1; text-align: center; border-right: 1px solid #e5e7eb; padding: 4px 0; }
        .calc-stat-row .stat-item:last-child { border-right: none; }
        .calc-stat-row .stat-num { font-size: 14px; font-weight: 700; }
        .calc-stat-row .stat-lbl { font-size: 10px; color: #6b7280; margin-top: 1px; }

        .vehicle-list { flex: 1; overflow-y: auto; max-height: 520px; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 4px; }
        .vehicle-list::-webkit-scrollbar { width: 4px; }
        .vehicle-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
        .vehicle-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; margin-bottom: 2px; }
        .vehicle-card:hover { background: #f0f7ff; border-color: #dbeafe; }
        .vehicle-card.active { background: #dbeafe; border-color: #93c5fd; }
        .vc-left { flex: 1; min-width: 0; }
        .vc-plate { font-size: 13px; font-weight: 700; color: #1F4E79; }
        .vc-company { font-size: 10px; color: #9ca3af; margin-top: 1px; }
        .vc-mid { text-align: right; flex-shrink: 0; }
        .vc-emission { font-size: 13px; font-weight: 700; color: #1F4E79; }
        .vc-trend { font-size: 10px; font-weight: 600; }
        .vc-trend.down { color: #10b981; }
        .vc-trend.up { color: #ef4444; }
        .vc-right { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; min-width: 50px; }
        .grade-badge { font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
        .grade-A { background: #065f46; color: white; }
        .grade-B { background: #10b981; color: white; }
        .grade-C { background: #fbbf24; color: #78350f; }
        .grade-D { background: #ef4444; color: white; }
        .status-dot { width: 6px; height: 6px; border-radius: 50%; }
        .status-done { background: #10b981; }
        .status-calculating { background: #fbbf24; animation: pulse-dot 1.5s infinite; }
        .status-pending { background: #9ca3af; }
        @keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

        .calc-summary { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 10px 16px; display: flex; gap: 0; }
        .calc-summary .sum-item { flex: 1; border-right: 1px solid #e5e7eb; padding: 0 12px; }
        .calc-summary .sum-item:last-child { border-right: none; }
        .calc-summary .sum-val { font-size: 18px; font-weight: 700; color: #1F4E79; }
        .calc-summary .sum-val.down { color: #10b981; }
        .calc-summary .sum-sub { font-size: 10px; color: #6b7280; }

        .calc-right { display: flex; flex-direction: column; gap: 16px; }
        .calc-charts { display: grid; grid-template-columns: 50% 50%; gap: 16px; }
