/* ============================================================
   公共壳：页头 flex、汉堡基座、移动端 @media（对照 vbj_chinese common.css）
   主题色沿用俄文蓝系 #2C3383 / #767EC9
   ============================================================ */

/* PC：logo-search 改为 flex（nav 已去掉 fl/fr），与业务 CSS 中的尺寸并存 */
.head .logo-search {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.head .logo-search .logo,
.head .logo-search .search {
    float: none;
}

/* 汉堡菜单基础隐藏（勿移入 @media：源顺序需早于 @media 内的 display） */
.mobile-menu,
.nav-toggle {
    display: none;
}

/* 404 */
.error-404 {
    min-height: 400px;
    text-align: center;
    padding: 80px 20px;
}
.error-404 h1 {
    font-size: 72px;
    line-height: 1.2;
    color: #2C3383;
    margin-bottom: 16px;
}
.error-404 p {
    font-size: 18px;
    color: #6E5F5C;
    margin-bottom: 24px;
}
.error-404 a {
    display: inline-block;
    padding: 10px 24px;
    background: #2C3383;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
}

/* ============================================================
   移动端适配 @media (max-width: 800px) — rem 方案
   基准：375 设计稿，1rem = 100px（由 /web/js/auto.js 动态计算）
   ============================================================ */
@media screen and (max-width: 800px) {
    * { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
    html { font-size: 100px; } /* auto.js 失效兜底 */
    body { min-width: 100% !important; }

    .center {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0.12rem;
        padding-right: 0.12rem;
    }

    img { max-width: 100%; height: auto; }

    /* 页头 */
    .head {
        height: auto !important;
        padding: 0.1rem 0;
        background-size: cover;
        background-position: center;
    }
    .head .center { position: relative; }
    .head .logo-search {
        height: auto !important;
        flex-wrap: wrap;
        padding-top: 0.05rem;
        margin-bottom: 0;
        align-items: center;
    }
    .head .logo-search .logo {
        width: 1.8rem !important;
        height: 0.3rem !important;
        margin-top: 0 !important;
        background-size: contain !important;
        background-position: left center !important;
    }
    .head .logo-search .search {
        order: 2;
        width: 100% !important;
        height: 0.36rem !important;
        margin-top: 0.08rem !important;
        text-indent: 0.16rem;
    }
    .head .logo-search .search span {
        top: 0.03rem !important;
        right: 0.24rem !important;
        width: 0.3rem !important;
        height: 0.3rem !important;
        background-size: 0.2rem auto !important;
    }
    .head .logo-search .search input {
        font-size: 0.14rem !important;
        line-height: 0.36rem !important;
        padding-left: 0.2rem;
        height: 100%;
    }
    .head .nav { display: none !important; }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 0.26rem;
        height: 0.18rem;
        margin-left: auto;
        cursor: pointer;
        z-index: 1001;
    }
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        margin: 0;
        border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(0.08rem) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-0.08rem) rotate(-45deg); }

    .mobile-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.1rem);
        background: #2C3383;
        z-index: 1000;
    }
    .mobile-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
    .mobile-menu li a {
        display: block;
        padding: 0.14rem 0.2rem;
        color: #fff;
        font-size: 0.16rem;
    }

    .breadcrumb { font-size: 0.14rem; margin: 0.15rem 0 0.1rem; }
    .box .page,
    .container .page {
        font-size: 0.14rem;
        height: auto !important;
        margin: 0.3rem 0;
        white-space: normal;
    }
    .box .page a,
    .box .page span,
    .container .page a,
    .container .page span {
        margin: 0 0.03rem 0.03rem;
        padding: 0.04rem 0.08rem;
        font-size: 0.14rem;
        min-width: 0.3rem;
    }

    .foot {
        height: auto !important;
        padding: 0.2rem 0.12rem !important;
        box-sizing: border-box;
        font-size: 0.12rem;
        line-height: 0.22rem;
        background-size: cover;
    }
    .foot span { margin: 0 0.05rem; }

    .error-404 { padding: 0.6rem 0.2rem; min-height: 3rem; }
    .error-404 h1 { font-size: 0.48rem; }
    .error-404 p { font-size: 0.16rem; }
    .error-404 a { font-size: 0.14rem; padding: 0.1rem 0.2rem; }
}
