@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --cream: #fff6f8;
  --blush: #ffe4ec;
  --rose: #e8437a;
  --rose-deep: #c42d62;
  --plum: #6b2d5c;
  --lavender: #b48bdc;
  --gold: #d4a853;
  --ink: #2a1a28;
  --ink-soft: #5c4a58;
  --panel: #ffffff;
  --border: rgba(232, 67, 122, 0.18);
  --shadow: 0 12px 40px rgba(107, 45, 92, 0.1);
  --nav-h: 58px;
  --sticky-h: 88px;
  --radius: 18px;
}

*, *::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.88;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(180, 139, 220, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 8%, rgba(232, 67, 122, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 30% at 50% 100%, rgba(212, 168, 83, 0.1), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', serif;
  color: var(--plum);
  line-height: 1.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(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 246, 248, 0.95);
  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: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--plum);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(232, 67, 122, 0.25);
}

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(135deg, var(--blush), #fff);
  color: var(--rose-deep);
}

.header-cta .btn-dl {
  padding: 9px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--plum);
  cursor: pointer;
}

/* Sticky ads */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1150;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: 0 6px 20px rgba(107, 45, 92, 0.08);
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#ads-sticky > div {
  width: calc(12.5% - 6px);
  min-width: 62px;
  max-width: 80px;
}

#ads-sticky img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(24, 24, 24, 0.1);
}

#ads-sticky .caption {
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* Top ads */
.ads-top-wrap {
  padding: 14px 0 6px;
  background: linear-gradient(180deg, var(--blush), transparent);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 0.18s;
}

#ads a { border-radius: 16px; }
#ads img:hover { transform: translateY(-3px) scale(1.03); }

#ads .caption {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Buttons */
.btn-dl {
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(232, 67, 122, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 67, 122, 0.42);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--rose);
  color: var(--rose-deep) !important;
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--blush);
  color: var(--rose-deep) !important;
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  background: linear-gradient(90deg, var(--lavender), var(--rose));
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--plum), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 228, 236, 0.45), transparent);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-3px); }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--rose-deep);
}

.card p {
  font-size: 14px;
  color: var(--ink-soft);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blush), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

/* Media layouts */
.media-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  margin: 28px 0;
}

.media-split.reverse { grid-template-columns: 1.2fr 1fr; }

.media-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.media-shot img { width: 100%; }

.media-shot figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--panel);
  text-align: center;
}

.media-text h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(180, 139, 220, 0.12), rgba(232, 67, 122, 0.08));
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p { color: var(--ink); }

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.feature-pill {
  text-align: center;
  padding: 18px 12px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-pill strong {
  display: block;
  color: var(--rose-deep);
  margin-bottom: 6px;
  font-size: 15px;
}

.feature-pill span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a { color: var(--rose); }
.breadcrumb span { margin: 0 6px; }

/* Legal / sub pages */
.page-hero {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-hero h1 { font-size: 1.8rem; }

.legal-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: var(--rose-deep);
}

.legal-content p,
.legal-content li {
  margin-bottom: 14px;
  color: var(--ink);
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--plum), #4a1f40);
  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-grid h4 {
  color: var(--blush);
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* FAQ */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--rose-deep);
}

/* Mobile */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    z-index: 1100;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul { flex-direction: column; }

  .nav-toggle { display: block; }

  .media-split,
  .media-split.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  #ads-sticky > div {
    width: calc(25% - 6px);
  }
}

@media (min-width: 769px) {
  #ads-sticky > div {
    width: calc(12.5% - 6px);
  }
}
