: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 {
  padding-bottom: 80px;
}

.hero-bg-1 {
  background-image: url(img/banner2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-2 {
  background-image: url(img/banner1.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 移除默认的背景和阴影 */
}

.fixed-nav {
  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-swiper {
  width: 100%;
  position: relative;
}

.hero-swiper-container {
  width: 100%;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-swiper .swiper-slide {
  display: flex;
  align-items: center;
}

.hero-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.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: 50px;
}

.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;
  padding: 40px 0;
}

.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;
}
.icon-wechat {
  background-position-x: -90px;
}
.icon-app {
  background-position-x: -120px;
}
.icon-h5 {
  background-position-x: -150px;
}
.icon-platform {
  background-position-x: -180px;
}
/* 服务流程 */
.process {
  text-align: center;
}

.process-img {
  max-width: 100%;
  margin: 0 auto;
}

/* 案例展示 - Coverflow效果 */

.showcase-box {
  position: relative;
  width: 100%;
  /* max-width: 1400px; */
  margin: 0 auto;
  /* padding: 60px 0; */
  margin-bottom: 1rem;
}

.showcase-swiper {
  width: 100%;
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 60px 0;
  overflow: hidden;
}

.showcase-swiper .swiper-slide {
  width: 25%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(0.6);
  opacity: 0.6;
  -webkit-transform: scale(0.6);
  -moz-transform: scale(0.6);
  -ms-transform: scale(0.6);
  -o-transform: scale(0.6);
}

.showcase-swiper .swiper-slide-active {
  width: 50%;
  transform: scale(1);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
}

.case-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 30px;
  transform: translateY(0);
  transition: transform 0.6s ease;
}

.case-overlay h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  line-height: 1.2;
}

.case-overlay p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.case-card:hover .showcase-img {
  transform: scale(1.05);
}

.showcase-swiper .swiper-pagination {
  bottom: -40px;
}

.showcase-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(56, 126, 212, 0.3);
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-swiper .swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* 页脚 */
.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;
}
/* 产品服务 */
.products {
  padding: 40px 0 80px 0;
  background: #fff;
  margin-top: -50px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.product-item {
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e9ecef;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 280px;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.product-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

.product-content {
  text-align: left;
  position: absolute;
  top: 5%;
  bottom: 5%;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 70%,
    rgba(255, 255, 255, 0.3) 100%
  );
  padding: 35px 25px;
  backdrop-filter: blur(5px);
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
}

.product-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.product-name {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.product-detail {
  font-size: 16px;
  line-height: 1.6;
  color: #34495e;
  margin: 0;
  text-align: left;
}

/* 产品背景样式 */
.slide1 {
  background: url(img/slide/1.png) no-repeat right 50% / auto 100%;
}
.slide2 {
  background: url(img/slide/2.png) no-repeat right 50% / auto 100%;
}
.slide3 {
  background: url(img/slide/3.png) no-repeat right 50% / auto 100%;
}
.slide4 {
  background: url(img/slide/4.png) no-repeat right 50% / auto 100%;
}
.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;
  }

  /* 产品服务调整 */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 100%;
  }

  .product-item {
    min-height: 200px;
  }

  .product-content {
    width: 100%;
    padding: 25px 20px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-detail {
    font-size: 14px;
  }

  /* 案例展示调整 */
  .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%;
  }
}
@media screen and (max-width: 1024px) {
  .showcase-swiper {
    width: 80%;
  }
  .case-overlay {
    opacity: 0;
  }
  .case-card:hover .case-overlay {
    opacity: 1;
  }
}
