        * { 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(6, 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; }
        .sparkline { position: absolute; bottom: 4px; right: 4px; width: 70px; height: 24px; }

        .chart-row { display: grid; grid-template-columns: 50% 50%; 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: 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: 200px; }
        .search-box input { width: 100%; }
        .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; }

        .tab-bar { display: flex; gap: 0; margin-bottom: 12px; background: white; border-radius: 8px 8px 0 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
        .tab-btn { padding: 10px 20px; font-size: 13px; cursor: pointer; border: none; background: white; color: #6b7280; border-bottom: 3px solid transparent; transition: all 0.2s; }
        .tab-btn.active { color: #1F4E79; border-bottom-color: #1F4E79; font-weight: 600; background: #eff6ff; }
        .tab-btn:hover { background: #f0f4f8; }

        .table-panel { background: white; border-radius: 0 0 8px 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; }
        .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; cursor: pointer; font-size: 13px; }
        .data-table th:hover { background: #2E75B6; }
        .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; }

        .rate-bar-container { display: flex; align-items: center; gap: 6px; }
        .rate-bar-bg { width: 50px; height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; }
        .rate-bar-fill { height: 100%; border-radius: 5px; }
        .rate-bar-fill.green { background: #10b981; }
        .rate-bar-fill.blue { background: #3b82f6; }
        .rate-bar-fill.orange { background: #f97316; }
        .rate-text { font-size: 11px; font-weight: 700; min-width: 35px; }

        .grade-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; 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; }

        .change-up { color: #10b981; font-weight: 600; }
        .change-down { color: #ef4444; 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; }

        /* ===== 渗透率达标状态 ===== */
        .compliance-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 10px; font-weight: 600; }
        .compliance-pass { background: #d1fae5; color: #065f46; }
        .compliance-near { background: #fef3c7; color: #92400e; }
        .compliance-fail { background: #fee2e2; color: #991b1b; }

        /* ===== 渗透率进度条(表格内嵌) ===== */
        .pen-bar-container { display: flex; align-items: center; gap: 6px; }
        .pen-bar-bg { width: 60px; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
        .pen-bar-fill { height: 100%; border-radius: 4px; }

        /* ===== 达标进度环 ===== */
        .progress-ring { display: inline-flex; align-items: center; gap: 8px; }
        .ring-svg { width: 40px; height: 40px; }

        /* ===== 场景导航卡片 ===== */
        .scene-nav-list { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; min-height: 0; }
        .scene-nav-card { background: white; border: 2px solid #e5e7eb; border-radius: 6px; padding: 8px 10px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; min-height: 52px; 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-icon { font-size: 18px; }
        .scene-nav-info { flex: 1; min-width: 0; }
        .scene-nav-name { font-size: 13px; font-weight: 600; color: #1F4E79; }
        .scene-nav-rate { font-size: 14px; font-weight: 700; margin-top: 1px; }
        .scene-nav-bar { width: 100%; height: 3px; background: #e5e7eb; border-radius: 2px; margin-top: 3px; overflow: hidden; }
        .scene-nav-bar-fill { height: 100%; border-radius: 2px; }
        .scene-nav-grade { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }

        /* Tab3 右侧详情自适应高度 */
        .tab3-detail-body { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; }
        .tab3-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 0; }
        .tab3-detail-col { display: flex; flex-direction: column; min-height: 0; }
        .tab3-detail-col .table-wrapper { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
        .tab3-detail-col .timeline { flex: 1; min-height: 80px; max-height: none; overflow-y: auto; }
        .tab3-detail-col #chart-tab3 { flex: 1; min-height: 120px; height: auto !important; }

        /* ===== 详情面板指标卡 ===== */
        .detail-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
        .metric-card { background: #f0f7ff; border-radius: 6px; padding: 12px; border-left: 3px solid #2E75B6; }
        .metric-card .label { font-size: 11px; color: #6b7280; }
        .metric-card .value { font-size: 20px; font-weight: 700; color: #1F4E79; margin-top: 2px; }
        .metric-card .trend { font-size: 11px; margin-top: 2px; }

        /* ===== 运营时间轴 ===== */
        .timeline { position: relative; padding-left: 20px; overflow-y: auto; }
        .timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: #e5e7eb; }
        .timeline-item { position: relative; padding: 6px 0 6px 20px; font-size: 12px; }
        .timeline-item::before { content: ''; position: absolute; left: -2px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #2E75B6; border: 2px solid white; box-shadow: 0 0 0 1px #2E75B6; }
        .timeline-item.highlight::before { background: #10b981; box-shadow: 0 0 0 1px #10b981; }
        .timeline-date { font-weight: 600; color: #1F4E79; }
        .timeline-desc { color: #374151; margin-top: 2px; }

        /* ===== 星级评分 ===== */
        .star-rating { display: inline-flex; align-items: center; gap: 4px; }
        .stars { font-size: 12px; letter-spacing: -1px; }

        /* ===== 报告卡片 ===== */
        .report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        .report-card { background: white; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.2s; }
        .report-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }
        .report-card-top { height: 4px; }
        .report-card-top.passed { background: #10b981; }
        .report-card-top.pending { background: #f59e0b; }
        .report-card-top.revision { background: #ef4444; }
        .report-card-body { padding: 14px 16px; }
        .report-card-title { font-size: 13px; font-weight: 600; color: #1F4E79; line-height: 1.4; margin-bottom: 8px; }
        .report-card-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
        .report-tag { font-size: 10px; padding: 2px 8px; border-radius: 3px; font-weight: 500; }
        .report-tag-monthly { background: #dbeafe; color: #1e40af; }
        .report-tag-quarterly { background: #ede9fe; color: #6b21a8; }
        .report-tag-special { background: #ffedd5; color: #9a3412; }
        .report-tag-scene { background: #E8F4F8; color: #1F4E79; }
        .report-card-meta { font-size: 11px; color: #6b7280; line-height: 1.6; }
        .report-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
        .report-card-actions { display: flex; gap: 12px; }
        .report-action { font-size: 12px; cursor: pointer; }
        .report-status-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

        /* ===== 横向时间轴 ===== */
        .h-timeline { display: flex; align-items: center; gap: 0; padding: 16px 0; overflow-x: auto; }
        .h-timeline-item { display: flex; flex-direction: column; align-items: center; min-width: 120px; position: relative; }
        .h-timeline-item:not(:last-child)::after { content: ''; position: absolute; top: 12px; right: -50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 0; }
        .h-timeline-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; z-index: 1; border: 3px solid white; box-shadow: 0 0 0 2px currentColor; }
        .h-timeline-label { font-size: 10px; margin-top: 6px; text-align: center; color: #4b5563; }
        .h-timeline-date { font-size: 9px; color: #9ca3af; margin-top: 2px; }

        /* 视图切换 */
        .view-switch { display: flex; gap: 0; border-radius: 4px; overflow: hidden; border: 1px solid #d1d5db; }
        .view-switch button { padding: 6px 14px; border: none; background: white; color: #6b7280; cursor: pointer; font-size: 12px; }
        .view-switch button.active { background: #1F4E79; color: white; }

        /* ===== 报告预览（A4纸张） ===== */
        .tab4-layout { display: flex; gap: 16px; align-items: flex-start; }
        .report-preview-area { flex: 0 0 70%; min-width: 0; overflow-y: auto; background: #e9edf2; padding: 16px; border-radius: 8px; max-height: calc(100vh - 120px); }
        .a4-paper { background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.10); padding: 32px 36px; max-width: 100%; margin: 0 auto; border-radius: 4px; }
        .report-header { display: flex; justify-content: space-between; align-items: flex-start; background: #1F4E79; color: white; padding: 16px 20px; border-radius: 4px; }
        .report-header-left { flex: 1; }
        .report-title { font-size: 20px; font-weight: 700; color: white; }
        .report-subtitle { font-size: 14px; color: white; opacity: 0.8; margin-top: 4px; }
        .report-header-right { text-align: right; }
        .report-confidential { font-size: 12px; color: white; opacity: 0.9; border: 1px solid rgba(255,255,255,0.4); padding: 2px 8px; border-radius: 3px; display: inline-block; }
        .report-issue { font-size: 12px; color: white; opacity: 0.8; margin-top: 6px; }
        .report-org { font-size: 12px; color: #6b7280; margin: 10px 0 16px; }
        .report-chapter { margin-bottom: 24px; }
        .chapter-title { font-size: 15px; font-weight: 700; color: #1F4E79; border-left: 4px solid #1F4E79; padding-left: 10px; margin-bottom: 10px; line-height: 1.4; }
        .chapter-text { font-size: 13px; color: #374151; line-height: 1.8; text-align: justify; }
        .report-indicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
        .report-indicator-card { background: #E8F4F8; padding: 10px 12px; border-radius: 6px; }
        .report-indicator-card .ri-label { font-size: 11px; color: #6b7280; }
        .report-indicator-card .ri-value { font-size: 18px; font-weight: 700; color: #1F4E79; margin-top: 2px; }
        .report-indicator-card .ri-sub { font-size: 10px; margin-top: 2px; }
        .report-indicator-card .ri-sub.green { color: #10b981; }
        .problem-list, .suggestion-list { list-style: none; }
        .problem-list li, .suggestion-list li { font-size: 13px; color: #374151; line-height: 1.8; padding-left: 18px; position: relative; }
        .problem-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
        .suggestion-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #2E75B6; }
        .report-footer { margin-top: 24px; border-top: 1px solid #d1d5db; padding-top: 12px; font-size: 12px; color: #6b7280; line-height: 1.8; }
        .report-footer hr { border: none; border-top: 1px solid #d1d5db; margin-bottom: 8px; }
        .report-note { font-size: 11px; color: #9ca3af; margin-top: 4px; font-style: italic; }

        /* ===== 报告操作面板 ===== */
        .report-op-panel { flex: 0 0 calc(30% - 16px); display: flex; flex-direction: column; max-height: calc(100vh - 120px); overflow-y: auto; }
        .op-section { background: #E8F4F8; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
        .op-section-title { font-size: 13px; font-weight: 700; color: #1F4E79; margin-bottom: 10px; border-bottom: 1px solid #c3dbed; padding-bottom: 6px; }
        .op-field { margin-bottom: 10px; }
        .op-field:last-child { margin-bottom: 0; }
        .op-field label { font-size: 12px; color: #6b7280; display: block; margin-bottom: 4px; }
        .op-field select { width: 100%; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; background: white; }
        .op-checkbox-list { display: flex; flex-direction: column; gap: 5px; }
        .op-checkbox-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; cursor: pointer; }
        .op-checkbox-item input { margin: 0; cursor: pointer; }
        .op-btn { width: 100%; padding: 8px; border-radius: 6px; margin-bottom: 8px; border: none; cursor: pointer; font-size: 13px; transition: all 0.2s; }
        .op-btn:last-child { margin-bottom: 0; }
        .op-btn-primary { background: #2E75B6; color: white; }
        .op-btn-primary:hover { background: #1F4E79; }
        .op-btn-secondary { background: white; border: 1px solid #d1d5db; color: #374151; }
        .op-btn-secondary:hover { background: #f3f4f6; }
        .op-btn-success { background: #10b981; color: white; }
        .op-btn-success:hover { background: #059669; }
        .rpt-history-table { width: 100%; border-collapse: collapse; font-size: 11px; }
        .rpt-history-table th { background: #1F4E79; color: white; padding: 6px 4px; text-align: center; font-weight: 600; font-size: 10px; }
        .rpt-history-table td { padding: 5px 4px; border-bottom: 1px solid #dbeafe; text-align: center; color: #374151; }
        .rpt-history-table tr:nth-child(even) td { background: #f8fbfd; }
        .rpt-history-status { font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 600; white-space: nowrap; display: inline-block; }
        .rpt-status-published { background: #d1fae5; color: #065f46; }
        .rpt-status-draft { background: #f3f4f6; color: #6b7280; }
        .rpt-status-reviewing { background: #fef3c7; color: #92400e; }
