/* GTW 商城测试环境横幅（演示站 + 商城 H5 共用）
 * 红底白字，明确告知访问者：这是测试环境，不是真实商城。 */

#gtw-demo-banner {
  position: sticky;
  top: 0;
  z-index: 99999;
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  background: #c8102e;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 演示站顶栏是 sticky top:0，需要下移，避免与横幅重叠 */
.site-head {
  top: 32px !important;
}

/* 商城 H5：body 改为纵向 flex，让 #app 占用横幅之外的剩余高度 */
html.gtw-h5,
html.gtw-h5 body {
  height: 100%;
}

html.gtw-h5 body {
  display: flex;
  flex-direction: column;
  margin: 0;
}

html.gtw-h5 #gtw-demo-banner {
  flex: 0 0 32px;
}

html.gtw-h5 #app {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
}
