/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #293a4c;
}

/* 变量定义 */
:root {
  /* 颜色变量 */
  --primary-color: #016ef1;
  --primary-gradient: linear-gradient(124deg, #02a7f9 0%, #016ef1 59%);
  --text-primary: #293a4c;
  --text-secondary: #869fb2;
  --text-light: #a1a2a6;
  --bg-white: #ffffff;
  --bg-light: #f7f7f7;
  --bg-gradient-light: linear-gradient(180deg, #f0f5ff 0%, #d0e1fe 100%);
  --shadow-light: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  --shadow-primary: 3px 3px 7px 0px rgba(1, 110, 241, 0.5);
}

/* 容器样式 */
.container {
  width: 1180px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-divider {
  width: 1px;
  height: 24px;
  background: #e6e6e6;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
}

.hero-title-box {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 4px;
}

.hero-title-img {
  width: auto;
  height: 34px;
}

/* .nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}


.phone-icon {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
}

.phone-number {
  color: var(--primary-color);
  font-family: "DIN Alternate", monospace;
  font-weight: bold;
  font-size: 16px;
} */

.phone-section {
  background: var(--bg-gradient-light);
  padding: 4px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #016ef1;
}

.phone-section::before {
  background-image: url(/assets/front/src/chemwiseImg/phone.png) !important;
}

.divider {
  width: 1px;
  height: 12px;
  background: #e8e8e8;
}

.cta-button {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 22px 22px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background: #0056cc;
}

/* 主横幅区域 */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 536px;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: left;
  color: var(--text-primary);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 80px 10px;
  width: 1200px;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
  max-width: 625px;
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 34px;
}

.hero-description {
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 32px;
  opacity: 0.9;
  width: 550px;
}

.hero-cta {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 8px 16px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 150px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cta:hover {
  background: #0056cc;
}

/* 功能导航 */
.feature-nav {
  position: relative;
  z-index: 2;
  background: var(--bg-white);
  padding: 24px;
  box-shadow: var(--shadow-light);
  width: 1180px;
  margin: -50px auto 0;
}

.feature-nav .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  /* flex: 1; */
  justify-content: flex-start;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 挑战部分 */
.challenges-section {
  padding: 130px 0 80px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 46px;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-top: 48px;
}

.challenge-item {
  display: flex;
  gap: 8px;
  text-align: left;
}

.challenge-icon {
  width: 32px;
  height: 32px;
  /* background: url("https://image-resource.mastergo.com/44676109734247/44676109734248/d247fc856465f615b1b78781c2191f49.png")
    center/contain; */
  /* flex-shrink: 0; */
}

.challenge-content h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.challenge-content p {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-primary);
  opacity: 0.8;
}

/* 功能展示部分 */
.feature-showcase {
  height: 800px;
  background: linear-gradient(180deg, #eff0f3 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-card {
  background: var(--bg-white);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  max-width: 380px;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10;
}

.feature-card.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-primary);
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 功能卡片悬浮效果 */

/* 为每个功能卡片设置不同的位置 */
.feature-card-1 {
  top: 64px;
  left: 60px;
}

.feature-card-2 {
  top: 166px;
  left: 250px;
}

.feature-card-3 {
  top: 256px;
  left: 496px;
}

.feature-card-4 {
  top: 192px;
  left: 750px;
}

.feature-card-5 {
  top: 64px;
  left: 900px;
}

/* 绿色化学品模块的悬浮点样式 */
.feature-card2-box-point-1 {
  top: 169px;
  left: 14.5%;
}

.feature-card2-box-point-2 {
  top: 535px;
  left: 14.5%;
}

.feature-card2-box-point-3 {
  top: 535px;
  left: 77.5%;
}

.feature-card2-box-point-4 {
  top: 169px;
  left: 77.5%;
}

/* 绿色化学品模块的功能卡片位置 */
.feature-card2-1 {
  top: -36px;
  left: 124px;
}

.feature-card2-2 {
  top: 330px;
  left: 128px;
}

.feature-card2-3 {
  top: 338px;
  left: 890px;
}

.feature-card2-4 {
  top: 30px;
  left: 840px;
}

/* 悬浮点样式增强 */
.feature-card-box-point {
  position: absolute;
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 平台优势部分 */
.advantages-section {
  background: var(--primary-gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.advantages-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: #0669d8;
}

.advantages-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 46px;
  color: var(--bg-white);
  margin-bottom: 53px;
}

.advantages-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  position: relative;
}

.advantage-card {
  background: linear-gradient(
    180deg,
    rgba(41, 58, 76, 0.1) 0%,
    rgba(41, 58, 76, 0.8) 100%
  );
  background-image: url("https://image-resource.mastergo.com/44676109734247/44676109734248/5380335a8dc4cb0574a2a0cc34393910.png");
  background-size: cover;
  background-position: center;
  width: 640px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.advantage-card.small {
  width: 172px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.advantage-card .card-content {
  position: relative;
  z-index: 2;
  text-align: left;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card .card-content h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #ffffff;
}

/* 卡片基础样式和动画 */
.advantage-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}
/* 
.advantage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

/* 抽屉功能样式 */
.advantage-text {
  font-size: 14px;
  font-weight: normal;
  line-height: 24px;
  color: #ffffff;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.advantage-card.expanded {
  width: 640px;
  height: 400px;
  z-index: 5;
  border: none !important;
}

.advantage-card.expanded .advantage-text {
  opacity: 1;
  max-height: 200px;
  margin-top: 16px;
}

.advantage-card.small .advantage-text {
  display: none;
}

/* 收起状态样式 */
.advantage-card.collapsed {
  width: 172px;
  height: 200px;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 14px;
  line-height: 24px;
  opacity: 0.9;
}

.advantage-bg1 {
  background-image: url("/assets/front/src/chemwiseImg/advantage1.png");
}
.advantage-bg2 {
  background-image: url("/assets/front/src/chemwiseImg/advantage2.png");
}
.advantage-bg3 {
  background-image: url("/assets/front/src/chemwiseImg/advantage3.png");
}
.advantage-bg4 {
  background-image: url("/assets/front/src/chemwiseImg/advantage4.png");
}

/* 服务方案部分 */
.services-section {
  background: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.services-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  flex: 1;
  max-width: 372px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  flex-shrink: 0;
}

.service-content h3 {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.service-content p {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-primary);
  opacity: 0.8;
}

/* 客户展示部分 */
.clients-section {
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.clients-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.clients-grid {
  display: flex;
  gap: 20px;
  margin-top: 0px;
  margin-bottom: 48px;
  animation: scrollLeft 60s linear infinite;
  width: max-content;
}

.clients-grid:hover {
  animation-play-state: paused;
}

.client-logo {
  width: 200px;
  height: 75px;
  border-radius: 4.69px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-parent-logo {
  position: relative;
  width: 200px;
  height: 75px;
  border-radius: 4.69px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.client-parent-logo-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.client-parent-logo:hover {
  background: url("/assets/front/src/chemwiseImg/logoHover.png") no-repeat center center;
  background-size: 100% 100%;
  transition: all 0.3s ease;
}

.client-parent-logo:hover .client-logo {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.client-parent-logo:hover .client-parent-logo-title {
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

/* 添加渐变遮罩效果 */
.clients-container::before,
.clients-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.clients-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
}

.clients-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
}

/* 联系我们部分 */
.contact-section {
  background: url("/assets/front/src/chemwiseImg/contact.png") center/cover;
  padding: 80px 0;
  text-align: center;
}

.contact-content {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 46px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-description {
  font-size: 16px;
  line-height: 28px;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.feature-card-box {
  position: absolute;
}
.feature-card-img {
  width: 1200px;
  height: 800px;
}

.feature-card-box-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* .feature-card-box-point {
  position: absolute;
  width: 200px;
  height: 150px;
  cursor: pointer;
} */

.feature-card-box-point-1 {
  top: 262px;
  left: 10%;
}
.feature-card-box-point-2 {
  top: 389px;
  left: 25%;
}
.feature-card-box-point-3 {
  top: 426px;
  left: 46%;
}
.feature-card-box-point-4 {
  top: 389px;
  left: 67%;
}
.feature-card-box-point-5 {
  top: 261px;
  left: 82%;
}

.advantage-card-content {
  width: 100%;
  height: 100%;
  padding: 32px 24px;
  box-sizing: border-box;
  background: linear-gradient(0deg, #293a4c80 0%, #293a4c10 100%);
  display: flex;
  align-items: flex-end;
}
.header-nav-box a:hover {
  color: #016ef1;
}
.header-home:hover {
  color: #016ef1;
}

.mobile-img {
  display: none;
}

@media (max-width: 768px) {
  .feature-nav {
    display: none;
  }
  .container {
    position: relative;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
  }

  .feature-showcase {
    height: 455px;
  }
  .section-title {
    width: 100%;
    text-align: center;
  }
  .feature-card-img {
    width: 100%;
    height: auto;
  }
  .advantages-grid {
    flex-direction: column;
  }
  .advantage-card.expanded {
    width: 100%;
    height: auto;
  }
  .advantage-card.small {
    width: 100%;
    height: auto;
  }

  .services-grid {
    flex-direction: column;
  }

  .feature-card-box-points,
  .feature-card {
    display: none;
  }

  .hero-content {
    padding: 80px 15px;
  }
  .hero-section {
    background: none;
  }

  .feature-card-img {
    display: none;
  }
  .mobile-img {
    display: block;
  }
}
