/* 基础样式重置 */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

* { 
    box-sizing: border-box; 
}

a { 
    text-decoration: none; 
    color: inherit;
}

.expert-ranking-header {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    padding: 5px;
    border-bottom: 10px solid rgba(255, 134, 108, 1);
}

.expert-ranking-header .icon-container {
    background-color: #ff5733;
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    margin-right: 15px;
}

.expert-ranking-header .text-container h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.expert-ranking-header .text-container p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* 专家分析列表 */
.expert-list {
    background: white;
}

.expert-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expert-item:hover {
    background-color: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expert-item:last-child {
    border-bottom: none;
}

.expert-content {
    flex: 1;
    min-width: 0;
}

.expert-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expert-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.expert-name {
    color: #2196f3;
    font-size: 14px;
    font-weight: 500;
    width: 70px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expert-time {
    color: #666;
    width: 80px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expert-price {
    background: #f44336;
    color: white;
    padding: 2px 2px;
    border-radius: 4px;
    font-size: 12px;
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expert-arrow {
    margin-left: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-arrow img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.expert-item:hover .expert-arrow img {
    opacity: 1;
}

/* 分页控件 */
.pagination {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1px;
}

.page-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 70px;
}

.page-btn:hover {
    background: #f57c00;
}

.page-btn:active {
    background: #e65100;
}

.page-btn:disabled {
    cursor: not-allowed;
    background: #ccc !important;
}

.page-btn:disabled:hover {
    background: #ccc !important;
}

/* 状态样式 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f44336;
    font-size: 14px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 回到顶部按钮 */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.back-to-top span {
    font-size: 20px;
    font-weight: bold;
}

/* PC端布局（>=767px） */
@media (min-width: 767px) {
    body {
        width: 80%;
        margin: 0 auto;
    }
    
    .expert-ranking-info {
        padding: 15px;
        gap: 12px;
    }
    
    .ranking-icon {
        width: 50px;
        height: 50px;
    }
    
    .ranking-content h2 {
        font-size: 16px;
    }
    
    .ranking-content p {
        font-size: 13px;
    }
    
    .expert-item {
        padding: 12px 15px;
    }
    
    .expert-title {
        font-size: 15px;
    }
    
    .expert-meta {
        font-size: 13px;
    }
    
    .pagination {
        padding: 15px;
        gap: 8px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 60px;
    }
}
