:root {
  --ink: #1a0f14;
  --ink-soft: #2d1a24;
  --ink-card: #3a2230;
  --rose: #e91e8c;
  --rose-light: #ff5cb0;
  --rose-glow: rgba(233, 30, 140, 0.32);
  --gold: #f0b429;
  --gold-soft: #ffd166;
  --cyan: #4ecdc4;
  --cream: #fff5f8;
  --text: #fce8f0;
  --text-dim: #c9a8b8;
  --border: rgba(255, 92, 176, 0.22);
  --radius: 18px;
  --nav-h: 60px;
  --max: 1080px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "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(--serif);
  background: var(--ink);
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(233, 30, 140, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(240, 180, 41, 0.1), transparent),
    linear-gradient(180deg, #1a0f14 0%, #221018 50%, #1a0f14 100%);
}

a { color: var(--rose-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-soft); }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 28px, var(--max)); margin: 0 auto; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 15, 20, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--rose);
  box-shadow: 0 0 20px var(--rose-glow);
}

.menu-btn {
  display: none;
  background: var(--ink-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.15rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.on {
  color: var(--cream);
  border-color: var(--border);
  background: linear-gradient(135deg, rgba(233,30,140,0.25), rgba(240,180,41,0.12));
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: linear-gradient(120deg, var(--rose), #c2185b);
  color: #fff !important;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 22px var(--rose-glow);
  white-space: nowrap;
}

.cta-btn:hover { color: #fff; transform: translateY(-1px); }

/* Sticky download bar */
.float-ads {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(45, 26, 36, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 7px 10px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s, opacity 0.28s;
  pointer-events: none;
}

.float-ads.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.float-ads #sticky-ads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Ads block */
.ads-zone {
  padding: 14px 0 6px;
  background: rgba(233, 30, 140, 0.06);
  border-bottom: 1px dashed var(--border);
}

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img, #sticky-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(0,0,0,0.25);
  transition: transform 0.18s;
}

#ads a, #sticky-ads a { border-radius: 14px; }

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-3px) scale(1.03);
}

#ads .caption, #sticky-ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--sans);
}

@media (min-width: 769px) {
  #sticky-ads > div { width: calc(12.5% - 8px); min-width: 70px; }
}

@media (max-width: 768px) {
  #sticky-ads > div { width: calc(25% - 6px); min-width: 68px; }
}

/* Breadcrumb */
.crumb {
  padding: 14px 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.crumb a { color: var(--text-dim); }
.crumb span { color: var(--rose-light); }

/* Hero */
.banner {
  padding: 36px 0 44px;
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 20px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--rose-glow), transparent 70%);
  pointer-events: none;
}

.banner-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.banner h1 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 16px;
  font-weight: 700;
}

.banner-lead {
  font-size: 1.02rem;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 22px;
}

.banner-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-outline {
  display: inline-flex;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
  font-family: var(--sans);
  font-size: 0.88rem;
}

/* Sections */
.block {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.block.alt {
  background: linear-gradient(180deg, rgba(233,30,140,0.05), transparent);
}

.block-head { margin-bottom: 28px; }

.block-head h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  color: var(--cream);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.block-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, var(--rose), var(--gold));
  border-radius: 2px;
}

.block-head p {
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.92rem;
  padding-left: 16px;
}

.prose p { margin-bottom: 1.1em; text-align: justify; }
.prose h3 {
  font-size: 1.15rem;
  color: var(--rose-light);
  margin: 1.6em 0 0.7em;
}

.prose ul, .prose ol {
  margin: 0.8em 0 1.2em 1.4em;
  color: var(--text-dim);
}

.prose li { margin-bottom: 0.45em; }

/* Cards */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tile {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.tile:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-family: var(--sans);
}

.tile h4 {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.tile p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Media layouts */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 768px) {
  .split.img-left { grid-template-columns: 0.32fr 0.68fr; }
  .split.img-right { grid-template-columns: 0.68fr 0.32fr; }
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  background: var(--ink-soft);
}

.shot img { width: 100%; }

.shot-cap {
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  background: var(--ink-card);
}

/* Stats ribbon */
.ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 600px) {
  .ribbon { grid-template-columns: repeat(4, 1fr); }
}

.ribbon-item {
  text-align: center;
  padding: 18px 10px;
  background: var(--ink-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ribbon-num {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.ribbon-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* FAQ */
.faq-list { margin-top: 20px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--ink-card);
}

.faq-q {
  padding: 16px 18px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 0.94rem;
  display: none;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--rose-light); }

/* Footer */
.site-foot {
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  background: rgba(0,0,0,0.2);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr; }
}

.foot-brand {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.foot-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.foot-copy {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* Sub pages */
.page-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.legal-block {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.legal-block h2 {
  font-size: 1.1rem;
  color: var(--rose-light);
  margin: 1.8em 0 0.6em;
}

.legal-block h2:first-child { margin-top: 0; }

/* Error pages */
.err-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.err-code {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.err-msg { font-size: 1.1rem; color: var(--cream); margin: 16px 0 24px; }

/* Mobile nav */
@media (max-width: 768px) {
  .menu-btn { display: block; }

  .site-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    display: none;
  }

  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; }

  .header-cta { display: none; }
}
