/* ===== 全局样式 ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0F0F0F;
  color: #E0E0E0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== 导航栏滚动效果 ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== 网格背景 ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(124, 111, 205, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 111, 205, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== 渐变文字 ===== */
.text-gradient {
  background: linear-gradient(135deg, #9B8FE0 0%, #7C6FCD 50%, #5A4FB0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 111, 205, 0.3); }
  50% { box-shadow: 0 0 40px rgba(124, 111, 205, 0.6); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ===== 功能卡片悬停效果 ===== */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(124, 111, 205, 0.1);
}

/* ===== 步骤卡片 ===== */
.step-card {
  transition: transform 0.3s ease;
}

/* ===== 下载卡片 ===== */
.download-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== 截图轮播 ===== */
.screenshots-container {
  position: relative;
}

.screenshots-track {
  will-change: transform;
}

/* ===== FAQ 手风琴 ===== */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(124, 111, 205, 0.3);
}

.faq-btn {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.faq-btn:focus {
  outline: none;
}

.faq-content {
  transition: all 0.3s ease;
}

.faq-btn .fa-chevron-down {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-btn .fa-chevron-down {
  transform: rotate(180deg);
}

/* ===== 统计数字动画 ===== */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 滚动显示动画 ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 轮播指示点 ===== */
.dot {
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.dot.active {
  background-color: #7C6FCD;
  width: 24px;
  border-radius: 4px;
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
  background: #3A3A3A;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7C6FCD;
}

/* ===== 选中文字颜色 ===== */
::selection {
  background: rgba(124, 111, 205, 0.3);
  color: white;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  .screenshots-track .screenshot-slide {
    padding: 0 8px;
  }
}

/* ===== 光晕动画 ===== */
@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.glow-animate {
  animation: glow-pulse 4s ease-in-out infinite;
}

/* ===== 进度条动画 ===== */
@keyframes progress-fill {
  from { width: 0%; }
  to { width: 33%; }
}

.progress-bar-animate {
  animation: progress-fill 2s ease-out 1s forwards;
  width: 0%;
}
