:root {
  --primary-color: #387ed4;
}
/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.home {
  background-size: cover;
  background-position: center;
}
/* 导航栏 */
.navbar {
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 移除默认的背景和阴影 */
}

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff; /* 滚动固定后才显示背景色 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 滚动固定后才显示阴影 */
  transition: background-color 0.3s, box-shadow 0.3s; /* 添加过渡效果 */
}

.logo-container {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

.logo {
  height: 40px; /* 根据实际logo大小调整 */
  width: auto;
  margin-right: 12px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px; /* 链接之间的间距 */
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding: 0 15px;
}

/* 添加竖线分隔符 */
.nav-links a:not(:last-child):after {
  content: "|";
  position: absolute;
  right: -8px; /* 调整竖线位置 */
  color: #000; /* 竖线颜色 */
  font-weight: 300; /* 让竖线看起来更细一些 */
}

/* 鼠标悬停效果 */
.nav-links a:hover {
  color: var(--primary-color);
}

/* 主要内容区 */
.hero {
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.3s;
}
.contact-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
/* 标题栏 */
section {
  padding: 60px 0;
}
.title {
  position: relative;
  text-align: center;
  margin-bottom: 60px;
}

.title p {
  font-size: 14px;
  color: var(--primary-color); /* 蓝色英文 */
  margin-top: 5px;
  text-transform: uppercase; /* 英文大写 */
  letter-spacing: 1px;
  font-weight: 400;
}

.title h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0px;
  color: #333;
  position: relative;
}
.title h2::before,
.title h2::after {
  content: "";
  position: absolute;
  bottom: 50%;
  width: 30%;
  height: 1px;
}
.title h2::before {
  left: 57%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}
.title h2:after {
  right: 57%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}
/* 服务特点 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.feature-item {
  padding: 0 2rem;
}
.features-title {
  margin-bottom: 10px;
}
.features-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.features-title h4 {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  text-transform: uppercase;
}
.feature-icon {
  width: 80px;
  margin-bottom: 1rem;
}
.icons {
  display: block;
  margin: 16px auto;
  background-image: url(img/icons.png);
  background-size: auto;
  background-repeat: no-repeat;

  width: 83px;
  height: 83px;
}
.icon-product {
  background-position-x: left;
}
.icon-service {
  background-position-x: center;
}
.icon-quality {
  background-position-x: right;
}
/* 服务流程 */
.process {
  text-align: center;
}

.process-img {
  max-width: 100%;
  margin: 0 auto;
}

/* 案例展示 */

.showcase-box {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1102/487;
  overflow: hidden;
}

.showcase-swiper {
  width: 64%;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.showcase-swiper .swiper-slide {
  overflow: hidden;
  border-radius: 8px;
}

.showcase-img {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.showcase-swiper .swiper-pagination {
  bottom: -30px;
}

.showcase-swiper .swiper-pagination-bullet {
  background: var(--primary-color);
  opacity: 0.5;
}

.showcase-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

.showcase-simulator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.showcase-text {
  margin: 0 auto;
  width: 64%;
  font-size: 16px;
  color: #333;
  margin-top: 20px;
  text-align: center;
}

/* 页脚 */
.footer {
  background: #333;
  color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  text-align: center;
}
.footer-text {
  display: inline-block;
  margin: 0 10px;
  color: currentColor;
  text-decoration: none;
}
/* 轮播 */
.swiper {
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding-bottom: 60px !important;
}
.swiper-backface-hidden {
  overflow: hidden;
}
.current-swiper {
  width: 650px;
  height: 370px;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 99;
}
.left-swiper {
  position: absolute;
  left: 0;
  top: 52px;
  z-index: 1;
}
.right-swiper {
  position: absolute;
  right: 0;
  left: auto;
  top: 52px;
  z-index: 1;
}
.nocurrent-swiper {
  width: 479px;
  height: 273px;
  border-radius: 8px;
}

.swiper-title {
  padding-top: 70px;
  margin-left: 45px;
  font-size: 30px;
  color: var(--primary-color);
}
.nocurrent-swiper .swiper-title {
  padding-top: 44px;
  margin-left: 30px;
  font-size: 20px;
}
.swiper-name {
  margin-left: 45px;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  padding-right: 55px;
  border-bottom: 1px solid #dddddd;
  font-size: 14px;
  color: var(--primary-color);
}
.nocurrent-swiper .swiper-name {
  height: 46px;
  line-height: 46px;
  font-size: 16px;
  padding-right: 46px;
  margin-left: 30px;
}
.swiper-name:before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  right: 10px;
  top: 0;
  bottom: 0;
  margin: auto;
}
.nocurrent-swiper .swiper-name:before {
  width: 26px;
  height: 26px;
  background-size: 100% 100%;
}
.swiper-detail {
  margin-left: 45px;
  width: 275px;
  margin-top: 30px;
  padding-right: 5px;
  line-height: 24px;
  color: var(--primary-color);
  font-size: 14px;
}
.nocurrent-swiper .swiper-detail {
  font-size: 12px;
  line-height: 20px;
  width: 235px;
  margin-left: 30px;
}
.swiper-button-prev {
  width: 46px;
  height: 46px;
  background: url(../images/curr_prev.png) no-repeat center center;
}
.swiper-button-next {
  width: 46px;
  height: 46px;
  background-size: auto;
  background-image: url(../images/curr_next.png);
}
.slide1 {
  background: url(img/slide1.jpg) no-repeat right 50% / auto 100%
    rgba(56, 126, 212, 0.5);
}
.slide2 {
  background: url(img/slide2.jpg) no-repeat right 50% / auto 100%
    rgba(56, 126, 212, 0.5);
}
.slide3 {
  background: url(img/slide3.jpg) no-repeat right 50% / auto 100%
    rgba(56, 126, 212, 0.5);
}

.join {
  background: #e8eef7;
}
.join-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.join-box-left {
  display: flex;
  align-items: center;
}
.join-box-left .logo {
  margin-bottom: 10px;
}
.join-box-left .logo-container {
  flex-direction: column;
}
.join-box-right h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
}
.contact-item {
  position: relative;
  cursor: pointer;
}
.contact-item:hover .contact-text {
  display: block;
}
.contact-text {
  display: none;
  position: absolute;
  bottom: 40px;
  left: -62px;
  width: 150px;
  height: auto;
  font-size: 14px;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.contact-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.contact-list {
  display: flex;
  align-items: center;
  list-style: none;
}
.contact-list li {
  margin: 0 15px;
}
.contact-list li a {
  display: block;
  width: 26px;
  height: 26px;
  background-size: 100% 100%;
}
.contact-list li a:hover {
  transform: scale(1.1);
}
.icon {
  display: block;
  background-image: url(img/icon.png);
  background-size: auto;
  background-repeat: no-repeat;
  width: 26px;
  height: 26px;
}
.icon.icon1 {
  background-position-x: left;
}
.icon.icon2 {
  background-position-x: -26px;
}
.icon.icon3 {
  background-position-x: -52px;
}
.icon.icon4 {
  background-position-x: right;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  /* 导航栏调整 */

  .logo-container {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  /* Hero区域调整 */
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  /* 特性区域调整 */
  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-item {
    padding: 0 1rem;
  }

  /* 轮播图调整 */
  .current-swiper {
    width: 100%;
    height: 300px;
  }

  .left-swiper,
  .right-swiper {
    display: none; /* 移动端隐藏侧边轮播 */
  }

  .swiper-title {
    padding-top: 40px;
    margin-left: 20px;
  }

  .swiper-detail {
    margin-left: 20px;
    width: 90%;
  }

  /* 案例展示调整 */
  .showcase-swiper {
    width: 64%;
  }

  .showcase-text {
    width: 90%;
  }

  /* 联系我们调整 */
  .join-box {
    flex-direction: column;
    text-align: center;
  }

  .join-box-left {
    margin-bottom: 20px;
  }

  .contact-list {
    justify-content: center;
  }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .title h2 {
    font-size: 24px;
  }

  .title h2::before,
  .title h2::after {
    width: 30%;
  }
}
