@import "base.css";

.banner-wrapper,
.find-my-wrapper,
.magnetic-wrapper,
.control-wrapper,
.package-wrapper {
    position: relative;
    font-size: 0;
}

.banner-content {
    position: absolute;
    top: 30%;
    left: 12%;
}

.find-my-content {
    position: absolute;
    top: 30%;
    left: 12%;
}

.magnetic-content {
    position: absolute;
    top: 30%;
    right: 7%;
}

.control-content {
    position: absolute;
    top: 30%;
    left: 12%;
}

.find-my-content .title,
.magnetic-content .title,
.control-wrapper .title {
    color: #6713c9;
    font-size: var(--font-size-title);
    margin-bottom: 10%;
}

.banner-content .title {
    color: #fff;
    background: #6713c9;
    padding: 10px 20px;
    font-size: 60px;
    margin-bottom: 10%;
    border-radius: .5rem;
}

.banner-content .desc,
.find-my-content .desc,
.magnetic-content .desc,
.control-wrapper .desc {
    color: #666;
    font-size: var(--font-size-desc);
}

.banner-content .desc {
    color: #fff;
}

.parameter-wrapper {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 40px;
    min-height: 600px;
    margin: 6.25rem 9.375rem;
}

.parameter-wrapper .left-panel,
.parameter-wrapper .right-panel {
    height: 100%;
}

.parameter-wrapper .right-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    height: 100%;
}

.left-panel {
    display: flex;
    flex-direction: column;
    background: #f3f3f3;
    padding: 1.25rem;
    border-radius: 12px;
}

.left-panel .top-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    margin-bottom: 2.25rem;
}

.left-panel .bottom-content {
    display: flex;
    justify-content: center;
}

.left-panel .bottom-content img {
    width: initial;
    max-width: 100%;
}

.left-col,
.right-col {
    background: #f3f3f3;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.right-col {
    display: flex;
    flex-direction: column;
}

.right-col .para-content {
    flex: 4;
}

.right-col-inner {
    transition: transform 0.3s;
    will-change: transform;
}

.right-col:hover .right-col-inner {
    transform: scale(1.1);
}

.para-title {
    font-size: var(--font-size-desc);
    color: #6713c9;
}

.para-desc {
    font-size: var(--font-size-title);
    font-weight: 500;
    word-break: break-word;
}

span.small {
    font-size: 1.5rem;
}

.para-logo {
    display: flex;
    justify-content: end;
    /* 图片在其容器内右对齐 */
    flex: 1;
    text-align: right;
    margin-top: 4.375rem;
}

.para-logo>img {
    max-width: 100%;
    width: 54px;
    display: block;
}


/* @media (max-width: 1600px) {
    .find-my-content{
        top: 20%;
    }
}


@media (max-width: 1440px) {
    .find-my-content{
        top: 20%;
    }
    .magnetic-content{
        right: 9%;
    }

    .control-content{
        left: 9%;
    }
}

@media (max-width: 1024px) {
    .product-img img {
        height: 78%;
    }
} */

@media (max-width: 768px) {

    .banner-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .banner-content .title {
        font-size: var(--font-size-module-title);
    }

    .parameter-wrapper,
    .parameter-wrapper .right-panel {
        gap: 20px;
    }

    .parameter-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
        margin: 1rem .26rem;
    }

    .left-panel .top-content {
        flex-grow: 1;
    }

    .left-panel .bottom-content {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        padding: 10px;
    }


    .find-my-content,
    .magnetic-content,
    .control-content {
        /* font-size: .853rem; */
        left: 50%;
        top: 25%;
        transform: translate(-50%, -50%);
        display: none;
    }

    .magnetic-content {
        right: 0;
    }

    .find-my-content .title,
    .magnetic-content .title,
    .control-wrapper .title {
        /* font-size: 0.853rem; */
        white-space: nowrap;
    }

    /* .find-my-content .desc,
    .magnetic-content .desc,
    .control-wrapper .desc {
        display: none;
    } */

    .right-col {
        display: flex;
        flex-direction: column;
    }

    .right-col .para-content {
        flex-grow: 3;
    }

    span.small {
        display: none;
    }

    .left-panel .top-content{
        margin-bottom: 2rem;
    }

    .left-panel .bottom-content img{
        max-width: 150px;
    }

    .para-logo{
        margin-top: 2rem;
    }

    .para-logo>img,
    .size-logo>img {
        max-width: 32px;
    }
}