:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #8b5cf6;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-card: 2px 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius: 10px;
}

.mt40{
  margin-top: 40px;
}



/* 提示弹窗 */
.toast {
  display: none;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 15px;
  background-color: #ff4444;
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.toast.success {
  background-color: #00C851;
}

.toast.warning {
  background-color: #ffbb33;
}

@keyframes fadeIn {
  from { opacity: 0; top: 0; }
  to { opacity: 1; top: 100px; }
}

@keyframes fadeOut {
  from { opacity: 1; top: 100px; }
  to { opacity: 0; top: 0; }
}

/* 悬浮按钮样式 */
#contact-float-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact-float-btn .btn-main {
  background: #fff;
  background-color: rgba(255, 255, 255, 0.8); /* 森林绿，70%不透明 */
  color: black;
  padding: 10px 10px;
  border-radius: 40px;
  /* box-shadow: 0 2px 2px gray; */
  font-weight: normal;
  border:2px solid gray;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}

#contact-float-btn:hover .btn-main {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px gray;
  background-color: rgba(255, 255, 255, 1); /* 森林绿，70%不透明 */

}

#contact-float-btn:active .btn-main {
  transform: translateY(1px);
}



#float-window {
  position: fixed;
  right: 30px;
  bottom: 130px;
  width: 360px;
  z-index: 999;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

#float-window.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-header {
  /* background: linear-gradient(135deg, #1e88e5, #0d47a1); */
  background: linear-gradient(135deg,#e2a736,#e96269);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
}

.float-header__phone {
  font-size: 24px;
  font-weight: normal
}

.float-body {
  background: white;
  padding: 0;
}

.float-body__mr {
margin: 0 15px 0 45px;
padding-bottom: 20px;
}

.float-option {
  display: block;
  padding: 12px 15px 6px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  font-size: 16px;
  align-items: center;
}

.float-option:last-child {
  border-bottom: none;
}



.float-option__link{
  color: #333 !important;
}

.float-option__contact {
  color: #1e88e5;
  cursor: pointer;
}

.contact-icon{
width: 25px;
  margin-right: 10px;
}

.contact-icon__title{
  margin-right: 0px;

}

.contact-icon__address{
  margin-right: 10px;
}


 /* 卡片项目展示 */
 .projects-title{
  text-align:center;
  margin-bottom:5px;
 }

 .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.project-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 25px;
  text-align: center;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.project-info p {
  color: var(--gray);
  margin-bottom: 20px;
}

.projects-more{
  text-align:right;
}

.projects-more__image{
  width: 40px;
  cursor:pointer;
}

.project-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  background-color: var(--gray-light);
  color: var(--secondary);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 500;
}

.outline-button {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.outline-button__link {
  color: var(--primary);
}



.outline-button:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.outline-button:hover .outline-button__link {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}



/* 品牌示例 */
 .clients::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1200')
          center/cover;
        opacity: 0.05;
      }

      .certificates{
        padding-top: 80px;
      }

   
      .section-title h2,
      .section-title p {
        color: var(--secondary);
      }

      .section-title h2::after {
        background-color: var(--accent);
      }

      .client-slider {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 10px 0;
      }

      .client-track {
        display: flex;
        gap: 30px;
        width: max-content;
        animation: scroll 60s linear infinite;
      }

      .client-slider:hover .client-track {
        animation-play-state: paused;
      }

      .client-logo {
        width: 220px;
        height: 120px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        cursor: pointer;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
       cursor:pointer;
        border: 2px solid #e0e0e0;  /* 淡灰色边框 */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);  /* 轻微阴影 */
        line-height: 0px;
      }

      .client-logo::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: 0.5s;
      }

      .client-logo:hover::before {
        left: 100%;
      }

      .client-logo:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      }

      .client-logo img {
        width: 200px;
        height: 100px;
        object-fit: contain;
        transition: all 0.3s ease;
      }

      .client-logo:hover img {
        transform: scale(1.1);
      }

      .client-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
      }

      @keyframes scroll {
        0% {
          transform: translateX(0);
        }
        100% {
          transform: translateX(-50%);
        }
      }

      /* 响应式设计 */
      @media (max-width: 768px) {
        .client-track {
          gap: 20px;
        }

        .client-logo {
          width: 150px;
          height: 80px;
          padding: 15px;
        }

        .client-logo img {
          height: 30px;
        }
      }

      @media (max-width: 480px) {
        .client-track {
          gap: 15px;
          animation-duration: 20s;
        }

        .client-logo {
          width: 120px;
          height: 70px;
          padding: 10px;
        }
      }


      /* 公司资质 */
      .certificate-content {
        display: flex;
        justify-content: space-evenly;;
      }

      .certificate-card {
        background: white;
        width:570px;
        height:650px;
        background:#fff;
        display:flex;
        flex-wrap:wrap;
        padding: 4px;
        justify-content: space-evenly;
        align-items: center;
      }

      .certificate-card__left {
        margin-right:30px;
      }

      .certificate-image:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
      }

      

      .certificate-image {
        height: 190px;
        width: 160px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        position: relative;
        padding:  5px;
        background-color: rgba(60, 60, 60, 0.05);
        font-size:12px;
      }

      .certificate-title {
        position: absolute;
        bottom: 0;
        text-align:center;
        width: 100%;
        /* padding-right:12px; */
        width: 94%;
        color:black;
        background: #fff;
      }

      .certificate-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: var(--transition);
      }

      .certificate-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.3);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: var(--transition);
      }

      .certificate-image:hover .certificate-overlay {
        opacity: 1;
      }

      .view-button {
        background: white;
        color: #666;
        border: none;
        padding: 8px 20px;
        border-radius: 30px;
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        font-size: 14px;
      }

      .view-button:hover {
        background: var(--secondary);
        color: white;
        transform: translateY(-3px);
      }

      .certificate-info {
        padding: 12px;
        display:none;
      }

      .certificate-info h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        color: var(--secondary);
      }

      .certificate-info p {
        color: var(--gray);
        margin-bottom: 15px;
      }

      .certificate-meta {
        display: flex;
        gap: 20px;
        font-size: 0.9rem;
        color: var(--gray);
      }

      .certificate-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
      }

      .certificate-meta i {
        color: var(--primary);
      }

      /* 证书大图模态框 */
      .certificate-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.9);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }

      .modal-content {
        background: white;
        border-radius: var(--radius);
        max-width: 900px;
        width: 100%;
        display: flex;
        overflow: hidden;
        position: relative;
        animation: modalFadeIn 0.3s ease;
      }

      @keyframes modalFadeIn {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .close-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 28px;
        color: var(--gray);
        cursor: pointer;
        transition: var(--transition);
        z-index: 2;
      }

      .close-modal:hover {
        color: var(--primary);
        transform: rotate(90deg);
      }

      .modal-image {
        width: 50%;
        object-fit: cover;
      }

      .modal-info {
        width: 50%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .modal-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: var(--secondary);
      }

      .modal-description {
        color: var(--gray);
        margin-bottom: 25px;
        line-height: 1.7;
      }

      .modal-meta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        color: var(--gray);
      }

      .modal-meta span {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .modal-meta i {
        color: var(--primary);
        width: 20px;
        text-align: center;
      }

      /* 响应式设计 */
      @media (max-width: 768px) {
        .modal-content {
          flex-direction: column;
          max-height: 90vh;
          overflow-y: auto;
        }

        .modal-image {
          width: 100%;
          height: 250px;
        }

        .modal-info {
          width: 100%;
          padding: 25px;
        }

        .certificates-grid {
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
      }

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

        .modal-title {
          font-size: 1.5rem;
        }
      }

    

      .arrow-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        /* background: rgba(0,0,0,0); */
        background: rgba(255,255,255,0.8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    
    .arrow-btn:hover {
        background:rgba(255,255,255,0.5);
        color: white;
    }
    
    .left-arrow {
        left: 20px;
    }
    
    .right-arrow {
        right: 20px;
    }

    .content-container {
      position: relative;
      width: 100%;
      height: 100%;
  }

  .about-box {
    height:850px;
  }

  .about-content{
    display:flex;
    justify-content: space-evenly;
  }

  .about-content__address{
    height: 650px;
    width: 570px;
    background:#fff;
    margin-right:30px;
  }

  .address-content{
    text-align:center;
    
  }

  
  .about-content, .address-content {
      position: absolute;
      width: 100%;
      height: 100%;
      transition: opacity 0.5s ease;
  }


  .about-content.active, .address-content.active {
      opacity: 1;
      z-index: 2;
  }

  
  .about-content:not(.active), .address-content:not(.active) {
      opacity: 0;
      z-index: 1;
  }


  .entry-date{
    height: 270px;
  }

  .entry-date img{
    height: 100%;
    width: 100%;
  }
 

