:root {
  --bg-deep: #120810;
  --bg-panel: #1c0f18;
  --bg-card: #261422;
  --bg-card-hover: #2e1828;
  --rose: #ff4d7a;
  --rose-soft: #ff7a9e;
  --rose-glow: rgba(255, 77, 122, 0.35);
  --amber: #ffb84d;
  --amber-soft: #ffd080;
  --violet: #c77dff;
  --violet-soft: #e0a8ff;
  --cream: #fff5f8;
  --text: #fce8ef;
  --text-muted: #c4a0b0;
  --border: rgba(255, 77, 122, 0.2);
  --grad-hero: linear-gradient(145deg, #ff4d7a 0%, #c77dff 48%, #ffb84d 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 77, 122, 0.12), rgba(199, 125, 255, 0.08));
  --grad-btn: linear-gradient(120deg, #ff4d7a, #e8559a 55%, #c77dff);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --nav-h: 58px;
  --sticky-h: 0px;
  --radius: 20px;
  --radius-sm: 12px;
  --max-w: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "STKaiti", "KaiTi", "PingFang SC", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.88;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 55% 40% at 15% 0%, rgba(255, 77, 122, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 35% at 90% 5%, rgba(199, 125, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(255, 184, 77, 0.08), transparent 65%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 77, 122, 0.02) 3px, rgba(255, 77, 122, 0.02) 4px);
  background-attachment: fixed;
}

a { color: var(--rose-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-soft); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 28px, var(--max-w)); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(18, 8, 16, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--rose-glow);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 7px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cream);
  background: rgba(255, 77, 122, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 1.3rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px var(--rose-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--rose-glow);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--border);
  color: var(--rose-soft);
  border-radius: 50px;
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--rose);
  background: rgba(255, 77, 122, 0.08);
  color: var(--cream);
}

/* Sticky ads */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 999;
  background: rgba(18, 8, 16, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 72px;
  box-sizing: border-box;
}

#ads img, #ads-sticky img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s;
  border: 2px solid rgba(255, 77, 122, 0.25);
}

#ads a, #ads-sticky a { display: inline-block; border-radius: 16px; }
#ads img:hover, #ads-sticky img:hover { transform: scale(1.06); }

#ads figcaption, #ads-sticky figcaption,
#ads .caption, #ads-sticky .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (max-width: 768px) {
  #ads > div, #ads-sticky > div { width: calc(25% - 6px); }
  #ads img, #ads-sticky img { width: 58px; height: 58px; }
}

/* Ads top */
.ads-top-wrap {
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: 8px;
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 77, 122, 0.18);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--amber-soft);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 24px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-ribbons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ribbon {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--rose);
}

.ribbon strong {
  display: block;
  font-size: 1.1rem;
  color: var(--amber);
  line-height: 1.3;
}

.ribbon span { font-size: 0.78rem; color: var(--text-muted); }

/* Sections */
.section {
  padding: 52px 0;
  border-top: 1px solid rgba(255, 77, 122, 0.08);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--violet-soft);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.4;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 720px;
}

.text-block p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.96rem;
}

.text-block h3 {
  font-size: 1.1rem;
  color: var(--rose-soft);
  margin: 22px 0 10px;
}

.text-block ul, .text-block ol {
  margin: 12px 0 16px 20px;
  color: var(--text-muted);
}

.text-block li { margin-bottom: 8px; }

/* Cards */
.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-hero);
  opacity: 0.5;
}

.card:hover {
  border-color: rgba(255, 77, 122, 0.4);
  transform: translateY(-3px);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(199, 125, 255, 0.15);
  color: var(--violet-soft);
  border-radius: 50px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

/* Media rows */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 768px) {
  .media-row.reverse { direction: rtl; }
  .media-row.reverse > * { direction: ltr; }
  .media-row.split { grid-template-columns: 38% 1fr; }
  .media-row.split-wide { grid-template-columns: 1fr 38%; }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-panel);
}

.media-frame img { width: 100%; }

.media-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Pull quote */
.pullquote {
  border-left: 4px solid var(--rose);
  padding: 16px 22px;
  margin: 24px 0;
  background: rgba(255, 77, 122, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--amber-soft);
  line-height: 1.7;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 77, 122, 0.08);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "◆";
  color: var(--rose);
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 6px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
}

.faq-q::after { content: "+"; color: var(--rose); font-size: 1.2rem; }
.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.open .faq-a { display: block; }

/* Breadcrumb */
.breadcrumb {
  padding: calc(var(--nav-h) + 20px) 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--rose-soft); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Page header */
.page-header {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cream);
  margin-bottom: 10px;
}

.page-header p { color: var(--text-muted); font-size: 0.94rem; }

/* Legal content */
.legal-content h2 {
  font-size: 1.15rem;
  color: var(--rose-soft);
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--amber-soft);
  margin: 22px 0 10px;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 12px;
}

.legal-content ul, .legal-content ol { margin-left: 22px; margin-bottom: 16px; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}

.error-code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 { font-size: 1.4rem; color: var(--cream); margin-bottom: 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(12, 6, 10, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-size: 0.88rem;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--rose-soft); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 77, 122, 0.08);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(18, 8, 16, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 16px; }

  .header-cta { display: none; }

  .hero { padding: 32px 0 40px; }
  .section { padding: 36px 0; }
}

@media (min-width: 769px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
