/* 本站导航 + theme-style 与官网布局衔接；页面随内容增高，使用窗口滚动条 */
html.page-mobile-html,
html.page-mobile-html body.page-mobile {
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: auto !important;
}

.sgbr-mobile-page {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
}

.sgbr-mobile-page .oc-site-header {
    position: relative;
    z-index: 100;
}

/* 蓝色主内容区：高度随内容，不锁死视口；与页脚之间留出间距 */
.sgbr-mobile-official-root#__next {
    position: relative !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    scrollbar-width: auto !important;
    padding-bottom: clamp(1.25rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

.sgbr-mobile-page > .oc-site-footer {
    flex-shrink: 0;
    margin-top: clamp(0.5rem, 2vw, 1rem);
}

/* 官网 #app：取消 fixed/100vh，改为文档流块级，自然撑开 */
.sgbr-mobile-official-root #app.pc_app__6VGtS {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* 底部留白，避免蓝区与深色页脚视觉上「挤在一起」 */
    padding-bottom: clamp(2rem, 5vw, 3.5rem) !important;
    box-sizing: border-box !important;
}

/* 主区域不再单独滚动，随页面一起滚；右侧手机图为 absolute，需用 padding-bottom 为其与按钮区预留空间 */
.sgbr-mobile-official-root #app.pc_app__6VGtS .pc_main__2GnBi {
    flex: 0 0 auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    padding-bottom: clamp(5rem, 26vw, 16rem) !important;
    box-sizing: border-box !important;
}

/* 官网使用 TTTGB；离线或 CDN 无字体时与系统黑体接近 */
.pc_title__2sWHX,
.pc_module_list__aeiIt .pc_left__22LMx .pc_text__12kit {
    font-family: TTTGB, "PingFang SC", "Microsoft YaHei", sans-serif;
}
