/* ========== ECharts 图表区 ========== */
.echarts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.echarts-panel {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.08);
}

.echarts-panel .panel-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.echarts-panel .panel-header h3 {
    color: #e0e0e0;
    font-size: 14px;
}

.echarts-body {
    padding: 8px 4px 4px 4px !important;
}

.echarts-container {
    width: 100%;
    height: 240px;
    min-height: 200px;
}

@media (max-width: 1200px) {
    .echarts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .echarts-row {
        grid-template-columns: 1fr;
    }
}

/* ========== 首页安全提示条 ========== */
/* ========== 安全滚动条 ========== */
.safety-bar {
    background: linear-gradient(90deg, #fff3e0, #fffde7, #fff3e0);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #ffe0b2;
    height: 36px;
    display: flex;
    align-items: center;
}

.safety-bar-scroll {
    display: flex;
    gap: 40px;
    animation: scrollSafety 30s linear infinite;
    white-space: nowrap;
    font-size: 13px;
    color: #e65100;
    font-weight: 500;
    padding: 0 20px;
}

@keyframes scrollSafety {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ========== 酒店消防图 ========== */
/* ============================================
   酒店消防态势图样式
   ============================================ */

/* ========== BIM 3D建筑模型 ========== */
/* 视口 */
.bim-viewport {
    width: 100%;
    height: calc(100vh - 180px);
    background: #0a0a1a;
    cursor: grab;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.3);
    position: relative;
}
.bim-viewport:active { cursor: grabbing; }
.bim-viewport canvas { display: block; }

/* 工具栏 */
.bim-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    z-index: 100;
}

.bim-toolbar-left, .bim-toolbar-center, .bim-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bim-toolbar-center { font-size: 12px; color: #ccc; font-weight: 500; }

.bim-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: #b0bec5;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.bim-btn:hover { background: rgba(79,195,247,0.15); border-color: rgba(79,195,247,0.4); color: #4fc3f7; }

.bim-floor-select {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    min-width: 110px;
}
.bim-floor-select option { background: #1a1a2e; color: #ccc; }

/* 按钮变体 */
.bim-btn-sim {
    padding: 7px 14px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255,152,0,0.3);
}
.bim-btn-sim:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,152,0,0.5); }

.bim-btn-emergency {
    padding: 7px 14px;
    background: rgba(244,67,54,0.15);
    color: #ef5350;
    border: 1px solid rgba(244,67,54,0.3);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.bim-btn-emergency:hover { background: rgba(244,67,54,0.25); }
.bim-btn-emergency.active {
    background: #f44336;
    color: #fff;
    border-color: #f44336;
    animation: bim-emergency-pulse 1s infinite;
}

@keyframes bim-emergency-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(244,67,54,0.4); }
    50% { box-shadow: 0 0 16px rgba(244,67,54,0.8); }
}

.bim-btn-reset {
    padding: 7px 14px;
    background: rgba(255,255,255,0.05);
    color: #90a4ae;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.bim-btn-reset:hover { background: rgba(255,255,255,0.1); color: #fff; }

.bim-btn-icon {
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    color: #90a4ae;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.bim-btn-icon:hover { background: rgba(79,195,247,0.15); color: #4fc3f7; border-color: rgba(79,195,247,0.3); }

/* 图例面板（浮动） */
.bim-legend-panel {
    position: absolute;
    right: 12px;
    top: 80px;
    z-index: 101;
    background: rgba(10,10,26,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 160px;
}

.bim-legend-title {
    font-size: 12px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 10px;
}

.bim-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}

.bim-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #90a4ae;
    white-space: nowrap;
}

.bim-legend-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 设备信息面板（浮动） */
.bim-info-panel {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 102;
    background: rgba(10,10,26,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0;
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: bim-fade-in 0.2s ease;
}

@keyframes bim-fade-in {
    from { opacity: 0; transform: translateY(calc(-50% + 8px)); }
    to { opacity: 1; transform: translateY(-50%); }
}

.bim-info-header {
    padding: 12px 14px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #4fc3f7;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bim-info-body { padding: 8px 14px 12px; }

.bim-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 11px;
    color: #90a4ae;
}

.bim-info-row span:last-child { color: #e0e0e0; font-weight: 500; }

.bim-status-ok { color: #4caf50 !important; }

.bim-risk { color: #ff9800 !important; font-size: 10px; }

/* 底部统计栏 */
.bim-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,26,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 8px 16px;
    z-index: 100;
}

.bim-stat {
    font-size: 11px;
    color: #78909c;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bim-stat-icon { font-size: 13px; }

.bim-stat strong {
    color: #e0e0e0;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* 紧急闪烁楼层指示 */
@keyframes emergencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* ========== 应急预案 ========== */
/* ========== 应急预案样式 ========== */
.plan-level-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.plan-tab {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    color: #555;
}

.plan-tab:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.plan-tab.active {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff;
    border-color: #1565c0;
    box-shadow: 0 2px 8px rgba(25,118,210,0.3);
}

.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 5px solid #4caf50;
    transition: all 0.3s;
}

.plan-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.plan-card.level_1 { border-left-color: #ffc107; }
.plan-card.level_2 { border-left-color: #ff9800; }
.plan-card.level_3 { border-left-color: #f44336; }
.plan-card.level_4 { border-left-color: #b71c1c; }

.plan-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafbff, #f0f4ff);
}

.plan-card.level_1 .plan-card-header { background: linear-gradient(135deg, #fffde7, #fff9c4); }
.plan-card.level_2 .plan-card-header { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.plan-card.level_3 .plan-card-header { background: linear-gradient(135deg, #ffebee, #ffcdd2); }
.plan-card.level_4 .plan-card-header { background: linear-gradient(135deg, #ffebee, #ef9a9a); }

.plan-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-level-badge {
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-level-badge.level_1 { background: #fff9c4; color: #f57f17; border: 1px solid #ffe082; }
.plan-level-badge.level_2 { background: #ffe0b2; color: #e65100; border: 1px solid #ffcc80; }
.plan-level-badge.level_3 { background: #ffcdd2; color: #c62828; border: 1px solid #ef9a9a; }
.plan-level-badge.level_4 { background: #ef9a9a; color: #b71c1c; border: 1px solid #e57373; }

.plan-card-body {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan-section {
    padding: 14px 16px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #eee;
}

.plan-section-full {
    grid-column: 1 / -1;
}

.plan-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-section-content {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    white-space: pre-line;
}

.plan-section-content strong {
    color: #d32f2f;
}


/* ========== 消防新闻 ========== */
/* ========== 消防新闻样式 ========== */
/* ========== 消防新闻头部按钮 ========== */

.news-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.news-search-box {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 4px 4px 12px;
    transition: border-color 0.2s;
}

.news-search-box:focus-within {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.1);
}

.news-search-box input {
    border: none;
    outline: none;
    font-size: 13px;
    padding: 4px 0;
    width: 200px;
    color: #333;
    background: transparent;
}

.news-search-box input::placeholder {
    color: #aaa;
}

.btn-news-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-news-action:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.btn-news-action:active {
    background: #eee;
}

.btn-news-clear {
    padding: 7px 10px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 14px;
}

.btn-news-clear:hover {
    color: #f44336;
    background: transparent;
}

.news-date-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1565c0;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.btn-news-today {
    background: #1976d2;
    color: #fff;
    border-color: #1565c0;
}

.btn-news-today:hover {
    background: #1565c0;
    color: #fff;
    border-color: #0d47a1;
}

/* ========== 消防新闻列表 ========== */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.25s;
    border-left: 4px solid #2196f3;
    cursor: pointer;
}

.news-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-left-color: #f44336;
}

.news-item:nth-child(odd) { border-left-color: #ff9800; }
.news-item:nth-child(even) { border-left-color: #4caf50; }

.news-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.news-item:nth-child(odd) .news-icon { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.news-item:nth-child(even) .news-icon { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-category {
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.news-category.policy { background: #e3f2fd; color: #1565c0; }
.news-category.warning { background: #fff3e0; color: #e65100; }
.news-category.tech { background: #f3e5f5; color: #7b1fa2; }
.news-category.case { background: #e8f5e9; color: #2e7d32; }
.news-category.education { background: #fffde7; color: #f57f17; }
.news-category.general { background: #f5f5f5; color: #666; }

.news-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 6px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.news-source {
    font-weight: 600;
    color: #666;
}

.news-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.news-link:hover { text-decoration: underline; }

/* ========== 响应式补充 ========== */
@media (max-width: 1200px) {
    .plan-card-body { grid-template-columns: 1fr; }
}

