@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --void: #0c0618;
  --void-soft: #150d28;
  --void-card: rgba(22, 12, 42, 0.72);
  --violet: #6b2fd6;
  --violet-glow: #9d5cff;
  --magenta: #e8327a;
  --magenta-soft: #ff5a9a;
  --cyan: #2dd4f0;
  --amber: #ffb347;
  --pearl: #f4eef8;
  --pearl-dim: #c8b8d8;
  --ink: #ece4f4;
  --ink-muted: #a894c4;
  --white: #ffffff;
  --nav-h: 56px;
  --shadow-neon: 0 0 40px rgba(232, 50, 122, 0.22);
  --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: 'ZCOOL XiaoWei', 'STKaiti', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--ink);
  line-height: 1.85;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% -10%, rgba(107, 47, 214, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(232, 50, 122, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(45, 212, 240, 0.12), transparent 45%),
    linear-gradient(175deg, #0c0618 0%, #120a22 35%, #0e081a 100%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.45;
  color: var(--pearl);
  letter-spacing: 0.02em;
}

a { color: var(--magenta-soft); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1100px, 93vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: rgba(12, 6, 24, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(157, 92, 255, 0.2);
  height: var(--nav-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pearl);
  font-family: var(--font-display);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(232, 50, 122, 0.4);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 6px 12px;
  color: var(--pearl-dim);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--pearl);
  background: rgba(157, 92, 255, 0.15);
}

.header-cta .btn-dl {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(157, 92, 255, 0.3);
  color: var(--pearl);
  font-size: 1.3rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Ads top */
.ads-top-wrap {
  padding: 12px 0 6px;
  position: relative;
  z-index: 10;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
  gap: 8px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(232, 50, 122, 0.35);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sticky ads bar */
.sticky-ads-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 1400;
  background: rgba(12, 6, 24, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(157, 92, 255, 0.15);
  padding: 6px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 62px;
  box-sizing: border-box;
}

#ads-sticky img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}

#ads-sticky img:hover { transform: scale(1.06); }

#ads-sticky a { text-decoration: none; }

#ads-sticky .caption {
  font-size: 10px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

@media (max-width: 768px) {
  #ads-sticky > div { width: calc(25% - 6px); }
  #ads-sticky img { width: 48px; height: 48px; }
}

/* Buttons */
.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--violet) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(232, 50, 122, 0.45);
  color: var(--white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid rgba(157, 92, 255, 0.4);
  color: var(--pearl);
  border-radius: 50px;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(45, 212, 240, 0.08);
  color: var(--cyan);
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 92, 255, 0.4), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(107, 47, 214, 0.25);
  border: 1px solid rgba(157, 92, 255, 0.35);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--pearl) 30%, var(--magenta-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(280px, 75vw);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), 0 0 60px rgba(232, 50, 122, 0.2);
  border: 2px solid rgba(157, 92, 255, 0.25);
}

.hero-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 50, 122, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(21, 13, 40, 0.5);
  border-top: 1px solid rgba(157, 92, 255, 0.1);
  border-bottom: 1px solid rgba(157, 92, 255, 0.1);
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Prose */
.prose {
  color: var(--ink);
  font-size: 0.94rem;
}

.prose p { margin-bottom: 1.1em; }

.prose h3 {
  font-size: 1.15rem;
  margin: 1.8em 0 0.8em;
  color: var(--magenta-soft);
}

.prose h4 {
  font-size: 1rem;
  margin: 1.4em 0 0.6em;
  color: var(--cyan);
}

.prose ul, .prose ol {
  margin: 0.8em 0 1.2em 1.4em;
  color: var(--ink-muted);
}

.prose li { margin-bottom: 0.4em; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.feature-card {
  background: var(--void-card);
  border: 1px solid rgba(157, 92, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(232, 50, 122, 0.4);
  transform: translateY(-4px);
}

.feature-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 50, 122, 0.2), rgba(107, 47, 214, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Media blocks */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 32px 0;
}

.media-row.reverse { direction: rtl; }
.media-row.reverse > * { direction: ltr; }

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(157, 92, 255, 0.25);
  box-shadow: var(--shadow-card);
}

.media-frame img { width: 100%; }

.media-frame .frame-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(12, 6, 24, 0.85));
  font-size: 0.8rem;
  color: var(--pearl-dim);
}

.media-caption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 8px;
}

/* Pill tags */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.pill {
  padding: 6px 16px;
  background: rgba(107, 47, 214, 0.15);
  border: 1px solid rgba(157, 92, 255, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--pearl-dim);
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--void-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(157, 92, 255, 0.15);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--magenta-soft);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 28px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--magenta), var(--violet), var(--cyan));
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(232, 50, 122, 0.6);
}

.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { font-size: 0.9rem; color: var(--ink-muted); }

/* FAQ */
.faq-list { margin: 24px 0; }

.faq-item {
  background: var(--void-card);
  border: 1px solid rgba(157, 92, 255, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--pearl);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.faq-q::after {
  content: '+';
  color: var(--magenta-soft);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 16px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--magenta-soft); }
.breadcrumb span { color: var(--pearl-dim); }

/* Page header */
.page-header {
  padding: 36px 0 28px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Content page */
.content-page {
  padding-bottom: 64px;
}

.content-block {
  background: var(--void-card);
  border: 1px solid rgba(157, 92, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.content-block h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(157, 92, 255, 0.15);
}

.content-block h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 0.6em;
  color: var(--magenta-soft);
}

.content-block p {
  margin-bottom: 0.9em;
  font-size: 0.92rem;
  color: var(--ink);
}

.content-block ul, .content-block ol {
  margin: 0.6em 0 1em 1.3em;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 0 100px;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.4rem; margin-bottom: 12px; }
.error-page p { color: var(--ink-muted); margin-bottom: 28px; font-size: 0.92rem; }

/* Footer */
.site-footer {
  background: rgba(8, 4, 16, 0.9);
  border-top: 1px solid rgba(157, 92, 255, 0.12);
  padding: 40px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--pearl);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-col a:hover { color: var(--magenta-soft); }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(157, 92, 255, 0.1);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(107, 47, 214, 0.2), rgba(232, 50, 122, 0.15));
  border: 1px solid rgba(157, 92, 255, 0.2);
  border-radius: var(--radius-xl);
  margin: 40px 0;
}

.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--ink-muted); margin-bottom: 20px; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { order: -1; }
  .media-row { grid-template-columns: 1fr; }
  .media-row.reverse { direction: ltr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(12, 6, 24, 0.97);
    padding: 12px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid rgba(157, 92, 255, 0.2);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .section { padding: 40px 0; }
  .content-block { padding: 22px; }
}
