*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-section: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary-light); text-decoration: none; transition: color .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(15,23,42,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.logo img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,99,235,.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
}

.btn-outline:hover { background: rgba(37,99,235,.1); color: var(--primary-light); }

.btn-sm { padding: 8px 18px; font-size: .875rem; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.18) 0%, transparent 60%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: left;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .925rem;
  color: var(--text-muted);
}

.hero-feature::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-section); }

.section-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, border-color .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .925rem; }

/* Stats / servers */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { color: var(--text-muted); font-size: .875rem; margin-top: 4px; }

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.review-author { font-weight: 600; margin-bottom: 4px; }
.review-tag { color: var(--accent); font-size: .8rem; margin-bottom: 12px; }
.review-text { color: var(--text-muted); font-size: .925rem; margin-bottom: 12px; }
.stars { color: #fbbf24; letter-spacing: 2px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: .75rem;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.price-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.price-amount { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.price-amount span { font-size: .9rem; color: var(--text-muted); font-weight: 400; }

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
  margin-top: 32px;
  line-height: 2;
}

/* Articles */
.articles-list { display: flex; flex-direction: column; gap: 20px; }

.article-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}

.article-item:hover { border-color: var(--primary); }

.article-date {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: .85rem;
  min-width: 100px;
}

.article-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-body h3 a { color: var(--text); }
.article-body h3 a:hover { color: var(--primary-light); }
.article-excerpt { color: var(--text-muted); font-size: .9rem; }
.read-more { font-size: .875rem; margin-top: 8px; display: inline-block; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text);
  text-align: left;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after { content: "+"; font-size: 1.2rem; color: var(--primary-light); }
.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  display: none;
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: .925rem;
  background: var(--bg-card);
}

.faq-item.open .faq-answer { display: block; }

/* CTA */
.cta-section {
  text-align: center;
  padding: 64px 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,.15) 0%, transparent 60%);
}

.cta-section h2 { font-size: 1.6rem; margin-bottom: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  background: var(--bg-section);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: .875rem; }

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Download page */
.download-hero { padding: 60px 0 40px; text-align: center; }
.download-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.download-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.platform-card:hover { border-color: var(--primary); transform: translateY(-3px); }

.platform-icon { font-size: 2.5rem; margin-bottom: 16px; }
.platform-card h3 { margin-bottom: 8px; }
.platform-card p { color: var(--text-muted); font-size: .875rem; margin-bottom: 20px; }

.steps-section { max-width: 700px; margin: 0 auto; }

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.step-content h3 { font-size: 1rem; margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: .925rem; }

/* Article page */
.article-page { padding: 48px 0 64px; }
.article-page .container { max-width: 780px; }

.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 1.85rem; line-height: 1.35; margin-bottom: 12px; }
.article-meta { color: var(--text-muted); font-size: .875rem; }

.article-content h2 { font-size: 1.3rem; margin: 32px 0 14px; }
.article-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.article-content p { color: var(--text-muted); margin-bottom: 16px; }
.article-content ul, .article-content ol { color: var(--text-muted); margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 8px; }

.breadcrumb {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }

  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .header-inner { position: relative; }

  .article-item { flex-direction: column; gap: 8px; }
  .hero { padding: 48px 0 40px; }
}
