/* hxqhs top nav + carousel full-width — do not edit kongjiang */
:root {
  --hx-red: #d43e3f;
  --hx-red-deep: #c43334;
  --hx-gold: #ed9a08;
  --hx-nav-h: 50px;
}

body.hx-has-nav {
  padding-top: var(--hx-nav-h);
}

.hx-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: var(--hx-nav-h);
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  background: linear-gradient(90deg, #fff 0%, #fffaf7 100%);
  box-shadow: 0 2px 10px rgba(212, 62, 63, 0.12);
  border-bottom: 1px solid rgba(212, 62, 63, 0.08);
  box-sizing: border-box;
}

.hx-topnav__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.hx-topnav__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f7f7f7;
  border: 1px solid #f0e6e6;
}

.hx-topnav__name {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.hx-topnav__lang {
  position: relative;
  flex-shrink: 0;
  margin-left: 8px;
}

.hx-topnav__lang-btn {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(212, 62, 63, 0.25);
  border-radius: 16px;
  background: #fff;
  color: var(--hx-red);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hx-topnav__lang-btn span {
  margin-right: 4px;
}

.hx-topnav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--hx-red);
}

.hx-topnav__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 148px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 2010;
}

.hx-topnav__menu.open {
  display: block;
}

.hx-topnav__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.hx-topnav__menu button.active {
  color: var(--hx-red);
  font-weight: 700;
  background: #fff5f5;
}

.hx-topnav__menu button + button {
  border-top: 1px solid #f3f3f3;
}

/* hide original home language chip to avoid duplicate */
.home_wrap > .index_top_bg .language {
  display: none !important;
}

/* 去掉上导航下方原站蓝色顶栏（index-bg + 语言/消息条） */
.home_wrap > .index_top_bg {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.home_wrap {
  background-image: none !important;
  background: #f7f7f7 !important;
}
