/* 轮播图容器 */
#bannerCarousel {
    position: relative;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
}

.hero-sections {
    position: relative;
    width: 100%;
    aspect-ratio: 4416 / 1495; 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 2%;
    transition: background-image 0.5s ease-in-out;
}

/* 将卡片网格固定在容器底部，确保背景切换时网格不抖动 */
.card-overlay {
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    z-index: 10;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    max-width: 1400px; 
    margin: 0 auto;
    width: 80%;
}

/* 响应式调整 */
@media (min-width: 2600px) {
    .card-grid { 
        max-width: 2400px; 
        gap: 45px; 
        width: 85%; }
    .hero-section { 
        padding-bottom: 15%; 
    }
}
@media (min-width: 1921px) {
    .hero-section { 
        padding-bottom: 15px; 
    }
}

/* 卡片样式保持不变 */
.woelfel-card {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}
.card-img-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.card-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(0,0,0,0.3);
    transition: opacity 0.3s;
    text-align: center;
    padding: 10px;
}
.woelfel-card:hover .card-img-layer { 
    opacity: 1; 
    transform: scale(1.1);
}
.woelfel-card:hover .card-title { 
    opacity: 0;
}

/* 轮播图左右切换按钮 */
.carousel-control-prev, .carousel-control-next {
    z-index: 11;
    width: 5%;
    margin: 30px;
}