:root {
  --rose: #e63e7a;
  --rose-deep: #b8245c;
  --rose-soft: #ff6b9d;
  --blush: #fff5f8;
  --cream: #fffaf7;
  --wine: #4a1230;
  --sakura: #ffc2d4;
  --peach: #ff9eb5;
  --ink: #2b1522;
  --ink-soft: #5c3d4f;
  --ink-muted: #8a6b7a;
  --white: #ffffff;
  --gold: #e8a84c;
  --border: rgba(230, 62, 122, 0.18);
  --shadow: 0 14px 40px rgba(74, 18, 48, 0.12);
  --radius: 18px;
  --nav-h: 56px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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(--ink);
  line-height: 1.88;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 194, 212, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(230, 62, 122, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(255, 245, 248, 0.9) 0%, transparent 55%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(230, 62, 122, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

a { color: var(--rose-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(960px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 250, 247, 0.94);
  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: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--wine);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--rose);
  box-shadow: 0 4px 14px rgba(230, 62, 122, 0.25);
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--wine);
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(230, 62, 122, 0.1);
  color: var(--rose-deep);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 8px 22px rgba(230, 62, 122, 0.35);
  border: none;
}

.btn-download:hover {
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(230, 62, 122, 0.42);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rose);
  color: var(--rose-deep);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  background: var(--white);
}

/* Sticky ads */
.sticky-ads-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 1100;
  background: rgba(255, 250, 247, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.sticky-ads-wrap.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-header.sticky-mode { box-shadow: var(--shadow); }

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 72px;
  box-sizing: border-box;
}

#ads img, #sticky-ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(74, 18, 48, 0.14);
  transition: transform 0.18s ease;
  border: 2px solid var(--sakura);
}

#ads a, #sticky-ads a { display: inline-block; border-radius: 14px; }

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-3px) scale(1.04);
}

#ads .caption, #sticky-ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.ads-section {
  padding: 14px 0 6px;
  background: linear-gradient(180deg, var(--blush) 0%, transparent 100%);
}

/* Hero */
.hero {
  padding: 36px 0 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--rose-deep);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.45rem, 4.8vw, 2.15rem);
  color: var(--wine);
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 42px 0; }

.section-head {
  margin-bottom: 24px;
}

.section-tag {
  display: inline-block;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  color: var(--wine);
  line-height: 1.4;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.content-rose {
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
}

.content-white {
  background: var(--white);
}

.content-wine {
  background: linear-gradient(160deg, var(--wine) 0%, #6b1f45 100%);
  color: var(--blush);
}

.content-wine h2,
.content-wine h3 { color: var(--white); }

.content-wine p,
.content-wine li { color: rgba(255, 245, 248, 0.88); }

.content-wine a { color: var(--sakura); }

/* Modules */
.module-text p {
  margin-bottom: 16px;
  text-align: justify;
  font-size: 0.94rem;
}

.module-text p:last-child { margin-bottom: 0; }

.module-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-3px); }

.card h3 {
  color: var(--wine);
  font-size: 1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.75;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sakura), var(--rose-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.module-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .module-media.split {
    grid-template-columns: 3fr 7fr;
  }

  .module-media.split.reverse {
    grid-template-columns: 7fr 3fr;
  }

  .module-media.split.reverse .media-box { order: 2; }
  .module-media.split.reverse .media-text { order: 1; }
}

.media-box {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 3px solid var(--sakura);
  box-shadow: var(--shadow);
  background: var(--white);
}

.media-box img { width: 100%; }

.media-caption {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 8px;
  background: var(--blush);
}

.media-text p {
  margin-bottom: 14px;
  text-align: justify;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.feature-list {
  list-style: none;
  margin: 16px 0;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--rose);
  font-size: 0.7rem;
  top: 4px;
}

/* Stats ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

@media (min-width: 600px) {
  .stats-ribbon { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--rose-deep);
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* FAQ */
.faq-list { margin-top: 20px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item h3 {
  color: var(--wine);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.breadcrumb a { color: var(--rose-deep); }
.breadcrumb span { margin: 0 6px; color: var(--sakura); }

/* Subpage */
.page-hero {
  padding: 32px 0 24px;
  background: linear-gradient(180deg, var(--blush), var(--cream));
}

.page-hero h1 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--wine);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.legal-content {
  padding: 32px 0 48px;
}

.legal-content h2 {
  color: var(--wine);
  font-size: 1.1rem;
  margin: 28px 0 12px;
}

.legal-content h3 {
  color: var(--rose-deep);
  font-size: 0.98rem;
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-align: justify;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

/* Footer */
.site-footer {
  background: var(--wine);
  color: rgba(255, 245, 248, 0.82);
  padding: 36px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@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: 40px;
  height: 40px;
  border-radius: 12px;
}

.footer-brand span {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.site-footer h4 {
  color: var(--sakura);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  color: rgba(255, 245, 248, 0.75);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.site-footer a:hover { color: var(--white); }

.footer-copy {
  border-top: 1px solid rgba(255, 194, 212, 0.2);
  padding-top: 18px;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255, 245, 248, 0.55);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .site-header { position: relative; }
  .site-header.sticky-fixed {
    position: sticky;
    top: 0;
  }

  #ads > div, #sticky-ads > div {
    width: calc(25% - 6px);
  }

  #ads img, #sticky-ads img {
    width: 58px;
    height: 58px;
  }
}

@media (min-width: 769px) {
  .site-header { position: sticky; }
}
