/* Swiper Box 轮播图样式 */
.swiper_box {
    position: relative;
    margin-top: 30px;
    margin-bottom: var(--sl-spacing-4x-large);
    --desc-offset-top: 48%;
    --title-font-size: var(--sl-font-size-large);
    --badge-scale: 1;
    --ad-badge-scale: 0.9;
    --detail-font-size: var(--sl-font-size-small);
    --detail-left: 30px;
    --btn-offset-top: var(--sl-spacing-x-large);
    --img-base: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.33) 40%,
        rgba(0, 0, 0, 0) 100%
    );
    --btn-border-line-width: 1px;
    --accent_first_project: #ccc;
    --accent_four_project: transparent;
}

/* 分页器 */
.swiper_page_btn {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
}

.swiper_page_btn .page_items {
    position: relative;
    display: inline-block;
    margin: 0px 4px;
    width: 3px;
    height: 3px;
    background-color: var(--sl-color-neutral-400);
    border-radius: 50px;
    border: 1px solid var(--sl-color-neutral-400);
    cursor: pointer;
    transition: all 0.4s ease;
    user-select: none;
}

.swiper_page_btn .page_items + .page_items {
    margin-left: 6px;
}

.swiper_page_btn .page_items.active {
    transform: scale(1.4);
}

.product-spotlight-control {
    --border-raduis: 12px;
    --slider-transition-time: 400ms;
    --slider-transition-function: ease;
    --scroll-btn-size: 40px;
    margin: auto;
    display: block;
    position: relative;
    width: 100%;
}

.spotlight {
    overflow: hidden;
    margin: auto;
    width: 100%;
    height: 400px;
    border-radius: var(--border-raduis);
    position: relative;
}

/* SwiperBox 滚动按钮 - 参照 details 页面的实现 */
.product-spotlight-control .card_btn.scroll-left-btn,
.product-spotlight-control .card_btn.scroll-right-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: none; /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s, background-color 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* 鼠标悬停时显示按钮 */
.product-spotlight-control:hover .card_btn.scroll-left-btn,
.product-spotlight-control:hover .card_btn.scroll-right-btn {
    display: flex;
    pointer-events: auto;
}

.product-spotlight-control .card_btn.scroll-left-btn:hover,
.product-spotlight-control .card_btn.scroll-right-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 当不需要滚动时隐藏按钮 */
.product-spotlight-control.no-scroll .card_btn.scroll-left-btn,
.product-spotlight-control.no-scroll .card_btn.scroll-right-btn {
    display: none !important;
}

.product-spotlight-control .card_btn.scroll-left-btn {
    left: calc(34px - var(--scroll-btn-size) / 2);
}

.product-spotlight-control .card_btn.scroll-right-btn {
    right: calc(34px - var(--scroll-btn-size) / 2);
}

.imgs-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    transition-timing-function: var(--slider-transition-function);
    transition-duration: 0ms;
}

.animating .imgs-wrap {
    transition-duration: var(--slider-transition-time);
}

.desc-wrap {
    color: var(--sl-default-white);
    position: absolute;
    left: var(--detail-left);
    bottom: 32%;
    top: var(--desc-offset-top);
    height: 18%;
    width: 100px;
    pointer-events: none;
    font-weight: var(--sl-font-weight-semibold);
    z-index: 1;
}

.detail-btn {
    display: flex;
    line-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 100px;
    width: auto;
    position: absolute;
    left: var(--detail-left);
    bottom: 28%;
    overflow: hidden;
    border-radius: var(--sl-border-radius-large);
    filter: drop-shadow(rgba(255, 255, 255, 0.8) 0px 0px 6px);
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--sl-default-black);
    border-color: transparent;
    font-size: var(--sl-font-size-x-small);
    font-weight: var(--sl-font-weight-semibold);
    z-index: 1;
}

.detail-btn .icon_img {
    font-size: var(--sl-font-size-small);
}

.detail-btn::before {
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    transform: skewX(-45deg) translateX(-100%);
    background: linear-gradient(
        to right,
        transparent,
        var(--sl-default-white) 20%,
        transparent 60%
    );
}

.detail-btn:hover::before {
    transform: skewX(-45deg) translateX(200%);
    transition: all 1000ms ease-in-out 0s;
}

.spotlight .header {
    position: absolute;
    bottom: var(--desc-offset-top);
}

.spotlight .header .title {
    font-size: var(--title-font-size);
    font-family: var(--header-font);
    transform-origin: left bottom;
}

.spotlight .detail {
    position: absolute;
    top: var(--desc-offset-top);
    font-size: var(--detail-font-size);
    height: auto;
    color: rgb(223, 223, 223);
    line-height: calc(var(--detail-font-size) + 2px);
    max-height: calc((var(--detail-font-size) + 2px) * 2);
    overflow: hidden;
    opacity: 0;
    width: 198.333px;
    transform: translate3d(0px, -22px, 0px);
}

.hover-light {
    position: absolute;
    inset: 0px;
    background-image: radial-gradient(
        circle farthest-side at 100% 50%,
        transparent 5%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.spot-img {
    position: relative;
    flex-shrink: 0;
    transition-property: width;
    transition-timing-function: var(--slider-transition-function);
    transition-duration: 0ms;
    width: 258.1px;
    margin: 0px 6px;
    height: 100%;
    border-radius: var(--border-raduis);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}

.spot-img .mask {
    opacity: 1;
    position: absolute;
    inset: 0px;
    background-image: radial-gradient(
        circle at center,
        transparent 0,
        var(--sl-default-black) 100%
    );
    border-radius: var(--border-raduis);
}

.spot-img .title {
    transform: scale(1) translate3d(0px, -30px, 0px);
    width: 154.259px;
    transition-duration: 0.2s !important;
}

.spot-img.active {
    width: 816.9px;
}

.spot-img.active .mask {
    opacity: 0;
}

.spot-img.active .title {
    transform: scale(1.6) translate3d(0px, -22px, 0px);
    width: 198.259px;
}

.spot-img.active .detail {
    opacity: 1;
}

.animating .spot-img {
    transition-duration: var(--slider-transition-time);
}

@media (max-width: 700px) {
    .spotlight .header {
        bottom: 0px;
    }
    .spotlight .header .title {
        --title-font-size: var(--sl-font-size-2x-small);
    }
    .spotlight .detail {
        display: none;
    }
}

@media (max-width: 468px) {
    .spotlight {
        height: 244px;
    }
}

@media (min-width: 468px) and (max-width: 512.999px) {
    .spotlight {
        height: 254px;
    }
}

@media (min-width: 513px) and (max-width: 567.999px) {
    .spotlight {
        height: 274px;
    }
}

@media (min-width: 568px) and (max-width: 612.999px) {
    .spotlight {
        height: 294px;
    }
}

@media (min-width: 613px) and (max-width: 667.999px) {
    .spotlight {
        height: 314px;
    }
}

@media (min-width: 668px) and (max-width: 712.999px) {
    .spotlight {
        height: 334px;
    }
}

@media (min-width: 713px) and (max-width: 767.999px) {
    .spotlight {
        height: 354px;
    }
}

@media (min-width: 768px) and (max-width: 812.999px) {
    .spotlight {
        height: 374px;
    }
}

@media (min-width: 813px) and (max-width: 867.999px) {
    .spotlight {
        height: 394px;
    }
}

@media (min-width: 868px) and (max-width: 912.999px) {
    .spotlight {
        height: 434px;
    }
}

@media (min-width: 913px) and (max-width: 967.999px) {
    .spotlight {
        height: 454px;
    }
}

@media (min-width: 968px) and (max-width: 1023.999px) {
    .spotlight {
        height: 474px;
    }
}

@media (min-width: 1024px) and (max-width: 1067.999px) {
    .spotlight {
        height: 323px;
    }
}

@media (min-width: 1068px) and (max-width: 1112.999px) {
    .spotlight {
        height: 353px;
    }
}

@media (min-width: 1113px) and (max-width: 1167.999px) {
    .spotlight {
        height: 373px;
    }
}

@media (min-width: 1168px) and (max-width: 1211.999px) {
    .spotlight {
        height: 393px;
    }
}

@media (min-width: 1212px) and (max-width: 1267.999px) {
    .spotlight {
        height: 413px;
    }
}

@media (min-width: 1268px) and (max-width: 1312.999px) {
    .spotlight {
        height: 433px;
    }
}

@media (min-width: 1313px) and (max-width: 1399.999px) {
    .spotlight {
        height: 453px;
    }
}

@media (min-width: 1400px) and (max-width: 1467.999px) {
    .spotlight {
        height: 400px;
    }
}

@media (min-width: 1468px) and (max-width: 1511.999px) {
    .spotlight {
        height: 424px;
    }
}

@media (min-width: 1512px) and (max-width: 1568.999px) {
    .spotlight {
        height: 445px;
    }
}

@media (min-width: 1569px) and (max-width: 1611.999px) {
    .spotlight {
        height: 465px;
    }
}

@media (min-width: 1612px) and (max-width: 1799.999px) {
    .spotlight {
        height: 485px;
    }
}

@media (min-width: 1800px) and (max-width: 1867.999px) {
    .spotlight {
        height: 495px;
    }
}

@media (min-width: 1868px) and (max-width: 1942.999px) {
    .spotlight {
        height: 505px;
    }
}

@media (min-width: 1943px) and (max-width: 1998.999px) {
    .spotlight {
        height: 515px;
    }
}

@media (min-width: 1999px) and (max-width: 2099.999px) {
    .spotlight {
        height: 520px;
    }
}

@media (min-width: 2100px) {
    .spotlight {
        height: 530px;
    }
}

@media (max-width: 1023.9999px) {
    .spot-img {
        width: 100% !important;
        margin: 0 !important;
        transform: scale(0.95);
    }
    .spot-img.active {
        width: 100% !important;
        transform: scale(1);
    }
}

@media (min-width: 1024px) and (max-width: 1399.9999px) {
    .spot-img {
        width: calc((100% - 88px) * 0.244) !important;
    }
    .spot-img.active {
        width: calc((100% - 88px) * 0.756) !important;
    }
}

@media (min-width: 1400px) and (max-width: 1799.9999px) {
    .spot-img {
        width: calc((100% - 100px) * 0.184) !important;
    }
    .spot-img.active {
        width: calc((100% - 100px) * 0.632) !important;
    }
}

@media (min-width: 1800px) {
    .spot-img {
        width: calc((100% - 112px) * 0.161) !important;
    }
    .spot-img.active {
        width: calc((100% - 112px) * 0.516) !important;
    }
}

.info_swiper {
    width: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-top: var(--sl-spacing-2x-large);
    margin-bottom: var(--sl-spacing-4x-large);
}

