:root {
  --primary-color: #6b2aee;
  --secondary-color: #ff1f8e;
  --text-color: #ffffff;
  --gradient: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: var(--gradient);
  color: var(--text-color);
}
.top {
  background: url(../img/8.png) no-repeat center center;
  background-size: fill;
}
header {
  padding: 1rem 5%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 2rem;
}

.sign-in-btn {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 5%;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.try-now {
  color: var(--text-color);
  border: 1px solid #fff;
  padding: 1rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 2rem;
  background: transparent;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 300px;
}
/* 动画 */
.app-features {
  width: 100%;
  overflow: hidden;
}
.features-grid {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.image-wrapper,
.text-wrapper {
  transition: transform 0.8s ease-out;
}
.image-wrapper {
  transform: translateX(-100%);
}
.text-wrapper {
  transform: translateX(100%);
}
.features-grid.visible {
  opacity: 1;
}
.features-grid.visible .image-wrapper,
.features-grid.visible .text-wrapper {
  transform: translateX(0);
}
/* 动画 */

.app-features {
  padding: 2rem 5%;
  text-align: center;
  background: url(../img/6.png) no-repeat center center;
  background-size: cover;
}
.app-features h2 {
  margin-bottom: 3rem;
  font-size: 3rem;
}
/* 视频部分-开始 */
.videoBox {
  height: 30rem;
  width: 100%;
  background: url(../img/7.png) no-repeat center center;
  background-size: cover;
  position: relative;
}
.videos {
  width: 20rem;
  max-width: 80vw;
  height: 10rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4rem;
  overflow: hidden;
  transition: transform 0.5s ease, height 0.5s ease;
  /* position: absolute;
    top: 2rem;
    left: 45%; */
  /* transform: translateX(-50%); */
}

/* 测试 */
.expand {
  /* transform: translateY(0); */
  height: 25rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 测试 */
.videos video {
  /* width: 30rem;
    height: 20rem;
    margin: 0 auto; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3rem;
}

/* 视频部分-结束 */

/* APP FUNCTION */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.feature-card {
  display: flex;
  margin: 0 auto;
}

.feature-card .feature-text {
  max-width: 20rem;
  padding-top: 1rem;
  text-align: left;
}
.feature-card .text-two {
  margin-right: 4rem;
}

.feature-card .feature-text h3 {
  text-align: left;
  font-size: 1.8rem;
}
.feature-card .feature-text p {
  margin: 1rem 0;
  text-align: left;
  font-size: 1.5rem;
}
.feature-card .arrow {
  max-width: 100px;
}
.feature-card .image-wrapper {
  max-width: 460px;
  margin-bottom: 1.5rem;
  margin-right: 4rem;
}

.app-controls {
  padding: 5rem 5%;
  background: #1b1b3a;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  position: relative;
  height: 100%;
}
.control-grids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.control-grids .control-card {
  padding: 0;
}
.control-grids .control-card img {
  max-width: 250px;
}

.control-card {
  text-align: center;
  padding: 2rem;
}

.control-card img {
  max-width: 200px;
  margin-bottom: 1rem;
}

footer {
  background: url(../img/9.png) no-repeat center center;
  background-size: cover;
  padding: 1rem 5% 2rem;
  text-align: center;
}
.footer-content {
  text-align: left;
}
.footer-content a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 1rem;
  line-height: 2rem;
}

.footer-content p {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image img {
    max-width: 75vw;
  }

  /* #region APP FUNCTION 区域 */
  .features-grid,
  .control-grid {
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
  }

  .features-grid.features-grid-second > .feature-card {
    flex-direction: column-reverse;
  }

  .features-grid.features-grid-second > .feature-card .text-two {
    margin-right: 0;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-card > .image-wrapper {
    max-width: 80vw;
    margin: 0;
  }
  /* #endregion APP FUNCTION */

  /* #region 轮播图区域 */
  .app-controls {
    padding: 5rem 0;
    overflow: hidden;
  }
  .app-controls > .control-grids {
    display: flex;
    gap: 10vw;
    width: fit-content;
    transform: translateX(-95vw);
    transition: all cubic-bezier(0.7, 0, 0.3, 1) 1s;
  }
  .app-controls > .control-grids .control-card {
    width: 50vw;
  }
  .app-controls > .control-grids .control-card img {
    width: 50vw;
    max-width: unset;
  }
  /* #endregion 轮播图 */

  .nav-links {
    display: none;
  }

  .footer-content {
    text-align: center;
  }
}
