*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --accent: #06b6d4;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --bg: #0b0b12;
  --bg-card: #13131f;
  --bg-alt: #0f0f18;
  --border: #1e1e2e;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.logo img { width: 36px; height: 36px; border-radius: 8px; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline:hover { background: var(--primary); color: #fff; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-light);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient {
  display: block;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 8px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 20px auto 36px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Specs bar */
.specs-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
  padding: 20px 0;
}

.spec-num {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spec-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* News */
.news-list { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin: 0 auto; }

.news-item {
  display: block;
  background: var(--bg-card);
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.news-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.news-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.news-item p { color: var(--text-muted); font-size: 0.95rem; }
.news-more { font-size: 0.9rem; margin-top: 10px; display: inline-block; color: var(--primary-light); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-question::after { content: "+"; font-size: 1.3rem; color: var(--primary-light); }
.faq-item.active .faq-question::after { content: "−"; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.15));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}

.cta-section h2 { font-size: 1.75rem; margin-bottom: 24px; }
.cta-section .btn-primary { box-shadow: 0 6px 24px var(--accent-glow); }

/* Footer */
.site-footer {
  background: #07070d;
  color: var(--text-muted);
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 { color: var(--text); margin-bottom: 16px; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* Download page */
.download-hero { padding: 72px 0 48px; text-align: center; }
.download-hero h1 { font-size: 2.3rem; margin-bottom: 14px; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.platform-card:hover { border-color: var(--primary); }

.platform-icon { font-size: 3rem; margin-bottom: 16px; }
.platform-card h3 { margin-bottom: 8px; }
.platform-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }

.download-steps { max-width: 720px; margin: 48px auto; }
.download-steps ol { padding-left: 24px; }
.download-steps li { margin-bottom: 16px; color: var(--text-muted); }

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 40px;
}

.info-box h3 { margin-bottom: 16px; }
.info-box ul { color: var(--text-muted); padding-left: 20px; }
.info-box li { margin-bottom: 10px; }

/* Article page */
.article-header { padding: 52px 0 32px; border-bottom: 1px solid var(--border); }
.article-header h1 { font-size: 2rem; margin-bottom: 12px; line-height: 1.4; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.article-body h2 { font-size: 1.4rem; margin: 36px 0 16px; color: var(--text); }
.article-body h3 { font-size: 1.15rem; margin: 24px 0 12px; color: var(--text); }
.article-body p { margin-bottom: 16px; color: var(--text-muted); }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.article-body li { margin-bottom: 8px; }

.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary-light); }

.related-articles { background: var(--bg-alt); padding: 48px 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.related-card:hover { border-color: var(--primary); }
.related-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav.open { display: flex; }
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.5rem; }
}
