html,
body{
    width:100%;
    height:100%;
    margin:0;
    padding:0;

    overflow:hidden;

    background:#f5f5f5;

    -webkit-text-size-adjust:100%;
}

body{
    height:100svh;
    min-height:100svh;
}

#app-shell{
    width:100%;
    max-width:720px;

    height:100svh;

    margin:0 auto;

    display:grid;
    grid-template-rows:minmax(0,1fr) auto;

    overflow:hidden;

    background:#fff;
}

#page-root{
    position:relative;

    min-width:0;
    min-height:0;

    overflow:hidden;

    background:#fff;
}

#page-root > .app{
    width:100%;
    height:100%;
    min-height:0;

    margin:0;

    box-sizing:border-box;

    background:#fff;
}

#app-shell.shell-no-tab{
    grid-template-rows:minmax(0,1fr);
}

img,
.product-img{
    flex-shrink:0;
}

.section,
.products,
.brands{
    min-width:0;
}

.products > *,
.brands > *{
    min-width:0;
}


/* 分类路由首屏：隐藏静态首页，直接显示完整分类页 */
html.boot-category #page-root > .home-app.boot-app{
    display:none !important;
}

html:not(.boot-category) #category-boot{
    display:none !important;
}

/* 通用深链接首屏：禁止错误的静态首页闪现 */
html.boot-deep-route #page-root > .home-app.boot-app{
    display:none !important;
}
