/* 文本截断样式 */

.line-clamp-2 {

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.line-clamp-3 {

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



/* 分页样式优化 */

.pagination {

    display: flex;

    gap: 0.5rem;

    align-items: center;

}



.pagination a,

.pagination span {

    padding: 0.5rem 1rem;

    border-radius: 0.375rem;

    transition: all 0.3s ease;

}



.pagination a {

    background-color: #f3f4f6;

    color: #4b4f58;

}



.pagination a:hover {

    background-color: #a91f29;

    color: white;

}



.pagination span.current {

    background-color: #a91f29;

    color: white;

    font-weight: 600;

}

/* Banner 轮播样式 */
.banner-carousel {
    min-height: 400px;
}

.banner-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-indicator {
    cursor: pointer;
}

.banner-indicator:hover {
    transform: scale(1.2);
}
/* ==========================================================================
   移动端（≤767px）
   轮播 banner 区块只有 pt-3（12px）顶部间距，md 以上才有 md:pt-20，
   窄屏会被 layouts/main.php 的固定导航条压住，这里补足顶部间距；
   同时把桌面版 400px 的最小高度收敛到适合手机的比例。
   ========================================================================== */
@media (max-width: 767px) {
    #banner-carousel-section { padding-top: 4.5rem; }
    .banner-carousel { min-height: 240px; }
}
