:root {
  --bg-deep: #0a0514;
  --bg-panel: #140a22;
  --bg-card: rgba(255, 61, 138, 0.06);
  --accent: #ff3d8a;
  --accent-soft: #ff6eb0;
  --violet: #9d4edd;
  --violet-glow: rgba(157, 78, 221, 0.35);
  --coral: #ff5e62;
  --text: #f3e8ff;
  --text-muted: #b8a4cc;
  --border: rgba(255, 61, 138, 0.22);
  --radius: 16px;
  --header-h: 58px;
  --sticky-ads-h: 0px;
  --max-w: 920px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", 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(--bg-deep);
  color: var(--text);
  line-height: 1.85;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(157, 78, 221, 0.18), transparent),
    radial-gradient(circle at 90% 80%, rgba(255, 61, 138, 0.08), transparent);
}

a { color: var(--accent-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

.container { width: min(100% - 28px, var(--max-w)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 5, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img { border-radius: 10px; width: 36px; height: 36px; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 0.95rem; letter-spacing: 0.04em; }
.brand-text span { font-size: 0.68rem; color: var(--text-muted); }

.main-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(14, 8, 28, 0.97);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 12px 20px;
  gap: 4px;
}

.main-nav.open { display: flex; }

.main-nav a {
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.active { color: var(--accent); background: var(--bg-card); }

.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px var(--violet-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(255, 61, 138, 0.4); color: #fff; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--accent-soft);
}

.btn-outline:hover { background: var(--bg-card); color: #fff; }

.nav-btn-dl { display: none; }

/* Ads */
.ads-block {
  padding: 8px 0 4px;
  background: rgba(20, 10, 34, 0.6);
  border-bottom: 1px solid var(--border);
}

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img, #sticky-ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s;
  border: 1px solid var(--border);
}

#ads a, #sticky-ads a { display: inline-block; border-radius: 14px; }

#ads img:hover, #sticky-ads img:hover { transform: translateY(-3px) scale(1.05); }

#ads figcaption, #sticky-ads figcaption,
#ads .caption, #sticky-ads .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.sticky-ads-wrap {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(10, 5, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s, opacity 0.28s;
  pointer-events: none;
}

.sticky-ads-wrap.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-ads-inner #sticky-ads > div { width: calc(25% - 6px); }
.sticky-ads-inner #sticky-ads img { width: 52px; height: 52px; }

/* Main layout */
main { padding-bottom: 60px; }

.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Hero */
.hero-zone {
  padding: 36px 0 28px;
  position: relative;
  overflow: hidden;
}

.hero-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23ff3d8a' opacity='0.12'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  background: var(--bg-card);
}

.hero-zone h1 {
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.35;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #fff 30%, var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 68ch;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
.content-band {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 61, 138, 0.08);
}

.band-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 8px;
  display: block;
}

.content-band h2 {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.4;
}

.content-band h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--accent-soft);
}

.content-band p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: justify;
}

.content-band ul, .content-band ol {
  margin: 12px 0 16px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.content-band li { margin-bottom: 8px; }

/* Cards */
.card-row {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.glass-card {
  background: linear-gradient(145deg, rgba(255, 61, 138, 0.07), rgba(157, 78, 221, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: border-color 0.25s, transform 0.25s;
}

.glass-card:hover {
  border-color: rgba(255, 61, 138, 0.45);
  transform: translateY(-2px);
}

.glass-card strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.glass-card span, .glass-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.card-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card-row.cols-2 { grid-template-columns: 1fr; }
.card-row.cols-3 { grid-template-columns: 1fr; }

/* Image blocks */
.media-block {
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.media-block img { border-radius: 0; width: 100%; }

.media-caption {
  padding: 10px 14px;
  background: var(--bg-panel);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.media-split {
  display: grid;
  gap: 20px;
  align-items: start;
  margin: 20px 0;
}

/* Highlight box */
.highlight-box {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 18px 0;
}

.highlight-box p { margin: 0; font-size: 0.88rem; }

/* Subpage */
.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  margin-bottom: 10px;
}

.page-hero .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legal-body h2 {
  font-size: 1.1rem;
  color: #fff;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 0.98rem;
  color: var(--accent-soft);
  margin: 18px 0 8px;
}

.legal-body p, .legal-body li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-body ul, .legal-body ol { margin-left: 20px; }

/* Error pages */
.error-page {
  text-align: center;
  padding: 60px 20px 80px;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 { font-size: 1.3rem; margin-bottom: 10px; }
.error-page p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  background: rgba(10, 5, 20, 0.7);
}

.footer-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-grid h4 {
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-bottom {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 61, 138, 0.1);
}

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    gap: 2px;
  }

  .main-nav a { padding: 6px 12px; font-size: 0.82rem; }

  .nav-btn-dl { display: inline-flex; }

  .card-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-row.cols-4 { grid-template-columns: repeat(4, 1fr); }

  .media-split { grid-template-columns: 1fr 1.6fr; }
  .media-split.reverse { grid-template-columns: 1.6fr 1fr; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .sticky-ads-inner #sticky-ads > div { width: calc(12.5% - 6px); }
  #ads > div { width: 70px; }
}

@media (min-width: 768px) {
  #ads img { width: 65px; height: 65px; }
  #sticky-ads img { width: 56px; height: 56px; }
}
