/* 文章展示容器 - 借鉴商品容器结构 */
.section-article-list .box-article {
    width: 100%;
    min-height: 280px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 15px; /* 补充内边距，无图时内容不贴边 */
}

/* 图片容器 - 无图时自动隐藏，不影响布局 */
.section-article-list .box-article .image-box {
    height: 200px; /* 文章图片高度适配，比商品图小 */
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 6px;
}

.section-article-list .box-article .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 图片hover放大效果（有图时生效） */
.section-article-list .box-article:hover .image-box img {
    transform: scale(1.08); /* 文章图片放大倍数稍小，更自然 */
}

/* 文章信息容器 - 核心适配：无图时自动填充空间 */
.section-article-list .box-article .article-info {
    flex: 1; /* 关键：占满剩余空间，无图时撑满容器 */
    display: flex;
    flex-direction: column;
}

/* 文章标题样式 */
.section-article-list .box-article .title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

/* 文章内容样式 */
.section-article-list .box-article .content {
    flex: 1; /* 内容占满剩余空间，无图时垂直居中 */
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    overflow: hidden; /* 内容过长时隐藏 */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 最多显示4行，可调整 */
    -webkit-box-orient: vertical;
}

/* 容器hover效果 - 与商品容器保持一致 */
.section-article-list .box-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 侧边栏容器基础样式 */
.section-box-recommend {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 15px;
    box-sizing: border-box;
}

/* 侧边栏标题样式 */
.section-box-recommend .section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0; /* 分隔线，提升层次感 */
}

.section-box-recommend .section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 文章列表容器 */
.section-box-recommend .section-content {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 列表项之间的间距 */
}

/* 文章列表项样式 */
.section-box-recommend .news-item {
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 列表项hover效果 */
.section-box-recommend .news-item:hover {
    background: #f8f8f8;
    transform: translateX(3px); /* 轻微右移，增强交互 */
}

/* 文章标题样式 */
.section-box-recommend .news-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap; /* 单行显示 */
    text-overflow: ellipsis; /* 超出省略 */
}

/* 文章日期样式 */
.section-box-recommend .news-date {
    font-size: 12px;
    color: #999;
    line-height: 1;
}