/* 服务器列表页面样式 - 精美暗金主题 */

:root {
    --primary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --dark-blue: #2563eb;
    --bg-light: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-main);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

.server-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
    background: white;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-flex;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* 页面标题 */
.page-header {
    text-align: left;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 28px;
    color: var(--text-main);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-btn {
    padding: 10px 20px;
    background: white;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.history-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.history-btn i {
    font-size: 16px;
}

/* 区块通用样式 */
.section-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-title {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
}

.server-btn.hidden {
    display: none;
}

.section-title i {
    color: var(--primary-blue);
}

/* 筛选标签样式 */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    width: fit-content;
}

.filter-tab {
    padding: 8px 24px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-tab:hover {
    color: var(--primary-blue);
}

.filter-tab.active {
    background: white;
    color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 服务器按钮网格 */
.server-grid, .recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* 服务器按钮样式 */
.server-btn {
    position: relative;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.server-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

/* 标签样式优化 */
.server-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    background: #f1f5f9;
}

.tag-new { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.tag-merged { color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.tag-retro { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }

/* HOT标签优化 */
.hot-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* 最近游戏列表优化 */
.recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.recent-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.recent-item:hover {
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.recent-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
}

.recent-enter-btn {
    padding: 5px 12px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.recent-item:hover .recent-enter-btn {
    background: var(--dark-blue);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .server-page-container {
        margin: 30px auto;
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .section-card {
        padding: 25px 20px;
    }

    .server-grid, .recommend-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }
}
