/* 滚动公告 */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 0 16px 0 36px;
    border-radius: 8px;
    background-color: var(--white-color);
    color: #333;
    position: relative;
}

.marquee::before {
    content: '';
    box-sizing: content-box;
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 1;

    background-color: var(--white-color);
    transform: translateY(-50%);
    display: inline-block;
    padding: 0 6px 0 0;
    width: 30px;
    height: 30px;
    background-image: url(/images/HX/gonggao.png);
    background-position: center;
    background-size: 30px;
    background-repeat: no-repeat;
}

.marquee::after {
    content: '';
    box-sizing: content-box;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 1;
    background-color: var(--white-color);
    transform: translateY(-50%);
    display: inline-block;
    padding: 0;
    width: 16px;
    height: 30px;
}

.marquee span {
    line-height: 17px;
    display: inline-block;
    padding-left: 0%;
}

/* banner轮播图 */
.bannerBox {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 8px var(--primary-shadow-color);
}
.bannerBox-H5{
    display: none;
}
.bannerBox-PC{
    display: flex;
}
.bannerBox .swiper-container {
    width: 650px;
    height: 364px;
    margin: 0;
}

.bannerSlideBox {
    width: 215px;
    height: 364px;
    background: var(--white-color);
    padding: 15px;
}

/* .classifyItem::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--white-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-35px, -35px) scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.classifyItem::after{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--white-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(35px, 35px) scale(0) rotate(180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
} */



.swiperBox {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    background-color: #f0f0f0;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.bannerImg {
    display: inline-block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.bannerImg img {
    width: 100%;
    height: 100%;
    display: block;
}

.bannerImg span {
    color: var(--white-color);
    left: 0;
    bottom: 0;
    position: absolute;
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
    box-sizing: border-box;
    z-index: 4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiperDrop {
    height: 364px;
    width: 215px;
    overflow-y: auto;
}

.swiperDrop ul {
    min-height: 364px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    background-color: var(--white-color);
}

.swiperDrop li {
    width: 100%;
    padding: 0 12px 0 20px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: transparent;
    border-bottom: 1px solid var(--color-efefef);

    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.swiperDrop li:last-child {
    border-bottom: 1px solid transparent;
}

.swiperDrop li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120px;
    width: 90px;
    height: 90px;
    background-color: var(--primary-color-2);
    z-index: 0;
    transform: rotate(50deg) scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 15px var(--primary-light-color);
}

.swiperDrop li::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -130px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    z-index: 1;
    transform: rotate(50deg) scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 15px var(--primary-light-color);
}

.swiperDrop li a {
    position: relative;
    z-index: 2;
    color: var(--color-333);
}

.swiperDrop li:hover,
.swiperDrop li.active {
    background: linear-gradient(120deg, var(--primary-light-color-2), var(--primary-light-color));
    color: var(--white-color);
}

.swiperDrop li:hover::before,
.swiperDrop li.active::before {
    left: -80px;
    transform: rotate(50deg) scale(1);
    opacity: 1;
    animation: pulseSquareBefore 1s ease-in-out infinite;
}

.swiperDrop li:hover::after,
.swiperDrop li.active::after {
    right: -93px;
    transform: rotate(50deg) scale(1);
    opacity: 1;
    animation: pulseSquareAfter 1s ease-in-out infinite 0.2s;
}

@keyframes pulseSquareBefore {

    0%,
    100% {
        transform: rotate(50deg) scale(1);
    }

    50% {
        transform: rotate(50deg) scale(1.1);
    }
}

@keyframes pulseSquareAfter {

    0%,
    100% {
        transform: rotate(50deg) scale(1);
    }

    50% {
        transform: rotate(50deg) scale(1.1);
    }
}

/* 媒體查詢 */
@media screen and (max-width: 1080px) {
    .bannerBox {
        margin-top: 0;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .bannerBox-PC{
        display: none;
    }
    .bannerBox-H5, .bannerBox-H5-16x9 {
        display: flex;
        padding: 12px 12px 0;
        box-shadow: none;
        
    }
    .bannerBox-H5-16x9 {
        min-height: 200px; /* 防止切换时跳动 */
    }

    .bannerBox-card {
        min-height: 0 !important; /* 卡片模式不需要最小高度 */
    }
    .bannerBox-H5 .swiper-slide, .bannerBox-H5-16x9 .swiper-slide {
        border-radius: 5px;
        overflow: hidden;
    }
    .swiperBox {
        width: 100%;
        padding-top: 56.25%;
        position: relative;
    }
    .bannerBox-H5 .swiperBox{
        padding-top: 35%;
    }
    .bannerBox-H5-16x9 .swiperBox {
        padding-top: 56.25%;
    }
    .bannerBox .swiper-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .bannerSlideBox {
        display: none;
    }

    .swiperDrop {
        display: none;
    }

    .bannerImg {
        position: relative;
    }

    .bannerImg span {
        color: var(--white-color);
        left: 0;
        bottom: 0;
        position: absolute;
        display: block;
        width: 100%;
        padding: 30px 15px 0;
        height: 74px;
        font-size: 16px;
        line-height: 44px;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .bannerBox-H5 .bannerImg span, .bannerBox-H5-16x9 .bannerImg span {
        display: none;
    }
    .marquee {
        background-color: var(--white-color);
    }
    .marquee span {
        font-size: 14px;
    }

    .marquee::after {
        width: 12px;
        background-color: var(--white-color);
    }

    .marquee::before {
        width: 18px;
        height: 18px;
        background-color: var(--white-color);
    }

    /* 卡片模式样式 */
    .swiper-container-mobile-card {
        overflow: visible !important;
        padding: 20px 0;
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* 卡片模式的外层容器，直接设置不用 padding-top */
    .swiperBox-card {
        padding-top: 0 !important;
        position: static !important;
        height: auto !important;
    }
    
    .swiper-container-mobile-card .swiper-wrapper {
        align-items: center;
    }
    
    .swiper-container-mobile-card .swiper-slide {
        /* 基础宽度 80% */
        width: 80% !important;
        height: auto !important;
        transform: scale(0.85) !important;
        opacity: 0 !important;
        z-index: 0 !important;
        transition: transform 0.3s ease, opacity 0.3s ease, z-index 0s;
    }
    
    .swiper-container-mobile-card .swiper-slide-prev {
        transform: scale(0.85) !important;
        opacity: 0.6 !important;
        z-index: 1 !important;
    }
    
    .swiper-container-mobile-card .swiper-slide-next {
        transform: scale(0.85) !important;
        opacity: 0.6 !important;
        z-index: 1 !important;
    }
    
    .swiper-container-mobile-card .swiper-slide-active {
        transform: scale(1) !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }
    
    .swiper-container-mobile-card .swiper-slide .bannerImg {
        display: block;
        width: 100%;
        height: 0;
        position: relative;
        padding-top: 56.25%; /* 16:9 比例 */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .swiper-container-mobile-card .swiper-slide .bannerImg img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}