/* CSS Award级别的自定义样式 */

/* 全局样式 */
:root {
  --hxm-orange: #FF6B35;
  --hxm-orange-dark: #E55D2B;
  --hxm-orange-light: #FF8A65;
  --hxm-gray-dark: #1A1A1A;
  --hxm-gray-light: #F8F9FA;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--hxm-gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--hxm-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hxm-orange-dark);
}

/* 加载动画 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hxm-gray-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-logo {
  font-size: 3rem;
  font-weight: bold;
  color: var(--hxm-orange);
  margin-bottom: 2rem;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--hxm-orange), var(--hxm-orange-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 磁性按钮效果 */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  cursor: pointer;
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

/* 粒子效果容器 */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--hxm-orange);
  border-radius: 50%;
  opacity: 0.7;
  animation: particleFloat 3s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

/* 渐变背景动画 */
.gradient-bg {
  background: linear-gradient(-45deg, #FF6B35, #E55D2B, #FF8A65, #FF6B35);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 文字打字机效果 */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  /* 移除CSS动画，改由JavaScript控制 */
}

.typewriter-cursor {
  border-right: 3px solid var(--hxm-orange);
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--hxm-orange); }
}

/* 视差滚动元素 */
.parallax-element {
  will-change: transform;
}

/* 流体形状 */
.fluid-shape {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* 悬停发光效果 */
.glow-effect {
  position: relative;
  transition: all 0.3s ease;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, var(--hxm-orange), var(--hxm-orange-light));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
  opacity: 1;
}

/* 卡片倾斜效果 */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
}

/* 语言切换器样式 */
.lang-switcher {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-option {
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-option.active {
  background: var(--hxm-orange);
  color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .typewriter {
    font-size: 1.5rem;
  }
  
  .loader-logo {
    font-size: 2rem;
  }
  
  .particle {
    width: 2px;
    height: 2px;
  }
}

/* 滚动指示器 */
/* .scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
} */

.scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--hxm-orange), var(--hxm-orange-light));
  transition: width 0.1s ease;
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} 