@import url('https://fonts.googleapis.com/css2?family=LXGW+WenKai:wght@400;700&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
  --void: #0f0618;
  --deep: #1a0d2e;
  --panel: rgba(36, 18, 58, 0.72);
  --glass: rgba(255, 255, 255, 0.06);
  --neon-pink: #ff3d9a;
  --neon-cyan: #2ee8ff;
  --violet: #9b5cff;
  --magenta: #e040a0;
  --gold: #ffc857;
  --text: #f4eef8;
  --muted: #b8a8c8;
  --line: rgba(255, 61, 154, 0.22);
  --glow-pink: 0 0 32px rgba(255, 61, 154, 0.35);
  --glow-cyan: 0 0 28px rgba(46, 232, 255, 0.25);
  --nav-h: 56px;
  --radius: 20px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'LXGW WenKai', 'PingFang SC', 'Microsoft YaHei', serif;
  background: var(--void);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(155, 92, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 80% 60% at 95% 15%, rgba(255, 61, 154, 0.2), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(46, 232, 255, 0.12), transparent 45%),
    linear-gradient(165deg, var(--void) 0%, var(--deep) 50%, #120820 100%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.brand-font {
  font-family: 'ZCOOL QingKe HuangYou', cursive;
  font-weight: 400;
  letter-spacing: 0.04em;
}

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1100px, 93vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1400;
  background: rgba(15, 6, 24, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--glow-pink);
}

.main-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--neon-pink);
  background: rgba(255, 61, 154, 0.12);
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  background: linear-gradient(120deg, var(--neon-pink), var(--violet));
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  box-shadow: var(--glow-pink);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255, 61, 154, 0.45);
  color: #fff !important;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan) !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(46, 232, 255, 0.1);
  color: var(--neon-cyan) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
}

/* Ads */
.ads-top-wrap {
  background: linear-gradient(180deg, rgba(255, 61, 154, 0.08), transparent);
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 10px);
  min-width: 68px;
}

#ads img, #ads-sticky img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255, 61, 154, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s;
}

#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.05);
}

#ads figcaption, #ads .caption,
#ads-sticky figcaption, #ads-sticky .caption {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.sticky-ads-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 1300;
  background: rgba(15, 6, 24, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s, opacity 0.28s;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--neon-pink); }
.breadcrumb span { color: var(--neon-pink); }

/* Hero */
.hero {
  padding: 44px 0 36px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.55rem, 4.8vw, 2.35rem);
  margin-bottom: 14px;
  background: linear-gradient(100deg, #fff 20%, var(--neon-pink) 60%, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 22px;
  font-size: 1rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-dark {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose p {
  margin-bottom: 1em;
  color: #ddd0e8;
}

.prose p:last-child { margin-bottom: 0; }

/* Cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(46, 232, 255, 0.4);
  transform: translateY(-3px);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--neon-cyan);
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

/* Feature blocks */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--glow-pink), 0 16px 48px rgba(0, 0, 0, 0.4);
  max-width: 340px;
  margin: 0 auto;
}

.media-frame img { width: 100%; }

.media-body h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--neon-pink);
}

.media-body p {
  color: #d5c8e0;
  margin-bottom: 10px;
  font-size: 0.93rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  padding: 4px 12px;
  background: rgba(155, 92, 255, 0.2);
  border: 1px solid rgba(155, 92, 255, 0.4);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--neon-cyan);
}

.quote-panel {
  background: linear-gradient(135deg, rgba(255, 61, 154, 0.12), rgba(46, 232, 255, 0.08));
  border-left: 4px solid var(--neon-pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 22px 0;
}

.quote-panel p {
  color: #e8dff0;
  font-size: 0.92rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.stat-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--gold);
  font-family: 'ZCOOL QingKe HuangYou', cursive;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Page content */
.page-main {
  padding: 28px 0 48px;
}

.page-main h1 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-bottom: 20px;
}

.page-main h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--neon-cyan);
}

.page-main h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
  color: var(--neon-pink);
}

.page-main p, .page-main li {
  color: #d5c8e0;
  margin-bottom: 0.8em;
}

.page-main ul, .page-main ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

/* Footer */
.site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand img {
  width: 42px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--neon-pink);
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: #7a6a8a;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 20px 100px;
}

.error-code {
  font-family: 'ZCOOL QingKe HuangYou', cursive;
  font-size: clamp(4rem, 15vw, 7rem);
  background: linear-gradient(135deg, var(--neon-pink), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .media-block { grid-template-columns: 1fr; }
  .media-block.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(15, 6, 24, 0.97);
    padding: 12px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-toggle { display: block; }
  .header-cta { display: none; }

  #ads > div, #ads-sticky > div {
    width: calc(25% - 10px);
  }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .card-row { grid-template-columns: 1fr; }
}
