/* XiaoyuCMS theme-skin — sample brand red */
html body,
body .container,
.container {
  --xy-skin-primary: #cb2c31;
  --xy-skin-primary-2: #e0454a;
  --xy-skin-accent: #a82024;
  --xy-skin-ink: #333333;
}

/* 手机端禁止整页横向滚动（统计条 / 负 margin 等溢出兜底） */
@media only screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  .container {
    overflow-x: hidden;
    max-width: 100%;
  }
}

/* 通用链接 hover 用品牌色；顶栏一级导航红底时必须白字，勿套此规则 */
a:hover { color: var(--xy-skin-primary); }
.nav_wrap .head_nav li li a:hover,
.side-cate li:hover > a,
.side-cate li.nav-current > a { color: var(--xy-skin-primary); }

/* 一级导航：红底 + 白字（hover / 当前） */
.nav_wrap .head_nav > li:hover > a,
.nav_wrap .head_nav > li:hover > a > em,
.nav_wrap .head_nav > li:hover > a > b,
.nav_wrap .head_nav > li.nav-current > a,
.nav_wrap .head_nav > li.nav-current > a > em,
.nav_wrap .head_nav > li.nav-current > a > b,
.nav_wrap .head_nav > li > a:hover,
.nav_wrap .head_nav > li > a:hover > em,
.nav_wrap .head_nav > li > a:hover > b {
  color: #fff !important;
}

/* 产品列表：不显示 Inquire / 加购操作区（详情页不受影响） */
.product-list .xy-list-card-actions,
.product-wrap .product-item .xy-list-card-actions,
.main-product-wrap .product-item .xy-list-card-actions,
.page-layout .product-list .xy-list-card-actions,
.goods-may-like .xy-list-card-actions,
.search_list .xy-list-card-actions,
.tags_list .xy-list-card-actions,
.xy-list-card .xy-list-card-cover-action {
  display: none !important;
}

/* 深蓝导航栏：顶栏询盘篮 / 会员图标白色（与搜索放大镜一致） */
.nav-bar .nav-row .xy-header-extra-nav {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 0 0 6px;
  padding: 0;
  list-style: none;
  vertical-align: middle;
}
.nav-bar .nav-row .xy-header-extra-nav > li {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-bar .nav-row .xy-header-extra-nav .xy-basket-nav,
.nav-bar .nav-row .xy-header-extra-nav .xy-member-nav,
.nav-bar .nav-row .xy-header-extra-nav .xy-wishlist-nav {
  color: #fff !important;
  --xy-basket-nav-opacity: 1;
}
.nav-bar .nav-row .xy-header-extra-nav .xy-basket-nav > a,
.nav-bar .nav-row .xy-header-extra-nav .xy-basket-nav a.xy-basket-nav-toggle,
.nav-bar .nav-row .xy-header-extra-nav .xy-member-nav > a,
.nav-bar .nav-row .xy-header-extra-nav .xy-wishlist-nav > a {
  color: #fff !important;
  opacity: 1 !important;
}
.nav-bar .nav-row .xy-header-extra-nav .xy-basket-nav .icon,
.nav-bar .nav-row .xy-header-extra-nav .xy-basket-nav .icon > svg {
  color: #fff !important;
  fill: currentColor !important;
}
.nav-bar .nav-row .xy-header-extra-nav .xy-basket-nav .xy-basket-badge {
  border-color: #0d324f;
}

/* 询盘弹窗：与站点主色 #0193de / #013274 统一 */
.side_inquiry_hd {
  background: linear-gradient(135deg, #013274 0%, #0193de 100%) !important;
  color: #fff;
  border-bottom: none;
}
.side_inquiry_title {
  color: #fff !important;
}
.side_inquiry_sub,
.side_inquiry_hd .side_inquiry_tip {
  color: rgba(255, 255, 255, 0.88) !important;
}
.side_inquiry_close:hover {
  background: #fff !important;
  color: #013274 !important;
}
.side_inquiry_submit {
  background: linear-gradient(180deg, #0193de 0%, #013274 100%) !important;
  box-shadow: 0 6px 18px rgba(1, 147, 222, 0.28) !important;
}
.side_inquiry_input:focus,
.side_inquiry_textarea:focus {
  border-color: #0193de;
  box-shadow: 0 0 0 3px rgba(1, 147, 222, 0.18);
}

/* 顶栏语言切换（GTranslate · highgoodrail head-top） */
.nav-bar > .layout > .head-top,
.nav-bar > .layout > .head-top .header-right.head-top-utilities,
.nav-bar > .layout > .head-top .change-language.xy-header-lang {
  overflow: visible !important;
}
.nav-bar > .layout > .head-top .change-language.xy-header-lang {
  position: relative;
  z-index: 30;
  line-height: 1;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher {
  line-height: 1;
  overflow: visible !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher #gt_float_wrapper {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  height: auto !important;
  z-index: 30 !important;
  display: block !important;
  overflow: visible !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  border-radius: 0 !important;
  overflow: visible !important;
  line-height: 1 !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt-selected {
  background: transparent !important;
  float: none !important;
  cursor: pointer !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  min-height: 0 !important;
  color: #0d324f !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  background: #f4f7fa !important;
  border: 1px solid rgba(13, 50, 79, 0.1) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang:hover,
.nav-bar > .layout > .head-top .change-language.xy-header-lang.is-open .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang {
  background: #fff !important;
  border-color: rgba(13, 50, 79, 0.16) !important;
  box-shadow: 0 -2px 12px rgba(13, 50, 79, 0.06);
  border-radius: 12px 12px 0 0 !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang .gt-lang-code {
  position: static !important;
  top: auto !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher img {
  width: 22px !important;
  height: 16px !important;
  max-width: 22px !important;
  max-height: 16px !important;
  margin: 0 !important;
  border-radius: 2px !important;
  vertical-align: middle !important;
  object-fit: cover !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
  height: 12px !important;
  width: 12px !important;
  background-size: 10px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 285 285'><path d='M282 76.5l-14.2-14.3a9 9 0 0 0-13.1 0L142.5 174.4 30.3 62.2a9 9 0 0 0-13.2 0L3 76.5a9 9 0 0 0 0 13.1l133 133a9 9 0 0 0 13.1 0l133-133a9 9 0 0 0 0-13z' style='fill:%230d324f'/></svg>") !important;
  opacity: 0.85 !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options {
  position: absolute !important;
  top: calc(100% - 1px) !important;
  right: 0 !important;
  left: auto !important;
  width: 420px !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
  max-height: min(70vh, calc(100vh - 110px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 10px 8px !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(13, 50, 79, 0.12) !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 10px 24px rgba(13, 50, 79, 0.12) !important;
  z-index: 9999 !important;
  float: none !important;
  white-space: normal !important;
  display: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: min-content !important;
  align-content: start !important;
  box-sizing: border-box !important;
  transform: none !important;
  opacity: 1 !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options.gt-open {
  display: grid !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options a {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  color: #0d324f !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: break-word !important;
  text-decoration: none !important;
  float: none !important;
  background: transparent !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options a:hover {
  background: #f4f7fa !important;
  color: #ff6600 !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options a img {
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 12px !important;
  max-width: 18px !important;
  max-height: 12px !important;
  margin: 1px 0 0 !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options.gt-expanded {
  width: 560px !important;
  max-width: min(560px, calc(100vw - 24px)) !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options a.gt-lang-extra {
  display: none !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options.gt-expanded a.gt-lang-extra {
  display: flex !important;
}
.nav-bar > .layout > .head-top .xy-header-lang-switcher .gt_float_switcher .gt_options a.gt-lang-more {
  grid-column: 1 / -1 !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  color: #ff6600 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  border-top: 1px solid rgba(13, 50, 79, 0.08) !important;
  margin-top: 6px !important;
  padding: 10px 12px 4px !important;
}
.nav-bar > .layout > .head-top .change-language.xy-header-lang.is-open {
  z-index: 1001;
}

/* 产品详情：主图点击放大 + 灯箱左右切换 */
.detail-wrap .product-view .product-image > a#zoom1 {
  cursor: zoom-in;
  display: block;
}
.detail-wrap .product-view .xy-pd-gallery-src {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 首页区块标题：手机端缩小字号，避免长英文标题撑满半屏 */
@media only screen and (max-width: 768px) {
  .company-synopses-wrap .company-synopses-title,
  .main-product-wrap .layout > .title {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
  .main-product-wrap .layout > .title:after {
    margin-top: 12px;
  }
}
@media only screen and (max-width: 480px) {
  .company-synopses-wrap .company-synopses-title,
  .main-product-wrap .layout > .title {
    font-size: 17px;
    line-height: 1.35;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* 手机顶栏：语言抽屉列表 */
@media only screen and (max-width: 768px) {
  .mobile-head-item.mobile-head-language .side-content-wrap.show-content-wrap {
    z-index: 1002;
  }
  .mobile-head-item.mobile-head-language .xy-mobile-lang-panel {
    padding: 8px 0 16px;
  }
  .mobile-head-item.mobile-head-language .xy-mobile-lang-list {
    display: flex;
    flex-direction: column;
  }
  .mobile-head-item.mobile-head-language .xy-mobile-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: #0d324f;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 50, 79, 0.08);
    background: #fff;
  }
  .mobile-head-item.mobile-head-language .xy-mobile-lang-item:last-child {
    border-bottom: 0;
  }
  .mobile-head-item.mobile-head-language .xy-mobile-lang-item.is-current {
    background: #f4f7fa;
    font-weight: 600;
  }
  .mobile-head-item.mobile-head-language .xy-mobile-lang-item img {
    width: 22px;
    height: 16px;
    flex: 0 0 22px;
    object-fit: cover;
    border-radius: 2px;
  }
  .mobile-head-item.mobile-head-language .xy-mobile-lang-label {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* 手机侧滑导航：与顶栏深蓝 #0d324f / 强调 #0193de / 点缀 #ff6600 统一 */
@media only screen and (max-width: 950px) {
  .mobile-head-items {
    background: #0d324f;
    box-shadow: 0 2px 12px rgba(13, 50, 79, 0.22);
  }
  .mobile-body-mask {
    background: rgba(13, 50, 79, 0.45) !important;
  }
  .mobile-head-item.mobile-head-nav .side-content-wrap,
  .mobile-head-item.mobile-head-nav .main-content-wrap,
  .mobile-head-item.mobile-head-nav .content-wrap {
    background: #fff !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap:before {
    content: "MENU";
    color: #fff !important;
    background: linear-gradient(135deg, #0d324f 0%, #013274 100%) !important;
    border-bottom: 3px solid #ff6600;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav > li,
  .mobile-head-item.mobile-head-nav .mobile-nav-list > li,
  .mobile-head-item.mobile-head-nav .head_nav > li {
    border-bottom-color: rgba(13, 50, 79, 0.08) !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav > li > a,
  .mobile-head-item.mobile-head-nav .mobile-nav-list > li > a,
  .mobile-head-item.mobile-head-nav .head_nav > li > a {
    color: #0d324f !important;
    background: transparent !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav > li > a > b,
  .mobile-head-item.mobile-head-nav .mobile-nav-list > li > a > b,
  .mobile-head-item.mobile-head-nav .head_nav > li > a > b {
    color: rgba(13, 50, 79, 0.42) !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav > li.is-open > a > b,
  .mobile-head-item.mobile-head-nav .mobile-nav-list > li.is-open > a > b,
  .mobile-head-item.mobile-head-nav .head_nav > li.is-open > a > b {
    color: #0193de !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav > li.nav-current > a,
  .mobile-head-item.mobile-head-nav .content-wrap > .nav > li > a:hover,
  .mobile-head-item.mobile-head-nav .content-wrap > .nav > li > a:active,
  .mobile-head-item.mobile-head-nav .mobile-nav-list > li.nav-current > a,
  .mobile-head-item.mobile-head-nav .mobile-nav-list > li > a:hover,
  .mobile-head-item.mobile-head-nav .head_nav > li.nav-current > a,
  .mobile-head-item.mobile-head-nav .head_nav > li > a:hover {
    color: #0193de !important;
    background: #f4f7fa !important;
    border-left: 3px solid #ff6600;
    padding-left: 15px !important;
  }
  .mobile-head-item.mobile-head-nav .head_nav > li.nav-current > a {
    padding-left: 17px !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav li > ul,
  .mobile-head-item.mobile-head-nav .mobile-nav-list li > ul,
  .mobile-head-item.mobile-head-nav .head_nav li > ul {
    background: #f4f7fa !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav li li > a,
  .mobile-head-item.mobile-head-nav .mobile-nav-list li li > a,
  .mobile-head-item.mobile-head-nav .head_nav li li > a {
    color: rgba(13, 50, 79, 0.78) !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav li li > a:hover,
  .mobile-head-item.mobile-head-nav .content-wrap > .nav li li.nav-current > a,
  .mobile-head-item.mobile-head-nav .mobile-nav-list li li > a:hover,
  .mobile-head-item.mobile-head-nav .mobile-nav-list li li.nav-current > a,
  .mobile-head-item.mobile-head-nav .head_nav li li a:hover,
  .mobile-head-item.mobile-head-nav .head_nav li li.nav-current > a {
    color: #0193de !important;
    background: rgba(1, 147, 222, 0.08) !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav li li > a > b,
  .mobile-head-item.mobile-head-nav .head_nav li li > a > b {
    color: rgba(13, 50, 79, 0.42) !important;
  }
  .mobile-head-item.mobile-head-nav .content-wrap > .nav li li.is-open > a > b,
  .mobile-head-item.mobile-head-nav .head_nav li li.is-open > a > b {
    color: #0193de !important;
  }
}

