@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700;900&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #fff5f8;
  --bg-warm: #ffe8ef;
  --bg-card: rgba(255, 255, 255, 0.88);
  --plum: #6b1d4a;
  --plum-deep: #4a0f32;
  --rose: #e84393;
  --rose-light: #ff6eb4;
  --blush: #ffb8d0;
  --gold: #c9a227;
  --gold-soft: #f0d78c;
  --text-dark: #2a1520;
  --text-mid: #5c3a4a;
  --text-soft: #8a6272;
  --border-rose: rgba(232, 67, 147, 0.22);
  --shadow-soft: 0 8px 32px rgba(107, 29, 74, 0.1);
  --shadow-glow: 0 0 40px rgba(232, 67, 147, 0.15);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --nav-h: 58px;
  --sticky-h: 88px;
}

*, *::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(--bg-base);
  color: var(--text-dark);
  line-height: 1.85;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 184, 208, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(232, 67, 147, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 50% 100%, rgba(201, 162, 39, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232, 67, 147, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--plum); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rose); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
  color: var(--plum-deep);
  line-height: 1.45;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 245, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-rose);
  box-shadow: 0 2px 20px rgba(107, 29, 74, 0.06);
}

.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-deep);
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(232, 67, 147, 0.35);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(135deg, var(--rose), var(--plum));
  color: #fff;
}

.header-cta .btn-dl {
  padding: 8px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-rose);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  color: var(--plum);
  cursor: pointer;
}

/* Sticky ads bar */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1150;
  background: rgba(255, 245, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-rose);
  padding: 8px 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;
}

#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 72px;
}

#ads-sticky img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(107, 29, 74, 0.12);
}

#ads-sticky .caption {
  font-size: 10px;
  color: var(--text-soft);
  margin-top: 3px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 768px) {
  #ads-sticky > div { width: calc(25% - 6px); }
  #ads-sticky img { width: 52px; height: 52px; }
}

/* Top ads */
.ads-top-wrap {
  padding: 14px 0 6px;
  background: linear-gradient(180deg, var(--bg-warm), 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: 16px;
  box-shadow: 0 6px 18px rgba(107, 29, 74, 0.14);
  transition: transform 0.18s;
}

#ads img:hover { transform: translateY(-3px) scale(1.03); }

#ads .caption {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Buttons */
.btn-dl {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(232, 67, 147, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232, 67, 147, 0.45);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--rose);
  color: var(--plum) !important;
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--rose);
  color: #fff !important;
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(232, 67, 147, 0.1);
  border: 1px solid var(--border-rose);
  border-radius: 999px;
  font-size: 12px;
  color: var(--rose);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--plum-deep), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--text-mid);
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, transparent, rgba(255, 232, 239, 0.5), transparent);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}

.section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--rose), var(--gold));
  border-radius: 2px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 14px;
  padding-left: 16px;
}

/* Content layouts */
.content-block { margin-bottom: 24px; }

.content-block p {
  margin-bottom: 16px;
  text-align: justify;
}

/* Text + Image (3:7 ratio) */
.media-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 32px;
  align-items: start;
  margin: 28px 0;
}

.media-row.reverse { grid-template-columns: 7fr 3fr; }
.media-row.reverse .media-col { order: 2; }
.media-row.reverse .text-col { order: 1; }

.media-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 184, 208, 0.5);
}

.media-col figcaption {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .media-row,
  .media-row.reverse {
    grid-template-columns: 1fr;
  }
  .media-row.reverse .media-col,
  .media-row.reverse .text-col { order: unset; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-rose);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--plum);
}

.card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
}

.card-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--blush), var(--rose-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

/* Card + Image combo */
.card-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.card-media {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-rose);
  box-shadow: var(--shadow-soft);
}

.card-media img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.card-media-body {
  padding: 18px;
}

.card-media-body h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.card-media-body p {
  font-size: 13px;
  color: var(--text-mid);
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.08), rgba(201, 162, 39, 0.06));
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p { margin-bottom: 0; }

/* Feature list */
.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px dashed var(--border-rose);
  font-size: 14px;
  color: var(--text-mid);
}

.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-size: 10px;
  top: 14px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a { color: var(--text-mid); }
.breadcrumb span { margin: 0 8px; color: var(--blush); }

/* Page hero (subpages) */
.page-hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-rose);
  margin-bottom: 32px;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 14px;
}

/* Legal content */
.legal-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-rose);
}

.legal-content h3 {
  font-size: 1rem;
  margin: 22px 0 10px;
  color: var(--plum);
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-family: 'Noto Serif SC', serif;
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  -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 10px;
}

.error-page p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(107, 29, 74, 0.06));
  border-top: 1px solid var(--border-rose);
  padding: 40px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 10px;
}

.footer-links h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--plum);
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-mid);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  padding-top: 20px;
  border-top: 1px dashed var(--border-rose);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 245, 248, 0.98);
    border-bottom: 1px solid var(--border-rose);
    padding: 12px;
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .header-cta { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 32px 0 40px; }
  .section { padding: 36px 0; }
}
