/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #3498db;
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
}

.status-dot.active {
    background-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.status-text {
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    padding: 40px;
    flex-grow: 1;
}

section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

section h2 i {
    color: #3498db;
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.stat-card {
    background-color: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-icon.uptime {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

.stat-icon.response {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.stat-icon.storage {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.stat-icon.requests {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.stat-info h3 {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* 监测卡片样式 */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.monitor-card {
    background-color: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.monitor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.monitor-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.progress-container {
    height: 10px;
    background-color: #e0e6ed;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    border-radius: 5px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
}

.check-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.check-time i {
    color: #3498db;
}

/* 最近事件样式 */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #f8fafc;
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
}

.event-item:hover {
    background-color: #f0f7ff;
    transform: translateX(5px);
}

.event-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.event-icon.success {
    background-color: #2ecc71;
}

.event-icon.warning {
    background-color: #f39c12;
}

.event-icon.info {
    background-color: #3498db;
}

.event-details h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.event-details p {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.event-time {
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 40px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
    align-items: start;
}

.footer-info {
    justify-self: start;
}

.footer-info p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.footer-info p:last-child {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-stats {
    justify-self: end;
    text-align: right;
}

.footer-stats p {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-stats i {
    color: #3498db;
}


.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .status-indicator {
        align-self: flex-start;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .stats-grid,
    .monitoring-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-info, .footer-stats {
        justify-self: center;
        text-align: center;
    }
    
    .footer-stats p {
        justify-content: center;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        font-size: 2rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 25px 20px;
    }
}
