/* 现代化设计增强样式 */
:root {
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --modern-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --aurora-duration: 15s;
  --hover-lift: -8px;
  --hover-scale: 1.02;
}

/* 玻璃拟态效果 */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

/* 增强的玻璃拟态效果 - 用于重要元素 */
.glassmorphism-strong {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}

/* Aurora背景动画 */
@keyframes aurora-flow {
  0%, 100% { 
    background-position: 0% 50%; 
    transform: scale(1);
  }
  25% { 
    background-position: 100% 0%; 
    transform: scale(1.01);
  }
  50% { 
    background-position: 100% 50%; 
    transform: scale(1);
  }
  75% { 
    background-position: 0% 100%; 
    transform: scale(1.01);
  }
}

.aurora-bg {
  background-size: 400% 400%;
  animation: aurora-flow var(--aurora-duration) ease infinite;
  position: relative;
  overflow: hidden;
}

/* Aurora叠加效果 */
.aurora-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  animation: aurora-shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes aurora-shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* 微交互增强 */
.modern-hover {
  transition: var(--modern-transition);
  cursor: pointer;
  will-change: transform, box-shadow;
}

.modern-hover:hover {
  transform: translateY(var(--hover-lift)) scale(var(--hover-scale));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 按钮现代化效果 */
.modern-button {
  position: relative;
  overflow: hidden;
  transition: var(--modern-transition);
  border-radius: 12px;
}

.modern-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.5s;
}

.modern-button:hover::before {
  left: 100%;
}

/* 卡片现代化效果 */
.modern-card {
  position: relative;
  transition: var(--modern-transition);
  border-radius: 16px;
  overflow: hidden;
}

.modern-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modern-card:hover::after {
  opacity: 1;
}

/* Hero装饰效果 */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-decoration .fas {
  position: absolute;
  color: white;
}

.hero-decoration .fas:nth-child(1) {
  top: 10%;
  left: 10%;
  font-size: 120px;
  transform: rotate(-15deg);
}

.hero-decoration .fas:nth-child(2) {
  top: 60%;
  right: 15%;
  font-size: 80px;
  transform: rotate(25deg);
}

.hero-decoration .fas:nth-child(3) {
  bottom: 20%;
  left: 20%;
  font-size: 100px;
  transform: rotate(-10deg);
}

/* 脉冲动画 - 用于重要提示 */
@keyframes modern-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.modern-pulse {
  animation: modern-pulse 2s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes modern-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.modern-float {
  animation: modern-float 3s ease-in-out infinite;
}

/* 渐入动画 */
@keyframes modern-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-fade-in {
  animation: modern-fade-in 0.6s ease-out;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .glassmorphism {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .glassmorphism-strong {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .aurora-bg {
    animation-duration: 20s;
  }
  
  .modern-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  :root {
    --hover-lift: -4px;
    --hover-scale: 1.01;
  }
}

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
  .aurora-bg,
  .aurora-bg::before,
  .modern-pulse,
  .modern-float,
  .modern-fade-in {
    animation: none;
  }
  
  .modern-hover {
    transition: none;
  }
  
  :root {
    --modern-transition: none;
  }
}

/* 优雅降级 */
@supports not (backdrop-filter: blur(10px)) {
  .glassmorphism {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .glassmorphism-strong {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .glassmorphism,
  .glassmorphism-strong {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.8);
  }
  
  .modern-card::after {
    display: none;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .glassmorphism-strong {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}