.page-customer {
  min-width: 0;
}

.page-customer .primary-nav__link.is-active {
  padding-inline: 2px;
  color: #49515e;
  background: transparent;
}

.page-customer .primary-nav__link:nth-child(4) {
  padding-inline: 14px;
  color: var(--color-primary);
  background: #f0f6ff;
}

.page-customer .wechat-float {
  display: none;
}

.page-customer .site-header > .container,
.page-customer .site-footer > .container,
.customer-hero > .container,
.customer-cases > .container,
.customer-schools > .container {
  width: min(calc(100% - 48px), 1216px);
}

.page-customer .site-footer {
  background: #101828;
}

.customer-hero,
.customer-cases,
.customer-schools {
  position: relative;
  overflow: hidden;
}

.customer-section-title {
  margin: 0;
  color: #333;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.4;
  text-align: center;
}

.customer-hero {
  height: 480px;
  overflow: visible;
  background: url("../images/customer/hero-bg.png") center / cover no-repeat;
}

.customer-hero__inner {
  display: flex;
  height: 100%;
  align-items: center;
  flex-direction: column;
  padding-top: 185px;
  text-align: center;
}

.customer-hero__inner h1 {
  margin: 0 0 19px;
  color: #333;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 1.75px;
  line-height: 1.35;
}

.customer-hero__inner > p {
  margin: 0;
  color: #666;
  font-size: 14px;
  letter-spacing: -0.4px;
  line-height: 24px;
}

.customer-stat-grid {
  position: absolute;
  z-index: 2;
  top: 422px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  transform: translateX(-50%);
}

.customer-stat-card {
  display: flex;
  height: 118px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(44, 77, 116, 0.12);
}

.customer-stat-card__number {
  position: relative;
  top: 4px;
  display: flex;
  min-height: 52px;
  align-items: baseline;
  justify-content: center;
  margin: -2px 0 0;
  color: #005ac5;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.customer-stat-card__number span {
  margin-left: 7px;
  font-size: 24px;
  letter-spacing: 0;
}

.customer-stat-card__label {
  position: relative;
  top: 1px;
  margin: 1px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 24px;
}

.customer-cases {
  height: 616px;
  padding-top: 123px;
  background: #fff;
}

.customer-cases .customer-section-title {
  margin-bottom: 35px;
  font-weight: 600;
  letter-spacing: 0;
}

.customer-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.customer-case-card {
  position: relative;
  height: 360px;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: #edf4fb;
  border-radius: 14px;
  cursor: pointer;
}

.customer-case-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.customer-case-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  content: "";
  pointer-events: none;
  transition: opacity 240ms ease;
}

.customer-case-card__caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 17px;
  left: 24px;
  transition: opacity 180ms ease, transform 240ms ease;
}

.customer-case-card__caption h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.customer-case-card__details {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  padding: 22px 26px;
  color: #fff;
  background: rgba(0, 90, 196, 0.9);
  opacity: 0;
  transform: translateY(100%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.customer-case-card__detail-title {
  margin: 0 0 2px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.customer-case-card:hover .customer-case-card__details,
.customer-case-card:focus .customer-case-card__details,
.customer-case-card:focus-within .customer-case-card__details {
  opacity: 1;
  transform: translateY(0);
}

.customer-case-card:hover .customer-case-card__caption,
.customer-case-card:focus .customer-case-card__caption,
.customer-case-card:focus-within .customer-case-card__caption,
.customer-case-card:hover::after,
.customer-case-card:focus::after,
.customer-case-card:focus-within::after {
  opacity: 0;
  transform: translateY(12px);
}

.customer-case-card:hover > img,
.customer-case-card:focus > img,
.customer-case-card:focus-within > img {
  transform: scale(1.035);
}

.customer-case-card__meta {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.customer-case-card__copy p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  text-align: left;
  text-indent: 2em;
}

.customer-schools {
  height: 771px;
  padding-top: 7px;
  background: #fff;
}

.customer-schools .customer-section-title {
  margin-bottom: 9px;
  font-weight: 600;
  letter-spacing: -0.9px;
}

.customer-schools__lead {
  margin: 0 0 35px;
  color: #999;
  font-size: 16px;
  line-height: 27px;
  text-align: center;
}

.customer-school-panel {
  height: 579px;
  padding: 40px 28px;
  background: #f9fafb;
  border-radius: 14px;
}

.customer-school-grid {
  display: grid;
  height: auto;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 20px 0;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-school-grid li {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  color: #5a6774;
  text-align: center;
  transition: color 180ms ease;
}

.customer-school-grid li > span {
  display: flex;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(50, 76, 106, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.customer-school-grid li:hover {
  color: var(--color-primary);
  box-shadow: none;
  transform: none;
}

.customer-school-grid li:hover > span {
  border-color: rgba(5, 101, 207, 0.2);
  box-shadow: 0 12px 24px rgba(42, 69, 105, 0.15);
  transform: translateY(-4px);
}

.customer-school-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.customer-school-grid p {
  width: 140px;
  max-width: 100%;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1240px) {
  .customer-hero > .container,
  .customer-cases > .container,
  .customer-schools > .container {
    width: min(calc(100% - 48px), 1200px);
  }
}

@media (max-width: 1100px) {
  .page-customer .site-header > .container,
  .page-customer .site-footer > .container {
    width: min(calc(100% - 36px), var(--container-width));
  }

  .page-customer .primary-nav__link:nth-child(4) {
    padding-inline: 16px;
  }

  .customer-hero > .container,
  .customer-cases > .container,
  .customer-schools > .container {
    width: min(calc(100% - 36px), 960px);
  }

  .customer-hero {
    height: 610px;
    background-position: center;
  }

  .customer-hero__inner {
    height: 350px;
    padding-top: 106px;
  }

  .customer-stat-grid {
    top: auto;
    bottom: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-stat-card {
    height: 106px;
  }

  .customer-stat-card__number {
    font-size: 36px;
  }

  .customer-cases,
  .customer-schools {
    height: auto;
    padding: 72px 0;
  }

  .customer-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-case-card {
    height: auto;
    min-height: 360px;
    aspect-ratio: 392 / 360;
  }

  .customer-school-panel {
    height: auto;
    padding: 34px;
  }

  .customer-school-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
  }
}

@media (max-width: 720px) {
  .customer-section-title {
    font-size: 27px;
  }

  .customer-hero__inner h1 {
    font-size: 40px;
  }

  .customer-case-grid {
    grid-template-columns: 1fr;
  }

  .customer-case-card {
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .page-customer .site-header > .container,
  .page-customer .site-footer > .container,
  .customer-hero > .container,
  .customer-cases > .container,
  .customer-schools > .container {
    width: min(calc(100% - 28px), 560px);
  }

  .customer-hero {
    height: 620px;
    background-position: 50% center;
  }

  .customer-hero__inner {
    height: 300px;
    padding-top: 82px;
  }

  .customer-hero__inner h1 {
    font-size: 36px;
  }

  .customer-hero__inner > p {
    font-size: 13px;
  }

  .customer-stat-grid {
    bottom: 24px;
    gap: 12px;
  }

  .customer-stat-card {
    height: 118px;
    border-radius: 12px;
  }

  .customer-stat-card__number {
    font-size: 32px;
  }

  .customer-stat-card__number span {
    margin-left: 4px;
    font-size: 20px;
  }

  .customer-cases,
  .customer-schools {
    padding: 58px 0;
  }

  .customer-cases .customer-section-title {
    margin-bottom: 30px;
  }

  .customer-case-card__details {
    padding: 20px;
  }

  .customer-case-card__caption h3,
  .customer-case-card__detail-title {
    font-size: 18px;
  }

  .customer-case-card__copy p {
    font-size: 13px;
    line-height: 23px;
  }

  .customer-schools__lead {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 24px;
  }

  .customer-school-panel {
    padding: 28px 18px;
  }

  .customer-school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .customer-case-card {
    aspect-ratio: auto;
    min-height: 390px;
  }
}

