/*--------------------- Responsive (Start) ---------------------*/
@media (max-width: 1501px) {
    .portfolio-item .text h3 {
        font-size: 2.5rem;
    }

    .ztk-span {
        font-size: 2.6rem;
    }

    .nav-btn::after {
        content: none;
    }
    .header .navbar {
        gap: 0.5rem;
    }
    .header .navbar .nav-btn {
        padding-right: 0;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

@media (max-width: 991px) {

    html {
        font-size: 10px; /* 1rem=1font-size */
    }
    .header .header-2 {
        height: 5.5rem;
    }
    .center-container {
        padding: 5.5rem 2.5% 0 2%;

    }
    .menu-horizontal-scroll {
        top: 5.5rem;
    }

    #footersale {
        display: none;
    }

    .header .navbar {
        display: none;
    }

    .header #menu-btn {
        display: initial;
    }

    .header .icon-container .btn {
        display: none;
    }

    .zt-reason {
        order: 1; /* order越大的div在上 */
    }

    .zt-group {
        order: 0;
    }

    .shop {
        -ms-flex-wrap: wrap-reverse;
        flex-wrap: wrap-reverse;
    }

    /* 桌面端隐藏，手机端显示的底部导航栏 */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 6rem;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: none; /* 默认隐藏 */
        z-index: 1000;
        border-top: 1px solid #eee;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        font-size: 1.3rem;
        padding: 0.5rem 0;
    }

    .nav-item.active {
        color: var(--main-color);
    }

    .nav-text-zh {
        font-size: 1.6rem;
        line-height: 1.2;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .nav-text-en {
        font-size: 1.2rem;
        line-height: 1.2;
        color: #666;
    }

    .nav-item.active .nav-text-zh {
        color: var(--main-color);
        font-weight: 600;
    }

    .nav-item.active .nav-text-en {
        color: var(--main-color);
    }

    /* 为导航项中的链接设置样式，确保不影响内部div的样式 */
    .nav-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        color: inherit;
        width: 100%;
        height: 100%;
    }

    .nav-item a:hover {
        color: inherit;
    }
}

@media (max-width: 768px) {    
    .event-item {
        border: none;
    }
    .login-button {
        padding: 1px 2px;
    }
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000; /* 确保header在其他内容之上 */
    }
    .header .header-2 {
        padding: 0rem 2rem;
        height: 5.5rem;
    }

    .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;
    }
    
    /* 手机底部导航栏 start */
    body {
        padding-bottom: 8rem;
    }

    .bottom-nav {
        display: flex;
    }
    /* end */

    .bottom-link-time {
        display: none;
    }
    .date-picker-fixed {
        position: fixed !important;
        bottom: 6rem;
        padding: 8px 20%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: whitesmoke;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
        justify-content: space-between;
    }

    .date-picker-fixed input[type="date"] {
        font-size: 16px; /* 防 iOS 缩放 */
    }

    .date-picker-fixed button {
        font-size: 1.5rem;
        padding: 0.6rem 1.2rem;
    }

    .blog.grid {
        flex-direction: column; 
        align-items: stretch; 
      }
    
    .blog-container.grid .ul-buttons{
        max-height: 30rem;
        overflow-y: auto;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 8px;
    }

    .ztk-span {
        font-size: 2rem;
    }
    
    .search-text {
        max-width: 16rem;
    }
    
    /*.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;
    }
}

@media (max-width: 480px) {
    .icon-container {
        padding: 6px 10px;
    }

    #search-input {
        padding: 6px 30px 6px 12px;
        font-size: 13px;
    }

    #search-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}
