/* ===== Banner Area ===== */
.banner-area {
    position: relative;
    background: #faf9f9;
    overflow: hidden;
    padding: 20px;
}

.banner-content {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.banner-sidebar {
    width: 20%;
    max-width: 300px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 0;
}

.banner-sidebar li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: max(var(--font-min), 1.2vw);
    color: #232323;
    cursor: pointer;
    background: #fff;
}

.banner-sidebar li:first-child {
    /* nothing special */
}

.banner-main {
    flex: 1;
    background: #442f1a;
    position: relative;
    overflow: hidden;
}

.banner-main::after {
    content: "";
    position: absolute;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent)
}


.banner-main-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-main-text {
    z-index: 3;
    position: absolute;
    left: 3vw;
    bottom: 3vw;
    display: flex;
    flex-direction: column;
    gap: 17px;
    color: #fff;
}

.banner-main-text h3 {
    font-size: 2.3vw;
}

.banner-main-text p {
    font-size: 1.6vw;
}


/* ===== Product Sections ===== */



.product-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.section-header {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-header h2 {
    font-size: max(var(--font-min), 2vw);
    color: #232323;
}

.section-header a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #212326;
}


.section-header a img {
    width: 14px;
    height: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

/* ===== Product Card ===== */
.product-grid li {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    min-width: 0;
    overflow: hidden;
}

.product-grid li a {
    background: #f5f5f5;
    border: 1px solid #e6ebee;
    display: block;
    padding: 20px;
}

.card-image {
    width: 100%;
}


.product-grid li h4 {
    font-size: max(var(--font-min), 1.2vw);
    color: #212326;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 20px;
    width: 100%;
}

.product-grid li div {
    margin-top: 10px;
}

.product-grid li div span {
    font-size: max(var(--font-min), 1.4vw);
    color: #f5ba2f;
    font-weight: 500;
}

.product-grid li div del {
    font-size: max(var(--font-min), 1.1vw);
    margin-left: 10px;
    color: #84868a;
    text-decoration: line-through;
}

.materials-details {
    display: flex;
    gap: 20px;
    align-items: stretch;
}



.img-sidebar {
    width: 50%;
    position: relative;
}




.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 主图 Swiper ===== */
.bigimage {
    width: 100%;
    position: relative;
}

.swiper-button-next {
    right: 20px;
}

/* ===== 缩略图 Swiper ===== */
.bottom {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
    left: 0px;
    bottom: 0;
    right: 0px;
    padding: 1vw 5vw;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
}

.smallimage {
    box-sizing: border-box;
    width: auto;
}

.smallimage .swiper-slide {
    width: 25%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
    background: none;
}

.smallimage .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #fff;
}

.button-next,
.button-prev {
    cursor: pointer;
    width: 2vw;
    z-index: 2;
    position: absolute;
    bottom: 7%;
}

.button-next img,
.button-prev img {
    width: 100%;
}

.button-prev {
    left: 4%;
}

.button-next {
    right: 4%;
}

.materials-content {
    background-color: #f8f8f8;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2vw;
}

.materials-content h1 {
    font-size: max(var(--font-min), 2vw);
    margin-bottom: 1vw;
}

.materials-content .classify {
    margin-top: 20px;
    background-color: #d7f3d9;
    display: inline-block;
    padding: 3px 10px;
    color: #3a9341;
    border-radius: 4px;
}

.materials-content .price {
    margin-top: 20px;
}

.materials-content .price span {
    font-size: max(var(--font-min), 1.4vw);
    color: #f5ba2f;
    font-weight: 500;
}

.materials-content .price del {
    font-size: max(var(--font-min), 1.1vw);
    margin-left: 10px;
    color: #84868a;
    text-decoration: line-through;
}

.materials-content .but {
    background-color: #232323;
    color: #FFF;
    text-align: center;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
}

@media(max-width:1024px) {

    .product-grid,
    .materials-details,
    .banner-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .product-grid li a {
        padding: 15px;
    }

    .product-grid li h4 {
        font-size: 16px;
        margin-top: 15px;
    }

    .product-grid li div span,
    .materials-content .price span {
        font-size: 18px;
    }

    .img-sidebar {
        width: 100%;
    }

    .materials-content h1 {
        font-size: 16px;
    }

    .materials-content {
        gap: 15px;
        padding: 15px;
    }

    .bottom {
        position: absolute;
        background-color: rgba(0, 0, 0, 0.1);
        z-index: 1;

        padding: 1vw 60px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .button-next,
    .button-prev {
        cursor: pointer;
        width: 30px;
        bottom: 7%;
    }

    .banner-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 0;
        max-width: none;
    }

    .banner-sidebar li {
        padding: 5px 10px;
    }

    .banner-main-mask img {
        aspect-ratio: 1 / 0.7;
    }

    .banner-main-text {
        left: 15px;
        bottom: 15px;
        gap: 5px;
    }

    .banner-main-text h3 {
        font-size: 20px;
    }

    .banner-main-text p {
        font-size: 14px;
    }
}