/* 预警页面专用样式 */

/* 预警统计 */
.warning-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-item.total {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
}

.stat-item.red {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
}

.stat-item.orange {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
    color: white;
    border-color: #fd7e14;
}

.stat-item.yellow {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    border-color: #ffc107;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 预警列表 */
.warning-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.warning-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #6c757d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.warning-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.warning-item.level-red {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.warning-item.level-orange {
    border-left-color: #fd7e14;
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
}

.warning-item.level-yellow {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
}

.warning-item.level-blue {
    border-left-color: #007bff;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
}

.warning-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.warning-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.warning-icon img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.icon-fallback {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.warning-info {
    flex: 1;
    min-width: 0;
}

.warning-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.4;
}

.warning-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.warning-level {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.level-red .warning-level {
    background: #dc3545;
    color: white;
}

.level-orange .warning-level {
    background: #fd7e14;
    color: white;
}

.level-yellow .warning-level {
    background: #ffc107;
    color: #212529;
}

.level-blue .warning-level {
    background: #007bff;
    color: white;
}

.warning-time {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.warning-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
}

.warning-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.warning-area {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
}

.warning-detail-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.warning-detail-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 无预警状态 */
.no-warning {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-warning-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-warning-text {
    font-size: 16px;
}

/* 预警类型 */
.warning-type-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.warning-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
}

.warning-type-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.type-icon {
    font-size: 20px;
}

.type-name {
    font-size: 14px;
    font-weight: 500;
}

/* 预警知识 */
.knowledge-list {
    margin-top: 16px;
}

.knowledge-item {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.knowledge-item:last-child {
    margin-bottom: 0;
}

.knowledge-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.knowledge-content {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
}

 