* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: white;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1::before {
    content: "⚙️";
    font-size: 1.5rem;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.back-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.back-btn::before {
    content: "📁";
    font-size: 1rem;
}

.back-btn:nth-child(2)::before {
    content: "📋";
}

.main-content {
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.devices-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "💻";
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding: 5px;
    flex: 1;
}

.device-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    max-height: 250px;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.device-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-name::before {
    content: "🖥️";
}

.device-info {
    margin-bottom: 15px;
    flex-grow: 1;
}

.device-info p {
    margin: 8px 0;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.device-info strong {
    color: #333;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-online {
    background-color: #d4edda;
    color: #155724;
}

.status-offline {
    background-color: #f8d7da;
    color: #721c24;
}

.device-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background-color: #e0a800;
}

/* 			.btn-edit::before {
    content: "✏️";
} */

.btn-control {
    background-color: #007bff;
    color: white;
}

.btn-control:hover {
    background-color: #0069d9;
}

/* 			.btn-control::before {
    content: "🎮";
} */

.alarm-section {
    width: 420px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.alarm-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alarm-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alarm-title::before {
    content: "🔔";
}

.alarm-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.alarm-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.alarm-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 10px;
    transition: background-color 0.2s;
    align-items: center;
}

.alarm-item:hover {
    background-color: #f9f9f9;
}

.alarm-item:last-child {
    border-bottom: none;
}

.alarm-icon {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 2px;
}

.alarm-icon::before {
    content: "⚠️";
}

.alarm-content {
    flex: 1;
}

.alarm-mac{
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}
.alarm-message {
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.alarm-time {
    font-size: 0.85rem;
    color: #777;
}

.alarm-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    height: 30px;
    line-height: 24px;
}

.status-unhandled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-handled {
    background-color: #d4edda;
    color: #155724;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

[v-cloak] {
    display: none !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .alarm-section {
        width: 100%;
        max-height: 300px;
    }
}