/**
 * 公共样式
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

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

.card {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-critical {
    background: #7f1d1d;
    border-left: 4px solid #ef4444;
    color: #fecaca;
}

.alert-high {
    background: #7c2d12;
    border-left: 4px solid #f59e0b;
    color: #fed7aa;
}

.alert-medium {
    background: #1e3a5f;
    border-left: 4px solid #3b82f6;
    color: #bfdbfe;
}

.alert-low {
    background: #1e293b;
    border-left: 4px solid #64748b;
    color: #cbd5e1;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-online {
    background: #10b981;
    color: white;
}

.status-offline {
    background: #64748b;
    color: white;
}

.status-pending {
    background: #f59e0b;
    color: white;
}

.status-resolved {
    background: #10b981;
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.error {
    color: #ef4444;
    padding: 12px;
    background: #7f1d1d;
    border-radius: 6px;
    margin-bottom: 16px;
}

.success {
    color: #10b981;
    padding: 12px;
    background: #064e3b;
    border-radius: 6px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #334155;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #1e293b;
}

.timeline-item.critical::before {
    background: #ef4444;
}

.timeline-item.high::before {
    background: #f59e0b;
}

.timeline-item.medium::before {
    background: #3b82f6;
}

