/* 心猫文化机房监控系统 - 自定义样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 状态指示器 */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.online {
    background: #67c23a;
    box-shadow: 0 0 8px rgba(103, 194, 58, 0.5);
}

.status-dot.warning {
    background: #e6a23c;
    box-shadow: 0 0 8px rgba(230, 162, 60, 0.5);
}

.status-dot.offline {
    background: #f56c6c;
    box-shadow: 0 0 8px rgba(245, 108, 108, 0.5);
}

/* 统计卡片 */
.stat-card {
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
}

.stat-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.online {
    background: linear-gradient(135deg, #67c23a 0%, #95d475 100%);
}

.stat-card.offline {
    background: linear-gradient(135deg, #f56c6c 0%, #f89898 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #e6a23c 0%, #ebb563 100%);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 设备卡片 */
.device-card {
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.device-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.device-card .device-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.device-card .device-info {
    font-size: 13px;
    color: #606266;
    line-height: 1.8;
}

/* 图表容器 */
.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #303133;
}

/* 告警级别标记 */
.severity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.severity-badge.info {
    background: #ecf5ff;
    color: #409eff;
}

.severity-badge.warning {
    background: #fdf6ec;
    color: #e6a23c;
}

.severity-badge.critical {
    background: #fef0f0;
    color: #f56c6c;
}

/* 响应式 */
@media (max-width: 768px) {
    .el-aside {
        display: none;
    }
}
