/* ==========================================
   爆发富论坛 - 高手榜页面样式
   ========================================== */

/* 高手头部 */
.expert-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 48px 0;
    text-align: center;
}

.expert-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.expert-header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 高手容器 */
.expert-container {
    padding: 48px 20px;
}

/* 前三名 */
.top-three {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
    align-items: end;
}

.top-expert {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition-normal);
}

.top-expert:hover {
    transform: translateY(-8px);
}

.top-expert.rank-1 {
    padding: 48px 32px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.rank-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
}

.expert-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 16px auto 20px;
    border: 4px solid var(--primary-light);
}

.rank-1 .expert-avatar-large {
    width: 150px;
    height: 150px;
    border-width: 5px;
    border-color: #ffd700;
}

.expert-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-expert h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.rank-1 h2 {
    font-size: 1.625rem;
}

.expert-role {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.expert-score {
    margin-bottom: 20px;
}

.expert-score .score {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rank-1 .expert-score .score {
    font-size: 2.5rem;
    color: #ffaa00;
}

.expert-score .score-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.expert-stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.expert-stats-row .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expert-stats-row .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.expert-stats-row .stat-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 高手列表区域 */
.expert-list-section {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.list-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.list-filter select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6368' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.list-filter select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 高手列表 */
.expert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expert-list-item {
    display: grid;
    grid-template-columns: 48px 64px 1fr 2fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.expert-list-item:hover {
    background: var(--primary-light);
}

.rank-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.expert-avatar-small {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-primary);
}

.expert-info h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.expert-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.expert-metrics {
    display: flex;
    gap: 32px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-follow {
    padding: 8px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.btn-follow:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: #fff;
}

.pagination a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    color: var(--text-muted);
}

/* 响应式 */
@media screen and (max-width: 1199px) {
    .top-three {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
    
    .top-expert.rank-1 {
        padding: 32px 24px;
    }
    
    .rank-1 .expert-avatar-large {
        width: 120px;
        height: 120px;
    }
    
    .expert-list-item {
        grid-template-columns: 40px 56px 1fr 2fr auto;
        gap: 12px;
    }
}

@media screen and (max-width: 991px) {
    .top-three {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 48px;
    }
    
    .top-expert.rank-1 {
        order: -1;
    }
    
    .expert-list-item {
        grid-template-columns: 40px 56px 1fr auto;
    }
    
    .expert-metrics {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .expert-header h1 {
        font-size: 1.5rem;
    }
    
    .expert-container {
        padding: 32px 20px;
    }
    
    .expert-list-section {
        padding: 24px;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .expert-list-item {
        grid-template-columns: 36px 48px 1fr auto;
        gap: 10px;
        padding: 12px 16px;
    }
    
    .expert-avatar-small {
        width: 48px;
        height: 48px;
    }
    
    .expert-info h3 {
        font-size: 1rem;
    }
    
    .btn-follow {
        padding: 6px 16px;
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 479px) {
    .expert-header {
        padding: 32px 0;
    }
    
    .expert-header h1 {
        font-size: 1.25rem;
    }
    
    .expert-container {
        padding: 24px 16px;
    }
    
    .top-expert {
        padding: 24px 16px;
    }
    
    .expert-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .top-expert h2 {
        font-size: 1.125rem;
    }
    
    .expert-score .score {
        font-size: 1.5rem;
    }
    
    .expert-list-section {
        padding: 20px 16px;
    }
    
    .expert-list-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    
    .rank-num,
    .expert-avatar-small {
        display: none;
    }
}
