/* ============================================
   首页联盟专家样式 - 严格按照效果图
   卡片结构：
   - 左侧：长方形头像（左上直角，右上大圆角，左下大圆角，右下直角）
           头像下方深绿色姓名区域
   - 右侧：浅绿色圆角信息区域，与头像左侧重叠
   ============================================ */

/* PC端容器：一行3列 */
.homepage-experts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0 40px 0;
    margin: 0 auto;
}

/* 单张专家卡片 */
.homepage-expert-card {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-expert-card:hover {
    transform: translateY(-4px);
}

/* ---- 左侧头像区域 ---- */
.expert-left-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 130px;
    margin-top: -22px;
    z-index: 2;
    position: relative;
}

/* 头像图片容器：左上直角，右上大圆角，左下大圆角，右下直角 */
.expert-photo-wrap {
    width: 130px;
    height: 165px;
    overflow: hidden;
    border-radius: 70px 0 70px 0; /* 左上0 右上50 右下0 左下50 */
    background: #267f6d;
    flex-shrink: 0;
}

.expert-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* 头像下方姓名区域 */
.expert-name-block {
    background: #267f6d;
    border-radius: 0 0 18px 0;
    text-align: center;
    margin-top: 0;
}

.expert-name-text {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    font-family: 'AlibabaPuHuiTi_2_85_Bold', 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* ---- 右侧信息区域 ---- */
.expert-info-panel {
    flex: 1;
    margin-left: -140px;
    z-index: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.expert-info-content {
    width: 100%;
    background: #d4ede7;
    border-radius: 15px;
    padding: 18px 18px 18px 155px;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.06);
}

.expert-info-line {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #1e5248;
    font-family: 'AlibabaPuHuiTi_2_45_Light', 'Microsoft YaHei', sans-serif;
}

.expert-info-line:last-child {
    margin-bottom: 0;
}

/* ============================================
   移动端样式：一行1列
   ============================================ */
.homepage-experts-container-mobile {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 15px;
}

.homepage-expert-card-mobile {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.homepage-expert-card-mobile:hover {
    transform: translateY(-2px);
}

/* 移动端左侧头像区域 */
.expert-left-block-mobile {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 95px;
    z-index: 2;
    position: relative;
}

.expert-photo-wrap-mobile {
    width: 95px;
    height: 120px;
    overflow: hidden;
    border-radius: 0 36px 36px 0;
    background: #267f6d;
    flex-shrink: 0;
}

.expert-photo-wrap-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.expert-name-block-mobile {
    background: #267f6d;
    border-radius: 0 0 10px 10px;
    padding: 6px 8px;
    text-align: center;
}

.expert-name-text-mobile {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    font-family: 'AlibabaPuHuiTi_2_85_Bold', 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* 移动端右侧信息区域 */
.expert-info-panel-mobile {
    flex: 1;
    margin-left: -15px;
    z-index: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.expert-info-content-mobile {
    width: 100%;
    background: #d4ede7;
    border-radius: 12px;
    padding: 14px 14px 14px 26px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.06);
}

.expert-info-line-mobile {
    margin: 0 0 5px 0;
    font-size: 11px;
    line-height: 1.5;
    color: #1e5248;
    font-family: 'AlibabaPuHuiTi_2_45_Light', 'Microsoft YaHei', sans-serif;
}

.expert-info-line-mobile:last-child {
    margin-bottom: 0;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1100px) {
    .homepage-experts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 700px) {
    .homepage-experts-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}