:root {
  --bg-deep: #14091f;
  --bg-card: rgba(42, 18, 58, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --pink-main: #ff3d8f;
  --pink-soft: #ff6eb4;
  --lavender: #b87dff;
  --coral: #ff5e62;
  --gold: #ffc857;
  --text-primary: #f8f0ff;
  --text-muted: #c9b8d9;
  --border-glow: rgba(255, 61, 143, 0.35);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --nav-h: 64px;
  --sticky-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 61, 143, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(184, 125, 255, 0.14), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 94, 98, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--pink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 9, 31, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 61, 143, 0.4);
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  list-style: none;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--pink-main);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--pink-main), var(--coral));
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 61, 143, 0.45);
  white-space: nowrap;
}

.btn-download:hover {
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--pink-main);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.2rem;
  border-top: 1px solid var(--border-glow);
  list-style: none;
  gap: 0.5rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-muted);
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

/* Sticky download bar */
.sticky-download {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(20, 9, 31, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  padding: 8px 12px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.sticky-download.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-download-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
}

.sticky-download-inner > div {
  width: calc(25% - 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticky-download-inner img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(255, 61, 143, 0.3);
}

.sticky-download-inner .caption {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .sticky-download-inner > div {
    width: calc(12.5% - 9px);
  }

  .sticky-download-inner img {
    width: 58px;
    height: 58px;
  }
}

/* Main layout */
main {
  padding-top: calc(var(--nav-h) + 16px);
  position: relative;
  z-index: 1;
}

body.has-sticky main {
  padding-top: calc(var(--nav-h) + var(--sticky-h) + 16px);
}

/* Ads block */
.ads-section {
  margin: 1rem auto 1.5rem;
  padding: 12px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  gap: 8px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#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 0.18s ease;
}

#ads a:hover img {
  transform: translateY(-4px) scale(1.04);
}

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: linear-gradient(90deg, rgba(255, 61, 143, 0.2), rgba(184, 125, 255, 0.2));
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--pink-soft);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--pink-soft), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.btn-outline {
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--lavender);
  color: var(--lavender);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-outline:hover {
  background: rgba(184, 125, 255, 0.12);
  color: var(--lavender);
}

/* Sections */
.section {
  padding: 2.8rem 0;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-main), var(--lavender));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

/* Text only block */
.text-block {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  margin-bottom: 1.5rem;
}

.text-block h3 {
  font-size: 1.15rem;
  color: var(--pink-soft);
  margin-bottom: 0.8rem;
}

.text-block p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Text + Image (3:7 ratio) */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .media-row {
    grid-template-columns: 3fr 7fr;
  }

  .media-row.reverse {
    grid-template-columns: 7fr 3fr;
  }

  .media-row.reverse .media-img {
    order: 2;
  }
}

.media-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow);
}

.media-img img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.media-content h3 {
  font-size: 1.2rem;
  color: var(--pink-soft);
  margin-bottom: 0.8rem;
}

.media-content p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 0.9rem;
}

/* Card + Image combo */
.combo-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .combo-block {
    grid-template-columns: 1fr 280px;
  }
}

.combo-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.combo-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glow);
}

.combo-img img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* Page content */
.page-content {
  padding: 1rem 0 3rem;
}

.page-content h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.page-content h2 {
  font-size: 1.25rem;
  color: var(--pink-soft);
  margin: 2rem 0 0.8rem;
}

.page-content h3 {
  font-size: 1.05rem;
  color: var(--lavender);
  margin: 1.5rem 0 0.6rem;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 0.8rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 4rem 1rem 5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink-main), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

/* Footer */
.site-footer {
  background: rgba(10, 5, 18, 0.9);
  border-top: 1px solid var(--border-glow);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.8rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.highlight-link {
  color: var(--pink-main);
  font-weight: 500;
  border-bottom: 1px dashed var(--pink-main);
}

.highlight-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.cta-banner {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 61, 143, 0.15), rgba(184, 125, 255, 0.12));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-banner h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
