/* 基础样式 */
:root {
  --header-height: 80px;
  --transition-speed: 0.3s;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 头部导航样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* 减小logo和菜单的间距 */
}

.logo-section {
  flex-shrink: 0;
}

.logo-img {
  height: 20px;
}

.nav-menu {
  display: flex;
  gap: 20px; /* 减小菜单项间距 */
  flex-wrap: wrap; /* 允许菜单项换行 */
  align-items: center;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: right 0.3s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  height: 30px;
}

.mobile-close-btn {
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 产品区域整体样式 */
.product-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 标题样式 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  color: #333;
  font-weight: bold;
  position: relative;
  padding-bottom: 20px;
  margin: 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #333;
}

/* 产品网格布局 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* 产品卡片样式 */
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* 图片容器 */
.product-image {
  width: 100%;
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
  background: #fff;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.03), transparent);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

/* 产品信息区域 */
.product-info {
  padding: 30px;
  background: #fff;
  position: relative;
}

.product-title {
  font-size: 22px;
  color: #333;
  font-weight: bold;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}

/* 按钮样式 */
.product-link {
  display: inline-block;
  padding: 12px 35px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid #333;
  text-align: center;
}

.product-link:hover {
  background: #fff;
  color: #333;
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .container {
    padding: 0 30px;
  }
  
  .product-grid {
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .section-title {
    font-size: 32px;
  }

  .product-info {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .product-section {
    padding: 90px 0;
  }

  .container {
    padding: 0 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .product-grid {
    gap: 20px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .product-link {
    padding: 10px 30px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .product-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 15px;
    gap: 20px;
  }

  .nav-menu {
      display: none; /* 隐藏原导航 */
    }
  
    .mobile-menu-btn {
      display: flex; /* 显示移动端菜单按钮 */
    }
  
    .header-inner {
      justify-content: space-between;
    }

}

  
@media (max-width: 480px) {
  .header {
    min-height: var(--header-height);
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px;
  }

}

@media (max-width: 890px) {
  /* 导航相关 */
  .nav-menu {
    display: none; /* 隐藏原导航 */
  }

  .mobile-menu-btn {
    display: flex; /* 显示移动端菜单按钮 */
  }

  .header-inner {
    justify-content: space-between;
  }

}
  /* 菜单打开时的按钮样式 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  