/* Home */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #41113d, #0d0c36);
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.square {
  width: 20px;
  height: 20px;
  background: #fbffc5;
  animation: jump 1.2s infinite ease-in-out;
}

.square:nth-child(2) {
  animation-delay: 0.2s;
  background: #dee491;
}

.square:nth-child(3) {
  animation-delay: 0.4s;
  background: #b3bb3d;
}

@keyframes jump {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

body[data-page="home"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1974&q=80')
    center/cover no-repeat;
  filter: blur(25px) brightness(0.55) saturate(1.2);
  z-index: -3;
}

body[data-page="home"]::after {
  content: '';
  position: fixed;
  inset: -20px;
  background: rgba(10, 18, 30, 0.85);
  backdrop-filter: blur(6px);
  z-index: -2;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 76vh;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height));
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-banner__title {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; /* 字体 */
  font-weight: 800; /* 字体粗细 */
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 5vw, 5.2rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body[data-page="home"] main {
  margin-top: var(--nav-height);
}

.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  min-height: calc(100vh - 120px);
  margin-top: -40vh;
}

.hero__left {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-top: 80px;
}

.hero__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}

.hero__profile img {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  position: relative;
  top: -160px;
  margin-bottom: -160px;
  box-shadow: 0 15px 40px rgba(9, 15, 28, 0.5);
}

.hero__profile .name {
  font-size: 1.35rem;
  font-weight: 600;
}

.hero__profile .role {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.hero__socials {
  display: flex;
  gap: 0.75rem;
}

.hero__socials a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero__socials a:hover {
  transform: translateY(-4px);
  background: rgba(156, 103, 255, 0.35);
}

.hero__socials i {
  width: 22px;
  height: 22px;
  color: var(--secondary-color);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero__socials a:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(255, 213, 128, 0.6));
}

.hero__right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 32px;
  background: rgba(15, 28, 45, 0.5);
  border: 0 solid var(--glass-border);
  backdrop-filter: blur(var(--blur-radius));
  box-shadow: 0 20px 40px rgba(9, 15, 28, 0.35);
}

.hero__headline h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  margin: 0;
}

.typed-text {
  min-height: 2.5rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
}

.hero__stat-card {
  background: rgba(15, 28, 45, 0.65);
  border-radius: 24px;
  padding: 1.5rem;
  border: 0 solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 35px rgba(5, 12, 24, 0.35);
  position: relative;
  overflow: hidden;
}

.hero__stat-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -30% 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(156, 103, 255, 0.35), transparent 65%);
  transform: translate(-50%, 0);
  z-index: -1;
}

.hero__stat-value {
  font-size: 2.5rem;
  font-weight: 600;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(102, 31, 119, 0.5) 0%, rgba(40, 23, 99, 0.5) 100%);
  backdrop-filter: blur(10px);
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 107, 255, 0.4);
}

.music-toggle:active {
  transform: translateY(0);
}

.music-toggle span {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.parallax-section {
  position: relative;
  padding: 3rem;
  border-radius: 32px;
  background: rgba(15, 28, 45, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(9, 15, 28, 0.35);
  overflow: hidden;
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.card-one {
  background: rgba(6, 12, 21, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__left {
    position: relative;
    top: 0;
  }
}

@media (max-width: 600px) {
  .hero__headline h1 {
    font-size: 2.6rem;
  }
}
