/* 统一 CSS 变量 */
:root {
  --main-color: #007bff;
  --bg-color: #10101d;
  --text-color: #fff;
}

/* 设置 body 样式 */
body {
  display: flex;
  height: 100vh;
  margin: 0;
  font-family: "PingFang SC", sans-serif;
  background: #05060f
    linear-gradient(0deg, rgba(216, 236, 248, 0.06), rgba(152, 192, 239, 0.06));
}

.content {
  display: none;
}

.content.active {
  display: block;
}

/* 设置导航栏样式 */
.navbar {
  position: fixed;
  top: 24px;
  display: flex;
  justify-content: center;
  width: 100vw;
  z-index: 999999;
}

/* 设置导航项样式 */
.navbar ul {
  display: flex;
  gap: 8px;
  align-items: center;

  height: fit-content;
  margin: 0;
  padding: 4px 4px;
  list-style: none;
  background: rgba(24, 29, 41, 0.6);
  border-radius: 50px;
  box-shadow: 0px 0px 0px 1px rgba(186, 214, 247, 0.08) inset;
  opacity: 0; /* 初始透明度为 0 */
  backdrop-filter: blur(12px);
  animation: fadeInUp 1s ease-in-out 2s forwards; /* 添加2秒延迟 */
}

.navbar ul li a {
  display: block;
  padding: 12px 24px;
  color: rgba(199, 211, 234, 0.5); /* 50% 透明度的 #C7D3EA */
  font-size: 16px;
  text-decoration: none;
  border-radius: 32px;
  transition: background 0.3s ease, filter 0.3s ease;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  vertical-align: middle;
}

/* 鼠标悬浮效果 */
.navbar ul li a:hover {
  color: rgba(199, 211, 234);
  font-weight: 700;
}

/* 选中状态样式 */
.navbar ul li.selected a {
  color: rgba(199, 211, 234);
  font-weight: 700;
  background: rgba(186, 207, 247, 0.04);
  border-radius: 999px;
  box-shadow: 0px 1px 1px 0px rgba(216, 236, 248, 0.2) inset,
    0px 24px 48px 0px rgba(168, 216, 245, 0.06) inset,
    0px 0px 0px 1px rgba(186, 207, 247, 0.12) inset;
}

/* icon悬浮状态样式 */
.navbar ul li a:hover svg {
  color: #c7d3ea;
}

/* icon默认状态样式 */
.selected svg {
  color: #c7d3ea;
}

/* 浮出效果动画 */
@keyframes fadeInUp {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 确保 canvas 在 z-index 上低于视频和 svg */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* 防止 canvas 阻挡鼠标事件 */
}

/* logo-container 样式 */
.logo-container {
  position: absolute;
  top: 395px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

/* video 样式 */
.logo-video {
  position: absolute;
  z-index: 999;
  width: 100%;
  height: auto;
  object-fit: cover;
  mix-blend-mode: screen;
}

/* svg 样式 */
.logo-svg {
  position: absolute;
  z-index: 99;
  width: 84.9%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: fadeIn 2s ease-in-out 0.5s forwards;
}

/* 动画 */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 聚光灯 */
.spotlight {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 64em;
  margin: 0 auto;
  overflow: hidden;
  transition: filter 1s ease-in-out;
  pointer-events: none;
}

.spotlight > div {
  position: absolute;
  top: 3em;
  right: 0;
  left: 0;
  z-index: -1;
  width: 30em;
  height: max(45em, 86vh);
  margin: 0 auto;
  background-image: conic-gradient(
    from 0deg at 50% -5%,
    transparent 45%,
    rgba(124, 145, 182, 0.3) 49%,
    rgba(124, 145, 182, 0.5) 50%,
    rgba(124, 145, 182, 0.3) 51%,
    transparent 55%
  );
  border-radius: 0 0 50% 50%;
  transform-origin: 50% 0;
  filter: blur(15px) opacity(0);
  animation: load 2s ease-in-out forwards 2s, loadrot 2s ease-in-out forwards 2s,
    spotlight 21s ease-in-out infinite reverse 2s;
}

.spotlight > div:nth-child(1) {
  animation: load 2s ease-in-out forwards 2s, loadrot 2s ease-in-out forwards 2s,
    spotlight 17s ease-in-out infinite 2s;
  rotate: 20deg;
}

.spotlight > div:nth-child(2) {
  animation: load 2s ease-in-out forwards 2s, loadrot 2s ease-in-out forwards 2s,
    spotlight 14s ease-in-out infinite 2s;
  rotate: -20deg;
}
@keyframes loadrot {
  0% {
    rotate: 0deg;
    scale: 0;
  }
  100% {
    scale: 1;
  }
}
@keyframes spotlight {
  0% {
    transform: rotateZ(0deg) scale(1);
    filter: blur(15px) opacity(0.5);
  }
  20% {
    transform: rotateZ(-1deg) scale(1.2);
    filter: blur(16px) opacity(0.6);
  }
  40% {
    transform: rotateZ(2deg) scale(1.3);
    filter: blur(14px) opacity(0.4);
  }
  60% {
    transform: rotateZ(-2deg) scale(1.2);
    filter: blur(15px) opacity(0.6);
  }
  80% {
    transform: rotateZ(1deg) scale(1.1);
    filter: blur(13px) opacity(0.4);
  }
  100% {
    transform: rotateZ(0deg) scale(1);
    filter: blur(15px) opacity(0.5);
  }
}

.heroP {
  position: absolute;
  top: 490px;
  right: 0;
  left: 0;
  width: fit-content;
  height: fit-content;
  margin: 0 auto;
  color: #d8ecf8;
  font-weight: 700;
  font-size: 24px;
  text-shadow: 0 2px 16px rgba(174, 207, 242, 0.24);
  background: linear-gradient(0deg, #d8ecf8 0, #98c0ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translate(0, -1em); /* 初始位置设为0, 1em */
  opacity: 0;
  animation: load 2s ease-out 2s forwards, up 1.4s ease-out 2s forwards;
  -webkit-text-fill-color: transparent;
}

@keyframes load {
  to {
    opacity: 1;
  }
}

@keyframes up {
  to {
    transform: translate(0, 0);
  }
}

.heroSubP {
  position: absolute;
  top: 228px;
  right: 0;
  left: 0;
  height: fit-content;
  margin: auto;
  opacity: 0;
  animation: load3 2s ease-in 0s forwards, up 1.4s ease-out 0s forwards;
}
@keyframes load3 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.7;
  }
}
.heroSubP p {
  position: relative;
  width: fit-content;
  margin: auto;
  color: #d8ecf8;
  font-size: 18px;
  text-shadow: 0 2px 16px rgba(174, 207, 242, 0.24);
  background: linear-gradient(0deg, #d8ecf8 0, #98c0ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.heroSubP p::before,
.heroSubP p::after {
  position: absolute;
  top: 60%;
  display: block;
  width: 5em;
  height: 1px;
  opacity: 0;
  animation: load2 1.4s ease-in-out 0s forwards, up 1.4s ease-out 0s forwards;
  content: "";
}
@keyframes load2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.3;
  }
}
.heroSubP p::before {
  right: 120%;
  background: linear-gradient(-90deg, #9dc3f7 0%, transparent 100%);
  translate: 0em 0;
}
.heroSubP p::after {
  left: 120%;
  background: linear-gradient(90deg, #9dc3f7 0%, transparent 100%);
  translate: 0em 0;
}

/* 线条动画 */
.accent-lines {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 64em;
  pointer-events: none;
  --accent-lines-clr: rgba(186, 215, 247, 0.18);
}
.accent-lines > div {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: auto;
}
.accent-lines > div:nth-child(1) > div {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 1px;
  margin: auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-lines-clr),
    transparent
  );
  opacity: 0;
  animation: accentload 2s ease-out 2.4s forwards;
  scale: 0;
}
.accent-lines > div:nth-child(1) > div:nth-child(1) {
  top: 6em;
}
.accent-lines > div:nth-child(1) > div:nth-child(2) {
  top: 11em;
}
.accent-lines > div:nth-child(1) > div:nth-child(3) {
  top: 19em;
}
.accent-lines > div:nth-child(1) > div:nth-child(4) {
  top: 30em;
}
.accent-lines > div:nth-child(1) > div:nth-child(5) {
  top: 38em;
}
.accent-lines > div:nth-child(2) > div {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 1px;
  height: 100%;
  margin: auto;
  background: var(--accent-lines-clr);
}
@keyframes accentload {
  0% {
    opacity: 0;
    scale: 0;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

.accent-lines > div:nth-child(2) > div {
  opacity: 0;
  animation: accentload 2s ease-out 2s forwards;
  scale: 0;
}
.accent-lines > div:nth-child(2) > div:nth-child(1) {
  left: 32em;
}
.accent-lines > div:nth-child(2) > div:nth-child(2) {
  left: 48em;
}
.accent-lines > div:nth-child(2) > div:nth-child(3) {
  right: 32em;
}
.accent-lines > div:nth-child(2) > div:nth-child(4) {
  right: 48em;
}

.accent-lines > div:nth-child(1) > div::before,
.accent-lines > div:nth-child(1) > div::after {
  position: absolute;
  right: 0;
  left: 0;
  display: none;
  width: 0.2em;
  height: 0.2em;
  margin: auto;
  background: #9dc3f7;
  border-radius: 1em;

  opacity: 0;
  animation: accentload 2s ease-out 4.4s forwards;
  content: "";
  translate: 0 -1px;
  scale: 0;
}

.accent-lines > div:nth-child(1) > div:nth-child(3)::before {
  left: 32em;
  display: block;
}
.accent-lines > div:nth-child(1) > div:nth-child(3)::after {
  right: 32em;
  display: block;
}
.accent-lines > div:nth-child(1) > div:nth-child(4)::before {
  left: 32em;
  display: block;
}
.accent-lines > div:nth-child(1) > div:nth-child(4)::after {
  right: 32em;
  display: block;
}
.accent-lines > div:nth-child(1) > div:nth-child(5)::before {
  left: 32em;
  display: block;
}
.accent-lines > div:nth-child(1) > div:nth-child(5)::after {
  right: 32em;
  display: block;
}

.accent-lines > div:nth-child(1) > div:nth-child(2)::before,
.accent-lines > div:nth-child(1) > div:nth-child(2)::after {
  top: 1.5em;
  display: block;
  width: 8em;
  height: 1px;
  border-radius: 0;
  opacity: 0.12;
}
.accent-lines > div:nth-child(1) > div:nth-child(2)::before {
  right: 35em;
  rotate: 45deg;
  translate: -2.5em 2.5em;
}
.accent-lines > div:nth-child(1) > div:nth-child(2)::after {
  right: 35em;
  rotate: -45deg;
  translate: -2.5em 2.5em;
}
.accent-lines > div:nth-child(1) > div:nth-child(1)::before,
.accent-lines > div:nth-child(1) > div:nth-child(1)::after {
  top: 1.5em;
  display: block;
  width: 8em;
  height: 1px;
  border-radius: 0;
  opacity: 0.12;
}
.accent-lines > div:nth-child(1) > div:nth-child(1)::before {
  left: 35em;
  rotate: 45deg;
  translate: 2.5em 7.5em;
}
.accent-lines > div:nth-child(1) > div:nth-child(1)::after {
  left: 35em;
  rotate: -45deg;
  translate: 2.5em 7.5em;
}

.accent-lines > div:nth-child(1) > div:nth-child(2)::before,
.accent-lines > div:nth-child(1) > div:nth-child(2)::after {
  opacity: 0;
  animation: accentload2 2s ease-out 2.4s forwards;
  scale: 0;
}
.accent-lines > div:nth-child(1) > div:nth-child(1)::before,
.accent-lines > div:nth-child(1) > div:nth-child(1)::after {
  opacity: 0;
  animation: accentload3 2s ease-out 2.4s forwards;
  scale: 0;
}
@keyframes accentload2 {
  0% {
    transform: rotate(360deg);
    opacity: 0;
    scale: 0;
  }
  50% {
    scale: 0;
  }
  100% {
    transform: rotate(0deg);
    opacity: 0.12;
    scale: 1;
  }
}
@keyframes accentload3 {
  0% {
    transform: rotate(-360deg);
    opacity: 0;
    scale: 0;
  }
  50% {
    scale: 0;
  }
  100% {
    transform: rotate(0deg);
    opacity: 0.12;
    scale: 1;
  }
}

.first-stack-links {
  position: absolute;
  top: 700px;
  right: 0;
  left: 0;
  z-index: 9;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
}

.first-stack-links img {
  width: 28px;
  height: 28px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: rgba(199, 211, 234);
  background: rgba(24, 29, 41, 0.6);
  border-radius: 16px;
  box-shadow: 0px 0px 0px 1px rgba(186, 214, 247, 0.08) inset;
  transform: translateX(-50%) translateY(20px); /* 初始位置向下偏移 */
  opacity: 0; /* 初始透明度为 0 */
  backdrop-filter: blur(12px);
  animation: fadeInUp 1s ease-in-out 2s forwards; /* 添加2秒延迟 */
}

/* 浮出效果动画 */
@keyframes fadeInUp {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.link-button:hover {
  background: rgba(186, 207, 247, 0.04);
  box-shadow: 0px 1px 1px 0px rgba(216, 236, 248, 0.2) inset,
    0px 24px 48px 0px rgba(168, 216, 245, 0.06) inset,
    0px 0px 0px 1px rgba(186, 207, 247, 0.12) inset;
}

/* 标题动画 */
.mountains {
  position: absolute;
  top: 30em;
  right: 0;
  left: 0;
  width: 100%;
  height: 49em;
  margin: auto;
  pointer-events: none;
}

.mountains::before {
  position: absolute;
  top: 0%;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, #121521 40%, transparent 90%);
  content: "";
}
