/**
 * Sub-page injected tab bar — spacing + fallback icon styling.
 * Main chrome comes from tabbar-premium.css (.tabbar__container).
 */

body.tw-has-subpage-tabbar #app {
  padding-bottom: calc(1.72rem + env(safe-area-inset-bottom, 0px)) !important;
}

body.tw-has-subpage-tabbar.tw-login-password-page #app .LoginP-container[data-v-5beab1ae],
body.tw-has-subpage-tabbar.tw-bind-email-page #app .bind-container[data-v-eca8202a],
body.tw-has-subpage-tabbar.tw-setting-center-page #app .setting-wrapper {
  padding-bottom: calc(1.72rem + env(safe-area-inset-bottom, 0px)) !important;
}

body #app .tabbar__container.tw-subpage-tabbar {
  pointer-events: auto;
}

body #app .tw-subpage-tabbar .tabbar__container-item {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body #app .tw-subpage-tabbar .tw-tab-ico {
  width: 0.56rem;
  height: 0.56rem;
  padding: 0.1rem;
  box-sizing: content-box;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.34rem;
  line-height: 1;
  color: #ffd966;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 240, 166, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, rgba(22, 18, 12, 0.78) 0%, rgba(8, 8, 10, 0.9) 100%);
  filter:
    drop-shadow(0 0 0.1rem rgba(255, 217, 102, 0.45))
    drop-shadow(0 0 0.18rem rgba(229, 184, 59, 0.28));
  transition: transform 260ms ease, filter 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

body #app .tw-subpage-tabbar .tabbar__container-item:nth-of-type(3) .promotionBg .tw-tab-ico {
  width: 0.66rem;
  height: 0.66rem;
  padding: 0;
  font-size: 0.42rem;
  background: transparent;
  border-radius: 0;
}

body #app .tw-subpage-tabbar .tabbar__container-item.active:not(:nth-of-type(3)) .tw-tab-ico {
  color: #fff0a6;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 240, 166, 0.32) 0%, transparent 55%),
    linear-gradient(160deg, rgba(32, 26, 14, 0.92) 0%, rgba(10, 8, 6, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 240, 166, 0.48),
    0 0 0.2rem rgba(255, 217, 102, 0.42);
  transform: translateY(-0.02rem) scale(1.06);
}
