@font-face {
  font-family: 'MiSans VF';
  /* 建议使用 woff2 格式，兼容性和压缩率最好 */
  src: url('../fonts/MiSansVF.subset.woff2') format('woff2-variations');
  font-weight: 100 900;
  /* 定义可变粗细的范围 */
  font-display: swap;
  /* 避免字体加载时的白屏 */
}
body {
  font-family: 'MiSans VF', sans-serif !important;
}
@layer utilities {
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .transition-all-300 {
    transition: all 0.3s ease;
  }
  .section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .card-hover:hover {
    transform: translateY(-5px);
  }
}
@media (min-width: 1200px) {
  .nav-root {
    max-width: 1200px !important;
    margin: auto;
  }
}
.mobile-btn {
  width: 24px;
  height: 24px;
  background: url(../imgs/header/mobile-btn.png) center no-repeat;
  background-size: contain;
  display: none;
}
.company-logo {
  width: 104px;
  height: 72px;
  background: url(../imgs/header/logo.png) center 20px no-repeat;
  background-size: contain;
  margin-right: 1.75rem;
  cursor: pointer;
}
header {
  z-index: 9900 !important;
}
.nav-link {
  position: relative;
  padding: 0 20px;
  font-size: 16px;
  line-height: 72px;
  color: #ffffff;
  text-align: center;
}
.nav-link.text-secondary {
  color: #ffffff;
}
.nav-link.text-secondary::after {
  width: 100%;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: #000000;
  z-index: 9990;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
}
.mobile-menu.active {
  right: 0;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}
/* 语言切换按钮组 */
.language-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  overflow: hidden;
  padding: 1px;
}
.language-toggle.hide {
  display: none;
}
.language-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border-radius: 1px;
  padding: 2px 8px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 20px;
}
.language-btn:first-child {
  border-right: 1px solid #fff;
}
/* 商城导航按钮 */
.mall-nav {
  position: relative;
}
.mall-btn {
  padding: 6px 8px 6px 16px;
  background-color: #F4B01A;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
  margin-left: 24px;
}
.mall-btn:hover {
  background-color: #F4B01A;
}
.chevron-right {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}
.nav-button {
  font-size: 16px;
  background: transparent;
  border: none;
  color: #ffedd3;
  position: relative;
  transition: 0.5s ease;
  cursor: pointer;
}
.nav-button::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #ffc506;
  transition: 0.5s ease;
}
.nav-button:hover,
.nav-button.nav-active {
  color: #1e1e2b;
  transition-delay: 0.5s;
}
.nav-button:hover::before,
.nav-button.nav-active::before {
  width: 100%;
}
.nav-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: #ffc506;
  transition: 0.4s ease;
  z-index: -1;
}
.nav-button:hover::after,
.nav-button.nav-active::after {
  height: 100%;
  transition-delay: 0.4s;
  color: aliceblue;
}
@media (max-width: 1199px) {
  body.eng .nav-container.eng-flex {
    display: none !important;
  }
  body.eng .right-area {
    display: none;
  }
  body.chn .nav-container.chn-flex {
    display: none !important;
  }
  body.chn .right-area {
    display: none;
  }
  .mobile-btn {
    display: block;
  }
  .company-logo {
    height: 56px;
    background-position: center 12px;
    width: 92px;
    background-image: url(../imgs/header/logo-mobile.png);
  }
  .section-padding {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
.close-icon {
  width: 24px;
  height: 24px;
  padding: 16px;
  box-sizing: content-box;
}
.mobile-header {
  height: 56px;
  border-bottom: 1px solid #171717;
  width: 100%;
}
.mobile-nav-item {
  padding: 17px 20px;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  width: 100%;
}
.mobile-nav-item.nav-active {
  color: #F4B01A;
}
.mobile-language {
  padding: 30px 0;
}
.mobile-language .language-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  line-height: 28px;
}
