:root {
  --pink: #ff4d8d;
  --pink-soft: #ff7eb3;
  --violet: #8b5cf6;
  --violet-deep: #5b21b6;
  --coral: #ff6b9d;
  --bg: #0c0618;
  --bg-elevated: #160d28;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 77, 141, 0.22);
  --text: #f3e8ff;
  --text-muted: #c4b5d8;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(139, 92, 246, 0.18);
  --header-h: 58px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 77, 141, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(circle at 50% 100%, rgba(91, 33, 182, 0.2), transparent);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 6, 24, 0.92);
  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 {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(255, 77, 141, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: 0.04em; }
.brand-text span { font-size: 10px; color: var(--text-muted); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255, 77, 141, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  padding: 4px 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(--pink), var(--violet));
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(255, 77, 141, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 77, 141, 0.45); color: #fff !important; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--pink);
  box-shadow: none;
}

/* Sticky ads bar */
.sticky-ads-wrap {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(22, 13, 40, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  transition: transform 0.3s ease;
  padding: 8px 0;
}

.sticky-ads-wrap.visible { transform: translateY(0); }

#sticky-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

#sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

#sticky-ads img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(255, 77, 141, 0.2);
  transition: transform 0.18s;
}

#sticky-ads a { display: inline-block; border-radius: 14px; }
#sticky-ads img:hover { transform: scale(1.06); }

#sticky-ads .caption {
  height: 14px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* Top ads block */
.ads-block {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 8px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.2);
  transition: transform 0.18s;
}

#ads a { display: inline-block; border-radius: 15px; }
#ads img:hover { transform: translateY(-4px) scale(1.04); }

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Main layout */
main { padding-bottom: 60px; }

body.has-sticky-ads main { padding-top: var(--sticky-ads-h); }

/* Hero */
.hero-neon {
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-neon::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='%23ff4d8d' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--border);
  color: var(--pink-soft);
  margin-bottom: 16px;
}

.hero-neon h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff 30%, var(--pink-soft) 70%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; max-width: 820px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section-wave {
  padding: 52px 0;
  position: relative;
}

.section-wave:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 77, 141, 0.08);
  border-bottom: 1px solid rgba(255, 77, 141, 0.08);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--pink);
  margin-bottom: 10px;
  display: block;
}

.section-wave h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  margin-bottom: 20px;
  color: #fff;
}

.section-wave h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
  color: var(--pink-soft);
}

.section-wave p {
  margin-bottom: 16px;
  color: var(--text-muted);
  text-align: justify;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.neon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.neon-card:hover {
  border-color: rgba(255, 77, 141, 0.5);
  transform: translateY(-3px);
}

.neon-card .card-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.neon-card strong { display: block; font-size: 15px; margin-bottom: 6px; color: #fff; }
.neon-card span { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Image blocks - 3:7 ratio layout */
.media-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 28px;
  align-items: start;
  margin: 32px 0;
}

.media-row.reverse { grid-template-columns: 7fr 3fr; }
.media-row.reverse .media-col { order: 2; }
.media-row.reverse .text-col { order: 1; }

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12, 6, 24, 0.5));
  pointer-events: none;
}

.media-frame img { width: 100%; }

.media-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Bento layout */
.bento-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  grid-column: span 2;
}

.bento-item.wide { grid-column: span 4; }
.bento-item.full { grid-column: span 6; }

.bento-item h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.bento-item p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Feature list */
.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 77, 141, 0.08);
}

.feature-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-size: 10px;
  top: 16px;
}

/* Breadcrumb */
.breadcrumb {
  padding: calc(var(--header-h) + 20px) 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink-soft); }
.breadcrumb span { color: var(--pink-soft); }

/* Page content */
.page-hero {
  padding: 24px 0 36px;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
  color: #fff;
}

.page-hero .meta { font-size: 13px; color: var(--text-muted); }

.legal-body, .about-body {
  padding-bottom: 48px;
}

.legal-body h2, .about-body h2 {
  font-size: 1.2rem;
  color: #fff;
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--pink);
}

.legal-body h3, .about-body h3 {
  font-size: 1rem;
  color: var(--pink-soft);
  margin: 20px 0 10px;
}

.legal-body p, .about-body p, .legal-body li, .about-body li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-body ul, .about-body ul, .legal-body ol, .about-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 20px 60px;
}

.error-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { font-size: 1.4rem; margin: 16px 0; color: #fff; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand img { width: 44px; border-radius: 10px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); }

.footer-links h4 { font-size: 13px; color: #fff; margin-bottom: 12px; }
.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* PC sticky ads: 8 per row */
@media (min-width: 769px) {
  #sticky-ads > div { width: calc(12.5% - 7px); }
  #sticky-ads img { width: 58px; height: 58px; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(12, 6, 24, 0.98);
    flex-direction: column;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open { display: flex; }

  .nav-btn-dl { display: none; }

  .media-row, .media-row.reverse {
    grid-template-columns: 1fr;
  }

  .media-row.reverse .media-col,
  .media-row.reverse .text-col { order: unset; }

  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }

  .bento-wrap { grid-template-columns: 1fr; }
  .bento-item, .bento-item.wide, .bento-item.full { grid-column: span 1; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-neon { padding: 32px 0 28px; }
}
