@media (max-width: 768px) {
    :root {
        --base-font-size: 15px;
        /* slightly smaller on small screens */
        --container-max-width: 100%;
    }

    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .card {
        padding: var(--space-3);
    }

    .btn {
        padding: calc(var(--space-1)) calc(var(--space-2));
    }

    h1 {
        font-size: 1.5rem;
    }

    .half {
        width: 100%;
    }

    .mnavlist{
        position: fixed;
        right: 0;
        top:0;
        width:80%;
        background: #000;
        opacity: 0.8;
        height: 100%;
        z-index: 99999;
        color: #fff;

    }
    .mnavlist .navlist{
        flex-direction: column;
        width: 100%;
    }



    .header {
        width: 100%;
        height: 400px !important;
        padding: 0 !important;
    }
    .navtab{
        justify-content: center;
        align-items: center;
    }
    .banner{
        height: 100%;
    }

    .m-half {
        flex-direction: column !important;
    }

    .footer .infocon .left {
        width: 100%;
    }

    .footer .infocon .right {
        display: none;
    }

    .footer .ft .left {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .footer .ft .right{
        align-items: center;
        justify-content: center;
    }
    .navtab .navlist{
        display: none;
    }
    .mnav{ display: flex;}
    .mnav svg{
        width: 20px;
    }
    .company .shuzi{ flex-direction: column;}
    .company .content{
        flex-direction: column;
        height: auto;
    }
    .news-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .m-grad3{
        grid-template-columns: repeat(1, 1fr);
    }
    .m-grad4{
        grid-template-columns: repeat(1, 1fr);
    }
    .index .banner{
        height: auto;
    }
    .index .serverlist{
        grid-template-columns: repeat(1, 1fr);
    }
    .mnopadding{

        padding: 12px 12px !important;
    }
    .mnopadding  .content{
        flex-direction: column;

    }
    .company .shuzi{
        position: relative;
        margin-top: 30px;
        padding: 0 12px;
        flex-direction: row;
        flex-wrap: wrap;   /* 允许换行 */

    }
    .company .shuzi .pingtai{
        width: 50%;
    }
    .news .btn{
        top:70px;
        right: 30px;
    }
    .news-content .titletime span:nth-child(2){
        width: 80px;
        text-align: right;
    }
    .news .news-container{
        display: none;
    }
    .qa-btn{
        width: 40px;
        height: 40px;
    }
    /*  公司**/
    header{
        height: 340px;
    }
    .company .pingtai .ttt {

        font-size: 15px;

    }
    .company .pingtai{
        margin: 20px 0;
    }
    .mapdiv .mapimg{
        display: flex;
    }
    .mnav.on{
        color: #0D47A1;
    }
    
    .fanye .nav-btn{
        display: none;
    }
      .fanye{  flex-direction: column;}
    .fanye .fanyepage{
        display: flex !important;
        grid-template-columns: repeat(2, 1fr);
         gap: 10px;
        flex-direction: column;
    }
    .callus{
        flex-direction: column;
    }
    .callus .left{
        width: 100%;
    }
     .callus .right{
        width: 100%;
    }
    .callus .left .info{
    flex-direction: column;
}
.callus .left .info div{
    justify-content: center;
    width: 100%;
}
    
    

}

/*手机：宽度小于 600px  */
@media (max-width: 600px) {
    .serverlist {
        grid-template-columns: repeat(1, 1fr);
    }

    .serverlist .card-inner {
        padding-top: 70%;
    }

    .h100 {
        height: auto;
        padding: 12px;
    }
}

/* 平板：宽度大于 600px 时，每行 2 列 */
@media (min-width: 600px) and (max-width: 900px) {
    .serverlist {
        grid-template-columns: repeat(2, 1fr);
    }

    .serverlist .card-front img {
        width: 50px;
    }

    .serverlist .card-inner {
        padding-top: 70%;
    }

    .h100 {
        height: auto;
        padding: 12px;
    }
    .m-grad4{
        grid-template-columns: repeat(2, 1fr);
    }

    .company .content{
        flex-direction: column;
    }

}

/*当屏幕宽度大于1600时**/
@media screen and (min-width: 1600px) {

}
/*当屏幕宽度大于1200 小于1600时**/
@media screen and (min-width: 1400px) and (max-width: 1600px) {


}

/*当屏幕宽度大于1240 小于1600时**/
@media screen and (min-width: 1240px) and (max-width: 1400px) {

    .serverlist .card-back p{
        font-size: 14px;
    }



}
/*当屏幕宽度大于900 小于1240时**/
@media screen and (min-width: 900px) and (max-width: 1240px) {

    .serverlist .card-back p{
        font-size: 14px;
        line-height: 1.3;
    }
    .navtab .img{
        display: none;
    }
    .navlist{ font-size: 14px;}


}

/* ===== 遮罩 ===== */
.overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    display:none; /* 用 display+fade 效果 */
    touch-action: none;
}

/* ===== 右侧菜单 ===== */
.side-menu{
    position: fixed;
    top: 0;
    right: calc(-1 * 300px);
    width: 300px;
    height: 100vh;
    background:#fff;
    z-index: 99999;
    box-shadow: -6px 0 20px rgba(0,0,0,0.12);
    transition: right 320ms cubic-bezier(.22,.9,.32,1);
    display:flex;
    flex-direction:column;
    -webkit-user-select: none;
}
.side-menu.open { right: 0; }

/* header */
.menu-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 16px;
    background: #111;
    color: #fff;
}
.menu-header .title { font-size:16px; font-weight:600; }
.menu-header .close-btn{
    width:36px;height:36px;border-radius:6px;display:flex;align-items:center;justify-content:center;
    background:rgba(255,255,255,0.08); cursor:pointer;
}

/* content */
.menu-body{
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 36px;
    flex-direction: column;

}
.menu-list{ list-style:none;margin:0;padding:0; width: 100%; }
.menu-item{
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    position: relative;
    font-size:15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:transparent;
    cursor:pointer;
}
.menu-item1{
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    position: relative;
    font-size:15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:transparent;
    cursor:pointer;
}
.menu-item1 .left {
    display:flex;align-items:center;gap:10px;
}
.menu-item1 .icon {
    width:34px;height:34px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:#f0f0f0;color:#444;font-weight:600;
    font-size:14px;
}
.menu-item1 .label { color: #222; }

.menu-item1 .caret { font-size:12px;color:#777; margin-left:8px; }
.menu-item .left {
    display:flex;align-items:center;gap:10px;
}
.menu-item .icon {
    width:34px;height:34px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:#f0f0f0;color:#444;font-weight:600;
    font-size:14px;
}
.menu-item .label { color: #222; }

.menu-item .caret { font-size:12px;color:#777; margin-left:8px; }

/* 二级菜单 */
.sub-list{
    display:none;
    background:#fbfbfb;
    padding-left:56px;
}
.sub-list li{
    padding:12px 16px;
    border-bottom:1px solid #f0f0f0;
    font-size:14px;
    color:#777;
    cursor:pointer;
}

/* 打开时样式 */
.menu-item.open { background: #f7f7f8; }
.menu-item.open .caret { transform: rotate(180deg); }

/* 小屏优化 */
@media (max-width:420px){
    :root { --menu-width: 84vw; }
    .menu-icon { right:10px; top:10px; }
}
.menu-body .mewm{ justify-content: center; align-items: center; flex-direction: column; margin-top: 30px;}