﻿/* ========================================
   XPASS - �߶�Hero������ʽ
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* ������Ƶ */
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.hero__video.loaded {
  opacity: 1;
}

/* ����ռλͼ */
.hero__poster {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* ���ӻ��� */
#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.6;
}

/* �������� */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* �������� */
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 1.2s var(--ease-smooth) forwards;
}

/* ���� */
.hero__title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.hero__title-logo {
  height: clamp(48px, 8vw, 96px);
  width: auto;

}

/* ��ɫ��������Ч�� */
.hero__title {
  background: linear-gradient(135deg,
      #E0E0E0 0%,
      #C0C0C0 25%,
      #bcbd76 50%,
      #929292 75%,
      #f5f5f5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: silverShine 4s linear infinite;
  text-shadow: 0 0 80px rgba(192, 192, 192, 0.4);
  filter: drop-shadow(0 4px 8px rgba(192, 192, 192, 0.25));
}

.hero__title1 {
  background: linear-gradient(135deg,
      #E0E0E0 0%,
      #C0C0C0 25%,
      #bcbd76 50%,
      #929292 75%,
      #f5f5f5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: silverShine 4s linear infinite;
  text-shadow: 0 0 80px rgba(192, 192, 192, 0.4);
  filter: drop-shadow(0 4px 8px rgba(192, 192, 192, 0.25));
}

/* ������ */
.hero__subtitle {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 1;
  animation: fadeInUp 1.2s var(--ease-smooth) 0.3s forwards;
  position: relative;
}

.hero__subtitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ֧���ı� */
.hero__support {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-muted);
  margin-bottom: 48px;
  letter-spacing: 1px;
  opacity: 1;
  animation: fadeInUp 1.2s var(--ease-smooth) 0.6s forwards;
}

/* ������ť�� */
.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 1;
  animation: fadeInUp 1.2s var(--ease-smooth) 0.9s forwards;
}


/* ������ʾ */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
  transition: var(--transition-fast);
  cursor: pointer;
}

.hero__scroll-hint:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(-45deg) translateY(0);
  }

  50% {
    transform: rotate(-45deg) translateY(10px);
  }
}

/* ========================================
   ��Ӧʽ���
   ======================================== */

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    /* ʹ�� svh ��λ�����ƶ��� */
  }

  .hero__content {
    padding: 0 20px;
  }

  .hero__title {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .hero__subtitle {
    margin-bottom: 12px;
  }

  .hero__support {
    margin-bottom: 32px;
  }

  .hero__actions {
    gap: 16px;
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__scroll-hint {
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 0 16px;
  }

  .hero__subtitle::after {
    width: 40px;
  }

  .hero__actions .btn {
    max-width: 100%;
  }
}

/* ========================================
   �����Ż�
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  .hero__title,
  .hero__subtitle,
  .hero__support,
  .hero__actions,
  .hero__scroll-arrow,
  .hero__title-logo {
    animation: none;
  }

  .hero__content {
    animation: fadeIn 0.5s ease-out forwards;
  }
}

/* �ƶ�����Ƶ�Ż� */
@media (max-width: 768px) {

  /* �ƶ��˱�����Ƶ���ţ�ʹ�������ز��� */
  .hero__video {
    /* �ƶ��˼�����Ƶ�����Խ�ʡ���� */
    image-rendering: auto;
  }

  /* �ƶ����Ż�����Ч�� */
  #particles {
    opacity: 0.4;
  }
}

/* ��ɫģʽ���Ż���Ĭ�Ϻ�ɫ���⣩ */
@media (prefers-color-scheme: dark) {
  .hero__video.loaded {
    opacity: 1;
  }
}