/* 卡片容器 */
.expert-card {
    width: 100%;
    max-width: 600px; /* 限制卡片最大宽度 */
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* 确保内容不超出圆角边界 */
}

/* 顶部标题栏 */
.card-header {
    background-color: #dcdcdc; /* 浅灰色背景 */
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 卡片主体内容区 */
.card-body {
    padding: 25px;
    display: flex; /* 使用Flexbox布局 */
    gap: 25px; /* 头像和内容之间的间距 */
    align-items: flex-start;
}

/* 头像区域 */
.avatar-box {
    flex-shrink: 0; /* 防止头像被压缩 */
    width: 100px;
    height: 100px;
    border: 1px solid #eee; /* 浅灰色边框 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
}

.avatar-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 专家信息区域 */
.expert-info {
    flex-grow: 1;
}

.expert-name {
    color: #7cb305; /* 绿色用户名 */
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.article-count {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.article-count span {
    color: #7cb305; /* 绿色数字 */
    font-weight: bold;
    font-size: 18px;
}

/* 底部简介区域 */
.card-footer {
    padding: 0 25px 25px 25px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify; /* 两端对齐，使文本更整齐 */
}

/* 响应式调整：在小屏幕上改为垂直布局 */
@media (max-width: 480px) {
    .card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .card-footer {
        text-align: left;
    }
}