/* Homepage About module — isolated from bundle .gallery-thumbs / .gallery-top */

.home-about {
  padding: 70px 0;
  background: #fff;
}

.home-about-head {
  margin-bottom: 36px;
  text-align: center;
}

.home-about-label {
  margin: 0 0 10px;
  color: #1671ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-about-head h2 {
  margin: 0;
  color: #18212b;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.35;
}

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 40px;
  align-items: start;
}

/* ---- Media column ---- */
.home-about-media {
  min-width: 0;
}

.home-about-main {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2f7;
}

.home-about-main .swiper-wrapper,
.home-about-thumbs .swiper-wrapper {
  align-items: stretch;
}

.home-about-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #eef2f7;
}

.home-about-main .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about-main .home-about-next,
.home-about-main .home-about-prev {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 33, 43, 0.55);
  transition: background-color 0.2s ease;
}

.home-about-main .home-about-next:hover,
.home-about-main .home-about-prev:hover {
  background: rgba(22, 113, 255, 0.85);
}

.home-about-main .home-about-prev {
  left: 12px;
}

.home-about-main .home-about-next {
  right: 12px;
}

.home-about-main .home-about-next::after,
.home-about-main .home-about-prev::after {
  font-size: 16px;
  font-weight: 700;
}

/* Thumbnail strip */
.home-about-thumbs {
  margin-top: 12px;
  overflow: hidden;
}

.home-about-thumbs .swiper-slide {
  width: 88px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.home-about-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  box-shadow: 0 0 0 2px #1671ff;
}

.home-about-thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Text column ---- */
.home-about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-top: 8px;
}

.home-about-content h3 {
  margin: 0 0 10px;
  color: #18212b;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
}

.home-about-tagline {
  margin: 0 0 18px;
  color: #1671ff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.home-about-desc {
  margin: 0 0 24px;
  color: #64707d;
  font-size: 16px;
  line-height: 1.85;
}

.home-about-desc p {
  margin: 0 0 12px;
}

.home-about-desc p:last-child {
  margin-bottom: 0;
}

/* CMS 正文若含图片，首页摘要不展示 */
.home-about-desc img,
.home-about-desc .swiper-container,
.home-about-desc iframe {
  display: none !important;
}

.home-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-about-btn-primary {
  color: #fff;
  background: #1671ff;
}

.home-about-btn-primary:hover {
  color: #fff;
  background: #0d56c7;
}

.home-about-btn-outline {
  border-color: #1671ff;
  color: #1671ff;
  background: #fff;
}

.home-about-btn-outline:hover {
  color: #fff;
  background: #1671ff;
}

@media (max-width: 991px) {
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-about-content {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .home-about {
    padding: 52px 0;
  }

  .home-about-head {
    margin-bottom: 24px;
    text-align: left;
  }

  .home-about-main .swiper-slide {
    aspect-ratio: 16 / 10;
  }

  .home-about-thumbs .swiper-slide {
    width: 72px;
    height: 54px;
  }

  .home-about-actions {
    flex-direction: column;
  }

  .home-about-btn {
    width: 100%;
  }
}
