/* ------------------------------- 通用样式 ----------------------------------- */
/* ------------------------------小于等于839px (平板竖屏)------------------------------- */
@media only screen and (max-width: 839px) and (orientation: portrait) {
    :root {
        --basic-margin:5%;
        --basic-wrapper: 90%;

    }

    /* 头部导航样式 */

    .header {
        background: #fff !important;
        height: 58px;
        box-shadow: 0px 1px 0px 0px #EDEFF2;
        mix-blend-mode: normal;
    }
    .wrapper {
        width: var(--basic-wrapper);
    }
    .mylogo {
        mix-blend-mode: difference;
    }

    .burger {
        display: flex;
        width: 20px;
        height: 15px;
        flex-direction: column;
        justify-content: space-between;
    }
    .burger.close {
        .line-top {
          transform: rotate(45deg);
          transform-origin: left top;        
        }

        .line-middle {
          width: 0;
          transition: all 0.3 ease-in;
        }
        .line-bottom {
          transform: rotate(-45deg);
          transform-origin: left bottom;
        }
    }
    .header.open .nav {
        position: absolute;
        left: 0;
        top: 49px;
        width: 100vw;
        background-color: #fff;
        color: var(--first-color);
        display: block;
        padding: 0 5%;
        animation: slideDown 0.6s ease-out forwards;
        border-radius: 0 0 30px 30px ;
    }
    @keyframes slideDown {
        from {
            height: 0;
            opacity: 0;
        }
        to {
            height: 100vh;
            opacity: 1;
        }
    }

   .header.close .nav {
           position: absolute;
        left: 0;
        top: 49px;
        width: 100vw;
        background-color: #fff;
        color: var(--first-color);
        display: block;
        padding: 0 5%;
        animation: slideUp 0.6s ease-out forwards;
    }
    @keyframes slideUp {
        from {
            height: 100vh;
            opacity: 1;
        }
        to {
            height: 0;
            opacity: 0;
        }
    }

    .nav {
        display: none;
    }

    .nav li {
        margin-top: 50px;
        text-align: center;
    }
    .nav a {
        font-size: 24px;
        margin-left: 0;
        color: var(--text-color-1) !important;
    }
    .btn-link {
        display: none;
    }

    /* banner下移 */
    .banner {
        margin-top: 58px;
    }


    /* ------------作品详情标题模块 ---------------*/
    .ProjectTitle-container{
        flex-direction: column;
    }

    .ProjectTitle-container .left {width: 100%;}

    .info-row {
        width: 100%;
        flex-direction: row;
    }

    .project-img {
        border-radius: 8;
    }
    /* 项目详情banner大小调整 */
    .Project-banner {
        height: 52vw;
        margin-top: 58px;

    }
    .project-content {
        margin-top: calc(52vw + 58px);
    }


    /* --------------更多项目【一排两个】------------------*/
    .three-columns{
        grid-template-columns: repeat(2, 1fr) !important;

    }

}


/* ------------------------------平板横屏------------------------------- */
@media screen and (max-width: 1199px) {
    /* --------------图片全屏------------------*/
    .project-img {
        width: 100vw;
        border-radius: 0;
        transform: translateX(-10vw);
        margin-bottom: 0;
    }


    /* ------------footer-media------------------*/
    .keyboard {
        margin-top: 40px;
    }
    .footerText-container {
        transform: scale(0.9);
    }
    footer p {
        margin-top: 8px;
    }
    .footer-email {
        margin-bottom: 16px;
    }
    footer h2 {
        font-size: 18px;
    }


}


/* ------------------------------手机------------------------------- */
@media screen and (max-width: 768px) {
    :root {
        --big-font-size:32px;
    }

    /* -----------foote-media----------- */
    .sectionTitle-container {
        margin-bottom: 40px;
    }
    .moreProject-items {
        column-count: 1;
        margin-top: 0;

    }
    .moreProject-item {
        margin-bottom: 20px;
    }

    .footerText-container {
        transform: scale(0.8);
    }
    footer h1 {
        font-size: 42px;
    }
    .QRcode-box {
        display: none;
    }
    .text-QRcode {
        margin-left: 0;
    }
    .text-final {
        margin-top: 0;
    }
    footer h2 {
        font-size: 20px;
    }
    .project-hidden {
        display: none;
    }




    
    /* ------------作品详情标题模块 ---------------*/
    .ProjectTitle-container{
        margin-bottom: 30px;
    }
    .dividing-line {
        margin-top: 0;
        margin-bottom: 30px;
    }
    /* --------------更多项目------------------*/
    .three-columns{
        grid-template-columns: repeat(1, 1fr) !important;

    } 
    .footer-mask .sectionTitle-box {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }   
}

