:root {
  --bg-deep: #0f0618;
  --bg-card: rgba(28, 12, 42, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --pink-main: #ff3d8a;
  --pink-soft: #ff6eb0;
  --violet: #b44dff;
  --gold: #ffc857;
  --text-main: #f5eef8;
  --text-muted: #b8a4c8;
  --border: rgba(255, 109, 176, 0.22);
  --radius: 18px;
  --nav-h: 64px;
  --sticky-h: 96px;
  --shadow: 0 18px 48px rgba(255, 61, 138, 0.12);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(255, 61, 138, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgba(180, 77, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 110, 176, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 6, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 61, 138, 0.35);
}

.brand span {
  background: linear-gradient(135deg, var(--pink-main), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-main a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  transition: all 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text-main);
  background: rgba(255, 61, 138, 0.12);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Sticky download bar */
.sticky-download {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 8, 28, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  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 14px;
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.sticky-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 14px);
  min-width: 72px;
  text-decoration: none;
}

.sticky-item img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.sticky-item:hover img { transform: scale(1.06); }

.sticky-item span {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Top ads */
#top-ads-wrap {
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
  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.25);
  transition: transform 180ms ease;
}

#ads a { border-radius: 15px; display: inline-block; }
#ads img:hover { 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: 48px 0 36px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--pink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--pink-soft) 70%, var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.stat-item {
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 120px;
}

.stat-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--pink-main);
  font-family: var(--font-serif);
}

.stat-item span { font-size: 0.82rem; color: var(--text-muted); }

/* Sections */
.section {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  color: var(--text-main);
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink-main), var(--violet));
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 16px;
}

/* Text only block */
.text-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.text-block p {
  margin-bottom: 16px;
  text-align: justify;
}

.text-block p:last-child { margin-bottom: 0; }

/* Text + cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,61,138,0.2), rgba(180,77,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--pink-soft);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Text + image (3:7 ratio) */
.media-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 28px;
  align-items: start;
  margin: 28px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}

.media-row.reverse { grid-template-columns: 7fr 3fr; }
.media-row.reverse .media-img { order: 2; }
.media-row.reverse .media-text { order: 1; }

.media-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-img img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.media-text h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--pink-soft);
  margin-bottom: 14px;
}

.media-text p {
  margin-bottom: 14px;
  font-size: 0.94rem;
  text-align: justify;
  color: var(--text-main);
}

/* Text + card + image combo */
.combo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.combo-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.combo-right img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.mini-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.mini-card h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.mini-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA */
.cta-strip {
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,61,138,0.15), rgba(180,77,255,0.12));
  border: 1px solid var(--border);
  margin: 36px 0;
}

.cta-strip h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.cta-strip p { color: var(--text-muted); margin-bottom: 20px; }

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-main), var(--violet));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(255, 61, 138, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 61, 138, 0.45);
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink-soft); }
.breadcrumb span { color: var(--pink-soft); }

/* Sub pages */
.page-content {
  padding: 20px 0 60px;
}

.page-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 24px;
  color: var(--text-main);
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--pink-soft);
  margin: 28px 0 14px;
}

.page-content p {
  margin-bottom: 16px;
  text-align: justify;
  color: var(--text-main);
  font-size: 0.94rem;
}

.page-content ul, .page-content ol {
  margin: 12px 0 16px 24px;
  color: var(--text-muted);
}

.page-content li { margin-bottom: 8px; }

/* Error pages */
.error-page {
  text-align: center;
  padding: 60px 20px 80px;
}

.error-code {
  font-size: 5rem;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--pink-main), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.4rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 40px;
  background: rgba(0,0,0,0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--pink-soft);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .media-row,
  .media-row.reverse {
    grid-template-columns: 1fr;
  }
  .media-row.reverse .media-img { order: 0; }
  .combo-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .sticky-item { width: calc(25% - 12px); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 6, 24, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-main.open { display: flex; }
  .nav-main a { width: 100%; text-align: center; padding: 12px; }
  .text-block { padding: 20px; }
  .media-img img { max-height: 420px; }
}

@media (min-width: 901px) {
  .sticky-item { width: calc(12.5% - 14px); }
}
