/* 顶部四块 1:1：下载条 / 导航 / Banner / 公告 */

.notice-bar-wrapper .van-notice-bar {
  background-color: var(--theme-backgroud-color, #fff);
  color: var(--heading-color, #2d2d2d);
  padding: 0 min(1.777778vw, 9.6px) 0 min(2.933333vw, 15.84px);
  height: min(8.888889vw, 48px);
}
.notice-bar-wrapper .van-notice-bar .van-icon-volume-o,
.notice-bar-wrapper .van-icon-volume-o.mr_15 {
  color: var(--theme-btn-primary-background, #bd9534);
  font-size: min(3.733333vw, 20.16px);
}
.notice-bar-wrapper .van-notice-bar__content,
.notice-bar-wrapper .notice-content {
  font-size: min(3.2vw, 17.28px);
  font-weight: 400;
  color: var(--heading-color, #2d2d2d);
}
.notice-bar-wrapper .notice-right-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.notice-bar-wrapper .message-box {
  position: relative;
  margin-left: min(1.6vw, 8.64px);
  height: min(4.444444vw, 24px);
  border-radius: min(0.8vw, 4.32px);
  font-weight: 380;
  font-size: min(2.666667vw, 14.4px);
  color: #fff;
  padding: 0 min(1.6vw, 8.64px);
  background: var(--theme-home-message-btn-background, #4db0ff);
  white-space: nowrap;
}
.notice-bar-wrapper .message-box.services {
  background: var(--theme-home-services-btn-background, #ffbf63);
}
.notice-bar-wrapper .message-box .svg-icon {
  color: #fff;
  margin-right: min(0.8vw, 4.32px);
}

.header-download-wrapper {
  background: #2c3a3b !important;
}
.header-download-wrapper .text p {
  color: #e0ab4b;
  font-size: min(3.2vw, 17.28px);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}
.header-download-wrapper .text .desc {
  color: #fff;
  font-size: min(2.666667vw, 14.4px);
  font-weight: 400;
}

/* 顶栏固定：补齐原站 data-v-26518fba 缺失 */
:root {
  --header-height: min(17.333333vw, 93.6px);
  --header-height-compact: min(8.666667vw, 46.8px);
}

.header-sticky-wrapper {
  display: contents;
}

.header-sticky-wrapper .header-wrapper {
  position: fixed;
  top: 0;
  left: calc(50% - min(50%, 270px));
  width: min(100%, 540px);
  z-index: 1100;
  background-color: var(--theme-backgroud-color, #fff);
  display: flex;
  flex-direction: column;
}

.header-sticky-wrapper > .header-spacer {
  pointer-events: none;
  flex-shrink: 0;
  display: block;
  width: 100%;
}

.base-layout.has-header .header-spacer {
  min-height: 0;
}

.base-layout.has-header.has-download .header-spacer {
  min-height: 0;
}

.base-layout.has-header .van-pull-refresh {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.header-sticky-wrapper .van-nav-bar__right {
  position: relative;
  z-index: 2;
}

.header-sticky-wrapper .van-nav-bar__left {
  flex: 1;
  min-width: 0;
}

.header-wrapper .header-left-group {
  display: flex;
  align-items: center;
  gap: min(2.133333vw, 11.52px);
  min-width: 0;
  max-width: 100%;
}

.header-wrapper .header-logo-link {
  flex-shrink: 1;
  min-width: 0;
  line-height: 0;
}

.header-wrapper .header-left-group .logo {
  max-width: min(40vw, 216px);
}

.header-wrapper .van-nav-bar__content {
  align-items: center;
}

/* 顶栏：注册（描边）/ 登录（实心） */
.header-wrapper .van-nav-bar__right .action-btn {
  border-radius: min(1.777778vw, 9.6px);
  font-size: min(3.733333vw, 20.16px);
  height: min(6.4vw, 34.56px);
  padding: 0 min(3.2vw, 17.28px);
  min-width: min(14.933333vw, 80.64px);
  line-height: 1;
}

.header-wrapper .action-btn--register.van-button--plain {
  color: var(--theme-btn-primary-background, #bd9534) !important;
  border: min(0.266667vw, 1.44px) solid var(--theme-btn-primary-background, #bd9534) !important;
  background: transparent !important;
}

.header-wrapper .action-btn--register.van-button--plain .van-button__text {
  color: var(--theme-btn-primary-background, #bd9534);
}

.header-wrapper .action-btn--login {
  color: #fff !important;
  border: none !important;
  background: var(--theme-btn-primary-background, #bd9534) !important;
}

.header-wrapper .action-btn--login .van-button__text {
  color: #fff;
}

.header-wrapper .header-user-label {
  font-size: min(3.466667vw, 18.72px);
  color: var(--heading-color, #2d2d2d);
  max-width: min(26.666667vw, 144px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 首页多语言切换 `/lang_list` — 与顶栏登录/注册同高对齐 */
.header-wrapper .lang-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: auto;
  line-height: 1;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: min(0.8vw, 4.32px);
  max-width: min(24vw, 129.6px);
  height: min(6.4vw, 34.56px);
  padding: 0 min(1.333333vw, 7.2px) 0 min(0.8vw, 4.32px);
  border: min(0.266667vw, 1.44px) solid rgba(189, 149, 52, 0.45);
  border-radius: min(1.777778vw, 9.6px);
  background: linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
  box-shadow: none;
  cursor: pointer;
  vertical-align: middle;
}

.lang-switcher-chip {
  display: inline-flex;
  align-items: center;
  gap: min(0.8vw, 4.32px);
  min-width: 0;
  flex: 1;
}

.lang-switcher-flag {
  width: min(4.266667vw, 23.04px);
  height: min(4.266667vw, 23.04px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lang-switcher-label {
  font-size: min(2.933333vw, 15.84px);
  font-weight: 600;
  color: var(--heading-color, #2d2d2d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.lang-switcher-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(4.266667vw, 23.04px);
  height: min(4.266667vw, 23.04px);
  border-radius: 50%;
  font-size: min(2.133333vw, 11.52px);
  font-weight: 700;
  color: var(--theme-btn-primary-background, #bd9534);
  background: rgba(189, 149, 52, 0.12);
  flex-shrink: 0;
}

.lang-switcher-arrow {
  width: min(2.133333vw, 11.52px);
  height: min(2.133333vw, 11.52px);
  color: var(--theme-btn-primary-background, #bd9534);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-switcher-btn[aria-expanded='true'] .lang-switcher-arrow {
  transform: rotate(180deg);
}

.lang-switcher-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
}

.lang-switcher-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2001;
  width: min(100%, 540px);
  max-height: 70vh;
  transform: translateX(-50%);
  background: #fff;
  border-radius: min(3.2vw, 17.28px) min(3.2vw, 17.28px) 0 0;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.lang-switcher-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: min(3.733333vw, 20.16px) min(4.266667vw, 23.04px);
  font-size: min(4.266667vw, 23.04px);
  font-weight: 600;
  color: var(--heading-color, #2d2d2d);
}

.lang-switcher-close {
  border: none;
  background: transparent;
  font-size: min(6.4vw, 34.56px);
  line-height: 1;
  color: #999;
  padding: 0 min(1.6vw, 8.64px);
  cursor: pointer;
}

.lang-switcher-list {
  list-style: none;
  margin: 0;
  padding: min(2.133333vw, 11.52px) min(3.2vw, 17.28px) min(2.666667vw, 14.4px);
  overflow-y: auto;
  max-height: calc(70vh - min(14.933333vw, 80.64px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: min(2.133333vw, 11.52px);
}

.lang-switcher-list li {
  min-width: 0;
}

.lang-switcher-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: min(1.6vw, 8.64px);
  padding: min(2.666667vw, 14.4px) min(2.4vw, 12.96px);
  border: min(0.266667vw, 1.44px) solid #eee;
  border-radius: min(2.133333vw, 11.52px);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher-item.is-active {
  border-color: rgba(189, 149, 52, 0.65);
  background: linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
  box-shadow: 0 min(0.533333vw, 2.88px) min(1.6vw, 8.64px) rgba(189, 149, 52, 0.14);
}

.lang-switcher-item-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(1.333333vw, 7.2px);
  min-width: 0;
  flex: 1;
}

.lang-switcher-item-flag {
  width: min(10.666667vw, 57.6px);
  height: min(10.666667vw, 57.6px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 min(0.533333vw, 2.88px) min(1.6vw, 8.64px) rgba(0, 0, 0, 0.08);
}

.lang-switcher-item-title {
  width: 100%;
  font-size: min(3.2vw, 17.28px);
  font-weight: 600;
  color: var(--heading-color, #2d2d2d);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.lang-switcher-check {
  position: absolute;
  top: min(1.6vw, 8.64px);
  right: min(1.6vw, 8.64px);
  width: min(4.266667vw, 23.04px);
  height: min(4.266667vw, 23.04px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: min(2.666667vw, 14.4px);
  color: #fff;
  background: var(--theme-btn-primary-background, #bd9534);
  font-weight: 700;
}
