/* 轮播图动画 */
.banner-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

/* 福外头条标题下划线动画 */
.category-title {
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #E63946;
    transition: width 0.3s ease-in-out;
}

.category-title:hover::after {
    width: 100%;
}

/* 福外头条列表项红点动画 */
.category-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #E63946;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
}

.category-list li:hover::before {
    width: 10px;
    height: 10px;
    transform: translateY(-50%) scale(1.2);
}

/* 修复新闻资讯左边两个卡片在大屏上显示少一行的问题 */
.news-card .line-clamp-3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word;
    word-wrap: break-word;
    /* 确保有足够的高度显示3行，使用leading-relaxed的行高(1.625)和base字体大小(16px)计算 */
    /* 使用更精确的计算：1.625行高 * 3行 = 4.875em，但考虑到实际的line-height行为，使用更保守的值 */
    min-height: 4.8em;
    /* 防止被弹性盒子拉大，覆盖HTML中的flex-grow类 */
    flex-grow: 0 !important;
    /* 确保元素高度根据内容自适应，而不是被父flex容器拉伸 */
    height: auto !important;
}