/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

table th:hover {
    background-color: #e2e6ea;
}

/* 斑马条纹 */
table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 鼠标悬停效果 */
table tr:hover {
    background-color: #e9ecef;
    transition: var(--transition);
}

/* 表格最后一行去除边框 */
table tr:last-child td {
    border-bottom: none;
}

/* 状态徽章样式 */
/* 兼容现有 JS: span.className = `status online|offline` */
.status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .5px;
    min-width: 44px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    user-select: none;
}

.status.online {
    background: #28a745;
    /* 绿 */
    color: #fff;
}

.status.offline {
    background: #6c757d;
    /* 灰 */
    color: #fff;
}

.status.unknown {
    background: #adb5bd;
    color: #fff;
}

/* 旧类名兼容（如果有其它地方在用） */
.status-online {
    background: #28a745;
    color: #fff;
}

.status-offline {
    background: #6c757d;
    color: #fff;
}