:root {
  --violet-deep: #12082a;
  --violet-mid: #1e1040;
  --violet-soft: #2d1a5c;
  --magenta: #e91e8c;
  --magenta-glow: #ff4db8;
  --coral: #ff5e62;
  --peach: #ffb88c;
  --cyan: #2dd4f0;
  --gold: #f5c842;
  --cream: #fff8fc;
  --text-bright: #faf4ff;
  --text-body: #d4c8e8;
  --text-dim: #9a8ab8;
  --glass: rgba(30, 16, 64, 0.78);
  --border-glow: rgba(233, 30, 140, 0.42);
  --nav-h: 58px;
  --sticky-h: 0px;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-glow: 0 20px 60px rgba(233, 30, 140, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--violet-deep);
  color: var(--text-body);
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 5%, rgba(45, 212, 240, 0.14), transparent 55%),
    radial-gradient(ellipse 65% 50% at 10% 25%, rgba(233, 30, 140, 0.22), transparent 52%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(255, 94, 98, 0.12), transparent 50%),
    linear-gradient(175deg, #0a0418 0%, #1a0e38 45%, #12082a 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--peach);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 93vw);
  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);
  height: auto;
  background: rgba(18, 8, 42, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
}

.header-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-row > .btn-primary {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(233, 30, 140, 0.45);
}

.nav-desktop {
  display: none;
  list-style: none;
  gap: 6px;
}

.nav-desktop a {
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-bright);
  background: rgba(233, 30, 140, 0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--magenta), var(--coral));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(233, 30, 140, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(233, 30, 140, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1px solid var(--border-glow);
  color: var(--text-bright);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav-mobile {
  display: none;
  list-style: none;
  padding: 8px 0 16px;
  margin: 0;
  background: rgba(18, 8, 42, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile li a {
  display: block;
  padding: 14px 0;
  color: var(--text-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.nav-mobile li:last-child a {
  border-bottom: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }
  .header-row > .btn-primary {
    display: inline-flex;
  }
  .hamburger {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Sticky download bar */
.sticky-dl {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 8, 42, 0.97);
  border-bottom: 1px solid var(--border-glow);
  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;
  pointer-events: none;
}

.sticky-dl-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px 8px;
  padding: 10px 12px;
  max-width: 1120px;
  margin: 0 auto;
}

.sticky-dl-inner > div {
  flex: 0 0 calc(25% - 8px);
  max-width: calc(25% - 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticky-dl-inner img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.sticky-dl-inner .caption {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 4px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .sticky-dl-inner > div {
    flex: 0 0 calc(12.5% - 8px);
    max-width: calc(12.5% - 8px);
  }
  .sticky-dl-inner img {
    width: 58px;
    height: 58px;
  }
}

body.sticky-on main {
  padding-top: calc(var(--nav-h) + var(--sticky-h));
}

/* Ads zone */
.ads-zone {
  padding: 18px 0 8px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 10px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}

#ads a:hover img {
  transform: translateY(-3px) scale(1.04);
}

#ads .caption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 5px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main layout */
main {
  padding-top: var(--nav-h);
  padding-bottom: 60px;
}

/* Hero */
.hero-panel {
  padding: 36px 0 48px;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(45, 212, 240, 0.12);
  border: 1px solid rgba(45, 212, 240, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero-panel h1 {
  font-family: "ZCOOL QingKe HuangYou", "Outfit", sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-panel .lead {
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 820px;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  margin-bottom: 52px;
}

.section-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--magenta-glow);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--text-bright);
  margin-bottom: 10px;
  font-weight: 700;
}

.section-head p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Prose */
.prose h3 {
  color: var(--peach);
  font-size: 1.12rem;
  margin: 24px 0 12px;
  font-weight: 600;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 16px;
  text-align: justify;
}

.prose ul {
  margin: 12px 0 18px 22px;
}

.prose li {
  margin-bottom: 8px;
}

.ext-link {
  color: var(--gold);
  border-bottom: 1px dashed rgba(245, 200, 66, 0.4);
}

/* Text-heavy block (70%) */
.content-heavy {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .content-heavy.has-visual {
    grid-template-columns: 7fr 3fr;
    align-items: start;
  }
  .content-heavy.has-visual.reverse {
    grid-template-columns: 3fr 7fr;
  }
  .content-heavy.has-visual.reverse .visual-col {
    order: -1;
  }
}

.visual-col img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* Cards */
.card-row {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 600px) {
  .card-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.info-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.info-card .card-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.info-card h4 {
  color: var(--text-bright);
  font-size: 1rem;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Combo: text + card + image */
.combo-panel {
  background: linear-gradient(145deg, rgba(45, 26, 92, 0.55), rgba(18, 8, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .combo-panel {
    padding: 32px 36px;
  }
  .combo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
  }
}

/* Stats strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

@media (min-width: 600px) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 18px 12px;
  background: rgba(233, 30, 140, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(233, 30, 140, 0.2);
}

.stat-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--magenta-glow);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 48px 28px;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.18), rgba(45, 212, 240, 0.1));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glow);
  margin-top: 40px;
}

.cta-band h2 {
  color: var(--text-bright);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* Subpage */
.page-hero {
  padding: 28px 0 36px;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text-bright);
  margin-bottom: 12px;
}

.page-hero .subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.legal-body {
  background: var(--glass);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 28px 22px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .legal-body {
    padding: 40px 48px;
  }
}

.legal-body h2 {
  color: var(--text-bright);
  font-size: 1.2rem;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-body h2:first-child {
  margin-top: 0;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  color: var(--text-bright);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-dim);
  max-width: 440px;
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  background: rgba(10, 4, 24, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  border-radius: 50%;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.footer-col h4 {
  color: var(--text-bright);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
