/* 设备兼容性弹窗样式 */
.device-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.device-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.device-modal-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.device-modal-close {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.device-modal-close:hover {
    color: #333;
}

.device-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.device-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    table-layout: fixed; /* 添加固定布局 */
}

/* 设置列宽比例 */
.device-table th:first-child,
.device-table td:first-child {
    width: 25%; /* 第一列占25% */
}

.device-table th:last-child,
.device-table td:last-child {
    width: 75%; /* 第二列占75%，给设备型号更多空间 */
}

.device-table th,
.device-table td {
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    text-align: left;
    vertical-align: top;
}

.device-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.device-table td {
    color: #333;
}

.device-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.device-table tbody tr:hover {
    background-color: #e9ecef;
}

/* 移动端适配 */
@media screen and (max-width: 1024px) {
    .device-modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .device-modal-header {
        padding: .3rem;
    }
    
    .device-modal-header h3 {
        font-size: .32rem;
    }
    
    .device-modal-close {
        font-size: .5rem;
    }
    
    .device-modal-body {
        padding: .3rem;
        max-height: 75vh;
    }
    
    .device-table {
        font-size: .24rem;
    }
    
    .device-table th,
    .device-table td {
        padding: .2rem .15rem;
    }
    
    /* 移动端表格横向滚动 */
    .device-modal-body {
        overflow-x: auto;
    }
    
    .device-table {
        min-width: 500px;
    }
}

/* 更小屏幕的适配 */
@media screen and (max-width: 480px) {
	.device-table {
	    min-width: 90%;
	}
	
    .device-modal-content {
        margin: 20% auto;
        width: 90%;
    }
    
    .device-table th:first-child,
    .device-table td:first-child {
        min-width: 120px;
    }
    
    .device-table th:last-child,
    .device-table td:last-child {
        min-width: 300px;
    }
	
	.rjxaz_mask {
	    display: flex;
		flex-wrap: wrap;
	}
}

/* 三列表格的列宽设置 */
.device-table.phone-table th:first-child,
.device-table.phone-table td:first-child {
    width: 20%; /* 品牌列 */
}

.device-table.phone-table th:nth-child(2),
.device-table.phone-table td:nth-child(2) {
    width: 50%; /* 手机型号列 */
}

.device-table.phone-table th:last-child,
.device-table.phone-table td:last-child {
    width: 30%; /* 系统版本列 */
}