@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #fff8f5;
  --blush: #ffe8ef;
  --rose: #ff4d7a;
  --rose-deep: #d42d5c;
  --wine: #6b1840;
  --plum: #3d1a30;
  --gold: #e8a84c;
  --peach: #ffb88c;
  --lavender: #c9a0dc;
  --ink: #2a1520;
  --muted: #7a5a68;
  --card: #ffffff;
  --line: rgba(212, 45, 92, 0.15);
  --shadow: 0 8px 32px rgba(107, 24, 64, 0.1);
  --glow: 0 0 48px rgba(255, 77, 122, 0.25);
  --nav-h: 58px;
  --sticky-h: 88px;
  --radius: 18px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255, 184, 140, 0.35), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(255, 77, 122, 0.18), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 160, 220, 0.15), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum);
}

.decor-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-weight: 400;
}

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(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1300;
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
}

.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(--plum);
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose-deep);
  background: var(--blush);
}

.header-cta { flex-shrink: 0; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  box-shadow: var(--glow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 77, 122, 0.4);
  color: #fff !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 2px solid var(--rose);
  color: var(--rose-deep) !important;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--blush);
  color: var(--rose-deep) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--plum);
  cursor: pointer;
  padding: 4px;
}

/* Ads */
.ads-top-wrap {
  background: linear-gradient(180deg, var(--blush), transparent);
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--line);
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 6px 0;
  gap: 8px;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 8px);
  min-width: 70px;
  box-sizing: border-box;
}

#ads img, #ads-sticky img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(107, 24, 64, 0.15);
  transition: transform 0.18s, box-shadow 0.18s;
  display: block;
  border: 2px solid #fff;
}

#ads a, #ads-sticky a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
}

#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(107, 24, 64, 0.22);
}

#ads figcaption, #ads .caption,
#ads-sticky figcaption, #ads-sticky .caption {
  height: 15px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.sticky-ads-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 1200;
  background: rgba(255, 248, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(90deg, var(--blush), #fff);
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--rose-deep);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--plum), var(--rose-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--blush) 0%, transparent 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Content blocks */
.text-block { margin-bottom: 20px; }

.text-block p { margin-bottom: 14px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(107, 24, 64, 0.14);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--rose-deep);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 32px 0;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.feature-img img { width: 100%; }

.feature-text h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--wine);
}

.highlight-box {
  background: linear-gradient(135deg, var(--blush), #fff);
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 22px 0;
}

.highlight-box p { margin: 0; color: var(--plum); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  padding: 5px 14px;
  background: var(--blush);
  color: var(--rose-deep);
  font-size: 0.82rem;
  border-radius: 50px;
  font-weight: 500;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.stat-item {
  text-align: center;
  padding: 18px 10px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stat-num {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.8rem;
  color: var(--rose);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--rose-deep); }

/* Page hero */
.page-hero {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 10px;
}

.page-hero p { color: var(--muted); }

.legal-body h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--wine);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blush);
}

.legal-body h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
  color: var(--rose-deep);
}

.legal-body p, .legal-body li {
  margin-bottom: 12px;
  color: var(--ink);
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}

.site-footer a { color: var(--peach); }
.site-footer a:hover { color: var(--gold); }

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 20px;
  min-height: 50vh;
}

.error-code {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 5rem;
  color: var(--rose);
  line-height: 1;
}

.error-page h1 { margin: 16px 0; }
.error-page p { color: var(--muted); margin-bottom: 24px; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 248, 245, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  #ads > div, #ads-sticky > div {
    width: calc(25% - 8px);
  }
}

@media (max-width: 480px) {
  .hero { padding: 32px 0 28px; }
  .section { padding: 32px 0; }
}
