body {
  padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
}

.app-bottom-navigation {
  --app-bottom-navigation-content-height: 65px;
  --app-bottom-navigation-safe-bottom: env(safe-area-inset-bottom, 0px);

  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  width: min(100%, 720px);
  height: calc(
    var(--app-bottom-navigation-content-height)
    + var(--app-bottom-navigation-safe-bottom)
  );
  margin: 0 auto;
  padding: 0 8px var(--app-bottom-navigation-safe-bottom);
  color: #000;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  user-select: none;
  transition: transform 0.3s ease;
  transform: translateY(0);
}

.app-bottom-navigation--hidden {
  transform: translateY(100%);
}

body:has(.app-bottom-navigation) .bd-banner {
  bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  padding-bottom: 6px;
  transition: transform 0.3s ease;
}

body:has(.app-bottom-navigation--hidden) .bd-banner {
  transform: translateY(calc(65px + env(safe-area-inset-bottom, 0px)));
}

body.bd-banner-open:has(.app-bottom-navigation) {
  padding-bottom: calc(65px + var(--bd-banner-height, 0px) + env(safe-area-inset-bottom, 0px)) !important;
}

body.bd-float-tools-ready:has(.app-bottom-navigation) #page-float-tools {
  bottom: calc(65px + 10px + env(safe-area-inset-bottom, 0px));
  transition: bottom 0.2s ease, transform 0.3s ease;
}

body.bd-float-tools-ready.bd-banner-open:has(.app-bottom-navigation) #page-float-tools {
  bottom: calc(65px + var(--bd-banner-height, 0px) + 10px + env(safe-area-inset-bottom, 0px));
}

body.bd-float-tools-ready:has(.app-bottom-navigation--hidden) #page-float-tools {
  transform: translateY(calc(65px + env(safe-area-inset-bottom, 0px)));
}

.app-bottom-navigation__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  min-width: 0;
  height: var(--app-bottom-navigation-content-height);
  margin: 0;
  padding: 5px 1px 7px;
  color: #000;
  font-family: Arial, "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
}

.app-bottom-navigation__item:first-child {
  padding-left: 4px;
}

.app-bottom-navigation__item:last-child {
  padding-right: 4px;
}

.app-bottom-navigation__item:active {
  background: rgba(24, 143, 244, 0.08);
}

.app-bottom-navigation__item--active {
  color: #188ff4;
}

.app-bottom-navigation__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  color: #188ff4;
}

.app-bottom-navigation__icon svg {
  display: block;
  width: 37px;
  height: 37px;
}

.app-bottom-navigation__image-icon,
.app-bottom-navigation__logo {
  display: block;
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.app-bottom-navigation__image-icon--region {
  border-radius: 50%;
}

.app-bottom-navigation__logo {
  border-radius: 9px;
}

.app-bottom-navigation__label {
  display: block;
  width: 100%;
  min-width: 0;
  height: 17px;
  overflow: hidden;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: clip;
}
