        * { box-sizing: border-box; }
        body { margin: 0; font-family: "Microsoft YaHei", Arial, sans-serif; background: #E8F4F8; color: #1f2937; overflow-y: auto; }
        .page { width: 100%; min-height: 100vh; padding: 14px 16px 20px; display: none; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #E8F4F8 0%, #f6fbfd 100%); }
        .page.active { display: flex; }
        .topbar { height: 58px; background: #fff; border: 1px solid #d7e8f2; border-left: 5px solid #dc2626; border-radius: 10px; box-shadow: 0 4px 14px rgba(31,78,121,.08); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; flex-shrink: 0; }
        .title-wrap h1 { margin: 0; color: #1F4E79; font-size: 22px; }
        .title-wrap p { margin: 4px 0 0; color: #6b7280; font-size: 13px; }
        .top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
        .badge-red { background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
        input, select { height: 32px; border: 1px solid #c8deea; border-radius: 6px; background: #fff; color: #334155; padding: 0 10px; outline: none; font-size: 13px; }
        .btn { height: 32px; border: none; border-radius: 6px; padding: 0 12px; background: #2E75B6; color: #fff; font-size: 13px; cursor: pointer; }
        .btn.danger { background: #dc2626; }
        .btn.secondary { background: #1F4E79; }
        .main { flex: 1 0 auto; display: grid; grid-template-columns: 38% 62%; gap: 12px; align-items: stretch; min-height: calc(100vh - 100px); }
        .panel { background: rgba(255,255,255,.96); border: 1px solid #d7e8f2; border-radius: 10px; box-shadow: 0 5px 18px rgba(31,78,121,.08); overflow: hidden; }
        .left { min-width: 0; display: flex; flex-direction: column; }
        .section-hd { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #edf4f8; background: linear-gradient(90deg, #f8fcff, #fff); }
        .section-title { font-weight: 700; color: #1F4E79; font-size: 15px; }
        .filter-bar { padding: 8px 12px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; border-bottom: 1px solid #edf4f8; }

        /* 三级架构 */
        .er-arch { padding: 12px; flex-shrink: 0; }
        .er-level { border-radius: 10px; padding: 12px; margin-bottom: 0; position: relative; }
        .er-level.ministry { background: linear-gradient(135deg, #1e3a5f, #1F4E79); color: #fff; }
        .er-level.province { background: linear-gradient(135deg, #2563eb, #2E75B6); color: #fff; margin-top: 16px; }
        .er-level.enterprise { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; margin-top: 16px; }
        .er-level-head { display: flex; align-items: center; gap: 8px; }
        .er-level-icon { font-size: 20px; }
        .er-level-name { font-size: 14px; font-weight: 700; }
        .er-level-count { margin-left: auto; font-size: 11px; opacity: .9; }
        .er-level-body { margin-top: 6px; font-size: 11px; opacity: .9; line-height: 1.6; }
        .er-level-stats { margin-top: 4px; font-size: 11px; opacity: .85; }
        .er-connector { text-align: center; font-size: 10px; color: #64748b; padding: 2px 0; position: relative; height: 16px; }
        .er-connector::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #cbd5e1; transform: translateX(-50%); }
        .er-connector span { background: #fff; padding: 0 6px; position: relative; z-index: 1; }

        /* 事件列表 */
        .er-list { flex: 1; min-height: 0; overflow: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
        .er-event { border: 1px solid #dcebf4; border-radius: 8px; padding: 8px 10px; background: #fff; cursor: pointer; transition: .2s; }
        .er-event:hover { border-color: #2E75B6; box-shadow: 0 3px 10px rgba(46,117,182,.1); }
        .er-event.active { border-color: #dc2626; background: #fef2f2; }
        .er-event-top { display: flex; align-items: center; gap: 8px; }
        .er-level-tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
        .er-level-tag.l1 { background: #7f1d1d; color: #fff; }
        .er-level-tag.l2 { background: #dc2626; color: #fff; }
        .er-level-tag.l3 { background: #d97706; color: #fff; }
        .er-level-tag.l4 { background: #2563eb; color: #fff; }
        .er-event-name { font-size: 13px; font-weight: 700; color: #1F4E79; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .er-status { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
        .er-status.processing { background: #dbeafe; color: #2563eb; }
        .er-status.upgrade { background: #fee2e2; color: #dc2626; }
        .er-status.done { background: #dcfce7; color: #16a34a; }
        .er-event-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; color: #94a3b8; }
        .er-progress { height: 5px; background: #e5eef5; border-radius: 3px; margin-top: 4px; overflow: hidden; }
        .er-progress-fill { height: 100%; border-radius: 3px; transition: width .3s; }

        .left-stats { height: 82px; padding: 8px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid #edf4f8; flex-shrink: 0; }
        .small-stat { background: #f8fbfd; border: 1px solid #dcebf4; border-radius: 8px; padding: 8px 10px; }
        .small-stat .label { color: #64748b; font-size: 11px; }
        .small-stat .value { margin-top: 4px; color: #1F4E79; font-size: 20px; font-weight: 800; }
        .small-stat .sub { float: right; margin-top: 6px; font-size: 11px; font-weight: 700; }

        .right { min-width: 0; display: grid; grid-template-rows: 280px 1fr; gap: 12px; }
        .right-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; }
        .chart { width: 100%; height: calc(100% - 40px); min-height: 0; }
        .right-bottom-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

        /* 时间轴 */
        .er-timeline { padding: 8px 12px; overflow: auto; max-height: 240px; }
        .er-tl-item { display: flex; gap: 10px; padding-bottom: 12px; position: relative; }
        .er-tl-item::before { content: ''; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: #e5eef5; }
        .er-tl-item:last-child::before { display: none; }
        .er-tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; z-index: 1; border: 2px solid #fff; box-shadow: 0 0 0 2px currentColor; }
        .er-tl-dot.done { color: #16a34a; background: #dcfce7; }
        .er-tl-dot.active { color: #2563eb; background: #dbeafe; animation: erBlink 1.5s infinite; }
        .er-tl-dot.pending { color: #94a3b8; background: #f1f5f9; }
        @keyframes erBlink { 0%,100%{opacity:1} 50%{opacity:.5} }
        .er-tl-content { flex: 1; }
        .er-tl-time { font-size: 11px; font-weight: 700; color: #1F4E79; }
        .er-tl-text { font-size: 11px; color: #475569; margin-top: 2px; }

        table { width: 100%; border-collapse: collapse; font-size: 14px; }
        th { background: #E8F4F8; color: #1F4E79; font-weight: 800; height: 32px; border-bottom: 1px solid #cfe2ee; white-space: nowrap; }
        td { height: 32px; border-bottom: 1px solid #eef3f7; color: #334155; text-align: center; white-space: nowrap; }
        td.name { text-align: left; color: #1F4E79; font-weight: 700; }
        tbody tr:hover { background: #f7fbfe; }
        .table-scroll { flex: 1; overflow: auto; min-height: 0; max-height: 280px; }
        .table-wrap { padding: 8px 12px; display: flex; flex-direction: column; min-height: 0; }
        .pagination { height: 28px; display: flex; align-items: end; justify-content: flex-end; gap: 6px; color: #64748b; font-size: 12px; padding-top: 4px; }
        .page-btn { border: 1px solid #cfe2ee; background: #fff; color: #1F4E79; border-radius: 4px; padding: 3px 8px; cursor: pointer; }
        .footer-note { height: 28px; color: #64748b; font-size: 12px; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; flex-shrink: 0; }
        @media (max-width: 1280px) { .topbar { height: auto; min-height: 58px; align-items: flex-start; padding: 10px; } .main { grid-template-columns: 1fr; min-height: auto; } .right { grid-template-rows: auto auto; } }
