/* Here is your custom css styles. */

/* 文章卡片封面图：添加底部渐变遮罩，让标题文字清晰可读 */
.card .card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    border-radius: 0 0 8px 8px;
    pointer-events: none;
    z-index: 1;
}

/* 确保 card-image 是定位容器 */
.card .card-image {
    position: relative;
    overflow: hidden;
}

/* 标题容器：绝对定位贴底，内部用 flex 居中 */
.card .card-image .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 6px 10px;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .8), 0 0 10px rgba(0, 0, 0, .4);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    max-height: calc(1.4em * 2 + 12px);
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
}
