@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
  --void: #120818;
  --deep: #1e0f2e;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-solid: #241433;
  --glass: rgba(30, 15, 46, 0.82);
  --magenta: #ff3d8f;
  --magenta-soft: #ff6eb3;
  --violet: #9b5de5;
  --peach: #ff9e6d;
  --cyan: #00e5c8;
  --gold: #ffd166;
  --snow: #faf5ff;
  --muted: #b8a8c8;
  --line: rgba(255, 61, 143, 0.22);
  --glow: 0 0 40px rgba(255, 61, 143, 0.35);
  --nav-h: 56px;
  --sticky-h: 92px;
  --radius: 20px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--void);
  color: var(--snow);
  line-height: 1.85;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(155, 93, 229, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(255, 61, 143, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 229, 200, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: 'ZCOOL QingKe HuangYou', 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #fff;
}

a { color: var(--magenta-soft); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--gold); }

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: 1300;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.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: #fff;
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--glow);
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 61, 143, 0.18);
}

.header-cta .btn-dl {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Ads */
.ads-top-wrap {
  padding: 12px 0 6px;
  background: rgba(18, 8, 24, 0.6);
  border-bottom: 1px solid var(--line);
}

.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1250;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#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: 72px;
  box-sizing: border-box;
}

#ads img, #ads-sticky img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(255, 61, 143, 0.2);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2px solid rgba(255, 61, 143, 0.25);
}

#ads a, #ads-sticky a { display: inline-block; border-radius: 16px; }

#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(255, 61, 143, 0.35);
}

#ads .caption, #ads-sticky .caption {
  height: 15px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 768px) {
  #ads > div, #ads-sticky > div {
    width: calc(25% - 8px);
    min-width: 68px;
  }
  #ads img, #ads-sticky img { width: 58px; height: 58px; }
}

/* Buttons */
.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--glow);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 61, 143, 0.45);
  color: #fff !important;
}

.btn-ghost {
  display: inline-flex;
  padding: 11px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--snow) !important;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta-soft) !important; }

/* Hero */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(155, 93, 229, 0.2);
  border: 1px solid rgba(155, 93, 229, 0.4);
  color: var(--cyan);
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, var(--magenta-soft), var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 1rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

.section p {
  margin-bottom: 14px;
  color: #ddd0ea;
}

/* Cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(255, 61, 143, 0.45);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--magenta-soft);
}

.card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted);
}

/* Media blocks */
.media-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 28px 0;
  align-items: center;
}

@media (min-width: 768px) {
  .media-block.reverse { direction: rtl; }
  .media-block.reverse > * { direction: ltr; }
  .media-block {
    grid-template-columns: 38% 1fr;
  }
}

.media-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.media-shot img { width: 100%; }

.media-shot figcaption {
  padding: 10px 14px;
  background: var(--panel-solid);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.media-text h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--peach);
}

/* Highlight */
.tip-box {
  background: linear-gradient(135deg, rgba(255, 61, 143, 0.12), rgba(155, 93, 229, 0.1));
  border-left: 4px solid var(--magenta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 22px 0;
}

.tip-box p { margin: 0; color: #e8dff0; }

/* Pill tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 200, 0.1);
  border: 1px solid rgba(0, 229, 200, 0.3);
  color: var(--cyan);
  font-size: 0.8rem;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--panel);
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--magenta-soft);
  margin-bottom: 8px;
}

.faq-item p { margin: 0; font-size: 0.92rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--magenta-soft); }
.breadcrumb span { color: var(--snow); }

/* Page content */
.page-hero {
  padding: 32px 0 24px;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 10px;
}

.page-hero p { color: var(--muted); }

.legal-body h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--peach);
}

.legal-body h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
  color: var(--magenta-soft);
}

.legal-body ul, .legal-body ol {
  margin: 10px 0 14px 22px;
  color: #ddd0ea;
}

.legal-body li { margin-bottom: 6px; }

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 0 100px;
}

.error-code {
  font-size: 5rem;
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { margin: 16px 0 10px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--magenta-soft);
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--snow); }

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  .header-cta { display: none; }

  .hero { padding: 32px 0 28px; }

  .section { padding: 32px 0; }
}
