:root {
  --night: #070a14;
  --night-soft: #10182b;
  --night-card: #141f36;
  --sakura: #ff5a9a;
  --sakura-light: #ff8cbc;
  --lilac: #b06cff;
  --lilac-soft: #d4a8ff;
  --cyan: #3de8f5;
  --gold: #ffc857;
  --cream: #fff4f8;
  --text: #eef2ff;
  --text-dim: #9aa8c7;
  --glass: rgba(20, 31, 54, 0.72);
  --border: rgba(255, 90, 154, 0.22);
  --glow: 0 0 40px rgba(255, 90, 154, 0.28);
  --grad-main: linear-gradient(135deg, #ff5a9a 0%, #b06cff 52%, #3de8f5 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 90, 154, 0.14), rgba(176, 108, 255, 0.1));
  --nav-h: 56px;
  --sticky-h: 88px;
  --radius: 18px;
  --radius-sm: 10px;
  --max-w: 1100px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "STHeiti", "Heiti SC", "PingFang SC", 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(--night);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 90, 154, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 8%, rgba(176, 108, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(61, 232, 245, 0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.7' fill='%23ff5a9a' opacity='0.07'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

a { color: var(--sakura-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - 24px, 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(7, 10, 20, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 2px solid var(--sakura);
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

.main-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.86rem;
  transition: all .22s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cream);
  background: rgba(255, 90, 154, 0.12);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--grad-main);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform .2s, box-shadow .2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 90, 154, 0.38);
  color: #fff !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--sakura-light) !important;
  font-size: 0.86rem;
  background: rgba(255, 90, 154, 0.06);
  transition: background .2s;
}

.btn-outline:hover {
  background: rgba(255, 90, 154, 0.14);
  color: var(--cream) !important;
}

/* Sticky ads */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 999;
  background: rgba(7, 10, 20, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

#ads img, #ads-sticky img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform .18s;
  border: 1px solid var(--border);
}

#ads a, #ads-sticky a { border-radius: 16px; display: inline-block; }

#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.04);
}

#ads .caption, #ads-sticky .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (min-width: 768px) {
  #ads > div, #ads-sticky > div { width: calc(12.5% - 6px); }
  #ads img, #ads-sticky img { width: 62px; height: 62px; }
}

.ads-top-wrap {
  padding-top: calc(var(--nav-h) + 12px);
  padding-bottom: 8px;
}

main { padding-bottom: 60px; }

/* Hero */
.hero {
  padding: 36px 0 48px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 28px;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--cyan);
  background: rgba(61, 232, 245, 0.1);
  border: 1px solid rgba(61, 232, 245, 0.25);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 22px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-pill {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-pill strong {
  display: block;
  font-size: 1.15rem;
  color: var(--sakura-light);
  margin-bottom: 2px;
}

.stat-pill span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--lilac-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.4;
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 28px;
  max-width: 680px;
}

/* Text blocks */
.text-block p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.94rem;
}

.text-block h3 {
  font-size: 1.08rem;
  color: var(--sakura-light);
  margin: 24px 0 12px;
}

.text-block ul, .text-block ol {
  margin: 12px 0 16px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.text-block li { margin-bottom: 8px; }

/* Cards */
.card-grid {
  display: grid;
  gap: 14px;
}

.card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}

.card:hover {
  border-color: rgba(176, 108, 255, 0.4);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(176, 108, 255, 0.15);
  color: var(--lilac-soft);
  margin-bottom: 10px;
}

/* Media rows - 3:7 ratio */
.media-row {
  display: grid;
  gap: 24px;
  align-items: start;
}

.media-row.reverse .media-img { order: -1; }

.media-img {
  position: relative;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.media-frame img { width: 100%; }

.media-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

/* Feature strip */
.feature-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feature-strip::-webkit-scrollbar { display: none; }

.feature-chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--night-card);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.feature-chip.active {
  color: var(--cream);
  background: rgba(255, 90, 154, 0.15);
  border-color: var(--sakura);
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  padding: 16px 18px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  color: var(--sakura);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.faq-item.open .faq-a { display: block; }

/* Breadcrumb */
.breadcrumb {
  padding: calc(var(--nav-h) + 20px) 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--sakura-light); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Page content */
.page-hero {
  padding: 24px 0 32px;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cream);
  margin-bottom: 12px;
}

.page-content {
  padding-bottom: 48px;
}

.page-content h2 {
  font-size: 1.15rem;
  color: var(--sakura-light);
  margin: 32px 0 14px;
}

.page-content h3 {
  font-size: 1rem;
  color: var(--lilac-soft);
  margin: 24px 0 10px;
}

.page-content p {
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: var(--text);
}

.page-content ul, .page-content ol {
  margin: 12px 0 16px 22px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.page-content li { margin-bottom: 8px; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}

.error-code {
  font-size: 4.5rem;
  font-family: var(--display);
  background: var(--grad-main);
  -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;
  color: var(--cream);
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--night-soft);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.footer-links h4 {
  font-size: 0.88rem;
  color: var(--sakura-light);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* Desktop */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero-stats { grid-template-columns: repeat(4, 1fr); }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .media-row {
    grid-template-columns: 3fr 7fr;
    gap: 32px;
  }

  .media-row.img-wide {
    grid-template-columns: 7fr 3fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7, 10, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all .28s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .header-cta { display: none; }

  .media-row.reverse .media-img { order: 0; }
}
