/* 图个乐 · 首页静态直出（build 1214）
   这一层放在 #app 里面，样式沿用原站现成的那套（左栏/卡片/顶部都是 .zg-* 类）。
   回滚：index.html 删掉这行引用即可。 */
#zgStaticHome{position:relative;z-index:1;display:flex;flex-direction:column;min-height:calc(100vh - 36px);background:#f7f8fa;overflow:hidden}
#zgStaticHome .zg-sh-shell{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;overflow:hidden}
#zgStaticHome .zg-sh-pad{flex:0 0 auto;display:block}
#zgStaticHome .zg-sh-hdr{display:flex}
#zgStaticHome .zg-layout{flex:1 1 auto;min-height:0;display:flex;overflow:hidden}
#zgStaticHome .zg-rail-outer{flex:0 0 auto;height:auto}
#zgStaticHome .zg-rail{height:auto!important;min-height:0!important}
#zgStaticHome .zg-grid-wrap{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;min-height:0;height:auto}
#zgStaticHome .main.zg-grid{flex:1 1 auto;min-height:0;height:auto!important}
#zgStaticHome .itme{cursor:pointer}
/* 后台隐藏的分类：静态层里固定不出（补丁清 inline display 也顶不掉） */
#zgStaticHome .itme.zg-sh-hide{display:none!important}
/* 顶部这一行按原站最终顺序排：品牌 → 授权 → 搜索 → 最近使用/收藏 → 头像
   （原站补丁会把自己建的块往末尾挪，这里用 flex order 定死，免得顺序乱） */
#zgStaticHome .zg-brand{order:1}
#zgStaticHome .zg-license{order:2}
#zgStaticHome .zg-search{order:3}
#zgStaticHome .zg-tools{order:4}
#zgStaticHome .zg-usermenu{order:5}
/* 手机上原站本来就不渲染左栏，这里跟着收起来，卡片自然变两列 */
@media (max-width:820px){
  #zgStaticHome .zg-rail-outer{display:none!important}
  #zgStaticHome .zg-grid-wrap{flex:1 1 auto}
  /* 手机上原站头部压得比桌面紧，这里对齐它的落点，交接时不跳 */
  #zgStaticHome .zg-layout{margin-top:-26px}
}

/* ===== 1219：首屏无缝交接 =====
   直出层原地不动，只在「Vue 把它替换掉」的那一瞬间挂回 body 当遮盖（加 .zg-sh-cover），
   真实首页 + 皮肤上齐后淡出。只加这一段，上面原有规则一条不动；回滚删掉这段即可。 */
#zgStaticHome.zg-sh-cover{
  position:fixed;
  left:0;right:0;top:36px;bottom:0;   /* 36px = 顶部跑马灯，跟它原来在 #app 里的落点一致 */
  z-index:2147482000;
  min-height:0;
  height:auto;
  overflow:hidden;
  opacity:1;
  transition:opacity .22s linear;
  will-change:opacity;
}
#zgStaticHome.zg-sh-out{opacity:0;pointer-events:none}
