:root {
  --bg-deep: #120818;
  --bg-card: rgba(28, 12, 38, 0.82);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --pink-hot: #ff2d7a;
  --pink-soft: #ff6b9d;
  --violet: #a855f7;
  --violet-deep: #6d28d9;
  --coral: #ff8fab;
  --gold: #fbbf24;
  --text-main: #f3e8ff;
  --text-muted: #c4b5d0;
  --border-glow: rgba(255, 45, 122, 0.35);
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans 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);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.85;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(168, 85, 247, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 45, 122, 0.18), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(109, 40, 217, 0.15), transparent);
}

a { color: var(--pink-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 8, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 45, 122, 0.4);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-hot), var(--violet));
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--pink-hot), var(--violet-deep));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 24px rgba(255, 45, 122, 0.45);
  white-space: nowrap;
}

.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 45, 122, 0.55); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Sticky ads bar */
.sticky-ads-bar {
  position: sticky;
  top: 62px;
  z-index: 999;
  background: rgba(18, 8, 24, 0.95);
  border-bottom: 1px solid rgba(255, 45, 122, 0.2);
  padding: 6px 0;
  display: none;
}

.sticky-ads-bar.visible { display: block; }

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 8px);
  min-width: 70px;
}

#ads img, #ads-sticky img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(255, 45, 122, 0.25);
  transition: transform 0.18s;
  border: 2px solid rgba(255, 107, 157, 0.3);
}

#ads a, #ads-sticky a { border-radius: 14px; }

#ads img:hover, #ads-sticky img:hover {
  transform: scale(1.08);
  border-color: var(--pink-hot);
}

#ads .caption, #ads-sticky .caption {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (max-width: 768px) {
  #ads > div, #ads-sticky > div { width: calc(25% - 6px); }
  #ads img, #ads-sticky img { width: 52px; height: 52px; }
}

.ads-top-wrap {
  padding: 12px 0 4px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--pink-soft); }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 45, 122, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--coral);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.35;
  background: linear-gradient(90deg, #fff, var(--coral), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-ghost {
  display: inline-flex;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  color: var(--text-main) !important;
  font-size: 0.88rem;
}

.btn-ghost:hover { border-color: var(--pink-hot); color: var(--pink-soft) !important; }

/* Sections */
.section { padding: 2.8rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.02); }

.section-title { margin-bottom: 1.8rem; }

.section-title h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: #fff;
  margin-bottom: 0.5rem;
  padding-left: 14px;
  border-left: 4px solid var(--pink-hot);
}

.section-title p { color: var(--text-muted); font-size: 0.95rem; padding-left: 18px; }

/* Prose */
.prose { color: var(--text-muted); }
.prose h3 {
  color: var(--coral);
  font-size: 1.15rem;
  margin: 1.8rem 0 0.8rem;
}
.prose h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin: 1.2rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; text-align: justify; }
.prose ul, .prose ol { margin: 0.5rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--pink-hot);
}

.card-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }

.feature-card h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* Media blocks */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.media-row.reverse { direction: rtl; }
.media-row.reverse > * { direction: ltr; }

.media-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow);
}

.media-shot img { width: 100%; }

.media-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-glass);
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box {
  text-align: center;
  padding: 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
}

.stat-box strong {
  display: block;
  font-size: 1.6rem;
  color: var(--pink-hot);
  margin-bottom: 0.3rem;
}

.stat-box span { font-size: 0.82rem; color: var(--text-muted); }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(255, 45, 122, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
}

.highlight-box h3 { color: var(--coral); margin-bottom: 0.6rem; }

/* FAQ */
.faq-list { margin-top: 1rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
}

.faq-item h4 { color: #fff; margin-bottom: 0.4rem; font-size: 0.95rem; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border-glow);
  background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img { width: 48px; border-radius: 12px; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; }

.footer-links h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.7rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--pink-soft); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
  min-height: 60vh;
}

.error-page h1 {
  font-size: 5rem;
  background: linear-gradient(135deg, var(--pink-hot), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page p { color: var(--text-muted); margin: 1rem 0 2rem; }

/* Sub page */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: #fff;
}

.page-content {
  padding: 1rem 0 3rem;
}

.page-content .prose h2 {
  color: var(--coral);
  font-size: 1.2rem;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 45, 122, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .media-row { grid-template-columns: 1fr; }
  .media-row.reverse { direction: ltr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 8, 24, 0.98);
    border-bottom: 1px solid var(--border-glow);
    padding: 0.5rem 1rem 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-cta { display: none; }
  .site-header .container { position: relative; }
}
