@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --rose-50: #fff5f7;
  --rose-100: #ffe4ec;
  --rose-200: #ffc9dc;
  --rose-300: #ff9fbe;
  --rose-400: #ff6b9d;
  --rose-500: #f03d7a;
  --rose-600: #d42a62;
  --coral: #ff7e6b;
  --peach: #ffb4a2;
  --champagne: #fdf6f0;
  --cream: #fffaf7;
  --ink: #2a1520;
  --ink-soft: #5c3d4a;
  --ink-muted: #8a6b78;
  --white: #ffffff;
  --shadow-soft: 0 8px 32px rgba(240, 61, 122, 0.1);
  --shadow-card: 0 4px 24px rgba(42, 21, 32, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --nav-h: 58px;
  --ads-sticky-h: 0px;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 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(--cream);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 159, 190, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(255, 180, 162, 0.15), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 228, 236, 0.4), transparent 50%),
    linear-gradient(180deg, var(--champagne) 0%, var(--cream) 40%, var(--rose-50) 100%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

a { color: var(--rose-500); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--rose-600); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 159, 190, 0.25);
  height: var(--nav-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--rose-100);
  color: var(--rose-600);
}

.header-cta .btn-dl {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(240, 61, 122, 0.35);
  white-space: nowrap;
}

.header-cta .btn-dl:hover { color: var(--white); opacity: 0.92; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
}

/* Sticky Ads Bar */
.sticky-ads-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 1400;
  background: rgba(255, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 159, 190, 0.2);
  padding: 8px 0;
  display: none;
}

.sticky-ads-bar.visible { display: block; }

#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

#ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 8px);
  min-width: 70px;
}

#ads-sticky img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(42, 21, 32, 0.12);
  transition: transform 0.18s;
}

#ads-sticky img:hover { transform: translateY(-3px) scale(1.05); }

#ads-sticky .caption {
  font-size: 10px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* Top Ads */
.ads-top-wrap {
  padding: 14px 0 6px;
  background: transparent;
}

#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: 70px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(42, 21, 32, 0.12);
  transition: transform 0.18s;
}

#ads img:hover { transform: translateY(-4px) scale(1.04); }

#ads .caption {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  background: var(--rose-100);
  color: var(--rose-600);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--ink) 30%, var(--rose-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(240, 61, 122, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border: 2px solid var(--rose-300);
  color: var(--rose-600) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-ghost:hover { background: var(--rose-50); }

/* Sections */
.section {
  padding: 52px 0;
}

.section-alt {
  background: rgba(255, 245, 247, 0.6);
  border-top: 1px solid rgba(255, 159, 190, 0.15);
  border-bottom: 1px solid rgba(255, 159, 190, 0.15);
}

.section-title {
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.breadcrumb a { color: var(--rose-500); }
.breadcrumb span { margin: 0 6px; }

/* Prose */
.prose {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

.prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--ink);
}

.prose ul, .prose ol {
  margin: 12px 0 16px 24px;
  color: var(--ink-soft);
}

.prose li { margin-bottom: 8px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 159, 190, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-card .card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--rose-100), var(--rose-200));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Image blocks */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 28px 0;
}

.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--white);
  position: relative;
}

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 190, 0.2);
  pointer-events: none;
}

.media-frame img { width: 100%; }

.media-caption {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Highlight panel */
.highlight-panel {
  background: linear-gradient(135deg, var(--rose-50), var(--white));
  border-left: 4px solid var(--rose-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}

.highlight-panel p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0;
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.stat-box {
  text-align: center;
  padding: 20px 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-box strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--rose-500);
  margin-bottom: 4px;
}

.stat-box span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* FAQ */
.faq-list { margin-top: 20px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after { content: '+'; color: var(--rose-400); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; }

.faq-item .faq-body {
  padding: 0 20px 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  width: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; }
.footer-col a:hover { color: var(--rose-300); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--rose-400);
  margin-bottom: 12px;
}

.error-page p { color: var(--ink-muted); margin-bottom: 24px; }

/* Legal pages */
.legal-hero {
  padding: 36px 0 20px;
  border-bottom: 1px solid rgba(255, 159, 190, 0.2);
  margin-bottom: 32px;
}

.legal-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
.legal-hero p { color: var(--ink-muted); font-size: 0.9rem; }

.legal-content { padding-bottom: 48px; }
.legal-content h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal-content p { margin-bottom: 14px; color: var(--ink-soft); font-size: 0.93rem; }
.legal-content ul { margin: 10px 0 16px 24px; color: var(--ink-soft); font-size: 0.93rem; }
.legal-content li { margin-bottom: 6px; }

/* Mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rose-100);
    padding: 12px;
    box-shadow: var(--shadow-card);
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 16px; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .media-block { grid-template-columns: 1fr; gap: 20px; }
  .media-block.reverse { direction: ltr; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  #ads-sticky > div { width: calc(25% - 8px); }
}

@media (min-width: 769px) {
  #ads-sticky > div { width: calc(12.5% - 8px); }
}
