:root {
  --ink: #0c0618;
  --plum: #1a0f2e;
  --plum-light: #2a1848;
  --rose: #ff3d8f;
  --rose-soft: #ff6eb0;
  --gold: #f0b35a;
  --lilac: #b794f6;
  --mint: #5eead4;
  --cream: #fff5fa;
  --text-main: #f3e8ff;
  --text-soft: #c4b5d8;
  --text-dim: #8b7aa8;
  --glass: rgba(26, 15, 46, 0.82);
  --border: rgba(255, 61, 143, 0.35);
  --nav-h: 56px;
  --sticky-h: 0px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow: 0 24px 64px rgba(255, 61, 143, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "DM Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ink);
  color: var(--text-soft);
  line-height: 1.88;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 61, 143, 0.2), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(183, 148, 246, 0.16), transparent 38%),
    radial-gradient(circle at 72% 88%, rgba(240, 179, 90, 0.1), transparent 45%),
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 110, 176, 0.04) 0 1px, transparent 1px 14px),
    linear-gradient(168deg, #06030f 0%, #140a24 48%, #0c0618 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--nav-h);
  background: rgba(12, 6, 24, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: "Syne", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 61, 143, 0.35);
}

.nav-desktop {
  display: none;
  list-style: none;
  gap: 6px;
  margin-left: auto;
}

.nav-desktop a {
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(255, 61, 143, 0.18);
  color: var(--cream);
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #ff1f7a);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 8px 28px rgba(255, 61, 143, 0.4);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-dl:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s;
}

.nav-mobile {
  display: none;
  list-style: none;
  padding: 12px 0 18px;
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .btn-dl {
    margin-left: 0;
  }
}

/* Sticky download bar */
.sticky-dl {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 10, 34, 0.98);
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.sticky-dl.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-dl.menu-hide {
  transform: translateY(-110%);
  opacity: 0;
}

.sticky-dl-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 10px;
  padding: 10px 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.sticky-dl-inner > div {
  width: calc(12.5% - 10px);
  min-width: 68px;
  max-width: 80px;
}

.sticky-dl-inner img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.sticky-dl-inner .caption {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .sticky-dl-inner > div {
    width: calc(25% - 10px);
  }
}

body.sticky-on main {
  padding-top: calc(var(--nav-h) + var(--sticky-h));
}

/* Ads zone */
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 8px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

#ads img:hover {
  transform: scale(1.05);
}

#ads .caption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Main layout */
main {
  padding-top: var(--nav-h);
  padding-bottom: 64px;
}

/* Hero */
.hero-slab {
  position: relative;
  padding: 36px 0 48px;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  background: linear-gradient(135deg, rgba(255, 61, 143, 0.12), rgba(183, 148, 246, 0.08));
  margin-bottom: 32px;
}

.hero-slab::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 61, 143, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 61, 143, 0.15);
  border: 1px solid var(--border);
  color: var(--rose-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-slab h1 {
  font-family: "Syne", "Noto Sans SC", sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 18px;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-main);
  max-width: 680px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cream);
  font-weight: 500;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: rgba(255, 61, 143, 0.1);
  color: var(--rose-soft);
}

/* Sections */
.block {
  margin-bottom: 52px;
}

.block-head {
  margin-bottom: 28px;
}

.block-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}

.block-head h2 {
  font-family: "Syne", "Noto Sans SC", sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--cream);
  margin-bottom: 8px;
}

.block-head p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Prose */
.prose {
  color: var(--text-soft);
}

.prose h3 {
  font-family: "Syne", "Noto Sans SC", sans-serif;
  color: var(--cream);
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 16px;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 12px 0 18px 22px;
}

.prose li {
  margin-bottom: 8px;
}

.ext-link {
  color: var(--rose-soft);
  border-bottom: 1px dashed rgba(255, 110, 176, 0.5);
}

/* Split layout 7:3 text:image */
.split-73 {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 768px) {
  .split-73 {
    grid-template-columns: 7fr 3fr;
  }

  .split-73.reverse {
    grid-template-columns: 3fr 7fr;
  }

  .split-73.reverse .split-visual {
    order: -1;
  }
}

.split-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 61, 143, 0.6);
  transform: translateY(-2px);
}

.feature-card .idx {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255, 61, 143, 0.35);
  line-height: 1;
  margin-bottom: 10px;
}

.feature-card h4 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Visual + card combo */
.media-card {
  display: grid;
  gap: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .media-card {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }

  .media-card.flip {
    grid-template-columns: 1.2fr 1fr;
  }

  .media-card.flip .media-card-img {
    order: 2;
  }
}

.media-card-img img {
  border-radius: var(--radius-md);
  width: 100%;
}

.media-card-body h4 {
  color: var(--cream);
  margin-bottom: 10px;
}

/* Metrics ribbon */
.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 600px) {
  .metric-ribbon {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-cell {
  text-align: center;
  padding: 18px 12px;
  background: rgba(255, 61, 143, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 61, 143, 0.2);
}

.metric-cell strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  color: var(--rose-soft);
  margin-bottom: 4px;
}

.metric-cell span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* FAQ */
.faq-list {
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.faq-item h4 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* Subpage */
.page-hero {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-hero h1 {
  font-family: "Syne", "Noto Sans SC", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cream);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 640px;
}

.legal-block {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
}

.legal-block h2 {
  font-family: "Syne", "Noto Sans SC", sans-serif;
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-family: "Syne", sans-serif;
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--lilac));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  margin-top: 48px;
  background: rgba(6, 3, 15, 0.6);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-copy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
