.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #2a7de1;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: background .3s;
  min-width: 140px;
}

.btn:hover {
  background: #1a6bc9;
}


.slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-bottom: 20px;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

/* 文案
----------------------------------------------------- */
.slide-content {
  max-width: 600px;
  padding: 40px;
  background: rgba(255, 255, 255, .85);
  border-radius: 5px;
  margin-left: 10%;
}

.slide-content.right-align {
  margin-left: auto;
  margin-right: 10%;
}

.slide-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a3a5f;
}

.slide-content p {
  margin-bottom: 25px;
  font-size: 16px;
}

/* 旧分页器（原生用）
----------------------------------------------------- */
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  margin: 0 5px;
  cursor: pointer;
  transition: background .3s;
}

.slider-dot.active {
  background: #fff;
}

/* ----- Swiper 覆盖层 ----- */
.slider.swiper {
  height: 500px;
}

@media (max-width:768px) {
  .slider.swiper {
    height: 400px;
  }
}

@media (max-width:480px) {
  .slider.swiper {
    height: 350px;
  }
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  opacity: 0 !important;
  transition: opacity .8s ease !important;
}

.swiper-slide-active {
  opacity: 1 !important;
}

/* 文案渐入 */
.slide-content {
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp .8s .4s forwards;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.swiper-slide:not(.swiper-slide-active) .slide-content {
  animation: none;
}

/* 分页器 */
.swiper-pagination.slider-nav {
  bottom: 20px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, .5);
  opacity: 1;
  margin: 0 5px;
  transition: background .3s;
}

.swiper-pagination-bullet-active {
  background: #fff;
}

/* 左右箭头 */
.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, .3);
  border-radius: 50%;
  color: #fff;
  transition: background .3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0, 0, 0, .6);
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 18px;
}

@media (max-width:768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

/* =====================================================
   2. 服务区
   ===================================================== */
.services {
  padding: 80px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: #1a3a5f;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #2a7de1;
}

.section-title p {
  color: #666;
  max-width: 700px;
  margin: 15px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: #f9f9f9;
  border-radius: 5px;
  padding: 30px 20px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: #e8f1fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon i {
  font-size: 30px;
  color: #2a7de1;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1a3a5f;
}

.service-card p {
  color: #666;
  font-size: 14px;
}

/* =====================================================
   3. 关于我们
   ===================================================== */
.about {
  padding: 80px 0;
  background: #f5f7fa;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 32px;
  color: #1a3a5f;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
}

.about-image {
  flex: 1;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   4. 新闻/博客
   ===================================================== */
.news {
  padding: 80px 0;
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
  transition: transform .3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-date {
  color: #2a7de1;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a3a5f;
}

.news-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.news-link {
  color: #2a7de1;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}



@media (max-width:768px) {

  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .slide-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
  }

  .slide-content h2 {
    font-size: 28px;
  }

  .slide-content p {
    font-size: 15px;
  }

  .section-title h2,
  .about-text h2 {
    font-size: 28px;
  }
}

@media (max-width:480px) {

  .container{
    padding: 0 10px;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 12px;
  }

  .services,
  .about,
  .news {
    padding: 40px 0;
  }

  .section-title h2,
  .about-text h2 {
    font-size: 24px;
  }
}
