/* 前台首页样式 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.header p {
    color: #666;
    margin-top: 10px;
}

/* 统计卡片 */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.stat-card .number.online {
    color: #009688;
}

.stat-card .number.offline {
    color: #ff5722;
}

/* 监控表格 */
.monitor-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.table-header h2 {
    margin: 0;
    color: #333;
}

/* 状态徽章 */
.status-badge {
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.status-badge.status-online {
    background: #e0f2f1;
    color: #009688;
}

.status-badge.status-offline {
    background: #ffebee;
    color: #ff5722;
}

/* 管理员入口链接 */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
