        * { 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); } }

        .stats-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
        .stat-card { background: white; padding: 14px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; border-top: 3px solid #2E75B6; position: relative; overflow: hidden; }
        .stat-card .label { font-size: 11px; color: #6b7280; margin-bottom: 4px; }
        .stat-card .value { font-size: 22px; font-weight: 700; color: #1F4E79; }
        .stat-card .sub { font-size: 11px; margin-top: 2px; color: #6b7280; }
        .stat-card .sub.green { color: #10b981; }
        .stat-card .sub.red { color: #ef4444; }
        .sparkline { position: absolute; bottom: 4px; right: 4px; width: 70px; height: 24px; }

        .content-grid { display: grid; grid-template-columns: 55% 45%; gap: 16px; margin-bottom: 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; }

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

        .table-wrapper { overflow-x: auto; max-height: 500px; overflow-y: auto; }
        .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
        .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; }

        .eff-grade { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 10px; font-weight: 600; }
        .eff-excellent { background: #d1fae5; color: #065f46; }
        .eff-normal { background: #dbeafe; color: #1e40af; }
        .eff-high { background: #ffedd5; color: #9a3412; }
        .eff-abnormal { background: #fee2e2; color: #991b1b; animation: blink 2s infinite; }
        @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

        .deviation-up { color: #ef4444; font-weight: 600; }
        .deviation-down { color: #10b981; font-weight: 600; }
        .action-link { font-size: 12px; color: #2E75B6; cursor: pointer; }
        .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; }

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

        /* ===== 场景导航卡片(复用) ===== */
        .scene-nav-list { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; min-height: 0; }
        .scene-nav-card { background: white; border: 2px solid #e5e7eb; border-radius: 8px; padding: 14px 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px; min-height: 76px; flex-shrink: 0; }
        .scene-nav-card:hover { border-color: #93c5fd; background: #f0f7ff; }
        .scene-nav-card.active { border-color: #1F4E79; background: #eff6ff; box-shadow: 0 2px 8px rgba(31,78,121,0.15); }
        .scene-nav-info { flex: 1; }
        .scene-nav-name { font-size: 14px; font-weight: 600; color: #1F4E79; }
        .scene-nav-rate { font-size: 18px; font-weight: 700; margin-top: 2px; }
        .scene-nav-bar { width: 100%; height: 4px; background: #e5e7eb; border-radius: 2px; margin-top: 4px; overflow: hidden; }
        .scene-nav-bar-fill { height: 100%; border-radius: 2px; }
        .scene-nav-grade { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

        /* ===== 能效评级标签 ===== */
        .eff2-grade { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 10px; font-weight: 600; }
        .eff2-excellent { background: #d1fae5; color: #065f46; }
        .eff2-good { background: #dbeafe; color: #1e40af; }
        .eff2-normal2 { background: #ffedd5; color: #9a3412; }
        .eff2-poor { background: #fee2e2; color: #991b1b; }

        /* ===== 指标小卡片 ===== */
        .metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .metric-card2 { background: #f0f7ff; border-radius: 6px; padding: 12px; border-left: 3px solid #2E75B6; }
        .metric-card2 .label { font-size: 11px; color: #6b7280; }
        .metric-card2 .value { font-size: 18px; font-weight: 700; color: #1F4E79; margin-top: 2px; }

        /* ===== 对标优化 ===== */
        .advice-card { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-bottom: 10px; transition: all 0.2s; }
        .advice-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
        .advice-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
        .priority-tag { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
        .priority-high { background: #fee2e2; color: #991b1b; }
        .priority-mid { background: #ffedd5; color: #9a3412; }
        .priority-low { background: #d1fae5; color: #065f46; }
        .difficulty-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; }
        .diff-easy { background: #d1fae5; color: #065f46; }
        .diff-mid { background: #fef3c7; color: #92400e; }
        .diff-hard { background: #fee2e2; color: #991b1b; }

        .rank-change { font-size: 11px; font-weight: 600; }
        .rank-up { color: #10b981; }
        .rank-down { color: #ef4444; }
        .rank-same { color: #9ca3af; }

        .grade-bar-container { display: flex; align-items: center; gap: 4px; min-width: 90px; }
        .grade-bar-bg { width: 50px; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
        .grade-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }

        /* ===== 2.4.3 异常识别 ===== */
        .refresh-control { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; }
        .refresh-switch { position: relative; width: 36px; height: 18px; background: #10b981; border-radius: 9px; cursor: pointer; transition: background 0.3s; flex-shrink: 0; }
        .refresh-switch.off { background: #9ca3af; }
        .refresh-switch::after { content: ''; position: absolute; top: 2px; left: 20px; width: 14px; height: 14px; background: white; border-radius: 50%; transition: left 0.3s; }
        .refresh-switch.off::after { left: 2px; }
        .refresh-indicator { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: pulse-green 1.5s infinite; flex-shrink: 0; }
        @keyframes pulse-green { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }

        .anomaly-card { background: white; padding: 14px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
        .anomaly-card .icon-box { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
        .anomaly-card .info { flex: 1; min-width: 0; }
        .anomaly-card .label { font-size: 11px; color: #6b7280; }
        .anomaly-card .value { font-size: 24px; font-weight: 700; line-height: 1.2; }
        .anomaly-card .sub { font-size: 11px; margin-top: 2px; }

        .anomaly-layout { display: grid; grid-template-columns: 35% 65%; gap: 16px; }
        .anomaly-left { display: flex; flex-direction: column; gap: 16px; }
        .anomaly-right { display: flex; flex-direction: column; gap: 16px; }

        .event-list-container { max-height: 420px; overflow-y: auto; }
        .event-list-container::-webkit-scrollbar { width: 4px; }
        .event-list-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
        .event-item { display: flex; align-items: flex-start; gap: 8px; padding: 10px 6px; border-bottom: 1px solid #f0f0f0; animation: eventFadeIn 0.5s ease; transition: background 0.2s; }
        .event-item:hover { background: #f8fafc; }
        @keyframes eventFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
        .event-content { flex: 1; min-width: 0; }
        .event-desc { font-size: 12px; color: #1f2937; line-height: 1.4; word-break: break-all; }
        .event-meta { font-size: 10px; color: #9ca3af; margin-top: 3px; display: flex; gap: 6px; align-items: center; }
        .event-time { font-size: 10px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; padding-top: 2px; }
        .event-tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 600; white-space: nowrap; }

        .live-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; background: #fee2e2; color: #dc2626; border-radius: 10px; font-size: 10px; font-weight: 600; animation: blink-live 1.5s infinite; }
        @keyframes blink-live { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

        .sev-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
        .status-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; }
        .status-pending { background: #fee2e2; color: #991b1b; }
        .status-processing { background: #ffedd5; color: #9a3412; }
        .status-done { background: #d1fae5; color: #065f46; }
