
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html {
    font-size: 16px;
  }
  
  body {
    margin: 0;
    font-family: PingFangSC-Regular, PingFang SC, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
      "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
      "Microsoft Yahei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 100px;
  }
  
  body * {
    box-sizing: border-box;
    flex-shrink: 0;
  }
  a {
    text-decoration: none;
    font-family: PingFangSC-Regular, PingFang SC, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
      "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
      "Microsoft Yahei", sans-serif;
  }
  a:hover {
    color: #288038;
  }
  ul,li,ol{
    list-style: none;
  }
  
  .wrapper {
    background-color: #f3f4f5;
    min-width: 1200px;
    margin: 0 auto;
  }
  .content {
    width: 1200px;
    margin: 0 auto;
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .header.hidden {
    transform: translateY(-100%);
  }
  
  .header.scrolled {
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .header.scrolled .logo1 {
    height: 42px;
    transition: all 0.3s ease;
  }
  
  .header.scrolled .logo2 {
    height: 30px;
    transition: all 0.3s ease;
  }
  
  .header .content{
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .header .logo1 {
    width: 106px;
    height: 48px;
    transition: all 0.3s ease;
  }
  .header .logo1 a{
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/logo.png") no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    color: transparent;
  }
  .header .logo2 {
    width: 144px;
    height: 36px;
    transition: all 0.3s ease;
  }
  .header .logo2 a{
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/logo2.png") no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    color: transparent;
  }
  .header .nav {
    margin-left: 78px;
  }
  .header .nav ul {
    display: flex;
    align-items: center;
    gap: 60px;
  }
  .header .nav ul li {
    font-size: 18px;
    font-weight: 500;
    position: relative;
  }
  .header .nav ul li a {
    color: #A0A0A0;
    text-decoration: none;
    transition: all 0.3s ease;
    &::after {
      content: "";
      position: absolute;
      bottom: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 4px;
      background-color: #288038;
      border-radius: 2px;
      transition: all 0.3s ease;
    }
  } 
  .header .nav ul li a:hover,.header .nav ul li.active a {
    color: #262626;
    font-weight: 600;
    &::after {
      width: 100%;
    }
  }
  .header .nav-header {
    display: none;
  }
  .footer{
    height: 70px;
    margin-top: 20px;
  }
 /* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background: #288038;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


  
/* 移动端样式 */
@media screen and (max-width: 768px) {
    .wrapper{
        min-width: 100%;
    }
    /* 基础布局调整 */
    .content {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 16px;
        cursor: pointer;
        z-index: 1002; /* 确保菜单按钮在最上层 */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 1.5px;
        background-color: #666;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* 移动端导航菜单 */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000; /* 增加z-index确保在导航菜单之上 */
        opacity: 0;
        transition: opacity 0.3s ease;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        min-width: 100vw;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .header .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 200px;
        max-width: 80%;
        height: 100vh;
        background-color: #fff;
        z-index: 1001; /* 确保导航菜单在遮罩层之上 */
        padding: 20px 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
        margin-right: 0;
        display: flex;
        flex-direction: column;
    }
    
    .header .nav.active {
        right: 0;
    }
    
    .nav-header {
        padding: 0 20px 15px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 10px;
    }
    
    .nav-header h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
        font-weight: 600;
    }

    .header .nav-header {
        display: block;
    }
    
    .header .nav ul {
        flex-direction: column;
        padding: 0 20px;
        gap: 5px;
        margin: 0;
        list-style: none;
        overflow-y: auto;
        flex: 1;
    }
    
    .header .nav li {
        margin: 0;
        padding: 0;
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
    }
    
    .header .nav li a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        font-size: 15px;
        color: #333;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
        width: 100%;
    }
    
    .header .nav li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background-color: #288038;
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }
    
    .header .nav li a:hover,
    .header .nav li a:focus {
        background-color: #f8f8f8;
        color: #288038;
    }
    
    .header .nav li a:hover::before,
    .header .nav li a:focus::before {
        transform: scaleY(1);
    }
    
    .header .nav li.active a {
        color: #288038;
        font-weight: 500;
        background-color: #f0f7f2;
    }
    
    .header .nav li.active a::before {
        transform: scaleY(1);
    }
    
    /* 滚动条样式 */
    .header .nav ul::-webkit-scrollbar {
        width: 4px;
    }
    
    .header .nav ul::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
    }
    
    .header .nav ul::-webkit-scrollbar-track {
        background: transparent;
    }
    
    /* 头部调整 */
    .header {
        height: 60px    ;
    }
    .header .content {
        padding: 10px 15px;
        justify-content: space-between;
    }
    
    .header .logo1 {
        height: 32px;
        width: 70px;
    }
    .header .logo2{
        height: 26px;
        width: 100px;
        position: relative;
        right: 50%;
        transform: translateX(50%);
    }

    .header.scrolled {
        height: 60px;
    }

      .header.scrolled .logo1 {
        height: 32px;
        transition: all 0.3s ease;
      }
      
      .header.scrolled .logo2 {
        height: 26px;
        transition: all 0.3s ease;
      }

    .back-to-top {
        right: 15px;
        bottom: 80px;
        width: 36px;
        height: 36px;
        line-height: 36px;
    }
  }