:root {
            --primary: #1a4b8c;
            --primary-light: #2c6ab8;
            --primary-dark: #0d2f5c;
            --accent: #c8a84b;
            --red: #dc3545;
            --yellow: #ffc107;
            --blue: #0d6efd;
            --green: #198754;
            --gray: #6c757d;
            --bg: #f0f4f8;
            --card: #ffffff;
            --border: #d0dce8;
            --text: #1a2a3a;
            --text-light: #5a6a7a;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

        /* ==== 顶部导航 ==== */
        .navbar {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
            color: white;
            padding: 0 30px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 12px rgba(13,47,92,0.35);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .navbar .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .navbar .logo .icon {
            width: 42px;
            height: 42px;
            background: rgba(255,255,255,0.15);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .navbar .logo h1 {
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 1px;
        }
        .navbar .logo span {
            font-size: 11px;
            opacity: 0.75;
            letter-spacing: 2px;
        }
        .navbar .nav-links {
            display: flex;
            gap: 4px;
        }
        .navbar .nav-links a {
            color: rgba(255,255,255,0.85);
            text-decoration: none;
            padding: 8px 18px;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.2s;
        }
        .navbar .nav-links a:hover, .navbar .nav-links a.active {
            background: rgba(255,255,255,0.18);
            color: white;
        }
        .navbar .meta {
            font-size: 11px;
            opacity: 0.7;
            text-align: right;
        }

        /* ==== 主容器 ==== */
        .container { max-width: 1400px; margin: 0 auto; padding: 20px; }

        /* ==== 统计卡片 ==== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }
        .stat-card {
            background: var(--card);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 1px 4px rgba(26,75,140,0.08);
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
        }
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
        }
        .stat-card.red::before { background: var(--red); }
        .stat-card.yellow::before { background: var(--yellow); }
        .stat-card.blue::before { background: var(--blue); }
        .stat-card.green::before { background: var(--green); }
        .stat-card.purple::before { background: #6f42c1; }
        .stat-card .stat-label { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
        .stat-card .stat-value { font-size: 32px; font-weight: 800; color: var(--primary-dark); }
        .stat-card .stat-sub { font-size: 11px; color: var(--text-light); margin-top: 4px; }
        .stat-card .stat-icon { position: absolute; right: 16px; top: 16px; font-size: 28px; opacity: 0.12; }

        /* ==== 卡片通用 ==== */
        .card {
            background: var(--card);
            border-radius: 12px;
            box-shadow: 0 1px 4px rgba(26,75,140,0.08);
            border: 1px solid var(--border);
            margin-bottom: 20px;
        }
        .card-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .card-header h3 { font-size: 15px; color: var(--primary-dark); font-weight: 700; display: flex; align-items: center; gap: 8px; }
        .card-body { padding: 20px; }

        /* ==== 两栏布局 ==== */
        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

        /* ==== 风险评估六维 ==== */
        .risk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .form-group { display: flex; flex-direction: column; gap: 6px; }
        .form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
        .form-group label .weight { font-size: 11px; color: var(--primary); background: #e8f0fa; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
        .form-group input[type="range"] {
            width: 100%; height: 8px; border-radius: 4px; background: #e0e8f0; outline: none; cursor: pointer; accent-color: var(--primary);
        }
        .form-group .score-display { font-size: 22px; font-weight: 800; color: var(--primary); }
        .form-group .range-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-light); }

        /* ==== 按钮 ==== */
        .btn {
            padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer;
            font-size: 14px; font-weight: 600; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
        }
        .btn-primary { background: var(--primary); color: white; }
        .btn-primary:hover { background: var(--primary-dark); }
        .btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
        .btn-outline:hover { background: var(--primary); color: white; }
        .btn-sm { padding: 6px 14px; font-size: 12px; }

        /* ==== 风险等级标签 ==== */
        .level-tag {
            display: inline-flex; align-items: center; gap: 5px;
            padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
        }
        .level-1 { background: #fce4e6; color: #b91c1c; border: 1px solid #fca5a5; }
        .level-2 { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
        .level-3 { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
        .level-4 { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

        /* ==== 预警列表 ==== */
        .alert-list { display: flex; flex-direction: column; gap: 10px; }
        .alert-item {
            display: flex; align-items: center; gap: 14px;
            padding: 14px 16px; border-radius: 10px;
            border-left: 4px solid; background: #fafbfc;
            transition: all 0.2s; cursor: pointer;
        }
        .alert-item:hover { box-shadow: 0 2px 8px rgba(26,75,140,0.12); transform: translateX(2px); }
        .alert-item.red { border-color: var(--red); }
        .alert-item.yellow { border-color: var(--yellow); }
        .alert-item.blue { border-color: var(--blue); }
        .alert-item.green { border-color: var(--green); }
        .alert-item .avatar {
            width: 40px; height: 40px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; font-weight: 800; color: white;
            flex-shrink: 0;
        }
        .alert-item.red .avatar { background: var(--red); }
        .alert-item.yellow .avatar { background: var(--yellow); color: #333; }
        .alert-item.blue .avatar { background: var(--blue); }
        .alert-item.green .avatar { background: var(--green); }
        .alert-item .info { flex: 1; min-width: 0; }
        .alert-item .info .name { font-weight: 700; font-size: 14px; }
        .alert-item .info .detail { font-size: 12px; color: var(--text-light); margin-top: 2px; }
        .alert-item .meta { text-align: right; flex-shrink: 0; }
        .alert-item .meta .time { font-size: 11px; color: var(--text-light); }
        .alert-item .meta .action { font-size: 11px; color: var(--primary); margin-top: 3px; font-weight: 600; }

        /* ==== 雷达图 ==== */
        .radar-container { position: relative; height: 300px; }

        /* ==== 结果展示 ==== */
        .result-panel {
            border-radius: 12px; padding: 24px; text-align: center;
            margin-top: 16px; display: none;
        }
        .result-panel.show { display: block; }
        .result-panel.red { background: linear-gradient(135deg, #fce4e6, #fff1f2); border: 2px solid #fca5a5; }
        .result-panel.yellow { background: linear-gradient(135deg, #fef3c7, #fffbeb); border: 2px solid #fcd34d; }
        .result-panel.blue { background: linear-gradient(135deg, #dbeafe, #eff6ff); border: 2px solid #93c5fd; }
        .result-panel.green { background: linear-gradient(135deg, #d1fae5, #ecfdf5); border: 2px solid #6ee7b7; }
        .result-panel .level-title { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
        .result-panel.red .level-title { color: #b91c1c; }
        .result-panel.yellow .level-title { color: #92400e; }
        .result-panel.blue .level-title { color: #1e40af; }
        .result-panel.green .level-title { color: #065f46; }
        .result-panel .score-val { font-size: 48px; font-weight: 900; color: var(--primary-dark); margin: 8px 0; }
        .result-panel .description { font-size: 13px; color: var(--text-light); max-width: 500px; margin: 0 auto; line-height: 1.6; }
        .result-panel .factors { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
        .result-panel .factor-tag {
            padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
            background: rgba(26,75,140,0.08); color: var(--primary-dark);
        }
        .result-panel .factor-tag.high { background: #fce4e6; color: #b91c1c; }
        .result-panel .factor-tag.mid { background: #fef3c7; color: #92400e; }
        .result-panel .result-dims {
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid rgba(0,0,0,0.08);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px 16px;
        }
        .result-panel .result-dim-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
        }
        .result-panel .result-dim-name {
            min-width: 48px;
            color: var(--text-light);
            font-weight: 600;
        }
        .result-panel .result-dim-bar {
            flex: 1;
            height: 8px;
            background: #e5e7eb;
            border-radius: 4px;
            overflow: hidden;
        }
        .result-panel .result-dim-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.4s ease;
        }
        .result-panel .result-dim-score {
            min-width: 28px;
            text-align: right;
            font-weight: 700;
            font-size: 11px;
        }

        /* ==== 处置流程 ==== */
        .timeline { position: relative; padding-left: 30px; }
        .timeline::before {
            content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
            width: 2px; background: linear-gradient(to bottom, var(--primary), #d0dce8);
        }
        .timeline-item {
            position: relative; margin-bottom: 24px;
        }
        .timeline-item::before {
            content: ''; position: absolute; left: -24px; top: 6px;
            width: 12px; height: 12px; border-radius: 50%;
            background: var(--primary); border: 3px solid white; box-shadow: 0 0 0 2px var(--primary);
        }
        .timeline-item.done::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
        .timeline-item.active::before { background: var(--accent); box-shadow: 0 0 0 3px #f0d080; width: 14px; height: 14px; left: -25px; }
        .timeline-item .t-label { font-size: 13px; font-weight: 700; color: var(--text); }
        .timeline-item .t-time { font-size: 11px; color: var(--text-light); margin-top: 2px; }
        .timeline-item .t-desc { font-size: 12px; color: var(--text-light); margin-top: 4px; }

        /* ==== 架构图 ==== */
        .arch-diagram { padding: 10px; }
        .arch-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
        .arch-box {
            padding: 10px 18px; border-radius: 10px; font-size: 12px; font-weight: 700;
            text-align: center; min-width: 120px; border: 2px solid;
        }
        .arch-box.blue { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
        .arch-box.green { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
        .arch-box.purple { background: #f3e8ff; border-color: #c4b5fd; color: #5b21b6; }
        .arch-box.gold { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
        .arch-box.red { background: #fce4e6; border-color: #fca5a5; color: #b91c1c; }
        .arch-box.gray { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
        .arch-arrow { font-size: 20px; color: var(--text-light); }
        .arch-arrow-down { font-size: 22px; color: var(--text-light); text-align: center; }

        /* ==== 数据交换 ==== */
        .data-flow { display: flex; gap: 20px; margin-top: 16px; }
        .flow-col { flex: 1; }
        .flow-col h4 { font-size: 13px; color: var(--primary-dark); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
        .flow-item {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 10px; border-radius: 6px; margin-bottom: 6px;
            font-size: 12px; background: #f8fafc; border: 1px solid var(--border);
        }
        .flow-item .arrow { color: var(--primary); font-weight: bold; }
        .flow-item .tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
        .flow-item .tag.in { background: #d1fae5; color: #065f46; }
        .flow-item .tag.out { background: #dbeafe; color: #1e40af; }
        .flow-item .tag.api { background: #fef3c7; color: #92400e; }

        /* ==== 表格 ==== */
        .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
        .data-table th {
            background: var(--primary-dark); color: white;
            padding: 10px 12px; text-align: left; font-weight: 600;
        }
        .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
        .data-table tr:hover td { background: #f0f4f8; }
        .data-table tr:last-child td { border-bottom: none; }

        /* ==== 专家卡片（处置详情内） ==== */
        .expert-card-sm {
            display: flex; gap: 10px; flex: 1; min-width: 180px;
            padding: 10px; background: #f8fafc; border-radius: 8px;
            border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
        }
        .expert-card-sm:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(26,75,140,0.12); transform: translateY(-1px); }
        .expert-card-sm .avatar-sm {
            width: 44px; height: 52px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            color: white; font-size: 20px; flex-shrink: 0;
        }
        .expert-card-sm .name { font-weight: 700; font-size: 13px; color: var(--primary-dark); }
        .expert-card-sm .title { font-size: 11px; color: var(--text-light); margin-top: 2px; }
        .expert-card-sm .badge { font-size: 10px; margin-top: 3px; }

        /* ==== 干预措施卡片按钮 ==== */
        .measure-btn {
            display: flex; align-items: center; justify-content: space-between;
            padding: 12px 14px; background: #f8fafc; border-radius: 8px;
            border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
            font-size: 13px;
        }
        .measure-btn:hover { border-color: var(--primary); background: #eef4fb; box-shadow: 0 2px 6px rgba(26,75,140,0.1); }
        .measure-btn .m-name { font-weight: 700; color: var(--primary-dark); }
        .measure-btn .m-detail { font-size: 11px; color: var(--text-light); margin-top: 2px; }
        .measure-btn .m-arrow { color: var(--primary); font-size: 16px; }
        .measure-btn .m-badge {
            padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
            margin-left: 6px;
        }
        .mb-done { background: #d1fae5; color: #065f46; }
        .mb-ing { background: #fef3c7; color: #92400e; }
        .mb-pending { background: #f1f5f9; color: var(--gray); }

        /* ==== 分局分布图区域 ==== */
        .district-chart-wrap { position: relative; height: 280px; }
        .district-drilldown {
            display: none; margin-top: 16px;
            padding: 14px; background: #f8fafc; border-radius: 10px;
            border: 1px solid var(--border);
        }
        .district-drilldown.show { display: block; }
        .drilldown-header {
            display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
        }
        .drilldown-header h4 { font-size: 14px; color: var(--primary-dark); }
        .drilldown-stations {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
        }
        .station-chip {
            padding: 10px 14px; background: white; border-radius: 8px;
            border: 1px solid var(--border); font-size: 12px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .station-chip .sc-name { font-weight: 600; color: var(--text); }
        .station-chip .sc-levels { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
        .sc-lv { padding: 1px 6px; border-radius: 10px; font-size: 10px; font-weight: 700; }

        /* ==== 专家详情页 ==== */
        .expert-profile-header {
            display: flex; align-items: center; gap: 20px; padding: 24px;
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            border-radius: 12px; color: white; margin-bottom: 20px;
        }
        .expert-profile-header .exp-avatar {
            width: 80px; height: 96px; border-radius: 12px;
            background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3);
            display: flex; align-items: center; justify-content: center;
            font-size: 40px; flex-shrink: 0;
        }
        .expert-profile-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
        .expert-profile-header .exp-title { font-size: 14px; opacity: 0.85; margin-bottom: 6px; }
        .expert-profile-header .exp-inst { font-size: 13px; opacity: 0.7; }
        .exp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
        .exp-tag { padding: 3px 10px; background: rgba(255,255,255,0.15); border-radius: 12px; font-size: 11px; }
        .exp-stat-row {
            display: flex; gap: 20px; margin-top: 12px;
        }
        .exp-stat { text-align: center; }
        .exp-stat .num { font-size: 24px; font-weight: 800; }
        .exp-stat .lab { font-size: 11px; opacity: 0.7; }
        .exp-section { margin-bottom: 20px; }
        .exp-section h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
        .exp-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .exp-info-item { display: flex; flex-direction: column; gap: 3px; }
        .exp-info-item .lbl { font-size: 11px; color: var(--text-light); }
        .exp-info-item .val { font-size: 13px; font-weight: 600; color: var(--text); }
        .exp-area-tags { display: flex; gap: 8px; flex-wrap: wrap; }
        .area-tag { padding: 6px 12px; background: #eef4fb; border: 1px solid #b8d0f0; border-radius: 8px; font-size: 12px; color: var(--primary-dark); font-weight: 600; }
        .case-list { display: flex; flex-direction: column; gap: 8px; }
        .case-item { display: flex; gap: 10px; padding: 10px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--border); }
        .case-item .ci-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
        .case-item .ci-name { font-weight: 700; font-size: 13px; color: var(--text); }
        .case-item .ci-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }
        .case-item .ci-level { margin-left: auto; font-size: 11px; font-weight: 700; flex-shrink: 0; }

        /* ==== 干预措施弹窗内容 ==== */
        .measure-modal-section { margin-bottom: 16px; }
        .measure-modal-section h4 { font-size: 13px; color: var(--primary-dark); font-weight: 700; margin-bottom: 8px; }
        .mm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
        .mm-item { display: flex; flex-direction: column; gap: 3px; }
        .mm-item label { font-size: 11px; color: var(--text-light); }
        .mm-item input, .mm-item select, .mm-item textarea {
            padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px;
            font-size: 12px; background: #f8fafc; color: var(--text); width: 100%;
        }
        .mm-item textarea { resize: vertical; min-height: 60px; }
        .mm-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; margin: 2px; }
        .mm-session-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
        .mm-session { display: flex; gap: 8px; padding: 8px; background: #f0f4f8; border-radius: 6px; font-size: 12px; align-items: flex-start; }
        .mm-session .ms-date { font-weight: 600; color: var(--primary); min-width: 70px; }
        .mm-session .ms-content { flex: 1; color: var(--text-light); }
        .mm-session .ms-outcome { margin-left: auto; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; white-space: nowrap; }

        /* ==== 评分条 ==== */
        .score-bar { display: flex; align-items: center; gap: 8px; }
        .score-bar .bar { flex: 1; height: 8px; border-radius: 4px; background: #e0e8f0; overflow: hidden; }
        .score-bar .bar .fill { height: 100%; border-radius: 4px; }
        .score-bar .val { font-size: 12px; font-weight: 700; min-width: 40px; text-align: right; }

        /* ==== 标签页 ==== */
        .tabs { display: flex; gap: 2px; margin-bottom: 0; }
        .tab-btn {
            padding: 10px 20px; background: transparent; border: none;
            cursor: pointer; font-size: 13px; font-weight: 600;
            color: var(--text-light); border-bottom: 3px solid transparent;
            transition: all 0.2s;
        }
        .tab-btn:hover { color: var(--primary); }
        .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
        .tab-content { display: none; }
        .tab-content.active { display: block; }

        /* ==== 底部 ==== */
        .footer { text-align: center; padding: 20px; color: var(--text-light); font-size: 11px; }

        /* ==== 弹出层 ==== */
        .modal-overlay {
            display: none; position: fixed; inset: 0; background: rgba(13,47,92,0.5);
            z-index: 2000; align-items: center; justify-content: center;
        }
        .modal-overlay.show { display: flex; }
        .modal {
            background: white; border-radius: 16px; max-width: 600px; width: 90%;
            box-shadow: 0 20px 60px rgba(13,47,92,0.3);
            max-height: 85vh; overflow-y: auto;
        }
        .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
        .modal-header h3 { font-size: 16px; color: var(--primary-dark); }
        .modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); }
        .modal-body { padding: 24px; }

        /* ==== 进度环 ==== */
        .progress-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
        .progress-ring .ring-text { position: absolute; font-size: 22px; font-weight: 800; color: var(--primary-dark); }

        /* ==== 体系架构展示 ==== */
        .system-arch {
            background: linear-gradient(135deg, #0d2f5c, #1a4b8c);
            border-radius: 12px; padding: 24px; color: white; margin-bottom: 20px;
        }
        .system-arch h3 { font-size: 16px; margin-bottom: 16px; opacity: 0.9; }
        .arch-layers { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
        .arch-layer {
            text-align: center; min-width: 120px; max-width: 150px;
        }
        .arch-layer .layer-title { font-size: 11px; opacity: 0.7; margin-bottom: 6px; }
        .arch-layer .layer-box {
            background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
            border-radius: 10px; padding: 10px 8px; font-size: 12px; font-weight: 600;
        }
        .arch-layer .layer-box span { display: block; opacity: 0.75; font-size: 10px; margin-top: 3px; font-weight: 400; }
        .arch-layers-divider { text-align: center; margin: 6px 0 4px; opacity: 0.4; font-size: 18px; width: 100%; }

        /* ==== 面包屑 ==== */
        .breadcrumb { display:flex; align-items:center; gap:8px; padding:10px 0 14px; font-size:13px; color:var(--text-light); }
        .breadcrumb a { color:var(--primary); text-decoration:none; cursor:pointer; font-weight:600; }
        .breadcrumb a:hover { text-decoration:underline; }
        .breadcrumb span { color:var(--text-light); }

        /* ==== 详情英雄条 ==== */
        .detail-hero { border-radius:12px; padding:20px 24px; display:flex; align-items:center; gap:20px; margin-bottom:20px; color:white; }
        .detail-hero .hero-avatar { width:72px; height:72px; border-radius:50%; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; font-size:36px; flex-shrink:0; border:3px solid rgba(255,255,255,0.3); }
        .detail-hero .hero-name { font-size:22px; font-weight:800; }
        .detail-hero .hero-meta { font-size:13px; opacity:0.8; margin-top:4px; }

        /* ==== 信息行 ==== */
        .info-row { display:flex; gap:8px; margin-bottom:9px; font-size:13px; align-items:flex-start; }
        .info-label { color:var(--text-light); min-width:80px; flex-shrink:0; font-size:12px; }
        .info-value { color:var(--text); font-weight:500; flex:1; line-height:1.4; }

        /* ==== 维度分数条 ==== */
        .dim-bars { display:flex; flex-direction:column; gap:10px; }
        .dim-bar-item { display:flex; align-items:center; gap:10px; font-size:12px; }
        .dim-bar-item .dim-name { min-width:68px; color:var(--text-light); font-weight:600; }
        .dim-bar-item .dim-bw { flex:1; height:8px; background:#e0e8f0; border-radius:4px; overflow:hidden; }
        .dim-bar-item .dim-bf { height:100%; border-radius:4px; }
        .dim-bar-item .dim-sc { min-width:28px; text-align:right; font-weight:800; font-size:13px; }

        /* ==== 处置台账卡片 ==== */
        .handle-card { display:flex; align-items:center; gap:16px; padding:16px; border-radius:10px; background:#fafbfc; border:1px solid var(--border); margin-bottom:12px; cursor:pointer; transition:all 0.2s; }
        .handle-card:hover { box-shadow:0 2px 10px rgba(26,75,140,0.12); border-color:var(--primary); transform:translateX(2px); }
        .handle-card .hc-badge { width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
        .handle-card .hc-info { flex:1; min-width:0; }
        .handle-card .hc-title { font-weight:700; font-size:14px; }
        .handle-card .hc-meta { font-size:12px; color:var(--text-light); margin-top:3px; }

        /* ==== 状态徽章 ==== */
        .st-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:12px; font-size:11px; font-weight:700; }
        .st-ing { background:#fef3c7; color:#92400e; }
        .st-done { background:#d1fae5; color:#065f46; }
        .st-warn { background:#fce4e6; color:#b91c1c; }
        .st-watch { background:#f1f5f9; color:#475569; }

        /* ==== 内部tab ==== */
        .inner-tab { display:none; }
        .inner-tab.active { display:block; }

        /* ==== 操作按钮组 ==== */
        .action-group { display:flex; flex-direction:column; gap:8px; }
        .action-group .btn { justify-content:center; }

        /* ==== 响应式 ==== */
        @media (max-width: 1024px) {
            .stats-grid { grid-template-columns: repeat(3, 1fr); }
            .grid-2, .grid-3 { grid-template-columns: 1fr; }
            .navbar .nav-links { display: none; }
            .risk-form { grid-template-columns: 1fr; }
        }
        @media (max-width: 640px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* ==== 模式五：KPI 动画数字卡片 ==== */
        .kpi-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
        @media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
        .kpi-card {
            background: white;
            border-radius: 14px;
            padding: 18px 20px;
            display: flex;
            align-items: center;
            gap: 14px;
            box-shadow: 0 2px 12px rgba(26,75,140,0.08);
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,75,140,0.15); }
        .kpi-card::after {
            content: '';
            position: absolute; top: 0; left: 0; right: 0; height: 3px;
        }
        .kpi-blue::after  { background: linear-gradient(90deg, #0d6efd, #3b82f6); }
        .kpi-red::after   { background: linear-gradient(90deg, #dc3545, #ef4444); }
        .kpi-orange::after { background: linear-gradient(90deg, #fd7e14, #f97316); }
        .kpi-green::after { background: linear-gradient(90deg, #198754, #22c55e); }

        .kpi-icon { font-size: 32px; opacity: 0.85; }
        .kpi-body { flex: 1; }
        .kpi-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
        .kpi-value {
            font-size: 32px; font-weight: 800; color: var(--text);
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }
        .kpi-trend { font-size: 11px; margin-top: 4px; font-weight: 600; }
        .kpi-trend.up   { color: #dc3545; }
        .kpi-trend.down { color: #198754; }

        /* ==== 炫光卡片 ==== */
        .card-glow {
            box-shadow: 0 0 0 1px rgba(26,75,140,0.08),
                        0 2px 16px rgba(26,75,140,0.06),
                        0 0 40px rgba(13,110,253,0.04);
            transition: box-shadow 0.3s;
        }
        .card-glow:hover {
            box-shadow: 0 0 0 1px rgba(26,75,140,0.12),
                        0 4px 24px rgba(26,75,140,0.10),
                        0 0 60px rgba(13,110,253,0.08);
        }

        /* ==== 雷达图 + 分项因子 上下布局 ==== */
        .radar-factors-wrap {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        @media (max-width: 900px) {
            .radar-factors-wrap {
                flex-direction: column;
            }
        }
        .radar-factors-wrap .radar-card-wrap .radar-container {
            height: 220px;
        }
        /* 分项因子用3列3排 */
        .radar-factors-wrap .dim-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        .radar-factors-wrap .dim-card {
            font-size: 11px;
        }
        .radar-factors-wrap .dim-factor {
            padding: 3px 0;
        }
        .radar-factors-wrap .dim-card-hdr {
            padding: 6px 10px;
        }
        .radar-factors-wrap .dim-card-body {
            padding: 6px 8px;
        }

        /* ==== ECharts 图表容器通用 ==== */
        #chart-map, #chart-radar, #chart-trend, #chart-sankey, #chart-race {
            width: 100%;
        }

        /* ==== 六维度分项因子 ==== */
        .dim-factors-wrap { margin-top: 16px; }
        .dim-factors-wrap h4 {
            font-size: 13px; color: var(--primary-dark); margin-bottom: 10px;
            display: flex; align-items: center; gap: 6px;
        }
        .dim-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
        @media (max-width: 900px) {
            .dim-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 600px) {
            .dim-grid { grid-template-columns: 1fr; }
        }
        .dim-card {
            border-radius: 10px; border: 1.5px solid var(--border);
            overflow: hidden; font-size: 12px;
        }
        .dim-card-hdr {
            padding: 8px 12px; color: white; font-weight: 700;
            display: flex; align-items: center; justify-content: space-between;
        }
        .dim-card-hdr .dim-weight {
            font-size: 11px; opacity: 0.9; font-weight: 600;
            background: rgba(255,255,255,0.2); padding: 1px 7px; border-radius: 10px;
        }
        .dim-card-body { padding: 8px 10px; background: white; }
        .dim-factor {
            display: flex; align-items: flex-start; gap: 5px;
            padding: 4px 0; border-bottom: 1px dashed #f0f0f0;
            line-height: 1.5;
        }
        .dim-factor:last-child { border-bottom: none; }
        .dim-factor-dot {
            width: 5px; height: 5px; border-radius: 50%;
            background: currentColor; flex-shrink: 0; margin-top: 6px;
            opacity: 0.6;
        }
        .dim-factor-name { font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
        .dim-factor-desc { color: #64748b; font-size: 11px; }
        .dim-card.case-card .dim-factor-desc { color: #b91c1c; }
