/* 页面容器 — 顶部间距与导航协调（navbar 48px + 12px 间隙） */
.content-wrapper {
    margin-top: 60px;
    padding: 0 20px 20px;
}

/* 筛选区域样式 */
.filter-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 筛选按钮 — 全站胶囊规格（36px 高：0.85rem×lh2.1 + 1px border 补偿，字较初版胶囊稍大） */
.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 1px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #666;
    font-size: 0.85rem;
    line-height: 2.1;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #f5f7fa;
    border-color: #bcd0e5;
    color: #4a90d9;
}

.filter-btn.active {
    background-color: #4a90d9;
    color: #fff;
    border-color: #4a90d9;
}

/* 分页按钮 — 同款胶囊规格（保留页面原有颜色体系） */
.pagination-wrapper .btn {
    display: inline-flex;
    align-items: center;
    padding: 1px 14px;
    font-size: 0.85rem;
    line-height: 2.1;
    border-radius: 10px;
}
.pagination-wrapper .form-control-sm {
    height: 36px;
    border-radius: 10px;
}

/* 表格样式 */
.rank-table {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 20px;
}

/* 固定表头 - 页面滚动时列名悬停在导航栏下方 */
.rank-table thead th {
    position: sticky;
    top: 60px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 1px 10px;
        font-size: 0.85rem;
    }
    
    .table {
        font-size: 14px;
    }
}

/* 表格排序交互 */
.sortable {
    cursor: pointer;
}
.sortable:hover {
    background-color: #f8f9fa;
}
.sort-icon::after {
    content: "↕️";
    margin-left: 5px;
    font-size: 12px;
}
.sort-asc::after {
    content: "↑";
}
.sort-desc::after {
    content: "↓";
} 