@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --pink: #ff3d8f;
  --pink-soft: #ff6eb0;
  --pink-glow: rgba(255, 61, 143, 0.35);
  --magenta: #c2186e;
  --plum: #3a0f2e;
  --plum-deep: #1a0614;
  --violet: #7b2cbf;
  --gold: #ffc857;
  --cream: #fff5f9;
  --white: #ffffff;
  --text: #2a1522;
  --text-muted: #6b4d60;
  --border: rgba(255, 61, 143, 0.18);
  --card-bg: rgba(255, 255, 255, 0.88);
  --shadow: 0 8px 32px rgba(58, 15, 46, 0.12);
  --radius: 16px;
  --nav-h: 60px;
  --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', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.85;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 61, 143, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(123, 44, 191, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(255, 200, 87, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--magenta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(26, 6, 20, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 61, 143, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span { letter-spacing: 0.04em; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pink-soft);
  border-radius: 2px;
  transition: 0.3s;
}

.main-nav { display: none; }

.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(26, 6, 20, 0.97);
  padding: 16px 18px 20px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 61, 143, 0.15);
  color: var(--pink-soft);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px var(--pink-glow);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download:hover { opacity: 0.92; color: var(--white) !important; }

/* ===== STICKY ADS BAR ===== */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 999;
  background: rgba(255, 245, 249, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 4px 20px rgba(58, 15, 46, 0.08);
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-ads-bar #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}

.sticky-ads-bar #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

.sticky-ads-bar #sticky-ads img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(24, 24, 24, 0.1);
  transition: transform 0.18s;
}

.sticky-ads-bar #sticky-ads img:hover { transform: scale(1.06); }

.sticky-ads-bar #sticky-ads a { display: inline-block; border-radius: 14px; }

.sticky-ads-bar #sticky-ads .caption {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  height: 14px;
}

@media (min-width: 768px) {
  .sticky-ads-bar #sticky-ads > div { width: calc(12.5% - 6px); }
  .sticky-ads-bar #sticky-ads img { width: 58px; height: 58px; }
}

/* ===== TOP ADS ===== */
.top-ads-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 10px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#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: calc(25% - 8px);
  box-sizing: border-box;
}

#ads img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
}

#ads a { display: inline-block; text-decoration: none; border-radius: 15px; }

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (min-width: 768px) {
  #ads > div { width: calc(12.5% - 8px); }
  #ads img { width: 65px; height: 65px; }
}

/* ===== MAIN LAYOUT ===== */
main {
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 60px;
}

/* ===== HERO ===== */
.hero {
  padding: 36px 0 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,61,143,0.12), rgba(123,44,191,0.1));
  border: 1px solid var(--border);
  color: var(--magenta);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--plum);
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: var(--white);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 24px var(--pink-glow);
  border: none;
  cursor: pointer;
}

.btn-primary:hover { color: var(--white); opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--magenta);
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--pink-soft);
}

.btn-outline:hover { background: rgba(255,61,143,0.06); color: var(--pink); }

/* ===== SECTIONS ===== */
.section {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  color: var(--plum);
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
}

/* Text block */
.text-block p {
  margin-bottom: 16px;
  text-align: justify;
  font-size: 0.95rem;
}

.text-block h3 {
  font-size: 1.1rem;
  color: var(--plum);
  margin: 24px 0 12px;
  font-weight: 600;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 600px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(58, 15, 46, 0.14);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1rem;
  color: var(--plum);
  margin-bottom: 8px;
  font-weight: 600;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Image + text layout */
.media-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0;
  align-items: center;
}

.media-row.reverse { flex-direction: column-reverse; }

@media (min-width: 768px) {
  .media-row {
    flex-direction: row;
    gap: 36px;
  }
  .media-row.reverse { flex-direction: row-reverse; }
  .media-row .media-col { flex: 0 0 30%; max-width: 30%; }
  .media-row .text-col { flex: 1; }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(58, 15, 46, 0.15);
  border: 2px solid rgba(255, 61, 143, 0.15);
  position: relative;
}

.media-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(58,15,46,0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.media-frame img { width: 100%; }

.media-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Feature highlight */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,61,143,0.06), rgba(123,44,191,0.05));
  border-left: 4px solid var(--pink);
  padding: 20px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.highlight-box p { font-size: 0.93rem; margin: 0; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}

@media (min-width: 600px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* FAQ */
.faq-list { margin: 20px 0; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--plum);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.93rem;
}

.faq-item summary::after { content: '+'; color: var(--pink); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; }

.faq-item .faq-body {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-top: 8px;
}

.breadcrumb a { color: var(--magenta); }
.breadcrumb span { color: var(--text-muted); }

/* Page hero for sub-pages */
.page-hero {
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--plum);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p { color: var(--text-muted); font-size: 0.93rem; }

/* Legal content */
.legal-content h2 {
  font-size: 1.15rem;
  color: var(--plum);
  margin: 32px 0 14px;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--magenta);
  margin: 22px 0 10px;
  font-weight: 600;
}

.legal-content p, .legal-content li {
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 12px;
  text-align: justify;
}

.legal-content ul, .legal-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content li { margin-bottom: 8px; }

/* Error pages */
.error-page {
  text-align: center;
  padding: 60px 0 80px;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 {
  font-size: 1.4rem;
  color: var(--plum);
  margin: 16px 0 12px;
}

.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand span { color: var(--white); font-weight: 600; }

.footer-desc { font-size: 0.85rem; line-height: 1.75; }

.footer-col h4 {
  color: var(--pink-soft);
  font-size: 0.9rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  padding: 5px 0;
}

.footer-col a:hover { color: var(--pink-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255, 61, 143, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: static;
    background: none;
    padding: 0;
    border: none;
    flex-direction: row;
  }

  .main-nav a { padding: 8px 14px; font-size: 0.88rem; }
}

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 20px 0;
}

/* Tag list */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  background: rgba(255, 61, 143, 0.08);
  color: var(--magenta);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--plum), var(--magenta));
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  color: var(--white);
  margin: 40px 0;
  box-shadow: 0 12px 40px rgba(194, 24, 110, 0.3);
}

.cta-banner h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.cta-banner p {
  font-size: 0.9rem;
  opacity: 0.88;
  margin-bottom: 20px;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--magenta);
  box-shadow: none;
}

.cta-banner .btn-primary:hover { color: var(--pink); }
