:root {
  --crimson: #e63946;
  --rose: #ff5c8a;
  --rose-glow: #ff8fab;
  --plum: #5c1a4a;
  --violet-deep: #2b0a2e;
  --violet-mid: #4a1942;
  --gold: #f4a261;
  --cream: #fff5f7;
  --text: #f8e8ee;
  --text-dim: #c9a8b8;
  --glass: rgba(92, 26, 74, 0.45);
  --border: rgba(255, 92, 138, 0.28);
  --grad-hero: linear-gradient(125deg, #e63946 0%, #ff5c8a 40%, #9b4dca 100%);
  --grad-card: linear-gradient(160deg, rgba(230,57,70,0.12), rgba(155,77,202,0.08));
  --shadow-rose: 0 16px 48px rgba(230, 57, 70, 0.22);
  --nav-h: 60px;
  --radius: 16px;
  --max-w: 1140px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-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(--violet-deep);
  color: var(--text);
  line-height: 1.88;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(230,57,70,0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 5%, rgba(155,77,202,0.16), transparent 50%),
    radial-gradient(ellipse 80% 35% at 50% 100%, rgba(244,162,97,0.08), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--rose-glow); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cream); }

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(43, 10, 46, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--rose);
  box-shadow: 0 0 20px rgba(255, 92, 138, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.45rem;
  cursor: pointer;
  padding: 6px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: all .22s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cream);
  background: var(--glass);
  border-bottom: 2px solid var(--rose);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--grad-hero);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-rose);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(230, 57, 70, 0.38);
  color: #fff !important;
}

/* ── Sticky ads ── */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 999;
  background: rgba(43, 10, 46, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-ads-bar #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.sticky-ads-bar #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
}

.sticky-ads-bar #ads-sticky img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.sticky-ads-bar #ads-sticky .caption {
  height: 13px;
  font-size: 9px;
  color: var(--text-dim);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .sticky-ads-bar #ads-sticky > div { width: calc(12.5% - 6px); }
  .sticky-ads-bar #ads-sticky img { width: 56px; height: 56px; }
}

/* ── Top ads ── */
.ads-top-wrap {
  padding-top: calc(var(--nav-h) + 16px);
  margin-bottom: 4px;
}

#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: 70px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform .18s ease;
  border: 1px solid var(--border);
}

#ads img:hover { transform: translateY(-3px) scale(1.03); }

#ads .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Hero ── */
.hero {
  padding: 36px 0 52px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--rose);
  border-radius: 4px;
  color: var(--rose-glow);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.8vw, 2.6rem);
  line-height: 1.32;
  color: var(--cream);
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rose);
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero-panel {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,92,138,0.2), transparent 70%);
  pointer-events: none;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
}

.hero-panel li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-panel li:last-child { border-bottom: none; }

.hero-panel li::before {
  content: "◆";
  color: var(--rose);
  font-size: 0.6rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-outline {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  transition: all .2s;
}

.btn-outline:hover {
  border-color: var(--rose);
  background: var(--glass);
  color: var(--cream);
}

/* ── Sections ── */
.section {
  padding: 44px 0;
  position: relative;
}

.section-wave {
  height: 3px;
  background: var(--grad-hero);
  opacity: 0.35;
  margin-bottom: 36px;
  border-radius: 2px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  color: var(--cream);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 0.93rem;
}

/* ── Text ── */
.text-block p { margin-bottom: 1.15em; text-align: justify; }
.text-block h3 {
  color: var(--rose-glow);
  margin: 1.6em 0 0.7em;
  font-size: 1.1rem;
  padding-left: 12px;
  border-left: 3px solid var(--crimson);
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity .22s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--rose);
}

.card:hover::after { opacity: 1; }

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--cream);
}

.card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.72;
}

.card-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(230,57,70,0.2);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--rose-glow);
  margin-bottom: 10px;
}

/* ── Media ── */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin: 28px 0;
}

@media (min-width: 768px) {
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row.reverse .media-img { order: -1; }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-rose);
}

.media-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}

/* ── Combo ── */
.feature-combo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 28px 0;
}

@media (min-width: 860px) {
  .feature-combo { grid-template-columns: 1fr 1fr; }
}

.mini-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(74, 25, 66, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}

.mini-card .num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.mini-card h4 { font-size: 0.92rem; margin-bottom: 3px; color: var(--cream); }
.mini-card p { font-size: 0.83rem; color: var(--text-dim); }

/* ── Pill row ── */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(92,26,74,0.3);
}

/* ── FAQ ── */
.faq-list { margin: 20px 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--glass);
}

.faq-q {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  color: var(--cream);
  font-size: 0.93rem;
}

.faq-a {
  padding: 0 18px 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

@media (min-width: 600px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  text-align: center;
  padding: 18px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--rose); }
.stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

/* ── Highlight ── */
.highlight-box {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(230,57,70,0.1);
  border-left: 4px solid var(--crimson);
  margin: 22px 0;
}

.highlight-box strong { color: var(--rose-glow); }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 0.83rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--rose-glow); }
.breadcrumb span { margin: 0 6px; }

.page-with-ads .breadcrumb { padding-top: 12px; }

/* ── Page header ── */
.page-header {
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  color: var(--cream);
  margin-bottom: 8px;
}

.page-header p { color: var(--text-dim); font-size: 0.92rem; }

/* ── Legal ── */
.legal-content h2 {
  font-size: 1.15rem;
  color: var(--rose-glow);
  margin: 1.8em 0 0.7em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--cream);
  margin: 1.4em 0 0.5em;
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  margin-bottom: 0.9em;
  text-align: justify;
  font-size: 0.93rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

/* ── Footer ── */
.site-footer {
  margin-top: 50px;
  padding: 36px 0 24px;
  border-top: 1px solid var(--border);
  background: rgba(27, 6, 30, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-top: 10px;
  line-height: 1.7;
}

.footer-links h4 { color: var(--cream); font-size: 0.92rem; margin-bottom: 10px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text-dim); font-size: 0.86rem; }

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── Error ── */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 50px;
}

.error-code {
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--rose);
  line-height: 1;
  text-shadow: 0 0 60px rgba(255,92,138,0.4);
}

.error-page h1 { font-size: 1.4rem; margin: 14px 0 8px; color: var(--cream); }
.error-page p { color: var(--text-dim); margin-bottom: 20px; max-width: 420px; }

/* ── Mobile ── */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(43, 10, 46, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 14px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all .28s;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul { flex-direction: column; gap: 2px; }
  .header-cta { display: none; }
}
