:root {
  --bg: #0b0a10;
  --bg-soft: #14121c;
  --bg-card: #1a1724;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f2f8;
  --muted: #a9a3b5;
  --pink: #ff4d8d;
  --pink-deep: #e8336f;
  --coral: #ff6a4d;
  --gold: #f0c35a;
  --radius: 14px;
  --shadow: 0 18px 50px 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:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 77, 141, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 106, 77, 0.12), transparent 50%),
    linear-gradient(180deg, #110e18 0%, var(--bg) 40%, #09080d 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: var(--pink);
  text-decoration: none;
}

a:hover {
  color: #ff7aa8;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.nav-panel {
  display: contents;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 77, 141, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 77, 141, 0.55);
}

.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 48em;
}

.prose {
  color: #d9d4e2;
  font-size: 1.02rem;
}

.prose p {
  margin-bottom: 1em;
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin: 1.4em 0 0.6em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em 1.2em;
}

.prose li {
  margin-bottom: 0.45em;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-card);
}

.card-media.landscape {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 16px 16px 18px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-media img {
  border-radius: 14px;
  border: 1px solid var(--line);
  width: 100%;
}

.feature-text h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.feature-text p {
  color: var(--muted);
  margin-bottom: 10px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 77, 141, 0.12);
  color: #ffb0cb;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 77, 141, 0.22);
}

.cta-band {
  margin: 20px 0 10px;
  padding: 28px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(255, 77, 141, 0.2), rgba(255, 106, 77, 0.12)),
    var(--bg-soft);
  border: 1px solid rgba(255, 77, 141, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.cta-band p {
  color: var(--muted);
}

.faq details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  color: var(--muted);
  margin-top: 10px;
}

.page-hero {
  padding: 42px 0 18px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 46em;
}

.legal {
  padding: 10px 0 50px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 22px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--pink);
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: inline-block;
  margin: 4px 12px 4px 0;
  color: #ffb0cb;
}

.mobile-nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 141, 0.35);
  background: rgba(255, 77, 141, 0.1);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 77, 141, 0.18);
  border-color: rgba(255, 77, 141, 0.55);
}

.mobile-nav-toggle .bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--coral));
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.mobile-nav-toggle .bar:nth-child(1) { top: 15px; }
.mobile-nav-toggle .bar:nth-child(2) { top: 21px; }
.mobile-nav-toggle .bar:nth-child(3) { top: 27px; }

.mobile-nav-toggle.is-open .bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.mobile-nav-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.is-open .bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .footer-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 3;
  }

  .nav.open {
    display: block;
    padding-bottom: 10px;
  }

  .nav-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 77, 141, 0.22);
    background:
      linear-gradient(165deg, rgba(255, 77, 141, 0.12), rgba(255, 255, 255, 0.02) 42%),
      rgba(18, 15, 26, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: #e8e2ef;
    font-size: 0.98rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .nav a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255, 176, 203, 0.55);
    border-bottom: 2px solid rgba(255, 176, 203, 0.55);
    transform: rotate(-45deg);
    flex-shrink: 0;
  }

  .nav a:hover,
  .nav a:active {
    color: #fff;
    background: rgba(255, 77, 141, 0.16);
    border-color: rgba(255, 77, 141, 0.35);
    transform: translateX(2px);
  }

  .nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 77, 141, 0.28), rgba(255, 106, 77, 0.12));
    border-color: rgba(255, 77, 141, 0.45);
    box-shadow: inset 3px 0 0 var(--pink);
  }

  .nav.open a {
    animation: navItemIn 0.34s ease both;
  }

  .nav.open a:nth-child(1) { animation-delay: 0.02s; }
  .nav.open a:nth-child(2) { animation-delay: 0.05s; }
  .nav.open a:nth-child(3) { animation-delay: 0.08s; }
  .nav.open a:nth-child(4) { animation-delay: 0.11s; }
  .nav.open a:nth-child(5) { animation-delay: 0.14s; }
  .nav.open a:nth-child(6) { animation-delay: 0.17s; }
  .nav.open a:nth-child(7) { animation-delay: 0.2s; }
  .nav.open a:nth-child(8) { animation-delay: 0.23s; }
  .nav.open a:nth-child(9) { animation-delay: 0.26s; }
  .nav.open a:nth-child(10) { animation-delay: 0.29s; }
}

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .cta-band {
    padding: 20px;
  }

  .card-media {
    aspect-ratio: 3 / 3.6;
  }
}
