* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #333;
}

::selection {
  background: #0b372dbb;
}

.logo {
  width: 100px;
}

header {
  position: absolute;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  top: 0;
  left: 0;
  padding: 1rem 0;
  z-index: 9999;
}

header nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header ul {
  display: flex;
  list-style: none;
  align-items: center;
}

header ul a {
  text-decoration: none;
  color: #fff;
  padding: 0 1.5rem;
  font-weight: 300;
  font-size: 1.25rem;
}

.search a {
  font-size: 1.5rem;
  padding: 0 3rem;
}

.hamburger {
  padding-left: 1.5rem;
}

.hamburger a {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: rgba(115, 115, 115, 0.7);
  backdrop-filter: blur(10px);
}

.hamburger .bar {
  position: relative;
  width: 52%;
  height: 1.3px;
  background: #fff;
  border-radius: 2px;
}

.hamburger .bar::before,
.hamburger .bar::after {
  position: absolute;
  content: "";
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  background: inherit;
  border-radius: 2px;
}

.hamburger .bar::before {
  top: -4.5px;
}

.hamburger .bar::after {
  top: 4.5px;
}

main {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* 
  如果要适用各种屏幕，那么请将视差元素中使用的绝对值改成相对值百分数。
  本示例中屏幕参数为：1920*1080
 */
.bg-img {
  position: absolute;
  /* 宽度2800，屏幕宽度1920 2800/1080=2.5926 */
  /* width: 2800px; */
  width: 145.83%;
  /* 高度390，屏幕高度1080 390/1080=0.3611 */
  /* top: calc(50% - 390px); */
  top: 13.89%;
  /* 宽度10，屏幕宽度1920 10/1920=0.0005 */
  /* left: calc(50% + 10px); */
  left: 50.05%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.fog-7 {
  position: absolute;
  width: 1900px;
  width: 1900px;
  top: calc(50% - 100px);
  top: calc(50% - 100px);
  left: calc(50% + 300px);
  left: calc(50% + 300px);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.mountain_10 {
  position: absolute;
  width: 892px;
  top: calc(50% + 69px);
  left: calc(50% + 230px);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.fog-6 {
  position: absolute;
  width: 1610px;
  top: calc(50% + 85px);
  left: calc(50% + 10px);
  transform: translate(-50%, -50%);
  z-index: 4;
}

.mountain_9 {
  position: absolute;
  width: 470px;
  top: calc(50% + 113px);
  left: calc(50% - 457px);
  transform: translate(-50%, -50%);
  z-index: 5;
}

.mountain_8 {
  position: absolute;
  width: 810px;
  top: calc(50% + 86px);
  left: calc(50% - 202px);
  transform: translate(-50%, -50%);
  z-index: 6;
}

.fog-5 {
  position: absolute;
  width: 450;
  top: calc(50% + 160px);
  left: calc(50% + 20px);
  transform: translate(-50%, -50%);
  z-index: 7;
}

.mountain_7 {
  position: absolute;
  width: 538px;
  top: calc(50% + 123px);
  left: calc(50% + 305px);
  transform: translate(-50%, -50%);
  z-index: 8;
}

.text {
  position: absolute;
  z-index: 9;
  top: calc(50% - 130px);
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.text h2 {
  font-weight: 100;
  font-size: 6.5rem;
}

.text h1 {
  font-weight: 800;
  font-size: 8rem;
  line-height: 0.88;
}

.mountain_6 {
  position: absolute;
  width: 408px;
  top: calc(50% + 60px);
  left: calc(50% + 590px);
  transform: translate(-50%, -50%);
  z-index: 10;
}

.fog_4 {
  position: absolute;
  width: 590px;
  top: calc(50% + 223px);
  left: calc(50% - 60px);
  transform: translate(-50%, -50%);
  z-index: 11;
}

.mountain_5 {
  position: absolute;
  width: 625px;
  top: calc(50% + 250px);
  left: calc(50% + 130px);
  transform: translate(-50%, -50%);
  z-index: 12;
}

.fog_3 {
  position: absolute;
  width: 1600px;
  top: calc(50% + 110px);
  left: calc(50% - 15px);
  transform: translate(-50%, -50%);
  z-index: 13;
}

.mountain_4 {
  position: absolute;
  width: 780px;
  top: calc(50% + 196px);
  left: calc(50% - 381.5px);
  transform: translate(-50%, -50%);
  z-index: 14;
}

.mountain_3 {
  position: absolute;
  width: 410px;
  top: calc(50% + 115px);
  left: calc(50% + 655px);
  transform: translate(-50%, -50%);
  z-index: 15;
}

.fog_2 {
  position: absolute;
  width: 1560px;
  top: calc(50% + 147px);
  left: calc(50% - 30px);
  transform: translate(-50%, -50%);
  z-index: 16;
}

.mountain_2 {
  position: absolute;
  width: 690px;
  top: calc(50% + 154px);
  left: calc(50% + 412px);
  transform: translate(-50%, -50%);
  z-index: 17;
}

.mountain_1 {
  position: absolute;
  width: 530px;
  top: calc(50% + 17px);
  left: calc(50% - 601px);
  transform: translate(-50%, -50%);
  z-index: 18;
}

.sun-rays {
  position: absolute;
  top: 0;
  right: 0;
  width: 595px;
  z-index: 19;
  pointer-events: none;
}

.black_shadow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  pointer-events: none;
}

.fog_1 {
  position: absolute;
  width: 1600px;
  top: calc(100% - 355px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 21;
}

.vignage {
  position: absolute;
  z-index: 100;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 7) 100%
  );
  pointer-events: none;
}

.parallax {
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: 0.45s cubic-bezier(0.2, 0.49, 0.32, 0.99);
}

@media (max-width: 1100px) {
  .text h1 {
    font-size: 5.8rem;
  }
  .text h2 {
    font-size: 4.7rem;
  }
}

@media (max-width: 725px) {
  .text h1 {
    font-size: 5rem;
    line-height: 1.1;
  }
  .text h2 {
    font-size: 4.1rem;
    line-height: 1.1;
  }
  header nav {
    padding: 0 1rem;
  }
  .logo {
    width: 75px;
  }
  header ul a {
    font-size: 0.73rem;
    padding: 0 0.9rem;
  }
  .search a {
    font-size: 0.85rem;
    padding: 0 1.8rem;
  }

  .hamburger {
    padding-left: 0.9rem;
  }
  .hamburger a {
    height: 30px;
  }
}

@media (max-width: 520px) {
  .text h1 {
    font-size: 3.3rem;
  }
  .text h2 {
    font-size: 2.6rem;
  }
}
