@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --bg-deep: #140810;
  --bg-panel: #1f0f1a;
  --bg-card: rgba(42, 18, 36, 0.85);
  --rose: #e84393;
  --rose-light: #ff6b9d;
  --gold: #f0c27f;
  --champagne: #ffd89b;
  --blush: #ffb3c6;
  --wine: #6b1e3c;
  --text: #f8eef2;
  --text-soft: #c9b0bc;
  --border: rgba(232, 67, 147, 0.28);
  --glow: 0 0 40px rgba(232, 67, 147, 0.22);
  --nav-h: 58px;
  --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(--bg-deep);
  color: var(--text);
  line-height: 1.9;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 0% 0%, rgba(107, 30, 60, 0.45), transparent 60%),
    radial-gradient(ellipse 65% 50% at 100% 20%, rgba(232, 67, 147, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(240, 194, 127, 0.08), transparent 50%),
    linear-gradient(175deg, #140810 0%, #1a0c16 45%, #12060e 100%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

a { color: var(--champagne); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rose-light); }

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(20, 8, 16, 0.92);
  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;
  color: var(--text);
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--glow);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-soft);
  font-size: 0.88rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(232, 67, 147, 0.2);
}

.header-cta .btn-dl {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(232, 67, 147, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Ads */
.ads-top-wrap {
  padding: 12px 0 8px;
  background: rgba(31, 15, 26, 0.6);
  border-bottom: 1px solid var(--border);
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img, #ads-sticky img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
  border: 2px solid rgba(240, 194, 127, 0.2);
}

#ads a, #ads-sticky a { display: inline-block; border-radius: 16px; }

#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.03);
}

#ads .caption, #ads-sticky .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.sticky-ads-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 1400;
  background: rgba(20, 8, 16, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  display: none;
}

.sticky-ads-bar.visible { display: block; }

@media (min-width: 769px) {
  #ads-sticky > div { width: calc(100% / 8); max-width: 80px; }
}

@media (max-width: 768px) {
  #ads-sticky > div { width: calc(100% / 4); max-width: 80px; }
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(240, 194, 127, 0.12);
  border: 1px solid rgba(240, 194, 127, 0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, var(--blush), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-dl {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--rose), #a8285a);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(232, 67, 147, 0.4);
}

.btn-ghost {
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--champagne);
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-alt {
  background: rgba(31, 15, 26, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.prose p {
  margin-bottom: 1.1em;
  color: var(--text);
  text-align: justify;
}

.prose p:last-child { margin-bottom: 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(240, 194, 127, 0.4);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--blush);
}

.card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Media blocks */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 32px 0;
}

.media-row.reverse { direction: rtl; }
.media-row.reverse > * { direction: ltr; }

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--glow);
}

.media-frame img { width: 100%; }

.media-caption {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 8px;
  text-align: center;
}

/* Feature ribbon */
.ribbon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.ribbon {
  padding: 6px 14px;
  background: rgba(232, 67, 147, 0.15);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--blush);
}

/* Quote */
.quote-block {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--rose);
  background: rgba(107, 30, 60, 0.2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-block p {
  color: var(--text-soft);
  font-style: italic;
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.stat-box {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-box strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  font-family: 'ZCOOL XiaoWei', serif;
}

.stat-box span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* FAQ */
.faq-item {
  margin-bottom: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--champagne);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.breadcrumb a { color: var(--champagne); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Page content */
.page-hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 8px; }
.page-hero p { color: var(--text-soft); font-size: 0.92rem; }

.legal-content h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--blush);
}

.legal-content h3 {
  font-size: 1rem;
  margin: 22px 0 10px;
  color: var(--champagne);
}

.legal-content p, .legal-content li {
  color: var(--text-soft);
  margin-bottom: 10px;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(20, 8, 16, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 10px;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-soft); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--rose);
  margin-bottom: 12px;
}

.error-page p { color: var(--text-soft); margin-bottom: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(20, 8, 16, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px;
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-cta { display: none; }

  .media-row { grid-template-columns: 1fr; }
  .media-row.reverse { direction: ltr; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
