/* 2026-11-04 d 版：页脚留在页面流末尾；导航点击不位移；整页切换不漂移 */
/* 1) 页脚：不悬浮、不跟随滚动，只在页面内容末尾水平居中 */
.shell.shop-shell .site-legal,
.shell.staff-shell .site-legal{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  width:auto;
  max-width:none;
  margin:30px 0 0;
  padding:16px 0 0;
  border-top:1px solid var(--line);
  transform:none;
  background:none;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  text-align:center;
  align-items:center;
  gap:6px;
}
.shell .site-legal-links{justify-content:center;text-align:center}

/* 2) 滚动条始终预留宽度：长短页面切换时，所有居中元素不再横向漂移 */
@media (min-width:721px){
  html{scrollbar-gutter:stable both-edges}
  @supports not (scrollbar-gutter:stable){
    html{overflow-y:scroll}
  }
}

/* 3) 关闭页面级入场动画：切换标签时品牌栏、面板、卡片不再上浮/淡入 */
.shop-shell .brand,
.shop-shell .notice,
.shop-shell .panel,
.shop-shell .shop-intro,
.shop-shell .intro-seal,
.shop-shell .shopping-guide,
.shop-shell .shop-section-head,
.shop-shell .shop-grid .card,
.shop-shell .order,
.shop-shell .account-order-banner,
.shop-shell .guide-chat,
.shop-shell .guide-checkout,
.shop-shell .guide-cards>.guide-product,
.staff-shell .brand,
.staff-shell .panel,
.staff-shell .order{
  animation:none!important;
}

/* 4) 顾客端导航：固定宽度 + 3 等分，激活态不改变字重 */
.shop-shell nav.tabs{
  width:min(420px,calc(100vw - 32px));
  max-width:none;
  left:50%;
  right:auto;
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  justify-content:stretch;
}
.shop-shell nav.tabs button{
  width:100%;
  max-width:none;
  min-width:0;
  padding:6px 4px;
  font-weight:500;
}
.shop-shell nav.tabs button.active{font-weight:500}
/* 点击时按钮本身也不要位移 */
.shop-shell nav.tabs button:active,
.staff-shell nav.tabs button:active{transform:none!important}

/* 5) 管理端导航：6 等分，标签数字变化也不改变整条导航位置 */
.staff-shell nav.tabs{
  left:0;
  right:0;
  width:auto;
  max-width:none;
  transform:none;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.staff-shell nav.tabs button{
  width:100%;
  max-width:none;
  min-width:0;
  font-weight:500;
}
.staff-shell nav.tabs button.active{font-weight:500}
@media (max-width:480px){
  .staff-shell nav.tabs button{font-size:9.5px;letter-spacing:.02em}
}
