:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --text: #f2f2f7;
  --muted: #a8a8b8;
  --line: #2a2a3a;
  --pink: #e91e63;
  --orange: #ff8a00;
  --yellow: #ffd54f;
  --accent: linear-gradient(135deg, #ffd54f 0%, #ff8a00 45%, #e91e63 100%);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { 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.75;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ff9ec4; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
ul { list-style: none; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text {
  background: var(--accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-size: 1.15rem;
}
.nav-desktop { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-desktop a {
  color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 0.95rem;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: #fff; background: var(--bg-3);
}
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; display: block; pointer-events: none; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  width: auto;
  max-width: none;
  margin: 0;
  z-index: 120;
  padding: 8px 12px 12px;
  background: rgba(20, 20, 28, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--muted); padding: 12px 8px; border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(233, 30, 99, 0.22), transparent 45%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 138, 0, 0.18), transparent 40%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.3; margin-bottom: 16px;
}
.hero h1 span {
  background: var(--accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; border: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #1a0a10;
}
.btn-primary:hover { color: #1a0a10; filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid var(--line);
}
.hero-visual {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--bg-2);
}
.hero-visual img { width: 100%; aspect-ratio: 9/14; object-fit: cover; max-height: 520px; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 28px; max-width: 72ch; }
.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.chip {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text); font-size: 0.92rem;
}
.chip:hover { border-color: var(--pink); color: #fff; }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card-media { aspect-ratio: 3/4; overflow: hidden; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: 0.92rem; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  margin-bottom: 40px;
}
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature-media img { width: 100%; aspect-ratio: 9/16; object-fit: cover; max-height: 480px; margin: 0 auto; }
.feature-copy h3 { font-size: 1.35rem; margin-bottom: 12px; }
.feature-copy p { color: var(--muted); margin-bottom: 12px; }
.feature-copy ul { margin: 10px 0 14px 18px; list-style: disc; color: var(--muted); }
.feature-copy li { margin-bottom: 6px; }

.prose {
  color: var(--muted); max-width: 78ch;
}
.prose h2, .prose h3 { color: var(--text); margin: 28px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #ffe0ec; }

.faq details {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 10px; padding: 14px 16px;
}
.faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.faq p { color: var(--muted); margin-top: 10px; }

.toc {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
}
.toc h2 { font-size: 1.1rem; margin-bottom: 10px; }
.toc ol { margin-left: 20px; list-style: decimal; color: var(--muted); }
.toc a { color: #ff9ec4; }

.breadcrumb {
  padding: 18px 0 0; color: var(--muted); font-size: 0.9rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: #fff; }

.page-hero { padding: 28px 0 10px; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.page-hero p { color: var(--muted); }

.legal { padding-bottom: 60px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* Error pages */
.error-page {
  min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px;
}
.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  background: var(--accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page p { color: var(--muted); margin: 12px 0 24px; max-width: 42ch; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: #08080c; padding: 40px 0 28px; margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px;
}
.site-footer h3 { margin-bottom: 12px; font-size: 1rem; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.92rem; }
.site-footer a { display: block; padding: 4px 0; }
.copyright {
  border-top: 1px solid var(--line); padding-top: 16px;
  color: #777; font-size: 0.85rem; text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .feature, .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .feature-media { order: 0; }
  .hero { padding: 32px 0 24px; }
  .hero-visual img { max-height: 420px; margin: 0 auto; }
  .section { padding: 36px 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 3/4; }
}
