/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #222845;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --accent-gradient-h: linear-gradient(90deg, #3b82f6, #8b5cf6);
  --glow-blue: rgba(59, 130, 246, 0.3);
  --glow-purple: rgba(139, 92, 246, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.938rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-gradient-h);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 8px 20px;
  background: var(--accent-gradient);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  transition: opacity var(--transition), transform var(--transition);
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Hero Banner ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* 背景光效 */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
  animation: float-glow 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  animation: float-glow 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 粒子（纯CSS） */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particles i {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  animation: particle-rise linear infinite;
}

.particles i:nth-child(1)  { left: 10%;  animation-duration: 12s; animation-delay: 0s;   width: 2px; height: 2px; }
.particles i:nth-child(2)  { left: 25%;  animation-duration: 15s; animation-delay: -3s;  background: rgba(59, 130, 246, 0.35); }
.particles i:nth-child(3)  { left: 40%;  animation-duration: 10s; animation-delay: -5s;  width: 4px; height: 4px; }
.particles i:nth-child(4)  { left: 55%;  animation-duration: 14s; animation-delay: -2s;  background: rgba(59, 130, 246, 0.3); width: 2px; height: 2px; }
.particles i:nth-child(5)  { left: 70%;  animation-duration: 11s; animation-delay: -7s; }
.particles i:nth-child(6)  { left: 85%;  animation-duration: 13s; animation-delay: -4s;  background: rgba(139, 92, 246, 0.3); width: 2px; height: 2px; }
.particles i:nth-child(7)  { left: 15%;  animation-duration: 16s; animation-delay: -6s;  width: 2px; height: 2px; }
.particles i:nth-child(8)  { left: 60%;  animation-duration: 9s;  animation-delay: -1s;  background: rgba(59, 130, 246, 0.25); }
.particles i:nth-child(9)  { left: 35%;  animation-duration: 13s; animation-delay: -8s;  width: 4px; height: 4px; background: rgba(139, 92, 246, 0.2); }
.particles i:nth-child(10) { left: 80%;  animation-duration: 11s; animation-delay: -3s; }
.particles i:nth-child(11) { left: 50%;  animation-duration: 14s; animation-delay: -9s;  width: 2px; height: 2px; background: rgba(59, 130, 246, 0.2); }
.particles i:nth-child(12) { left: 92%;  animation-duration: 12s; animation-delay: -5s; }

@keyframes particle-rise {
  0%   { bottom: -5%;  opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { bottom: 105%; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.813rem;
  color: var(--accent-blue);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-subtitle span {
  color: var(--text-muted);
  margin: 0 6px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 1rem;
  border-radius: 10px;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

/* 统计数字 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item { text-align: left; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.stat-label {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero 图片 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 60px rgba(59, 130, 246, 0.15));
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -2px;
  max-width: 524px;
  width: calc(100% + 4px);
  margin: 0 auto;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--accent-gradient);
  opacity: 0.15;
  z-index: -1;
  filter: blur(1px);
}

/* ========== 通用板块样式 ========== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 1.063rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== 核心功能 6宫格 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== 产品展示（左右交替） ========== */
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
}

.showcase-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.showcase-item.reverse { direction: rtl; }
.showcase-item.reverse > * { direction: ltr; }

.showcase-text .section-label { text-align: left; }

.showcase-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.showcase-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.showcase-text ul { margin-top: 8px; }

.showcase-text li {
  position: relative;
  padding-left: 24px;
  font-size: 0.938rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.showcase-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.showcase-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* ========== 支持语言 ========== */
.languages { background: var(--bg-secondary); }

.lang-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

.lang-tag {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-size: 0.938rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.lang-tag:hover {
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.08);
}

.lang-tag.more {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.platforms-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-secondary);
}

.platforms-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition);
}

.platform-item:hover { transform: translateY(-4px); }

.platform-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.platform-item span {
  font-size: 0.813rem;
  color: var(--text-muted);
}

/* ========== 下载区域 ========== */
.download {
  position: relative;
  overflow: hidden;
}

.download-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}

.download-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg, transparent 0%, rgba(59, 130, 246, 0.06) 25%, transparent 50%, rgba(139, 92, 246, 0.06) 75%, transparent 100%);
  animation: rotate-bg 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate-bg {
  to { transform: rotate(360deg); }
}

.download-inner > * { position: relative; z-index: 1; }

.download h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.download-desc {
  font-size: 1.063rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  margin-bottom: 20px;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.download-btn svg { width: 22px; height: 22px; }

.download-meta {
  font-size: 0.813rem;
  color: var(--text-muted);
}

.download-meta span {
  margin: 0 8px;
  opacity: 0.4;
}


/* ========== 滚动动画 ========== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.35s; }
.delay-5 { transition-delay: 0.4s; }
.delay-6 { transition-delay: 0.45s; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { max-width: 480px; margin: 0 auto; }
  .hero-visual img { max-width: 420px; margin: 0 auto; }
  .hero-visual::before { max-width: 424px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-item { grid-template-columns: 1fr; gap: 40px; }
  .showcase-item.reverse { direction: ltr; }

}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; display: block; }
  .menu-toggle { display: flex; }

  .hero { min-height: auto; padding: 110px 0 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .platforms-row { gap: 32px; }
  .download-inner { padding: 48px 24px; }

}

@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .stat-value { font-size: 1.5rem; }
  .lang-tags { gap: 8px; }
  .lang-tag { padding: 8px 16px; font-size: 0.813rem; }
}
