/* Shared layout: container, header, footer, back-to-top */

#site-header {
  position: relative;
  z-index: 100;
  overflow: visible;
  min-height: var(--header-spacer-height);
}

.container {
  width: var(--container-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.container.site-header__bar,
.container.product-mega-menu__inner {
  width: var(--header-bar-width);
}

/* Page Banner & Breadcrumb */
.page-banner {
  position: relative;
  height: var(--page-banner-height);
  overflow: hidden;
  background: #08244c;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-banner__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-banner__title {
  font-family: var(--font-family-base);
  font-size: 2.625rem;
  font-weight: 500;
  color: var(--color-text-inverse);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-inverse);
}

.breadcrumb__home {
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  transition: color 0.2s ease;
}

.breadcrumb__home svg {
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.breadcrumb__home:hover,
.breadcrumb__home:focus-visible {
  color: var(--color-text-inverse);
}

.breadcrumb__link {
  color: var(--color-text-inverse);
  transition: color 0.2s ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--color-text-inverse);
}

.breadcrumb__current {
  color: var(--color-text-inverse);
}

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.5);
}

/* Catalog shell */
.catalog {
  padding-top: 2.1875rem;
  padding-bottom: 5rem;
  background: var(--color-bg-page);
}

.catalog__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--catalog-inner-gap);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  min-height: var(--header-height);
  background: var(--color-bg-page);
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-header__bar {
  display: flex;
  align-items: stretch;
  min-height: var(--header-height);
  /* padding-right: calc(var(--lang-switch-width) + 20px); */
  box-sizing: border-box;
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: var(--header-height);
  gap: 2.5rem;
  overflow: visible;
}

.site-header__logo {
  flex-shrink: 0;
  width: var(--header-logo-width);
}

.site-header__logo img {
  width: var(--header-logo-width);
  height: var(--header-logo-height);
  object-fit: contain;
}

.site-nav {
  flex: 1;
  overflow: visible;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  overflow: visible;
}

.site-nav__link {
  font-family: var(--font-family-base);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: var(--header-height);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-brand-primary);
}

.site-nav__link--active {
  color: var(--color-brand-primary);
  font-weight: 600;
}

.site-nav__item {
  cursor: pointer;
}

.site-nav__item--mega {
  position: static;
}

.site-nav__item--mega:hover .product-mega-menu,
.site-nav__item--mega:focus-within .product-mega-menu {
  display: block;
}

/* Product mega menu */
.product-mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 101;
  display: none;
  padding: 1.5rem 0 2rem;
  background: var(--color-bg-page);
  border-top: 1px solid var(--color-border-light);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.product-mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.site-header.is-product-menu-open .product-mega-menu {
  display: block;
}

.product-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(var(--product-mega-menu-cols, 5), minmax(0, 1fr));
  gap: var(--product-mega-menu-gap, 1rem);
  --product-mega-menu-gap: 1rem;
}

.product-mega-menu__col {
  min-width: 0;
  box-sizing: border-box;
}

.product-mega-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5625rem;
  padding: 0 1.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: url("../img/nav/products/headers/default-bg.png") no-repeat center / 100% 100%;
}

.product-mega-menu__col:hover .product-mega-menu__head,
.product-mega-menu__col:focus-within .product-mega-menu__head {
  background-image: url("../img/nav/products/headers/active-bg.png");
}

.product-mega-menu__head-title {
  font-family: var(--font-family-base);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.2;
  transition: color 0.2s ease;
}

.product-mega-menu__col:hover .product-mega-menu__head-title,
.product-mega-menu__col:focus-within .product-mega-menu__head-title {
  color: var(--color-text-inverse);
}

.product-mega-menu__head-chips {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.product-mega-menu__head-chips img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-mega-menu__col:nth-child(1) .product-mega-menu__head-chips img {
  width: 3.5625rem;
  height: 2.75rem;
}

.product-mega-menu__col:nth-child(2) .product-mega-menu__head-chips img {
  width: 3.8125rem;
  height: 2.75rem;
}

.product-mega-menu__col:nth-child(3) .product-mega-menu__head-chips img {
  width: 4.1875rem;
  height: 2.75rem;
}

.product-mega-menu__col:nth-child(4) .product-mega-menu__head-chips img {
  width: 3.25rem;
  height: 2.8125rem;
}

.product-mega-menu__col:nth-child(n + 5) .product-mega-menu__head-chips img {
  width: 3.25rem;
  height: 2.8125rem;
}

.product-mega-menu__list {
  margin-top: 0.5rem;
}

.product-mega-menu__list>li {
  height: 3.25rem;
}

.product-mega-menu__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.2s ease, background 0.2s ease;
}

.product-mega-menu__link:hover,
.product-mega-menu__link:focus-visible {
  color: var(--color-brand-primary);
  background: #f8fafc;
}

.product-mega-menu__link--active,
.product-mega-menu__link--active:hover,
.product-mega-menu__link--active:focus-visible {
  color: var(--color-nav-sub-active);
  background: transparent;
}

.product-mega-menu__link--active .product-mega-menu__label,
.product-mega-menu__link--active:hover .product-mega-menu__label,
.product-mega-menu__link--active:focus-visible .product-mega-menu__label {
  color: var(--color-nav-sub-active);
}

.product-mega-menu__icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  width: 1.25rem;
  height: 1.3125rem;
}

.product-mega-menu__icon-img {
  display: block;
  width: 1.25rem;
  height: 1.3125rem;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.product-mega-menu__icon-img--hover {
  position: absolute;
  left: 0;
  top: 50%;
  opacity: 0;
  transform: translateY(-50%);
}

.product-mega-menu__link:hover .product-mega-menu__icon-img--default,
.product-mega-menu__link:focus-visible .product-mega-menu__icon-img--default,
.product-mega-menu__link--active .product-mega-menu__icon-img--default {
  opacity: 0;
}

.product-mega-menu__link:hover .product-mega-menu__icon-img--hover,
.product-mega-menu__link:focus-visible .product-mega-menu__icon-img--hover,
.product-mega-menu__link--active .product-mega-menu__icon-img--hover {
  opacity: 1;
}

.product-mega-menu__label {
  flex: 1;
  min-width: 0;
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.product-mega-menu__link:hover .product-mega-menu__label,
.product-mega-menu__link:focus-visible .product-mega-menu__label,
.product-mega-menu__link--active .product-mega-menu__label {
  color: var(--color-brand-primary);
}

.product-mega-menu__arrow {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  width: 1.0625rem;
}

.product-mega-menu__arrow-img {
  display: block;
  width: 1.0625rem;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.product-mega-menu__arrow-img--hover {
  position: absolute;
  right: 0;
  top: 50%;
  opacity: 0;
  transform: translateY(-50%);
}

.product-mega-menu__link:hover .product-mega-menu__arrow-img--default,
.product-mega-menu__link:focus-visible .product-mega-menu__arrow-img--default,
.product-mega-menu__link--active .product-mega-menu__arrow-img--default {
  opacity: 0;
}

.product-mega-menu__link:hover .product-mega-menu__arrow-img--hover,
.product-mega-menu__link:focus-visible .product-mega-menu__arrow-img--hover,
.product-mega-menu__link--active .product-mega-menu__arrow-img--hover {
  opacity: 1;
}

.site-header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 17.5rem;
  height: 2.875rem;
}

.site-search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 0.75rem 0 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: 62.4375rem;
  background: transparent;
  transition: border-color 0.2s ease;
}

.site-search:focus-within {
  border-color: #808080;
  background: transparent;
}

.site-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.site-search__input::placeholder {
  color: #cccccc;
}

.site-search:focus-within .site-search__input {
  color: var(--color-text-primary);
}

.site-search:focus-within .site-search__input::placeholder {
  color: var(--color-text-muted);
}

.site-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.site-search__btn img,
.site-search__btn svg {
  width: 1rem;
  height: 1rem;
  max-width: none;
}

.site-search__icon path {
  fill: #a0a0a0;
  transition: fill 0.2s ease;
}

.site-search:focus-within .site-search__icon path {
  fill: #808080;
}

.lang-switch-wrap {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 101;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  min-width: var(--lang-switch-width);
  height: var(--header-height);
  padding: 0 1.25rem;
  box-sizing: border-box;
  white-space: nowrap;
  background: var(--color-brand-accent);
  color: var(--color-text-inverse);
  border: 0;
  border-radius: 0;
  font-family: var(--font-family-roboto);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  transition: background 0.2s ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  background: var(--color-brand-accent-hover);
}

.lang-switch__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.lang-switch__arrow {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.375rem;
  transition: transform 0.2s ease;
}

.lang-switch-wrap.is-open .lang-switch__arrow {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--color-bg-page);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.lang-switch__item {
  margin: 0;
}

.lang-switch__option {
  display: block;
  width: 100%;
  padding: 0.625rem 1.25rem;
  border: 0;
  background: transparent;
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-primary);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: rgba(4, 70, 157, 0.06);
  color: var(--color-brand-primary);
}

.lang-switch__option--active {
  color: var(--color-brand-primary);
  font-weight: 500;
}

/* Footer */
.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 29.75rem;
  background: var(--color-bg-footer);
  color: var(--color-text-inverse);
  overflow: hidden;
}

.site-footer__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/home/footer/footer-bg.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  flex: 1;
  display: flex;
  gap: 5rem;
  padding-top: 5.625rem;
}

.site-footer__search-col {
  flex: 0 0 356px;
  overflow: visible;
}

.site-footer__search-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-search {
  display: flex;
  align-items: center;
  width: 22.25rem;
  height: 3.125rem;
  padding: 0 0.3125rem 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 1.5625rem;
  background: #ffffff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.footer-search:focus-within {
  border-color: var(--color-brand-accent);
  background: var(--color-brand-accent);
}

.footer-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-primary);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s ease;
}

.footer-search:focus-within .footer-search__input {
  color: var(--color-text-inverse);
}

.footer-search__input::placeholder {
  color: #cccccc;
}

.footer-search:focus-within .footer-search__input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.footer-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-brand-accent);
  transition: background 0.2s ease;
}

.footer-search:focus-within .footer-search__btn {
  background: #ffffff;
}

.footer-search__btn img,
.footer-search__btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer-search__icon path {
  fill: var(--color-text-inverse);
  transition: fill 0.2s ease;
}

.footer-search:focus-within .footer-search__icon path {
  fill: var(--color-brand-accent);
}

.footer-search__btn:hover,
.footer-search__btn:focus-visible {
  background: var(--color-brand-accent-hover);
}

.footer-search:focus-within .footer-search__btn:hover,
.footer-search:focus-within .footer-search__btn:focus-visible {
  background: #ffffff;
}

.site-footer__contact-link {
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-inverse);
  transition: opacity 0.2s ease;
}

.site-footer__contact-link:hover,
.site-footer__contact-link:focus-visible {
  opacity: 0.85;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.site-footer__wechat-wrap {
  position: relative;
  flex-shrink: 0;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  opacity: 0.8;
}

.site-footer__social-link img {
  width: 1.5rem;
  height: auto;
  max-width: 1.5rem;
  object-fit: contain;
}

.footer-qrcode {
  position: absolute;
  left: calc(100% + 0.75rem);
  bottom: 0;
  z-index: 20;
  padding: 0.75rem;
  background: var(--color-bg-page);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.footer-qrcode[hidden] {
  display: none;
}

.footer-qrcode__image {
  display: block;
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}

.site-footer__contact-col {
  flex: 1;
}

.site-footer__contact-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.site-footer__contact-divider {
  flex-shrink: 0;
  width: 1.875rem;
  height: 0.125rem;
  background: var(--color-text-inverse);
}

.site-footer__address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.65);

}

.site-footer__address-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9375rem;
}

.site-footer__address-1 {
  margin-bottom: 1.5625rem;
}

.site-footer__address-2 {
  margin-bottom: 1.5625rem;
}

.site-footer__address-2,
.site-footer__address-3 {
  align-items: center;
}

.site-footer__address-row+.site-footer__address-row {
  margin-top: 0.5rem;
}

.site-footer__address-icon {
  flex-shrink: 0;
  object-fit: contain;
  margin-top: calc((1.4em - 1.4375rem) / 2);
}

.site-footer__address-icon--address {
  width: 1.25rem;
  height: 1.4375rem;
}

.site-footer__address-icon--phone,
.site-footer__address-icon--fax {
  width: 1.4375rem;
  height: 1.4375rem;
}

.site-footer__copyright {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
  background: var(--color-bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  height: 5.125rem;
  line-height: 5.125rem;
  font-size: 0.9375rem;
}

.site-footer__copyright p {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.5625%;
  bottom: 25%;
  z-index: 120;
  width: 6.5rem;
  height: 6.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.back-top img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.back-top:hover,
.back-top:focus-visible {
  opacity: 0.85;
}

.arrow-icon{
    display: flex;
    transform: rotate(-90deg);
}
 /* 内联svg箭头统一尺寸 */
.arrow-icon svg {
    /*width:  1.3125rem;*/
    width:  1rem;
    height: 1rem;
    fill: none;
    stroke: #333;
}