:root {
  --header-h: 60px;
  --bg: #0d0b14;
  --bg-card: #161222;
  --bg-section: #1a1528;
  --text: #e8e4f0;
  --text-muted: #9b93ad;
  --accent: #ff4b8b;
  --accent2: #a855f7;
  --border: rgba(255, 75, 139, 0.12);
  --radius: 12px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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.75;
  font-size: 16px;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff7ab0; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.logo-link img { width: 36px; height: 36px; border-radius: 8px; }

.nav-main { display: flex; gap: 6px; list-style: none; }

.nav-main a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
  background: rgba(255, 75, 139, 0.08);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* Main offset */
.page-body { padding-top: 0; }
.page-body.no-ads { padding-top: var(--header-h); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a0b2e 0%, #0d0b14 60%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #ff4b8b, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead { font-size: 17px; color: var(--text-muted); max-width: 720px; margin-bottom: 28px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.badge {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c4b5fd;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* Sections */
.section { padding: 50px 0; }
.section-alt { background: var(--bg-section); }

.section-title {
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 75, 139, 0.1);
}

.card-body { padding: 20px; }

.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.feature-img { aspect-ratio: 9/16; object-fit: cover; width: 100%; border-radius: 0; max-height: 320px; object-position: top; }

/* Content prose */
.prose { max-width: 860px; }
.prose h2 { font-size: 22px; margin: 36px 0 14px; color: var(--text); }
.prose h3 { font-size: 18px; margin: 24px 0 10px; color: var(--text); }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul, .prose ol { margin: 0 0 16px 20px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }

/* Feature list */
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feature-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.feature-list strong { color: var(--accent); display: block; margin-bottom: 6px; }

/* Steps */
.steps { counter-reset: step; list-style: none; }
.steps li {
  counter-increment: step;
  padding: 20px 20px 20px 60px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: 14px; color: var(--text-muted); }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, rgba(255,75,139,0.12), rgba(168,85,247,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h2 { margin-bottom: 12px; }

/* Footer */
.site-footer {
  background: #08060e;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; line-height: 1.65; }

.footer-nav h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text-muted); font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code { font-size: 80px; font-weight: 800; color: var(--accent); line-height: 1; }
.error-page h1 { font-size: 28px; margin: 16px 0 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; color: #fff; }

/* Legal pages */
.legal-page .prose h2 { border-left: 3px solid var(--accent); padding-left: 12px; }
.legal-page .update-date { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(13,11,20,0.98);
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-main.open { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 36px 0; }
}
