@import "base.css";

:root {
    --font-size-card: 1.8rem;
}

/**=========================Banner=====================**/

.banner-slider {
    width: 100%;
    /*max-height: 750px;*/
    height: 100%;
}

.banner-slider .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

.banner-slider .banner-img {
    width: 100%;
}

@media (max-width: 768px) {
    .banner-slider .swiper-slide {
        flex-direction: column;
        /* 垂直排列 */
        gap: 10px;
    }

    .banner-slider .banner-img {
        flex: 0 0 100%;
        /* 占满宽度 */
    }
}

/* .banner-item {
    width: 100vw;
    position: relative;
}

.banner-img img {
    width: 100%;
}

.banner-content {
    color: #fff;
    position: absolute;
    left: 12%;
    top: 30%;
}

.banner-content .banner-title {
    font-size: 60px;
    margin-bottom: 2rem;
}

.banner-content .banner-desc {
    margin-bottom: 2rem;
} */

/* .banner-content .banner-btn {
    display: inline-block;
    background: #ee3c70;
    padding: .5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-title);
    font-size: 28px;
} */

/* ================== Product Grid 产品滑块 ================== */
.product-grid {
    text-align: center;
    padding: 5rem 0;
    margin: 0;
    background: url('../images/watermask.png') repeat;
    background-size: auto 222px;
}

.grid-title {
    margin-top: .8rem;
    text-align: center;
    position: relative;
    display: inline-block;
    /* padding: 5px 10px; */
    font-size: var(--font-size-module-title);
    color: var(--theme-backgroud-color);
}

.grid-title::before,
.grid-title::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.grid-title::before {
    top: -18px;
    left: -32px;
    background-image: url('../images/left.png');
}

.grid-title::after {
    bottom: -18px;
    right: -32px;
    background-image: url('../images/right.png');
}

.product-grid .desc {
    margin: 3rem 0;
    color: var(--theme-color-light);
}

section.product-grid .product-list {
    display: flex;
    justify-content: center;
    width: 80%;
    max-width: 90rem;
    margin: 2rem auto;
    gap: 40px;
}

.product-item {
    flex: 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 30px;
}

div.product-item:nth-child(1) {
    background: url('../images/product-slider/tiktag-bg.png') no-repeat center center;
    background-size: contain;
}

div.product-item:nth-child(2) {
    background: url('../images/product-slider/flip-bg.png') no-repeat center center;
    background-size: contain;
}

div.product-item:nth-child(3) {
    background: url('../images/product-slider/upcoming1-bg.png') no-repeat center center;
    background-size: contain;
}

div.product-item:nth-child(4) {
    background: url('../images/product-slider/upcoming2-bg.png') no-repeat center center;
    background-size: contain;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    aspect-ratio: 330 / 440;
    height: auto;
    box-sizing: border-box;
}


/*
swiper-container {
    width: 100%;
    height: 100%;
}

swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-slider {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    margin-bottom: 1rem;
    box-sizing: border-box;
    overflow: visible;
}

.product-slider .swiper {
    width: 100%;
    padding: 20px 0;
    overflow: visible;
}

.product-slider .swiper-wrapper {
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
}

.product-slider .swiper-slide {
    width: 23% !important;
    margin-right: 0 !important;
}

.product-item {
    color: #fff;
    border-radius: 18px;
    aspect-ratio: 330 / 440;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 30px;
} */

.product-item:hover {
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.15);
    border-radius: 30px;
}

.product-title {
    /* padding-top: 1rem; */
    font-size: var(--font-size-title);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.product-img {
    position: relative;
    flex: 3;
    /* padding: 1.5rem; */
    /* overflow: hidden; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
    aspect-ratio: 179/258;
}

.product-img .hover-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    /* transform: scale(0.95); */
}

.product-img .default-img {
    z-index: 1;
    /* transform: scale(1); */
}

.product-item:hover .hover-img {
    opacity: 1;
    /* transform: scale(1); */
}

.product-item:hover .default-img {
    opacity: 0;
    /* transform: scale(1); */
}


/*

.swiper-slide .product-item {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.swiper-slide:nth-child(1) .product-item {
    background: url('../images/product-slider/tiktag-bg.png') no-repeat center center;
    background-size: contain;
}

.swiper-slide:nth-child(2) .product-item {
    background: url('../images/product-slider/flip-bg.png') no-repeat center center;
    background-size: contain;
}

.product-item:nth-child(2):hover img {
    content: url('../images/product-slider/flip-hover.png');
}

.swiper-slide:nth-child(3) .product-item {
    background: url('../images/product-slider/upcoming1-bg.png') no-repeat center center;
    background-size: contain;
}

.swiper-slide:nth-child(4) .product-item {
    background: url('../images/product-slider/upcoming2-bg.png') no-repeat center center;
    background-size: contain;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--theme-color) !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 29px;
    height: 62px;
    border-radius: 8px;
    z-index: 10;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    content: '' !important;
    width: 29px;
    height: 62px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.swiper-pagination {
    display: none;
}

.swiper-button-next:after {
    background-image: url('../images/product-slider/left.png');
    transform: rotate(180deg);
}

.swiper-button-prev:after {
    background-image: url('../images/product-slider/left.png');
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--theme-color) !important;
    color: #fff !important;
    width: 50px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    filter: brightness(0) invert(1);
    width: 29px;
    height: 62px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.swiper-button-next {
    right: -40px !important;
}

.swiper-button-prev {
    left: -40px !important;
} */

.stand-for {
    position: relative;
    background: var(--theme-color) url('../images/watermask-2.png') repeat;
    background-size: auto 222px;
}

.stand-for-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    min-height: 600px;
    gap: 0;
}

.left-col,
.center-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 40%;
    animation: float 3s ease-in-out infinite;
}

.stand-for-title {
    padding: 1rem 0;
    color: #fff;
    text-align: center;
    font-style: italic;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stand-for-title>span {
    color: #f9d602;
}

.stand-for-slogan {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 0;
    width: 100%;
    pointer-events: none;
}

.stand-for-card {
    border-radius: 18px;
    overflow: hidden;
    /* box-shadow: 0 4px 24px rgba(0,0,0,0.18); */
    z-index: 1;
    position: relative;
    margin: 20px 0;
    /* min-width: 220px;
    min-height: 120px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stand-for-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.stand-for-card:hover img {
    transform: scale(1.1);
}

.stand-for-card.top-left img {
    width: 100%;
    aspect-ratio: 838 / 538;
    height: auto;
    object-fit: cover;
    display: block;
}

.stand-for-card .card-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: var(--font-size-title);
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    width: max-content;
    max-width: 90%;
    white-space: pre-line;
}

.stand-for-card.top-left {
    left: 0;
    top: 0;
    right: auto;
}

.stand-for-card.top-right {
    left: 50%;
    top: 0;
    right: auto;
    transform: translateX(-50%);
}

.stand-for-card.bottom-left {
    left: 0;
    bottom: 0;
    right: auto;
    max-width: 80%;
}

.stand-for-card.bottom-right {
    right: 0;
    bottom: 0;
}

.stand-for-card.top-right img {
    width: 100%;
    aspect-ratio: 718 / 688;
    height: auto;
    object-fit: cover;
    display: block;
}

.stand-for .left-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
    gap: 100px;
}

.slogan {
    width: 100%;
    background: var(--theme-color-light);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slogan-scroll {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
}

.slogan-scroll span {
    font-size: var(--font-size-card);
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.5;
    white-space: nowrap;
    padding-right: 60px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ================== Content 内容区 ================== */
section.content {
    max-width: 90rem;
    width: 100%;
    margin: 3.75rem auto;
    display: flex;
    gap: 20px;
    display: flex;
    align-items: stretch;
}

section.content .left-panel,
section.content .right-panel {
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

section.content .left-panel {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
}

section.content .right-panel {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
}

section.content .right-panel .top-row,
section.content .right-panel .bottom-row {
    flex: 1 1 0;
    width: 100%;
    display: flex;
}

section.content .right-panel .bottom-row {
    flex-direction: row;
    margin-top: 1.25rem;
}

section.content .right-panel .bottom-row .bottom-col:first-child {
    flex: 0 0 49%;
    max-width: 49%;
    padding-right: 0.625rem;
}

section.content .right-panel .bottom-row .bottom-col:last-child {
    flex: 0 0 51%;
    max-width: 51%;
    padding-left: 0.625rem;
}

section.content .right-panel .bottom-row .bottom-col {
    display: flex;
    flex-direction: column;
}

section.content .left-col,
section.content .right-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

section.content .bottom-row .bottom-col:first-child {
    flex: 0 0 49%;
    max-width: calc(49% - 10px);
}

section.content .bottom-row .bottom-col:last-child {
    flex: 0 0 51%;
    max-width: calc(51% - 10px);
}

section.content .bottom-row .bottom-col .content-card>a {
    display: flex;
    width: 100%;
    height: 100%;
}

/* section.content .bottom-row .bottom-col .content-card img {
    width: 100%;
    height: 100%;
    display: block;
} */

section.content .bottom-row .left-col {
    display: block;
    padding: 0;
    margin: 0;
}

section.content .bottom-row .left-col img,
section.content .bottom-row .right-col img {
    max-height: 380px;
}

section.content .bottom-row .right-col {
    flex: 5.5 1 0;
    min-width: 0;
}

section.content .content-card {
    display: inline-block;
    position: relative;
    vertical-align: top;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

section.content .content-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

section.content .content-card .img-mask {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

section.content .content-card:hover .img-mask {
    opacity: 1;
}

section.content .content-card .card-text {
    position: absolute;
    left: 50%;
    top: 50%;
    /* bottom: 20px; */
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: var(--font-size-title);
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    width: max-content;
    max-width: 90%;
    white-space: pre-line;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s, top 0.3s, bottom 0.3s, transform 0.3s;
}


section.content .content-card:hover .card-text {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    opacity: 1;
}

section.content .content-card:hover .card-text {
    top: 40%;
    bottom: auto;
    transform: translate(-50%, -50%);
    opacity: 1;
}

section.content .left-panel .content-card:hover .card-text {
    top: 48%;
    bottom: auto;
    transform: translate(-50%, -50%);
    opacity: 1;
}

section.content .content-card:hover .card-desc {
    display: block;
    opacity: 1;
}

section.content .content-card img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    z-index: 1;
}

section.content .content-card .card-desc {
    display: none;
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: var(--font-size-footer-sub);
    font-weight: 300;
    text-align: center;
    z-index: 3;
    width: 80%;
    pointer-events: none;
    white-space: pre-line;
}

section.content .bottom-row .left-col .content-card {
    width: 494px;
    flex: 0 0 494px;
}

section.content .bottom-row .right-col .content-card {
    max-height: 380px;
    overflow: hidden;
    display: inline-block;
    position: relative;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

section.content .bottom-row .right-col .content-card img {
    max-height: 380px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

@media (min-width: 2560px) {
    section.content,
    .stand-for-container,
    section.product-grid .product-list{
        max-width: 100rem;
    }
}

@media only screen and (max-width: 1600px) {
    .product-slider .swiper {
        display: flex;
        justify-content: center;
        width: 80%;
    }

    .stand-for-slogan {
        top: 50%;
    }

    section.content {
        width: 90%;
    }

    section.content .right-panel {
        background: transparent;
        justify-content: space-between;
    }

    .banner-slider .banner-img {
        max-height: 750px;
    }
}


@media (max-width: 1600px) {
    .product-img img {
        height: 78%;
    }

    .banner-slider .banner-img {
        max-height: 750px;
    }
}


@media (max-width: 1440px) {
    .product-img img {
        height: 78%;
    }
}

@media (max-width: 1024px) {
    .product-img img {
        height: 78%;
    }
}

@media (max-width: 768px) {

    .banner-content {
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .banner-content .banner-title {
        font-size: var(--font-size-title);
    }

    .banner-content .banner-btn {
        font-size: var(--font-size-desc);
    }

    .grid-title {
        margin-top: 0.533rem;
        font-size: 1.28rem;
    }

    section.product-grid .product-list {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .product-grid {
        padding: .5rem;
    }

    .product-grid .desc {
        margin: 2rem auto;
    }

    div.product-item:nth-child(3) {
        display: none;
    }

    div.product-item:nth-child(4) {
        display: none;
    }

    /*
    .product-img img {
        width: 60%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    } */

    .product-slider .swiper {
        overflow: hidden;
    }

    .product-slider {
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .product-slider .swiper-slide {
        width: 100% !important;
    }

    /* .swiper-wrapper {
        padding-bottom: 1rem;
    } */

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        display: block;
    }

    .stand-for-slogan {
        top: 57%;
    }

    .slogan-scroll span {
        font-size: var(--font-size-title);
    }

    .stand-for {
        position: relative;
        background: var(--theme-color) url('../images/watermask-mobile.png') repeat;
        background-size: auto 222px;
    }

    .stand-for-container {
        max-width: 100%;
        justify-content: space-around;
        padding: 0 8px;
        box-sizing: border-box;
        min-height: auto;
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 20px;
    }

    .stand-for-title {
        font-size: 1.28rem;
    }

    .stand-for .left-col {
        gap: 20px;
        align-items: center;
    }

    .stand-for-card {
        margin: 0 auto;
    }

    /* .stand-for-card .card-text {
        font-size: .853rem;
    } */

    section.content {
        max-width: 100%;
        width: 100%;
        padding: 0 .5rem;
        margin: 2rem auto;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* section.content .content-card .card-text {
        font-size: 0.853rem;
    } */


    section.content .left-panel,
    section.content .right-panel {
        flex: initial;
        width: 100%;
        max-width: 100%;
    }

    section.content .right-panel {
        gap: 20px;
    }

    section.content .left-col,
    section.content .right-col,
    section.content .bottom-row .right-col {
        flex: initial;
    }

    section.content .bottom-row .bottom-col .content-card {
        width: 100%;
    }

    section.content .right-panel .bottom-row {
        gap: .533rem;
        flex-direction: column;
        margin-top: 0;
    }

    section.content .right-panel .bottom-row .bottom-col:first-child,
    section.content .right-panel .bottom-row .bottom-col:last-child {
        flex: initial;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    section.content .content-card img {
        position: initial;
    }

    section.content .content-card .card-desc {
        display: block;
        margin-top: 2rem;
    }
}



@media only screen and (max-width: 768px) {}

@media only screen and (max-width: 480px) {}