/* 基础样式 */
: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);
  }
  
  
  /* 背景切换区域 */
  .bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
  }
  
  .bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
  }
  
  .bg-item.active {
    opacity: 1;
  }
  
  /* 产品展示区域 */
  .main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
  }
  
  
  .products-showcase {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  
  .product-card {
    flex: 1;
    min-width: 380px;
    max-width: 500px;
    height: 500px; /* 增加卡片高度 */
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    transition: transform var(--transition-speed);
    display: flex; /* 添加flex布局 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .product-card:hover {
    transform: translateY(-10px);
  }
  
  .product-icon {
    width: 220px; /* 大幅增加图标尺寸 */
    height: 220px;
    margin: 0 auto 40px;
  }
  
  .product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .product-title {
    color: #fff;
    font-size: 32px;
    margin: 0 0 40px;
  }
  
  .view-more {
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 35px;
  }
  
  
  /* 响应式设计 */
  @media (max-width: 1200px) {
    .product-card {
        min-width: 340px;
        height: 450px;
        padding: 30px;
      }
      .product-icon {
        width: 180px;
        height: 180px;
        margin-bottom: 30px;
      }
    
      .product-title {
        font-size: 28px;
        margin-bottom: 30px;
      }
  }
  
  @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;
      }
  
    .products-showcase {
        gap: 30px;
        padding: 20px;
      }
    
      .product-card {
        min-width: calc(50% - 15px);
        height: 400px;
        padding: 25px;
      }

      .product-icon {
        width: 150px;
        height: 150px;
        margin-bottom: 25px;
      }
    
      .product-title {
        font-size: 24px;
        margin-bottom: 25px;
      }
    
      .view-more {
        padding: 12px 30px;
        font-size: 18px;
      }
  }
  
  @media (max-width: 480px) {
    .header {
      min-height: var(--header-height);
    }
  
    .header-inner {
      flex-wrap: wrap;
      padding: 10px;
    }
  
    .product-card {
        min-width: 100%;
        height: 350px;
        padding: 20px;
      }
    
      .product-icon {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
      }
    
      .product-title {
        font-size: 20px;
        margin-bottom: 20px;
      }
    
      .view-more {
        padding: 10px 25px;
        font-size: 16px;
      }
  }
  @media (max-width: 890px) {
    /* 导航相关 */
    .nav-menu {
      display: none; /* 隐藏原导航 */
    }
  
    .mobile-menu-btn {
      display: flex; /* 显示移动端菜单按钮 */
    }
  
    .header-inner {
      justify-content: space-between;
    }
  
    /* 产品展示区域调整 */
    .products-showcase {
      gap: 30px;
      padding: 20px;
    }
  
    .product-card {
      min-width: calc(50% - 15px);
      height: 400px;
      padding: 25px;
    }
  
    .product-icon {
      width: 150px;
      height: 150px;
      margin-bottom: 25px;
    }
  
    .product-title {
      font-size: 24px;
      margin-bottom: 25px;
    }
  
    .view-more {
      padding: 12px 30px;
      font-size: 18px;
    }
  }

  /* 更小屏幕的样式保持不变 */
@media (max-width: 480px) {
    .product-card {
      min-width: 100%;
      height: 350px;
      padding: 20px;
    }
  
    .product-icon {
      width: 120px;
      height: 120px;
      margin-bottom: 20px;
    }
  
    .product-title {
      font-size: 20px;
      margin-bottom: 20px;
    }
  
    .view-more {
      padding: 10px 25px;
      font-size: 16px;
    }
  }
  /* 菜单打开时的按钮样式 */
.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);
  }