/* ================== 全局重置与基础设置 ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    background-color: #E8F3FF; /* 浅蓝背景 */
    color: #333;
    line-height: 1.5;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

/* ================== 顶部信息卡 - 置顶悬浮 ================== */
#顶部信息卡 {
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 24px;
    margin-bottom: 24px;
}

.事件标题主 {
    font-size: 22px;
    font-weight: bold;
    color: #1E3A8A;
    margin-bottom: 16px;
}

.客户与时间行 {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.客户项,
.时间项 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #4B5563;
}

.blue-icon {
    color: #3B82F6;
}

.等级标签组 {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.等级标签 {
    background-color: #DBEAFE;
    color: #1D4ED8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ================== 四大区域布局 ================== */
.四大区域并列 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.基本信息区容器,
.传播分析区容器,
.情报汇总区容器,
.风险研判区容器 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.基本信息区标题,
.传播分析区标题,
.情报汇总区标题,
.风险研判区标题 {
    font-size: 18px;
    font-weight: bold;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    color: #1E40AF;
}

.基本信息区标题 i,
.传播分析区标题 i,
.情报汇总区标题 i,
.风险研判区标题 i {
    margin-right: 8px;
    color: #3B82F6;
}

/* ================== 子模块网格与卡片（关键：蓝色边框） ================== */
.子模块网格 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 16px 24px 24px 24px;
}

.子模块卡片 {
    border: 2px solid #3B82F6; /* 蓝色边框 */
    border-radius: 8px;
    padding: 16px;
    background-color: #fafcff;
}

.基本信息标签 {
    display: block;
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 10px;
    font-size: 15px;
}

.基本信息标签 i {
    margin-right: 6px;
    color: #3B82F6;
}

/* ================== 基本信息区内部组件 ================== */
.基本信息文本 {
    font-size: 14px;
    color: #4B5563;
    white-space: pre-wrap;
}

.事件判断网格 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.判断字段项 {
    background: #EFF6FF;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
}

.判断字段名 {
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 4px;
}

.判断字段值 {
    color: #4B5563;
}

.进程条目 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #dbeafe;
}

.进程时间 {
    font-weight: bold;
    color: #3B82F6;
    min-width: 90px;
}

.进程标题 {
    flex: 1;
    color: #333;
}

.进程类型标签 {
    background: #DBEAFE;
    color: #1D4ED8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* ================== 传播分析区 ================== */
.数字卡容器 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.数字卡 {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 10px;
    background: #F0F9FF;
    border-radius: 8px;
    border: 1px solid #BFDBFE;
}

.数字卡数值 {
    font-size: 18px;
    font-weight: bold;
    color: #1E40AF;
}

.数字卡标题 {
    font-size: 12px;
    color: #4B5563;
    margin-top: 4px;
}

.柱状图容器 {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 8px;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    position: relative;
}

.柱状图柱 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    background: linear-gradient(to top, #3B82F6, #93C5FD);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.柱状图数值 {
    position: absolute;
    bottom: -20px;
    font-weight: bold;
    color: #1E40AF;
    font-size: 13px;
}

.柱状图标签 {
    position: absolute;
    top: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #4B5563;
    text-align: center;
    width: 100%;
}

/* ================== 情报与风险区通用样式 ================== */
.情报条目,
.评论详情项,
.风险详情项,
.研判详情项,
.建议详情项 {
    margin-bottom: 10px;
    font-size: 14px;
}

.情报条目 {
    color: #6B7280;
}

.暂无数据 {
    color: #9CA3AF;
    font-style: italic;
    font-size: 14px;
}

.评论标题,
.风险标题,
.研判标题,
.建议标题 {
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 4px;
}

.评论概述,
.风险概述,
.研判概述,
.建议概述 {
    font-size: 14px;
    color: #4B5563;
    white-space: pre-wrap;
}

/* ================== 无事件状态 ================== */
.no-event {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
    font-size: 18px;
}

/* ================== 悬浮推送按钮 ================== */
.悬浮推送按钮 {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #3B82F6;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    font-size: 20px;
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}

.悬浮推送按钮:hover {
    background-color: #2563EB;
    transform: scale(1.05);
}

/* ================== 响应式优化 ================== */
@media (max-width: 768px) {
    .main-container {
        padding: 16px;
    }

    #顶部信息卡 {
        padding: 16px;
    }

    .事件标题主 {
        font-size: 18px;
    }

    .客户与时间行 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .等级标签组 {
        margin-left: 0;
        margin-top: 8px;
    }

    .子模块网格 {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .数字卡 {
        min-width: 70px;
        padding: 8px;
    }

    .数字卡数值 {
        font-size: 16px;
    }

    .柱状图柱 {
        width: 32px;
    }

    .柱状图标签 {
        font-size: 11px;
    }
}