:root {
  --pink: #ff4d8d;
  --pink-soft: #ff8fb8;
  --pink-glow: rgba(255, 77, 141, 0.35);
  --rose-dark: #1a0f18;
  --plum: #2d1b2e;
  --cream: #fff5f8;
  --white: #ffffff;
  --text: #2a1f28;
  --text-muted: #6b5a65;
  --border: rgba(255, 77, 141, 0.18);
  --shadow: 0 12px 40px rgba(26, 15, 24, 0.12);
  --radius: 18px;
  --nav-h: 64px;
  --sticky-ads-h: 0px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 10%, var(--pink-glow) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 143, 184, 0.2) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--pink); text-decoration: none; transition: color 0.2s; }
a:hover { color: #e03a78; }

img { max-width: 100%; height: auto; display: block; border-radius: 14px; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--plum) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.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(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--pink-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 77, 141, 0.25);
  color: var(--white);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pink) 0%, #ff6b9d 100%);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px var(--pink-glow);
  white-space: nowrap;
}

.btn-download:hover { transform: translateY(-1px); filter: brightness(1.05); 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, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-ads-bar #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.sticky-ads-bar #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 8px);
  box-sizing: border-box;
}

.sticky-ads-bar #ads-sticky img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
}

.sticky-ads-bar #ads-sticky .caption {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .sticky-ads-bar #ads-sticky > div { width: calc(12.5% - 8px); }
  .sticky-ads-bar #ads-sticky img { width: 58px; height: 58px; }
}

/* Top ads */
.ads-top-wrap {
  background: linear-gradient(180deg, #ffe8f0 0%, var(--cream) 100%);
  padding: 14px 0 10px;
  border-bottom: 1px dashed var(--border);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 10px);
}

#ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(24,24,24,0.12);
  transition: transform 0.18s, box-shadow 0.18s;
}

#ads a { border-radius: 16px; }

#ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24,24,24,0.18);
}

#ads .caption {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (min-width: 768px) {
  #ads > div { width: calc(12.5% - 10px); }
  #ads img { width: 68px; height: 68px; }
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 77, 141, 0.12);
  color: var(--pink);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--rose-dark);
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 52px 0; }
.section-alt { background: var(--white); }
.section-dark {
  background: linear-gradient(160deg, var(--rose-dark) 0%, var(--plum) 100%);
  color: rgba(255,255,255,0.92);
}

.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.82); }
.section-dark a { color: var(--pink-soft); }

.section-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--rose-dark);
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, var(--pink), var(--pink-soft));
  border-radius: 4px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.98rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(255, 77, 141, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--rose-dark);
}

.card p { font-size: 0.94rem; color: var(--text-muted); }

/* Text + image layouts */
.split-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

.split-row.reverse .split-img { order: -1; }

.split-img img {
  width: 100%;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 77, 141, 0.15);
}

.split-text h3 {
  font-size: 1.25rem;
  color: var(--rose-dark);
  margin-bottom: 12px;
}

.split-text p { margin-bottom: 14px; color: var(--text); font-size: 0.96rem; }

@media (min-width: 768px) {
  .split-row { grid-template-columns: 3fr 7fr; }
  .split-row.img-left { grid-template-columns: 3fr 7fr; }
  .split-row.img-right { grid-template-columns: 7fr 3fr; }
  .split-row.img-right .split-img { order: 2; }
}

/* Feature list */
.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li {
  background: var(--white);
  padding: 18px 22px;
  border-radius: 14px;
  border-left: 4px solid var(--pink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.feature-list strong { color: var(--rose-dark); }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  padding: 22px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 143, 184, 0.2);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pink-soft);
  display: block;
}

.stat-label { font-size: 0.88rem; opacity: 0.85; }

@media (min-width: 600px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  font-weight: 600;
  color: var(--rose-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* Page content */
.page-hero {
  padding: 36px 0 28px;
  background: linear-gradient(135deg, var(--rose-dark), var(--plum));
  color: var(--white);
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 8px; }
.page-hero p { opacity: 0.85; font-size: 0.95rem; }

.legal-content, .about-content {
  padding: 40px 0 60px;
}

.legal-content h2, .about-content h2 {
  font-size: 1.25rem;
  color: var(--rose-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.legal-content h3, .about-content h3 {
  font-size: 1.05rem;
  color: var(--plum);
  margin: 22px 0 10px;
}

.legal-content p, .about-content p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.legal-content ul, .about-content ul {
  margin: 12px 0 16px 24px;
  font-size: 0.95rem;
}

.legal-content li, .about-content li { margin-bottom: 8px; }

/* Footer */
.site-footer {
  background: var(--rose-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand img {
  width: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--pink-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { font-size: 1.5rem; margin: 16px 0; color: var(--rose-dark); }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--plum);
    padding: 12px;
    display: none;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 16px; }

  .header-cta { display: none; }
}

@media (min-width: 768px) {
  .header-cta { display: block; }
}

/* Inline highlight */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,77,141,0.08), rgba(255,143,184,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.tag {
  background: rgba(255, 77, 141, 0.1);
  color: var(--pink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
}
