﻿/*--------------------- Responsive (Start) ---------------------*/
@media (max-width: 1501px) {
    .portfolio-item .text h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {

    html {
        font-size: 55%;
    }

    .header .navbar {
        display: none;
    }

    .header #menu-btn {
        display: initial;
    }

    .header .icon-container .btn {
        display: none;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1002;
        max-height: 80vh;
        min-width: 320px;
        overflow-y: auto;
        overflow-x: hidden;
        background: var(--white);
        -webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
        -webkit-box-shadow: var(--box-shadow);
        box-shadow: var(--box-shadow);
        border-top: 0.2rem solid var(--main-color);
        border-bottom: 0.2rem solid var(--main-color);
        padding: 2rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    .mobile-menu.active {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .mobile-navbar {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-navbar .nav-link {
        background: var(--main-color);
        overflow: hidden;
    }

    .mobile-navbar .main-nav-link {
        color: var(--white);
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        width: 100%;
        padding: 1rem;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .mobile-navbar .main-nav-link a {
        color: var(--white);
    }

    .mobile-navbar .sub-nav-link {
        background-color: var(--white);
        padding: 1rem 0;
        padding-left: 4rem;
        display: none;
        -webkit-transition: all 0s;
        -moz-transition: all 0s;
        -o-transition: all 0s;
        transition: all 0s;
    }

    .mobile-navbar .sub-nav-link a {
        color: var(--grey);
        border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
        display: block;
        padding: 1rem 0rem;
        font-size: 1.8rem;
        font-weight: 500;
    }

    .mobile-navbar .sub-nav-link a:hover {
        color: var(--main-color);
    }

    .mobile-menu::-webkit-scrollbar {
        width: 0.8rem;
    }

    .mobile-menu::-webkit-scrollbar-thumb {
        border-radius: 1rem;
        background-color: var(--main-color);
    }

    .mobile-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .blog.grid, .blog.list {
        -ms-flex-wrap: wrap-reverse;
        flex-wrap: wrap-reverse;
    }

    .zt-reason {
        order: 1; /* order越大的div在上 */
    }

    .zt-group {
        order: 0;
    }

    .shop {
        -ms-flex-wrap: wrap-reverse;
        flex-wrap: wrap-reverse;
    }

}

@media (max-width: 768px) {
    .event-item {
        border: none;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000; /* 确保header在其他内容之上 */
    }

    /*.header .social-contacts,*/
    .header .header-2 {
        padding: 0rem 2rem;
    }

    .footer .box-container {
        padding: 2rem;
    }

    .search-container {
        right: 1rem;
    }

    .home-item .content {
        padding: 2rem;
        padding-top: 8rem;
    }

    .testimonial-slider {
        margin: 0;
    }

    .portfolio-item {
        width: 50%;
    }

    .portfolio-content {
        height: 20rem;
    }

    .portfolio-item .text h3 {
        font-size: 2rem;
    }

    .margin-left-right-10 {
        margin: 0 1px;
    }

    .margin-left-right-5 {
        margin: 0 1px;
    }

    .chat-box {
        min-height: 300px;
    }

    /* .shop .product-container.list .product-item .image {
        max-height: 18rem;
    }
} */

@media (max-width: 450px) {

    html {
        font-size: 50%;
    }

    /*.header .social-contacts,*/
    .header .header-2 {
        padding: 0rem 1rem;
    }

    .footer .box-container {
        padding: 2rem 1rem;
    }

    .home-item .content {
        padding: 1rem;
        padding-top: 8rem;
    }

    .home-slider .swiper-button-next,
    .home-slider .swiper-button-prev {
        display: none;
    }

    .form .input-box,
    .dark-form .input-box {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .dark-form .input-box .input-field,
    .dark-form .select {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 25rem;
        flex: 1 1 25rem;
    }

    .page-title {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: start;
        -ms-flex-align: start;
        -ms-grid-row-align: flex-start;
        align-items: flex-start;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .team-single .image {
        width: 100%;
    }

    .team-item .team-image {
        height: 40rem;
    }

    .account-form {
        max-width: 100%;
    }

    .portfolio-item {
        width: 100%;
    }

    .portfolio-content {
        height: 20rem;
    }

    .portfolio-item .text h3 {
        font-size: 1.8rem;
    }

    .shop .product-container.list .product-item {
        gap: 0rem;
    }

    .shop .product-container.list .product-item .image {
        width: 15rem;
    }

    .shop .product-container.list .product-item .content {
        padding: 1rem;
        width: 100%;
    }

    .shop .product-container.list .product-item .content p {
        line-height: 1.5;
    }

    .product-info .leave-reply {
        width: 100%;
    }

    .cart .cart-summary {
        width: 100%;
    }

    .contact-form .input-box {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .contact-form .input-box {
        gap: 0;
    }

    .mission .content {
        padding: 4rem 5%;
        -webkit-clip-path: none;
        clip-path: none;
    }

    .contact .box-container {
        padding: 2rem;
    }

    .margin-left-right-10 {
        margin: 0 1px;
    }

    .margin-left-right-5 {
        margin: 0 1px;
    }

    .chat-box {
        min-height: 300px;
    }
}

/*--------------------- Responsive (End) ---------------------*/