.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  /* padding: 0 20px; */
}
.swiper-container {
  width: 100%;
  height: 100%;
}
.swiper-slide img {
  width: 100%;
  /* height: auto;
  min-height: 100%; */
}
.box {
  display: flex;
  justify-content: center;
}
.box:nth-child(1),
.box:nth-child(3) {
  background: #fff;
}
.box:nth-child(2),
.box:nth-child(4) {
  background: #f8f8f8;
}

/* 顶部Banner */
.banner {
  background-color: #000;
  color: #fff;
  /* padding: 80px 0; */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: url("./image/jpsm.jpg") no-repeat center/cover; */
  /* opacity: 0.2; */
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  height: 500px;
  overflow: hidden;
  transition: all 0.5s;
}
.banner-txt {
  position: absolute;
  top: 40%;
  width: 100%;
  text-align: center;
  z-index: 99;
  transition: all 0.5s;
}

.banner h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.banner p {
  color: #ccc;
  font-size: 14px;
  /* max-width: 600px; */
  /* margin: 0 auto 30px; */
}
.bannerthumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
}
.banner-content:hover .banner-txt {
  /* top: 35%; */
}
.banner-content:hover .bannerthumb {
  /* transform: scale(1.5); */
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 20px;
  color: #999;
}

/* 服务板块 */
.service-section {
  padding: 0px 0;
}

.service-item {
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  margin-top: 80px;
  flex-wrap: wrap;
}

.box:nth-child(even) .service-item {
  flex-direction: row-reverse; /* 偶数项反转布局 */
}

.service-img {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.service-img img {
  width: 100%;
  border-radius: 8px;
  transition: all 0.5s;
}

.service-text {
  flex: 1;
  min-width: 300px;
  position: relative;
  transition: all 0.5s;
}

.service-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-text h3 i {
  color: #4096ff;
  font-size: 28px;
}

.service-text p {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}
.iconbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
}
.iconbox img {
  transition: all 0.5s;
}
.iconbox:nth-child(1) {
  background: #d30131;
}
.iconbox:nth-child(2) {
  background: #99bfa1;
}
.iconbox:nth-child(3) {
  background: #b09dd3;
}
.iconbox:nth-child(4) {
  background: #e8926e;
}
.service-item:hover .service-img img {
  transform: scale(1.2);
}
.service-item:hover .iconbox img {
  transform: rotate(360deg);
}
.service-item:hover .service-text {
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); */
  transform: scale(1.03);
}
/* 为什么选择我们 */
.choose-section {
  padding: 80px 0;
  background-color: #fff;
}

.choose-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 50px;
  color: #333;
}

/* 卡片容器 */
.choose-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 单个卡片 */
.choose-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* 卡片文字层（半透明背景增强可读性） */
.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.card-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.choose-btn {
  text-align: center;
  margin-top: 40px;
}

.choose-btn button {
  padding: 10px 30px;
  background-color: #4096ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.choose-btn button:hover {
  background-color: #2980b9;
}

/* 咨询区域 */
.contact-section {
  padding: 60px 0;
  background-color: #000;
  color: #fff;
  /* background-image: url("./banner.jpg"); */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 120px;
}
.contact-section .container {
  width: 1100px;
  margin: 50px auto;
  display: flex;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}
/* 左侧蓝色区域 */
.left-section {
  width: 40%;
  color: #fff;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(90deg, #0b1c61, #163ec1);
}
.left-section h2 {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 15px;
}
.left-section p {
  font-size: 14px;
  margin-bottom: 30px;
}
.qrcode-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.contact-qrcode-img {
  position: relative;
  overflow: hidden;
}
.contact-qrcode-img::before,
.contact-qrcode-img::after {
  content: "";
  display: block;
  position: absolute;
  left: 1px;
  right: 1px;
  height: 62%;
  z-index: 1;
}
.contact-qrcode-img::before {
  bottom: 100%;
  background: linear-gradient(to bottom, rgba(255, 191, 164, 0), #d4042c);
}
.contact-qrcode-img.actived::before {
  transform: translateY(270%);
  transition: transform 1.5s;
}
.contact-qrcode-img::after {
  top: 100%;
  background: linear-gradient(to top, rgba(255, 191, 164, 0), #d4042c);
}
.contact-qrcode-img.actived::after {
  transition: transform 1.5s 1.5s;
  transform: translateY(-270%);
}
.qrcode-area img {
  width: 80px;
  height: 80px;
}
.qrcode-area .sz {
  width: 12px;
  height: 12px;
}
.qrcode-area-txt span {
  display: inline-block; /* 确保元素可以应用transform */
  animation: up-down 1.5s ease-in-out infinite;
  animation-delay: calc(0.1s * var(--i));
}
@keyframes up-down {
  0% {
    transform: translateY(0px);
  }
  20% {
    transform: translateY(-12px);
  }
  40%,
  100% {
    transform: translateY(0px);
  }
}
.contact-info .phone {
  font-size: 16px;
  font-weight: bold;
}
/* 右侧表单区域 */
.right-section {
  width: 60%;
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  position: relative;
  left: -15px;
}
.right-section h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center; /* 垂直居中对齐 */
}
.form-control {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}
/* 验证码+提交按钮行样式 */
.captcha-submit-row {
  display: flex;
  gap: 15px;
  margin-bottom: 0;
  align-items: center;
}
.captcha-input {
  flex: 1; /* 验证码输入框自适应剩余空间 */
}
.captcha-img {
  width: 100px;
  height: 40px; /* 和输入框高度一致 */
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  letter-spacing: 2px;
  flex-shrink: 0; /* 防止被压缩 */
}
.btn-submit {
  background: #e60012;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0; /* 防止按钮被压缩 */
  height: 40px; /* 和输入框高度一致 */
  white-space: nowrap; /* 防止按钮文字换行 */
}
.btn-submit:hover {
  background: #c40010;
}
/* 适配不同输入框宽度 */
.full-width {
  width: 100%;
}
/* 提示信息样式 */
.tips {
  color: #e60012;
  font-size: 12px;
  margin-top: 8px;
  display: none;
}

/* 页脚 */
.footer {
  background-color: #1d2129;
  color: #86909c;
  padding: 60px 0 30px;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 280px;
}

.footer-logo h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .contact-details {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 20px;
}

.footer-logo .qrcode-footer {
  width: 100px;
  height: 100px;
  background-color: #fff;
  margin-bottom: 10px;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.link-group {
  min-width: 120px;
}

.link-group h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: 12px;
}

.link-group a {
  color: #86909c;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.link-group a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #2c3038;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 24px;
  }

  .service-item,
  .service-item:nth-child(even) {
    flex-direction: column;
  }

  .choose-title {
    font-size: 24px;
  }

  .contact-wrap {
    flex-direction: column;
  }

  .choose-card {
    max-width: 100%;
  }

  .footer-links {
    gap: 30px;
  }
}
/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 板块容器 */
.build-advantage-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 标题样式 */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 28px;
  color: #333;
}

.section-title .highlight {
  color: #4096ff; /* “搭建优势”蓝色高亮 */
}

/* 优势卡片容器 */
.advantage-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 单个卡片样式 */
.advantage-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px); /*  hover轻微上浮 */
  box-shadow: 10px 10px 15px #ebf3f9;
}

/* 卡片图标+标题区域 */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f0f7ff; /* 图标背景浅蓝 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4096ff;
  font-size: 18px;
}

.card-header h3 {
  font-size: 18px;
  color: #333;
}

/* 卡片描述文字 */
.card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
  }

  .advantage-cards {
    flex-direction: column;
    align-items: center;
  }

  .advantage-card {
    max-width: 100%;
  }
}
