/* generated nav + tabbar */

.nav-shell {
  position: relative;
  z-index: 30;
  flex: none;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell--transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-shell,
.nav-inner {
  box-sizing: border-box;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding-left: 0.3rem;
}

.nav-inner--search {
  justify-content: flex-start;
}

.nav-left {
  display: flex;
  flex: none;
  align-items: center;
  min-width: 0.46rem;
}

.brand {
  display: flex;
  align-items: center;
  height: 0.6rem;
}

.brand-en {
  font-size: 0.38rem;
  font-weight: 600;
  letter-spacing: 0.03rem;
  line-height: 1;
}

.brand-divider {
  width: 0.01rem;
  height: 0.24rem;
  margin: 0 0.14rem;
  background: rgba(36, 38, 31, 0.24);
}

.brand-cn {
  font-size: 0.2rem;
  letter-spacing: 0.02rem;
  white-space: nowrap;
}

.nav-shell--light .brand-en,
.nav-shell--light .brand-cn,
.nav-shell--light .nav-title {
  color: #f7f3ea;
}

.nav-shell--light .brand-divider {
  background: rgba(247, 243, 234, 0.32);
}

.nav-search {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 0.64rem;
  margin-left: 0.26rem;
  padding: 0 0.22rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-radius: 9.99rem;
  background: rgba(255, 252, 246, 0.78);
  color: #8d897c;
}

.nav-search--hover {
  background: rgba(255, 252, 246, 0.95);
}

.nav-search .icon {
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 0.12rem;
  color: #716b5f;
}

.nav-search-text {
  overflow: hidden;
  font-size: 0.22rem;
  letter-spacing: 0.005rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-shell--light .nav-search {
  border-color: rgba(247, 243, 234, 0.14);
  background: rgba(247, 243, 234, 0.1);
  color: rgba(247, 243, 234, 0.64);
}

.nav-shell--light .nav-search .icon {
  color: rgba(247, 243, 234, 0.7);
}

.nav-title-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nav-title {
  color: #24261f;
  font-size: 0.28rem;
  font-weight: 500;
  letter-spacing: 0.03rem;
}

.nav-space {
  flex: none;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 0.6rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.09);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.74);
}

.nav-shell--light .back-btn {
  border-color: rgba(247, 243, 234, 0.16);
  background: rgba(247, 243, 234, 0.11);
}

.nav-hover {
  opacity: 0.68;
}

.back-arrow {
  width: 0.18rem;
  height: 0.18rem;
  margin-left: 0.06rem;
  border-bottom: 0.02rem solid #24261f;
  border-left: 0.02rem solid #24261f;
  transform: rotate(45deg);
}

.nav-shell--light .back-arrow {
  border-color: #f7f3ea;
}


.tabbar-wrap {
  pointer-events: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  padding: 0.24rem 0.26rem calc(0.16rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 243, 234, 0) 0%, rgba(247, 243, 234, 0.92) 28%, #f7f3ea 100%);
}

.tabbar-wrap,
.tabbar,
.tab {
  box-sizing: border-box;
}

.tabbar {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  height: 1.08rem;
  padding: 0 0.1rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-radius: 0.36rem;
  background: rgba(255, 252, 246, 0.97);
  box-shadow: 0 0.18rem 0.5rem rgba(47, 43, 33, 0.12);
}

.tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999386;
  transition: color 0.2s ease;
}

.tab--hover {
  opacity: 0.72;
}

.tab--active {
  color: #20372c;
}

.tab-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.66rem;
  height: 0.52rem;
  border-radius: 0.18rem;
  transition: background-color 0.2s ease;
}

.tab--active .tab-icon-wrap {
  background: #e9ede2;
}

.tab-icon-wrap .icon {
  width: 0.38rem;
  height: 0.38rem;
}

.tab-label {
  margin-top: 0.01rem;
  font-size: 0.18rem;
  letter-spacing: 0.02rem;
  line-height: 1.2;
}

.tab--active .tab-label {
  font-weight: 600;
}

.tab-badge {
  position: absolute;
  top: -0.05rem;
  right: 0.02rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0.28rem;
  height: 0.28rem;
  padding: 0 0.07rem;
  border: 0.02rem solid #fffcf6;
  border-radius: 9.99rem;
  background: #b05f40;
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.16rem;
  line-height: 1;
}

/* --- H5 shell overrides --- */
.nav-shell{ position: sticky; top: 0; }
.tabbar-wrap{ left: 50%; right: auto; transform: translateX(-50%); width: min(100vw, 480px); }

/* --- H5 element display fixes --- */
.nav-inner {
  height: auto !important;
  min-height: 0.92rem;
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.16rem);
  padding-bottom: 0.12rem;
}
.brand-divider,
.back-arrow {
  display: inline-block;
}
.nav-search .icon,
.brand-en,
.brand-cn,
.nav-title,
.nav-search-text {
  display: inline-block;
}
.nav-search-text {
  line-height: 1.2;
}
