/* ========================================
   查看全部专家页面样式
   使用 experts- 前缀避免冲突
   ======================================== */

/* ========================================
   主内容区
   ======================================== */
.experts-page {
    min-height: auto !important;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.50) 0%, white 100%) !important;
    display: block !important;
    align-items: initial !important;
    flex: none !important;
    padding: 0;
}

/* ========================================
   Banner
   ======================================== */
.experts-banner {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
}

.experts-banner-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 64px 24px 0;
    position: relative;
}

.experts-banner-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.experts-banner-icon img {
    width: 100%;
    height: 100%;
}

.experts-banner-title {
    font-size: 36px;
    font-weight: 600;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.experts-banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #EFF6FF;
    margin: 0;
}

/* ========================================
   统计数据区域
   ======================================== */
.experts-stats {
    padding: 48px 0;
    margin-top: -118px;
    position: relative;
    z-index: 10;
}

.experts-stats-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.experts-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.experts-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.10), 0px 10px 15px -3px rgba(0, 0, 0, 0.10);
    border: 1px solid #F3F4F6;
    text-align: left;
}

.experts-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: #155DFC;
    margin-bottom: 8px;
}

.experts-stat-number.experts-stat-green {
    color: #00A63E;
}

.experts-stat-number.experts-stat-purple {
    color: #9810FA;
}

.experts-stat-number.experts-stat-orange {
    color: #F54900;
}

.experts-stat-label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #4A5565;
}

/* ========================================
   筛选和列表区域
   ======================================== */
.experts-content {
    padding: 0 0 64px;
}

.experts-content-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* 筛选卡片 */
.experts-filter-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    border: 1px solid #F3F4F6;
    margin-bottom: 24px;
}

/* 搜索框 */
.experts-search-box {
    position: relative;
    width: 100%;
    height: 54px;
    margin-bottom: 25px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.experts-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.experts-search-input {
    width: 100%;
    height: 100%;
    padding: 0 20px 0 48px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    outline: none;
    box-sizing: border-box;
}

.experts-search-input::placeholder {
    color: rgba(26, 26, 46, 0.50);
}

/* 筛选行 */
.experts-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.experts-filter-border {
    padding-top: 17px;
    border-top: 1px solid #F3F4F6;
    margin-top: 17px;
}

.experts-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #4A5565;
    padding-top: 8px;
    flex-shrink: 0;
}

.experts-filter-label img {
    width: 16px;
    height: 16px;
}

.experts-filter-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.experts-filter-tag {
    height: 36px;
    padding: 0 16px;
    background: #F9FAFB;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.experts-filter-tag:hover {
    background: #EFF6FF;
}

.experts-filter-tag.active {
    background: #155DFC;
    color: white;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.10), 0px 4px 6px -1px rgba(0, 0, 0, 0.10);
}

.experts-filter-count {
    font-size: 12px;
    opacity: 0.75;
}

/* 专家数量提示 */
.experts-count {
    font-size: 16px;
    font-weight: 400;
    color: #4A5565;
    margin-bottom: 24px;
}

.experts-count-num {
    font-size: 16px;
    font-weight: 600;
    color: #155DFC;
}

/* ========================================
   专家卡片网格
   ======================================== */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.experts-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    border: 1px solid #F3F4F6;
    transition: all 0.2s ease;
}

.experts-card-featured {
    border-color: #BEDBFF;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10), 0px 0px 0px 2px #DBEAFE;
}

.experts-card:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.experts-card-content {
    padding: 24px;
}

/* 卡片头部 */
.experts-card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.experts-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #155DFC 0%, #1447E6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experts-avatar img {
    width: 64px;
    height: 64px;
}

.experts-info {
    flex: 1;
}

.experts-name {
    font-size: 18px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experts-recommend {
    display: inline-block;
    padding: 2px 8px;
    background: #FFEDD4;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #F54900;
}

.experts-title {
    font-size: 14px;
    font-weight: 400;
    color: #4A5565;
    margin: 0;
}

/* 学校信息 */
.experts-school {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.experts-school img {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.experts-school-name {
    font-size: 14px;
    font-weight: 500;
    color: #4A5565;
    margin: 0 0 2px 0;
}

.experts-dept {
    font-size: 12px;
    font-weight: 400;
    color: #4A5565;
    margin: 0;
}

/* 描述 */
.experts-desc {
    font-size: 14px;
    font-weight: 400;
    color: #4A5565;
    margin: 0 0 12px 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 研究领域标签 */
.experts-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.experts-tag {
    padding: 4px 8px;
    background: #EFF6FF;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #155DFC;
}

/* 统计数据 */
.experts-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.experts-stat {
    text-align: center;
}

.experts-stat-border {
    border-left: 1px solid #F3F4F6;
    border-right: 1px solid #F3F4F6;
}

.experts-stat-num {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 4px;
}

.experts-stat-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #4A5565;
}

/* 邀请合作按钮 */
.experts-invite-btn {
    width: 100%;
    height: 40px;
    background: #155DFC;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.experts-invite-btn:hover {
    background: #1447E6;
}

.experts-invite-btn img {
    width: 16px;
    height: 16px;
}

/* ========================================
   底部CTA区域
   ======================================== */
.experts-cta {
    padding: 64px 0;
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
}

.experts-cta-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.experts-cta-title {
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin: 0 0 12px 0;
}

.experts-cta-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #EFF6FF;
    margin: 0 0 48px 0;
}

.experts-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.experts-cta-btn-primary {
    width: 172px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    color: #155DFC;
    cursor: pointer;
    box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.10), 0px 20px 25px -5px rgba(0, 0, 0, 0.10);
    transition: all 0.2s ease;
}

.experts-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 10px 12px -6px rgba(0, 0, 0, 0.15), 0px 22px 27px -5px rgba(0, 0, 0, 0.15);
}

.experts-cta-btn-secondary {
    width: 176px;
    height: 64px;
    background: transparent;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.experts-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .experts-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .experts-banner {
        height: auto;
        padding: 40px 24px;
    }

    .experts-banner-container {
        padding: 0;
    }

    .experts-banner-title {
        font-size: 28px;
    }

    .experts-stats {
        margin-top: -80px;
        padding: 32px 0;
    }

    .experts-stats-grid {
        grid-template-columns: 1fr;
    }

    .experts-grid {
        grid-template-columns: 1fr;
    }

    .experts-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .experts-filter-tags {
        width: 100%;
    }

    .experts-filter-tag {
        flex: 1;
        min-width: 0;
    }

    .experts-cta {
        padding: 48px 0;
    }

    .experts-cta-title {
        font-size: 24px;
    }

    .experts-cta-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .experts-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .experts-cta-btn-primary,
    .experts-cta-btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   分页样式
   ======================================== */
.experts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-bottom: 32px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4A5565;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #EFF6FF;
    border-color: #155DFC;
    color: #155DFC;
}

.pagination-btn.active {
    background: #155DFC;
    border-color: #155DFC;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #6A7282;
}

/* 加载状态 */
.experts-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6A7282;
}

.experts-loading p {
    font-size: 16px;
}

/* ========================================
   响应式 - 分页
   ======================================== */
@media (max-width: 768px) {
    .experts-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
