* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --header-height: 106px;
  --title-font: 1.458vw;
  --normal-font: 0.833vw;
  --base-padding: 2.6vw;
  --gap: 2vw;
  --scroll-margin-top: calc(var(--header-height) + 1vw);
}

html,
body {
  min-height: 100vh;
}

body {
  color: #333;
  line-height: 1.6;
  padding-top: var(--header-height);
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* display: flex;
  flex-direction: column; */
  /* min-height: 100vh; */
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 0 5.2083vw;
  background-color: #fff;
  border-bottom: 0.05vw solid #eee;
  transition: height 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 200px;
  cursor: pointer;
}
.nav-logo-img {
  width: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 5.2083vw;
  align-items: center;
  margin: auto;
  width: fit-content;
  height: 100%;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2.6vw;
  align-items: center;
  position: relative;
  height: 100%;
}
.nav ul li {
  height: 100%;
  padding: 0 1.4vw;
}
.nav a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
  font-weight: 600;
}

.nav a:hover {
  color: #f00;
}
/* 产品下拉菜单样式 - PC端 */
.product-dropdown {
  position: static;
}

/* 修改下拉菜单容器，使其撑满整个header下方 */
.product-dropdown .dropdown-container {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

/* 当产品链接或下拉容器被悬停时显示 */
.product-dropdown:hover .dropdown-container,
.dropdown-container:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 确保整个header区域也能触发下拉显示 */
.header .product-dropdown:hover .dropdown-container,
.header .dropdown-container:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-dropdown .dropdown-content {
  background-color: #fff;
  width: 100%;
  margin: 0;
  transform: none;
}

/* 修正下拉内容布局，使其在容器中居中 */
.dropdown-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.dropdown-content ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  padding: 0;
  margin: 0;
  gap: 0;
}

.dropdown-content li {
  flex: 1;
  text-align: center;
  padding: 0 15px;
  /* max-width: 200px; */
}

.dropdown-content li:last-child {
  border-right: none;
}

.dropdown-content a {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  color: #333;
  padding: 10px 0;
  transition: color 0.3s ease;
  line-height: 1.4;
  min-height: 80px;
  justify-content: center;
  align-items: center;
}

.dropdown-content a:hover {
  color: #f00;
}

.dropdown-content .series-name {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 16px;
  color: #222;
}
.series-name:hover {
  color: #f00;
}

.dropdown-content .series-desc {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}

/* 移动端产品菜单样式 */
.mobile-product-item {
  position: relative;
}

.mobile-product-item .product-submenu {
  display: none;
  padding-left: 20px;
  background-color: #f9f9f9;
}

.mobile-product-item .product-submenu.active {
  display: block;
}

.mobile-product-item .product-submenu li {
  border-bottom: 1px solid #eee;
}

.mobile-product-item .product-submenu li:last-child {
  border-bottom: none;
}

.mobile-product-item .product-submenu a {
  padding: 12px 0;
  font-size: 14px;
  color: #555;
}

.mobile-product-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
}

.mobile-product-toggle .toggle-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-right: 10px;
}

.mobile-product-toggle.active .toggle-icon {
  transform: rotate(180deg);
}
/* 移动端菜单按钮样式 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* 移动端菜单容器 */
.mobile-nav-container {
  display: none;
}

/* 移动端logo居中容器 */
.mobile-logo-center {
  display: none;
}
.footer-container {
  background-color: #000;
  padding: 16px;
  text-align: center;
  width: 100%;
}

.footer-logo-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  height: 10.4167vw;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

.footer-logo-img img {
  max-width: 300px;
}

.product-tabs-container {
  display: flex;
  height: 80px;
  background-color: #fff;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  gap: 40px;
  padding: 0 20px;
}

.product-tabs-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.tabs-active {
  border-bottom: 2px solid #dd231f;
  color: #dd231f;
  font-weight: 700;
}

.product-tabs-container a {
  text-decoration: none;
  color: inherit;
  outline: none;
  cursor: pointer;
}

.product-tabs-item-title {
  text-align: center;
}

@media (min-width: 769px) and (max-width: 992px) {
  :root {
    --header-height: 72px;
    --scroll-margin-top: calc(var(--header-height) + 2vw);
  }
  .logo {
    width: 172px;
  }
}
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
    --title-font: 5vw;
    --normal-font: 3.5vw;
    --base-padding: 4vw;
    --gap: 4vw;
    --scroll-margin-top: calc(var(--header-height) + 2vw);
  }
  .product-dropdown .dropdown-container {
    display: none;
  }
  .mobile-product-link {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
  }
  .header {
    height: 72px;
    padding: 0 4vw;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  /* 显示移动端菜单按钮 */
  .mobile-menu-btn {
    display: block;
    flex: 0 0 auto;
  }

  /* 显示移动端居中logo */
  .mobile-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-logo-center .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
  }

  /* 移动端菜单样式 */
  .mobile-nav-container {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav {
    padding: 20px 4vw;
  }

  .mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-nav li {
    border-bottom: 1px solid #eee;
  }

  .mobile-nav li:last-child {
    border-bottom: none;
  }

  .mobile-nav a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .mobile-nav a:hover {
    color: #f00;
  }

  .nav ul {
    gap: 4vw;
  }

  .nav a {
    font-size: 14px;
  }

  .logo {
    display: none;
  }
  .banner-title {
    font-size: 20px;
  }
  .footer-logo-img img {
    max-width: 250px;
  }
  .product-tabs-container {
    height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 20px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-tabs-container::-webkit-scrollbar {
    display: none;
  }

  .product-tabs-item {
    display: inline-flex;
    flex: 0 0 auto;
    height: 100%;
  }

  .product-tabs-item-title {
    padding: 0 12px;
  }

  .product-tabs-name {
    font-size: 14px;
  }
}
