body {
  margin: 0;
  padding: 0;
  text-align: center;
}

a {
  text-decoration: none;
  color: #333;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;

  position: sticky;
  left: 0;
  top: 0;
  z-index: 1000;

  width: 100%;
  height: 64px;
  background-color: #fff;
  border-bottom: 1px solid #eee;

  font-size: 14px;
}

body > main {
  max-width: 1440px;
  margin: 0 auto;
}

.nav a {
  margin: 0 40px;
}

.nav a.active {
  color: #648ffc;
  font-weight: bold;
}

/* 用于矫正锚点定位被顶部栏遮挡 */
#banner,
#product,
#project,
#partner {
  padding-top: 64px;
  margin-top: -64px;
}

#banner {
  position: relative;
}

#banner .title {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 10;

  margin-left: 8px;
  font-size: 36px;
  font-weight: bold;
  color: #f8f8f8;
  letter-spacing: 8px;
  white-space: nowrap;
}

#banner .button {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  z-index: 10;

  padding: 8px 32px;
  border-radius: 32px;
  border: 1px solid #ffffff;
  cursor: pointer;
}

#banner .button__text {
  margin-left: 8px;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 8px;
}

.banner__img {
  width: 100%;
  object-fit: contain;
}

body .swiper-pagination-bullet-active {
  background: #fff;
}

.title {
  margin: 0 auto;
  padding-top: calc(60 / 1440 * 100%);

  text-align: center;
}

.title__text {
  margin-left: 4px;

  font-size: 32px;
  font-weight: 400;
  color: #333333;
  letter-spacing: 4px;
}

.subtitle {
  margin: 16px auto 26px;

  text-align: center;
}

.subtitle__text {
  margin-left: 6px;

  font-size: 16px;
  font-weight: 300;
  color: #333333;
  letter-spacing: 6px;
}

.know-more-button {
  display: inline-block;

  padding: 10px 42px;
  margin: 0 auto 50px;
  border: 1px solid #2c2c2c;
  border-radius: 32px;

  text-align: center;

  cursor: pointer;
}

.know-more-button__text {
  width: 100%;
  margin-left: 8px;

  font-size: 16px;
  font-weight: 400;
  color: #2c2c2c;
  letter-spacing: 8px;
}

.product__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: calc(104 / 1440 * 100%);
  row-gap: 50px;

  box-sizing: border-box;
  width: 100%;
}

.product__item {
  width: 38%;
  height: 38%;
}

.product__item .product__img {
  width: 100%;
  height: 100%;
}

.product__item .product__img:nth-child(1) {
  border-radius: 0 54px 0 0;
}

.product__item .product__img:nth-child(2) {
  border-radius: 54px 0 0 0;
}

.product__item .product__img:nth-child(3),
.product__img:nth-child(4) {
  border-radius: 0 0 54px 0;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 24px;
}

.product-info__text {
  font-size: 32px;
  font-weight: 500;
  color: #292f36;
}

.product-info .link {
  width: 70px;
  height: 70px;
}

#project .swiper-slide {
  width: calc(920 / 1440 * 100%);
  height: calc(518 / 1440 * 100%);
  border-radius: 12px;
  overflow: hidden;
}

#project img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

#partner {
  width: calc((1440 - 240) / 1440 * 100%);
  margin: calc(56 / 1440 * 100%) auto;
}

.partner__list {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;

  box-sizing: border-box;
}

.partner__img {
  flex: 1;
  width: 33%;

  border-radius: 12px;
}

.partner__img:first-child {
  width: 66%;
}

#us {
  padding: calc(56 / 1440 * 100%) 0;
  background-color: #f5f5f5;
}

#us .content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;

  max-width: 1440px;
}

#us .content .list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px 0;
}

#us .content .list .first {
  font-weight: bold;
}

#us .content .list .first,
a {
  font-size: 12px;
  color: rgba(153, 153, 153, 0.7);
}

#footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

#footer a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 30px;
}

#footer span {
  font-size: 12px;
  color: #999;
}

#footer img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

@media screen and (max-width: 1024px) {
  .nav a {
    margin: 0 20px;
  }

  .title__text {
    font-size: 28px;
  }

  .subtitle__text {
    font-size: 14px;
  }

  .know-more-button {
    padding: 8px 32px;
    margin: 0 auto 40px;
  }

  .know-more-button__text {
    font-size: 14px;
  }

  .product-info__text {
    font-size: 28px;
  }

  .product-info .link {
    width: 50px;
    height: 50px;
  }
}
@media screen and (max-width: 540px) {
  .nav a {
    margin: 0 10px;
  }

  #banner .title {
    top: 40%;
    font-size: 28px;
  }

  #banner .button {
    top: 70%;

    padding: 4px 16px;
    border-radius: 16px;
  }

  #banner .button__text {
    font-size: 14px;
  }

  .title__text {
    font-size: 24px;
  }

  .subtitle__text {
    font-size: 12px;
  }

  .know-more-button {
    padding: 6px 24px;
    margin: 0 auto 30px;
  }

  .know-more-button__text {
    font-size: 12px;
  }

  .product-info__text {
    font-size: 18px;
  }

  .product-info .link {
    width: 30px;
    height: 30px;
  }
}
