/* 营销站点 · 全站联动导航 */
.one-site-switcher {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  background-color: #0f2a3d;
  background-image: linear-gradient(90deg, #0f2a3d 0%, #162f42 50%, #0f2a3d 100%);
  color: #e6edf3;
  border-bottom: 2px solid rgba(240, 196, 90, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.one-site-switcher-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.one-site-switcher-brand {
  font-size: 13px;
  font-weight: 600;
  color: #f0c45a;
  white-space: nowrap;
  line-height: 1.3;
}

.one-site-switcher-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 2px 0;
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
  border: none;
}

.one-site-switcher-nav a,
.one-site-switcher-nav a.one-site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #e8f0f6 !important;
  background-color: #243a4f !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.one-site-switcher-nav a:hover,
.one-site-switcher-nav a.one-site-nav-link:hover {
  background-color: #2f4a62 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22);
}

.one-site-switcher-nav a.is-active,
.one-site-switcher-nav a.one-site-nav-link.is-active {
  background-color: #f0c45a !important;
  color: #0f2a3d !important;
  border-color: #e6b84c;
  box-shadow: 0 2px 8px rgba(240, 196, 90, 0.35);
}

.one-site-switcher-nav a i,
.one-site-switcher-nav a.one-site-nav-link i {
  font-size: 12px;
  opacity: 0.92;
}

.one-site-switcher-contact {
  font-size: 12px;
  color: #d5e4ef;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #243a4f;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.one-site-switcher-contact i {
  color: #58b383;
  margin-right: 6px;
}

.one-site-switcher-contact a {
  color: inherit;
  text-decoration: none;
}

.one-site-switcher-contact a:hover {
  color: #f0c45a;
}

/* 逛商场 / 产品 / 工具页 · 暖色导航（与页面头部一致） */
body[data-one-page="market"] .one-site-switcher,
body[data-one-page="products"] .one-site-switcher,
body[data-one-page="tool"] .one-site-switcher {
  background-color: #6e2f1f;
  background-image: radial-gradient(circle at 12% 20%, #a85136, #6e2f1f 55%, #5a2818 100%);
  border-bottom-color: rgba(247, 212, 74, 0.45);
  box-shadow: 0 4px 18px rgba(60, 30, 15, 0.25);
}

body[data-one-page="market"] .one-site-switcher-brand,
body[data-one-page="products"] .one-site-switcher-brand,
body[data-one-page="tool"] .one-site-switcher-brand {
  color: #f7d44a;
}

body[data-one-page="market"] .one-site-switcher-nav a,
body[data-one-page="market"] .one-site-switcher-nav a.one-site-nav-link,
body[data-one-page="products"] .one-site-switcher-nav a,
body[data-one-page="products"] .one-site-switcher-nav a.one-site-nav-link,
body[data-one-page="tool"] .one-site-switcher-nav a,
body[data-one-page="tool"] .one-site-switcher-nav a.one-site-nav-link {
  color: #fcf3e3 !important;
  background-color: rgba(0, 0, 0, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-one-page="market"] .one-site-switcher-nav a:hover,
body[data-one-page="market"] .one-site-switcher-nav a.one-site-nav-link:hover,
body[data-one-page="products"] .one-site-switcher-nav a:hover,
body[data-one-page="products"] .one-site-switcher-nav a.one-site-nav-link:hover,
body[data-one-page="tool"] .one-site-switcher-nav a:hover,
body[data-one-page="tool"] .one-site-switcher-nav a.one-site-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.38) !important;
  color: #fff !important;
}

body[data-one-page="market"] .one-site-switcher-nav a.is-active,
body[data-one-page="market"] .one-site-switcher-nav a.one-site-nav-link.is-active,
body[data-one-page="products"] .one-site-switcher-nav a.is-active,
body[data-one-page="products"] .one-site-switcher-nav a.one-site-nav-link.is-active,
body[data-one-page="tool"] .one-site-switcher-nav a.is-active,
body[data-one-page="tool"] .one-site-switcher-nav a.one-site-nav-link.is-active {
  background-color: #f7d44a !important;
  color: #3c1f13 !important;
  border-color: #e6c43e;
  box-shadow: 0 2px 8px rgba(247, 212, 74, 0.35);
}

body[data-one-page="market"] .one-site-switcher-contact,
body[data-one-page="products"] .one-site-switcher-contact,
body[data-one-page="tool"] .one-site-switcher-contact {
  color: #fcf3e3;
  background-color: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-one-page="market"] .one-site-switcher-contact i,
body[data-one-page="products"] .one-site-switcher-contact i,
body[data-one-page="tool"] .one-site-switcher-contact i {
  color: #f7d44a;
}

/* 去掉与联动导航重复的旧导航条（仅 body 直接子级 nav，勿误伤联动栏内 .one-site-switcher-nav） */
body.one-site-ready.has-one-site-switcher[data-one-page="home"] > nav {
  display: none;
}

body.one-site-ready.has-one-site-switcher[data-one-page="products"] .header-links {
  display: none;
}

body.one-site-ready.has-one-site-switcher[data-one-page="market"] .market-sub {
  display: none;
}

/* 顶部联系栏 · 邮箱链接（避免浏览器默认蓝色） */
.top-bar .contact-info a,
.top-bar .contact-info a:visited,
.top-bar a[data-one-site-mail] {
  color: #e6edf3;
  text-decoration: none;
}

.top-bar .contact-info a:hover,
.top-bar a[data-one-site-mail]:hover {
  color: #f0c45a;
}

/* 语言切换 */
.lang-switch a.is-lang-active,
.one-lang-active {
  color: #f0c45a !important;
  font-weight: 700;
}

.one-lang-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 42, 61, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.one-lang-toast.show {
  opacity: 1;
}

/* 全站语言浮条（无顶栏语言切换的页面） */
.one-lang-float {
  position: fixed;
  right: 12px;
  bottom: 72px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(15, 42, 61, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.one-lang-float a,
.one-lang-float a:visited {
  color: #e8f0f6;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.one-lang-float a:hover,
.one-lang-float a.is-lang-active {
  background: #f0c45a;
  color: #0f2a3d;
}

body[data-one-page="market"] .one-lang-float,
body[data-one-page="products"] .one-lang-float,
body[data-one-page="tool"] .one-lang-float {
  background: rgba(110, 47, 31, 0.94);
}

/* 页脚备案 + IPv6 */
.one-site-beian {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 14px 16px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #8a97a3;
  background: transparent;
}

.one-site-beian-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

.one-site-beian a,
.one-site-beian a:visited {
  color: inherit;
  text-decoration: none;
}

.one-site-beian a:hover {
  color: #f0c45a;
  text-decoration: underline;
}

body[data-one-page="market"] .one-site-beian a:hover,
body[data-one-page="products"] .one-site-beian a:hover,
body[data-one-page="tool"] .one-site-beian a:hover {
  color: #8b3e2a;
}

.one-site-ipv6 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(46, 125, 50, 0.45);
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.one-site-ipv6-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #43a047 0%, #1b5e20 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

body[data-one-page="tool"] .one-footer-nav a,
body[data-one-page="tool"] .one-footer-nav a:visited {
  color: #1f5a3a;
  text-decoration: none;
  font-weight: 600;
}

body[data-one-page="tool"] .one-footer-nav a:hover {
  color: #8b3e2a;
  text-decoration: underline;
}

body[data-one-page="tool"] .one-footer-sep {
  color: #b09a86;
  margin: 0 6px;
}

/* 产品中心 · 分类锚点高亮 */
.category-nav a.is-cat-active {
  background: #8b3e2a !important;
  color: #fff !important;
}

.cat-section.one-cat-highlight {
  outline: 2px solid rgba(139, 62, 42, 0.45);
  outline-offset: 4px;
  border-radius: 12px;
}

@media (max-width: 720px) {
  .one-site-switcher-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .one-site-switcher-nav {
    justify-content: center;
  }

  .one-site-switcher-contact {
    text-align: center;
  }
}
