/* 固定 1320px 版心：配合 viewport width=1320，手机端等比缩放 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/*
 * 首页左右侧栏：左侧品牌、右侧账号，固定于视口两侧
 * 中间内容区 max-width 随侧栏预留空间收窄，避免遮挡
 */
.page-home .home-brand-rail--inline,
.page-home .home-auth-rail--inline {
  display: none !important;
}
  .page-home .home-brand-rail--fixed {
  display: block !important;
  position: fixed !important;
  top: 7.5rem !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  width: 172px !important;
  max-height: calc(100vh - 8.5rem);
  overflow-y: auto;
  z-index: 900 !important;
  padding-bottom: 1rem;
  transform: none !important;
}

.page-home .home-auth-rail--fixed {
  display: block !important;
  position: fixed !important;
  top: 7.5rem !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  width: 200px !important;
  z-index: 900 !important;
  transform: none !important;
}

.page-home.page-home--dual-rails .home-carousel-wrap,
.page-home.page-home--dual-rails .container {
  max-width: min(1000px, var(--home-center-max, calc(100vw - 420px))) !important;
}

.page-home.page-home--auth-rail-only .home-carousel-wrap,
.page-home.page-home--auth-rail-only .container {
  max-width: min(1000px, var(--home-center-max, calc(100vw - 236px))) !important;
}

/* 旧版缩放容器：若仍存在则隐藏，避免侧栏叠在左下角 */
#frontend-scale-root,
#frontend-scale-host,
#frontend-fixed-layer {
  transform: none !important;
}

#frontend-fixed-layer {
  position: static !important;
  height: auto !important;
  width: auto !important;
  pointer-events: none !important;
}

#frontend-fixed-layer > .home-brand-rail--fixed,
#frontend-fixed-layer > .home-auth-rail--fixed {
  position: fixed !important;
  pointer-events: auto !important;
}
