
/* 描述容器 */
.description-container {
    position: relative;
    margin: 8px 0;
    line-height: 1.5;
}

/* 文本截断样式 */
.description-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: all 0.3s ease;
    max-height: 3em; /* 两行高度 (1.5行高 x 2) */
    text-indent: 2em; /* 新增首行缩进 */
}

/* 悬停展开效果 */
.description-container:hover .description-text {
    -webkit-line-clamp: unset;
    max-height: 200px; /* 最大展开高度 */
    overflow-y: auto; /* 超长内容显示滚动条 */
}

/* 小屏幕优化 */
@media (max-width: 768px) {
    .description-text {
        -webkit-line-clamp: 1;
        max-height: 1.5em;
    }

    .description-container:hover .description-text {
        max-height: 150px;
    }
}

/* 平滑滚动条样式 */
.description-text::-webkit-scrollbar {
    width: 4px;
}

.description-text::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}
