* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 50%, #f0f4f8 100%);
}

/* 动态背景光效 */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 15s ease-in-out infinite;
}

.light-orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.8) 0%, rgba(120, 200, 255, 0.2) 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.light-orb:nth-child(2) {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(180, 220, 255, 0.7) 0%, rgba(180, 220, 255, 0.15) 70%);
  top: 50%;
  right: -150px;
  animation-delay: -5s;
}

.light-orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 230, 255, 0.6) 0%, rgba(200, 230, 255, 0.1) 70%);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}

.light-orb:nth-child(4) {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(150, 210, 255, 0.5) 0%, rgba(150, 210, 255, 0.08) 70%);
  top: 30%;
  left: 50%;
  animation-delay: -7s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(100px, -50px) scale(1.1);
  }

  50% {
    transform: translate(50px, 100px) scale(0.9);
  }

  75% {
    transform: translate(-50px, 50px) scale(1.05);
  }
}

/* 流动光效线条 */
.flow-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.flow-line {
  position: absolute;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 180, 255, 0.8), transparent);
  animation: flow 8s linear infinite;
}

.flow-line:nth-child(1) {
  top: 20%;
  animation-delay: 0s;
}

.flow-line:nth-child(2) {
  top: 40%;
  animation-delay: -2s;
}

.flow-line:nth-child(3) {
  top: 60%;
  animation-delay: -4s;
}

.flow-line:nth-child(4) {
  top: 80%;
  animation-delay: -6s;
}

@keyframes flow {
  0% {
    left: -200px;
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* 主内容区域 */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Home文字样式 */
.home-text {
  font-size: 0;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  white-space: nowrap;
}

.home-text::before,
.home-text::after {
  content: 'Home';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: clamp(80px, 25vw, 200px);
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: inherit;
  line-height: 1;
}

.home-text::before {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(8px);
  opacity: 0.8;
  animation: gradient-shift 8s ease infinite;
  z-index: -1;
}

.home-text::after {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite reverse;
  z-index: -2;
}

.home-text span {
  display: inline-block;
  font-size: clamp(80px, 25vw, 200px);
  font-weight: inherit;
  letter-spacing: 0;
  background: linear-gradient(45deg, #4facfe, #00f2fe, #4facfe);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float-letter 6s ease-in-out infinite alternate, gradient-shift 4s ease infinite;
  transform: translateY(0);
}

.home-text span:nth-child(1) {
  animation-delay: 0s, 0s;
}

.home-text span:nth-child(2) {
  animation-delay: 0.2s, 0.5s;
}

.home-text span:nth-child(3) {
  animation-delay: 0.4s, 1s;
}

.home-text span:nth-child(4) {
  animation-delay: 0.6s, 1.5s;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-letter {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-8px) rotate(0.8deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(8px) rotate(-0.8deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* 悬停效果 */
.home-text:hover {
  transform: scale(1.05);
}

.home-text:hover::before {
  filter: blur(12px);
  opacity: 1;
}

.home-text:hover span {
  animation: float-letter-hover 3s ease-in-out infinite alternate;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-text:hover span:nth-child(1) {
  animation-delay: 0s;
}

.home-text:hover span:nth-child(2) {
  animation-delay: 0.15s;
}

.home-text:hover span:nth-child(3) {
  animation-delay: 0.3s;
}

.home-text:hover span:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes float-letter-hover {
  0% {
    transform: translateY(0) scale(1);
  }

  30% {
    transform: translateY(-15px) scale(1.05);
  }

  70% {
    transform: translateY(-15px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* 点击涟漪效果 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 180, 255, 0.4) 0%, transparent 70%);
  animation: ripple-effect 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-effect {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 800px;
    height: 800px;
    opacity: 0;
  }
}

/* 鼠标跟随光效 */
.mouse-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 180, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  transition: transform 0.1s ease-out;
}

/* 装饰性粒子 */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(100, 180, 255, 0.6);
  border-radius: 50%;
  transform: translateY(100vh) rotate(0deg);
  opacity: 0;
  animation: particle-float 10s linear infinite;
  animation-fill-mode: backwards;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* 副标题 */
.subtitle {
  margin-top: 40px;
  font-size: clamp(16px, 3vw, 24px);
  color: #666;
  font-weight: 300;
  user-select: none;
  letter-spacing: 8px;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in-up 1s ease-out 1s forwards;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
}

.subtitle:hover {
  color: #4facfe;
  letter-spacing: 12px;
  transform: translateY(-5px);
  text-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.subtitle:active {
  transform: translateY(-3px);
}

.hover-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hover-trigger:hover .nav-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.nav-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  justify-content: center;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  white-space: nowrap;
  justify-content: center;
}

.nav-btn {
  position: relative;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-btn:hover {
  color: #4facfe;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.2);
}

.nav-btn:active {
  transform: translateY(0);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .home-text {
    letter-spacing: -4px;
  }

  .light-orb {
    filter: blur(60px);
  }

  .light-orb:nth-child(1) {
    width: 250px;
    height: 250px;
  }

  .light-orb:nth-child(2) {
    width: 200px;
    height: 200px;
  }

  .light-orb:nth-child(3) {
    width: 180px;
    height: 180px;
  }

  .subtitle {
    letter-spacing: 4px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .home-text {
    letter-spacing: -2px;
  }

  .subtitle {
    letter-spacing: 2px;
  }
}
