/* 社会责任页：PC / 移动高端观感 */
.page-community {
  background: #fff;
  color: #1d1d1f;
  font-family: var(--font-sans, "Noto Sans SC", sans-serif);
}
.page-community .wrap {
  width: 1366px; max-width: 100%;
  margin: 0 auto; padding: 0 12px; box-sizing: border-box;
}
.page-community .sec-h {
  font-size: 40px; text-align: center; color: #1a1a1a;
  margin: 0 0 48px; font-weight: 600; letter-spacing: 0.06em;
  position: relative;
}
.page-community .sec-h::after {
  content: ""; display: block; width: 36px; height: 2px;
  margin: 16px auto 0; background: #c9a227;
}

.community-banner { width: 100%; line-height: 0; background: #111; }
.community-banner img {
  width: 100%; display: block; height: auto; max-height: 480px;
  object-fit: cover;
}

/* —— 抗疫轮播：紧凑 3D 叠卡 —— */
.community-certify {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 70%);
  overflow: hidden;
}
.community-certify .wrap { padding-left: 0; padding-right: 0; }
.community-certify .sec-h { margin-bottom: 56px; }

.swiper-community {
  padding: 28px 0 56px; overflow: visible; height: 500px;
}
/* 略收窄主卡，保证左右各 2 张能清楚露出（共 5 张） */
.swiper-community .swiper-slide {
  width: 480px; background: transparent; box-sizing: border-box;
  transition: opacity .35s ease;
}
.swiper-community .c-card {
  background: #fff; overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(20, 24, 40, 0.12);
  transition: box-shadow .35s ease;
}
.swiper-community .swiper-slide-active .c-card {
  box-shadow: 0 18px 48px rgba(20, 24, 40, 0.2);
}
.swiper-community .c-card-pic { position: relative; overflow: hidden; }
.swiper-community .c-card-pic::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.08));
  pointer-events: none;
}
.swiper-community .c-card img {
  width: 100%; display: block; height: 320px; object-fit: cover;
}
.swiper-community .c-card p {
  margin: 0; padding: 20px 24px 24px; text-align: center;
  color: #4a4a4a; font-size: 15px; line-height: 1.65;
  letter-spacing: 0.02em; background: #fff;
  min-height: 68px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.swiper-community .swiper-pagination { bottom: 8px; }
.swiper-community .swiper-pagination-bullet {
  width: 7px; height: 7px; border-radius: 7px;
  background: #c8ccd4; opacity: 1; margin: 0 5px !important;
  transition: width .25s ease, background .25s ease;
}
.swiper-community .swiper-pagination-bullet-active {
  width: 22px; background: #1d1d1f;
}

/* —— 践行公益 —— */
.community-welfare { padding: 80px 0 50px; background: #fbfbfd; }
.welfare-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 64px; margin-bottom: 56px;
}
.welfare-row.reverse { flex-direction: row-reverse; }
.welfare-text { width: 400px; flex-shrink: 0; }
.welfare-text h3 {
  font-size: 26px; margin: 0 0 18px; color: #1a1a1a;
  font-weight: 600; letter-spacing: 0.04em;
}
.welfare-text p {
  font-size: 15px; line-height: 1.9; color: #666; margin: 0;
  text-align: justify;
}
.welfare-media { flex: 1; min-width: 0; }
.welfare-media img {
  width: 100%; display: block; border-radius: 4px;
  box-shadow: 0 10px 28px rgba(20, 24, 40, 0.08);
}

/* —— 鼓励创新 —— */
.community-innovate { padding: 70px 0 110px; background: #fff; }
.innovate-box { position: relative; overflow: hidden; border-radius: 4px; }
.innovate-box > img { width: 100%; display: block; }
.innovate-copy {
  position: absolute; top: 18%; left: 48px; width: 480px; max-width: 44%;
  color: #fff; display: flex; flex-direction: column;
}
.innovate-copy h3 {
  font-size: 28px; margin: 0 0 20px; color: #fff;
  font-weight: 600; letter-spacing: 0.04em;
}
.innovate-copy p {
  font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.92);
  margin: 0 0 28px; text-align: justify;
}
.innovate-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 168px; height: 42px; border: 1px solid rgba(255,255,255,.85);
  border-radius: 21px; color: #fff; letter-spacing: 0.08em; font-size: 14px;
  transition: background .25s ease, color .25s ease;
}
.innovate-btn:hover { background: #fff; color: #1a1a1a; }

@media (max-width: 767px) {
  .page-community .wrap { padding: 0 4vw; }
  .page-community .sec-h {
    font-size: 5.6vw; margin: 6vw 0 5vw; letter-spacing: 0.04em;
  }
  .page-community .sec-h::after { width: 7vw; margin-top: 3vw; }
  .community-banner img { max-height: none; }

  .community-certify {
    padding: 8vw 0 4vw;
    background: linear-gradient(180deg, #f5f6f8 0%, #fff 80%);
  }
  .swiper-community {
    height: auto; min-height: 78vw; padding: 2vw 0 12vw;
  }
  /* 移动端：中间主卡 + 左右各露一点，共约 3 张可读 */
  .swiper-community .swiper-slide { width: 68vw; }
  .swiper-community .c-card {
    border-radius: 3vw; box-shadow: 0 3vw 8vw rgba(20, 24, 40, 0.12);
  }
  .swiper-community .c-card img { height: 48vw; }
  .swiper-community .c-card p {
    font-size: 3.4vw; padding: 4vw 3.5vw 4.5vw; min-height: 0;
    line-height: 1.55;
  }
  .swiper-community .swiper-pagination-bullet { width: 1.6vw; height: 1.6vw; margin: 0 1.2vw !important; }
  .swiper-community .swiper-pagination-bullet-active { width: 5vw; }

  .community-welfare { padding: 6vw 0 4vw; }
  .welfare-row, .welfare-row.reverse {
    flex-direction: column; align-items: stretch; gap: 4vw; margin-bottom: 10vw;
  }
  .welfare-text { width: 100%; order: 2; padding: 0 1vw; }
  .welfare-media { order: 1; width: 100%; }
  .welfare-media img { border-radius: 2vw; box-shadow: 0 2vw 6vw rgba(20,24,40,.1); }
  .welfare-text h3 { font-size: 4.6vw; margin: 1vw 0 2.5vw; }
  .welfare-text p { font-size: 3.4vw; line-height: 1.75; }

  .community-innovate { padding: 6vw 0 12vw; }
  .innovate-box { border-radius: 2vw; }
  .innovate-copy {
    position: static; width: 100%; max-width: none;
    padding: 5vw 2vw 0; top: auto; left: auto;
  }
  .innovate-copy h3 {
    position: absolute; left: 5vw; bottom: 42vw;
    color: #fff; font-size: 4.2vw; margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
  }
  .innovate-copy p {
    color: #555; font-size: 3.4vw; line-height: 1.75; margin: 0;
  }
  .innovate-btn { display: none !important; }
}
