/* C1 迁出：reports_viewer.html 内联样式，逐字搬迁，未改规则与选择器。 */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #0f1923; color: #e0e0e0;
            min-height: 100vh;
        }
        .container {
            max-width: 1600px; margin: 0 auto; padding: 16px;
            display: flex; flex-direction: column; height: 100vh;
        }

        /* ===== 导航栏（与 admin_config 完全一致） ===== */
        .nav {
            display: flex; gap: 8px; flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .nav a {
            padding: 8px 18px; background: #111d2c; border: 1px solid #1a2a3e; border-radius: 8px;
            color: #7a8a9a; text-decoration: none; font-size: 13px; transition: 0.2s;
        }
        .nav a:hover { background: #1a2a3e; border-color: #4fc3f7; color: #fff; }
        .nav a.active { background: #1a2a3e; border-color: #4fc3f7; color: #4fc3f7; }
        .nav a.home-link { background: #0d2137; border-color: #1565c0; color: #64b5f6; }
        .nav a.home-link:hover { background: #1565c0; color: #fff; }

        /* ===== 主布局（侧边栏 + 内容） ===== */
        .main-layout {
            display: flex; gap: 16px; flex: 1; overflow: hidden;
        }

        /* ===== 侧边栏（严格对齐 admin_config） ===== */
        .sidebar {
            width: 200px; flex-shrink: 0;
            background: #111d2c; border: 1px solid #1a2a3e; border-radius: 10px;
            padding: 12px 0; transition: width 0.3s, padding 0.3s, opacity 0.3s;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .sidebar.collapsed {
            width: 0; padding: 0; border: none; opacity: 0;
        }
        .sidebar-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 14px 10px; border-bottom: 1px solid #1a2a3e;
            flex-shrink: 0;
        }
        .sidebar-header .title { font-size: 13px; color: #5a7a9a; letter-spacing: 1px; }
        .sidebar-toggle {
            background: none; border: none; color: #5a7a9a; cursor: pointer;
            font-size: 18px; padding: 2px 6px; border-radius: 4px;
        }
        .sidebar-toggle:hover { background: #1a2a3e; color: #fff; }
        .sidebar-reveal {
            display: none; width: 36px; flex-shrink: 0;
            background: #111d2c; border: 1px solid #1a2a3e; border-radius: 10px;
            padding: 10px 0; cursor: pointer; font-size: 20px;
            color: #5a7a9a; text-align: center; transition: 0.2s;
            align-items: center; justify-content: center;
        }
        .sidebar-reveal:hover { background: #1a2a3e; color: #fff; }
        .sidebar.collapsed + .sidebar-reveal { display: flex; }
        .sidebar-item {
            padding: 10px 16px; cursor: pointer; font-size: 13px;
            color: #7a8a9a; transition: 0.15s; display: flex; align-items: center; gap: 8px;
            border-left: 3px solid transparent;
        }
        .sidebar-item:hover { background: #15202e; color: #e0e0e0; }
        .sidebar-item.active { background: #15202e; color: #4fc3f7; border-left-color: #4fc3f7; }
        .sidebar-item .icon { font-size: 16px; }

        /* ===== 内容区 ===== */
        .content {
            flex: 1; min-width: 0;
            background: #111d2c; border: 1px solid #1a2a3e; border-radius: 10px;
            padding: 20px;
            display: flex; flex-direction: column;
            overflow: hidden;
        }
        .content h2 {
            font-size: 16px; color: #4fc3f7; margin-bottom: 16px;
            display: flex; align-items: center; gap: 8px;
            flex-shrink: 0;
        }
        /* 工具栏 */
        .toolbar {
            display: flex; gap: 10px; margin-bottom: 16px;
            align-items: center; flex-wrap: wrap;
            flex-shrink: 0;
        }
        .toolbar label {
            font-size: 13px; color: #7a8a9a;
        }
        .toolbar select {
            padding: 6px 12px; background: #0f1923; border: 1px solid #1a2a3e;
            border-radius: 6px; color: #e0e0e0; font-size: 13px;
            outline: none; cursor: pointer;
        }
        .toolbar select:focus { border-color: #4fc3f7; }
        .btn-primary {
            padding: 6px 18px; border-radius: 6px; border: none;
            background: #1565c0; color: #fff; cursor: pointer;
            font-size: 13px; transition: 0.15s;
        }
        .btn-primary:hover { background: #1976d2; }

        /* 报告容器 / iframe */
        .report-container {
            flex: 1; background: #0a0e17; border-radius: 6px;
            border: 1px solid #1a2a3e; overflow: hidden;
            position: relative;
        }
        .report-container iframe {
            width: 100%; height: 100%; border: none; display: block;
        }
        .empty-state {
            display: flex; align-items: center; justify-content: center;
            flex-direction: column; color: #3a4a5a; height: 100%;
        }
        .empty-state .icon { font-size: 48px; margin-bottom: 12px; }
        .empty-state p { font-size: 14px; }

        /* 自定义滚动条 */
        .sidebar::-webkit-scrollbar { width: 4px; }
        .sidebar::-webkit-scrollbar-thumb { background: #1a2a3e; border-radius: 4px; }
    
