/**
 * 新服速递列表页样式
 */

.server-list-page {
    margin: 30px 0 50px;
}

.server-list-page .server-table-wrapper {
    overflow-x: auto;
}

.server-list-page .server-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 800px;
    border-radius: 16px;
    overflow: hidden;
}

.server-list-page .server-table th,
.server-list-page .server-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #efe4d4;
    vertical-align: middle;
}

.server-list-page .server-table th {
    background: linear-gradient(135deg, #f5efe6, #ede3d5);
    color: #1c3a4f;
    font-weight: 700;
    border-bottom: 2px solid #d4af37;
}

/* 列宽控制 */
.server-list-page .server-table th:first-child,
.server-list-page .server-table td:first-child {
    width: 130px;
    white-space: nowrap;
}

.server-list-page .server-table th:nth-child(2),
.server-list-page .server-table td:nth-child(2) {
    width: 160px;
}

.server-list-page .server-table th:nth-child(3),
.server-list-page .server-table td:nth-child(3) {
    width: 140px;
}

.server-list-page .server-table th:nth-child(4),
.server-list-page .server-table td:nth-child(4) {
    width: 360px;
}

.server-list-page .server-table th:last-child,
.server-list-page .server-table td:last-child {
    width: 90px;
    white-space: nowrap;
    text-align: center;
}

/* 标签样式 */
.server-list-page .feature-item {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
}

.server-list-page .feature-item.version-tag {
    background: #e8f4f8;
    color: #2c5f8a;
    border: 1px solid #b8d4e8;
}

.server-list-page .feature-item.version-exclusive {
    background: linear-gradient(135deg, #d4af37, #e6c468);
    color: #0f1a24;
    border: 1px solid #f3dfa8;
    font-weight: bold;
}

.server-list-page .feature-item.intro-tag {
    background: #fef5e7;
    color: #b88633;
    border: 1px solid #f0dbb5;
    cursor: help;
}

/* 进服按钮 */
.server-list-page .btn-download {
    background: #d4af37;
    border: none;
    color: #16232e;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.server-list-page .btn-download:hover {
    background: #c19b3c;
    transform: translateY(-2px);
}

/* 分页样式 */
.server-list-page .pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.server-list-page .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ddd0bb;
    color: #1e2f3d;
    text-decoration: none;
    transition: all 0.15s;
}

.server-list-page .page-link.active,
.server-list-page .page-link:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #0f1a24;
}

/* 空状态样式 */
.server-list-page .empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
}

.server-list-page .empty-state i {
    font-size: 48px;
    color: #b88633;
    margin-bottom: 16px;
    display: block;
}

.server-list-page .empty-state p {
    color: #8a9aa8;
}

/* 错误状态样式 */
.server-list-page .error-state {
    padding: 40px;
    text-align: center;
    color: #f44336;
    background: #fff;
    border-radius: 16px;
}

.server-list-page .error-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* ========== 筛选区域样式 ========== */
.server-filter-area {
    background: linear-gradient(135deg, #ffffff, #fefaf5);
    border-radius: 60px;
    padding: 8px 20px 8px 24px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    border: 1px solid #e8dccd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-label {
    font-weight: 600;
    color: #1c3a4f;
    font-size: 14px;
    background: #f0e4d4;
    padding: 6px 16px;
    border-radius: 40px;
    letter-spacing: 1px;
}

.filter-label i {
    color: #b88633;
    margin-right: 6px;
}

.filter-dropdown {
    flex: 0 0 200px;
}

.version-select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d4c5ae;
    border-radius: 40px;
    background: #fff;
    color: #1e2f3d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b88633' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.version-select:hover,
.version-select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-clear .clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5efe6;
    padding: 8px 20px;
    border-radius: 40px;
    color: #b88633;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e8dccd;
}

.filter-clear .clear-btn:hover {
    background: #d4af37;
    color: #0f1a24;
    border-color: #d4af37;
}

.filter-result-count {
    margin-left: auto;
    font-size: 13px;
    color: #8a9aa8;
    background: #f5efe6;
    padding: 6px 18px;
    border-radius: 40px;
}

.filter-result-count strong {
    color: #d4af37;
    font-size: 18px;
    margin: 0 4px;
    font-weight: 800;
}

/* 响应式 */
@media (max-width: 768px) {
    .server-filter-area {
        flex-direction: row;
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 12px 16px;
    }
    
    .filter-label {
        padding: 4px 14px;
        font-size: 12px;
    }
    
    .filter-dropdown {
        flex: 1;
        min-width: 150px;
    }
    
    .filter-result-count {
        margin-left: 0;
        margin-right: auto;
        font-size: 12px;
        padding: 4px 14px;
    }
    
    .filter-result-count strong {
        font-size: 15px;
    }
    
    .filter-clear .clear-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
}