/* background-effects.css */

/* 亮色主题背景 */
body:not([data-theme="dark"]) {
  background: linear-gradient(-45deg, #e0eafc, #cfdef3, #d9e4f5, #f0f4f8, #e6e9f0);
  background-size: 600% 600%;
  animation: gradientFlow 12s ease infinite;
  position: relative;
  overflow-x: hidden;
}

/* 暗色主题背景 */
[data-theme="dark"] {
  background: linear-gradient(-45deg, #0c0c1d, #1a1a2e, #16213e, #0f3460, #2d053d);
  background-size: 600% 600%;
  animation: gradientFlow 12s ease infinite;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 粒子效果 - 亮色主题 */
body:not([data-theme="dark"])::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(100, 150, 255, 0.15) 1px, transparent 1px),
    radial-gradient(rgba(255, 100, 200, 0.2) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  animation: particleMove 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

/* 粒子效果 - 暗色主题 */
[data-theme="dark"]::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(100, 80, 255, 0.2) 1px, transparent 1px),
    radial-gradient(rgba(255, 100, 200, 0.3) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  animation: particleMove 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes particleMove {
  0% {
    background-position: 0 0, 20px 20px;
  }
  100% {
    background-position: 40px 40px, 60px 60px;
  }
}

/* 浮动光点容器 */
.floating-points {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* 浮动光点基础样式 - 亮色主题 */
body:not([data-theme="dark"]) .point {
  position: absolute;
  border-radius: 50%;
  background: rgba(100, 150, 255, 0.6);
  box-shadow: 0 0 20px 5px rgba(100, 150, 255, 0.8);
  animation: float 15s infinite ease-in-out;
}

/* 浮动光点基础样式 - 暗色主题 */
[data-theme="dark"] .point {
  position: absolute;
  border-radius: 50%;
  background: rgba(100, 200, 255, 0.6);
  box-shadow: 0 0 20px 5px rgba(100, 200, 255, 0.8);
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(100px, 50px);
  }
  50% {
    transform: translate(200px, -50px);
  }
  75% {
    transform: translate(50px, -100px);
  }
}

/* 容器样式 - 亮色主题 */
body:not([data-theme="dark"]) .container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(100, 100, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* 容器样式 - 暗色主题 */
[data-theme="dark"] .container {
  background: rgba(15, 15, 35, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(100, 100, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* 容器装饰元素 */
.container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(100, 100, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* header样式 - 亮色主题 */
body:not([data-theme="dark"]) header {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px 15px 0 0;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(100, 100, 255, 0.2);
}

/* header样式 - 暗色主题 */
[data-theme="dark"] header {
  background: rgba(10, 10, 30, 0.5);
  border-radius: 15px 15px 0 0;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(100, 100, 255, 0.2);
}

/* footer样式 - 亮色主题 */
body:not([data-theme="dark"]) footer {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 15px 15px;
  margin-top: 2rem;
  border-top: 1px solid rgba(100, 100, 255, 0.2);
  color: #555;
}

/* footer样式 - 暗色主题 */
[data-theme="dark"] footer {
  background: rgba(10, 10, 30, 0.5);
  border-radius: 0 0 15px 15px;
  margin-top: 2rem;
  border-top: 1px solid rgba(100, 100, 255, 0.2);
  color: #a0a0ff;
}

/* 卡片样式 - 亮色主题 */
body:not([data-theme="dark"]) .feature-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(100, 100, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 - 暗色主题 */
[data-theme="dark"] .feature-card {
  background: rgba(30, 30, 60, 0.6);
  border: 1px solid rgba(100, 100, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 卡片悬停效果 */
.feature-card {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.2), transparent);
  transition: 0.6s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(150, 150, 255, 0.6);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  left: 100%;
}

/* hero区域样式 */
.hero {
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 100, 255, 0.2) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* 标题渐变动画 */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #00dbde, #fc00ff, #00dbde);
  background-size: 300% 300%;
  animation: titleGradient 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(100, 100, 255, 0.3);
}

@keyframes titleGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 文本颜色 - 亮色主题 */
body:not([data-theme="dark"]) .hero p {
  color: #555;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 文本颜色 - 暗色主题 */
[data-theme="dark"] .hero p {
  color: #e0e0ff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* 按钮样式 */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* 特性图标样式 */
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(100, 100, 255, 0.5));
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
}

/* 卡片标题 - 亮色主题 */
body:not([data-theme="dark"]) .feature-card h3 {
  color: #333;
  text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

/* 卡片标题 - 暗色主题 */
[data-theme="dark"] .feature-card h3 {
  color: #fff;
  text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* 卡片文本 - 亮色主题 */
body:not([data-theme="dark"]) .feature-card p {
  color: #666;
}

/* 卡片文本 - 暗色主题 */
[data-theme="dark"] .feature-card p {
  color: #c0c0ff;
}

.feature-card p {
  line-height: 1.6;
}

/* 特性区域 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .container {
    margin: 10px;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}