@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #1a0f24;
  --bg-card: rgba(45, 28, 62, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --rose: #ff3d8f;
  --rose-light: #ff7eb3;
  --lavender: #c4a0f0;
  --gold: #f0c878;
  --text: #f5eef8;
  --text-muted: #b8a4c8;
  --border: rgba(255, 125, 179, 0.22);
  --shadow: 0 12px 40px rgba(255, 61, 143, 0.15);
  --radius: 18px;
  --nav-h: 58px;
  --sticky-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 61, 143, 0.28), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(196, 160, 240, 0.2), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(240, 200, 120, 0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--rose-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 15, 36, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 61, 143, 0.35);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 61, 143, 0.18);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--rose), #d42a6e);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 22px rgba(255, 61, 143, 0.4);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dl:hover { filter: brightness(1.08); color: #fff !important; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--rose-light);
  color: var(--rose-light) !important;
  box-shadow: none;
}

/* Sticky ads bar */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(26, 15, 36, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
}

.sticky-ads-bar.visible { transform: translateY(0); }

#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

#ads-sticky img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(255, 61, 143, 0.2);
}

#ads-sticky .caption {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (min-width: 768px) {
  #ads-sticky > div { width: calc(12.5% - 6px); }
  #ads-sticky img { width: 62px; height: 62px; }
}

/* Top ads */
.ads-top-wrap {
  padding: 14px 0 6px;
  background: rgba(255, 61, 143, 0.06);
  border-bottom: 1px solid var(--border);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

#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(24, 24, 24, 0.3);
  transition: transform 0.18s ease;
}

#ads img:hover { transform: translateY(-3px) scale(1.04); }

#ads .caption {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(196, 160, 240, 0.15);
  border: 1px solid rgba(196, 160, 240, 0.35);
  color: var(--lavender);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.35;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--rose-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15px;
}

.section p { margin-bottom: 14px; color: #ddd0e8; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 16px;
  color: var(--rose-light);
  margin-bottom: 10px;
  font-weight: 600;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.75;
}

/* Media blocks */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
}

@media (min-width: 768px) {
  .media-row { grid-template-columns: 1fr 1.2fr; }
  .media-row.reverse { direction: rtl; }
  .media-row.reverse > * { direction: ltr; }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.media-frame img { width: 100%; }

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 15, 36, 0.5));
  pointer-events: none;
}

.media-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(255, 61, 143, 0.12), rgba(196, 160, 240, 0.1));
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 22px 0;
}

.highlight-box p { margin-bottom: 0; }

/* Feature list */
.feature-list {
  list-style: none;
  margin: 18px 0;
}

.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: #ddd0e8;
  border-bottom: 1px solid rgba(255, 125, 179, 0.08);
}

.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-size: 10px;
  top: 14px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--rose-light); }
.breadcrumb span { color: var(--rose-light); }

/* Page hero */
.page-hero {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero p { color: var(--text-muted); font-size: 15px; }

/* Legal content */
.legal-body h2 {
  font-size: 1.2rem;
  color: var(--rose-light);
  margin: 28px 0 12px;
  font-weight: 600;
}

.legal-body h3 {
  font-size: 1rem;
  color: var(--lavender);
  margin: 20px 0 8px;
}

.legal-body p, .legal-body li {
  color: #ddd0e8;
  margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

/* Footer */
.site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--rose-light);
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { font-size: 1.5rem; margin: 16px 0 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 20px; }

/* Mobile nav */
@media (max-width: 768px) {
  .header-inner {
    justify-content: flex-start;
    gap: 8px;
  }

  .brand { flex-shrink: 1; min-width: 0; }
  .brand span { font-size: 15px; }

  .header-cta { display: none; }

  .nav-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(26, 15, 36, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
  }
}
