:root {
  --bg: #0c0c10;
  --bg-soft: #15151c;
  --bg-card: #1a1a24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --muted: #a8a8b8;
  --brand: #e11d48;
  --brand-soft: #fb7185;
  --accent: #f43f5e;
  --ok: #34d399;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --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: var(--brand-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.logo span {
  background: linear-gradient(90deg, #fff, var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(225, 29, 72, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(225, 29, 72, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(244, 63, 94, 0.12), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: var(--brand-soft);
  font-size: 0.875rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-soft);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #be123c);
  color: #fff;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand-soft);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--ok);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin-inline: auto;
}

.hero-float {
  position: absolute;
  left: -12px;
  bottom: 24px;
  width: min(46%, 200px);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-float img {
  max-height: none;
  aspect-ratio: 9 / 16;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
  margin-bottom: 32px;
  max-width: 48em;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 10px;
  line-height: 1.35;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  color: var(--brand-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 113, 133, 0.45);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
}

.cat-card .body {
  padding: 14px 16px 18px;
}

.cat-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cat-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split.reverse .split-text {
  order: 2;
}

.split.reverse .split-media {
  order: 1;
}

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.split-media img {
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow);
}

.split-text h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin-bottom: 14px;
}

.split-text p {
  color: var(--muted);
  margin-bottom: 14px;
}

.checklist {
  margin: 18px 0 22px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.2);
  box-shadow: inset 0 0 0 3px var(--ok);
}

/* Showcase gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.gallery figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.gallery figcaption {
  padding: 10px 12px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Content article */
.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 32px 0 12px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: #fff;
}

.prose p {
  color: var(--muted);
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2em;
  color: var(--muted);
}

.prose li {
  margin-bottom: 8px;
  list-style: disc;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0 8px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: inline-block;
  margin: 4px 12px 4px 0;
  color: var(--muted);
}

.toc a:hover {
  color: var(--brand-soft);
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.info-card img {
  border-radius: 12px;
  margin-bottom: 14px;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

/* CTA band */
.cta-band {
  margin: 20px 0 40px;
  padding: 36px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(26, 26, 36, 0.95)),
    var(--bg-card);
  border: 1px solid rgba(251, 113, 133, 0.3);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Page hero (inner) */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(225, 29, 72, 0.2), transparent 50%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 42em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-soft);
}

/* Legal */
.legal {
  padding: 40px 0 72px;
}

.legal .prose {
  max-width: 860px;
}

.update-note {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 28em;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #09090d;
  padding: 48px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--brand-soft);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse .split-text,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-text,
  .split.reverse .split-media {
    order: initial;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual img {
    max-height: 440px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-float {
    display: none;
  }

  .cat-grid,
  .gallery,
  .info-grid,
  .footer-grid,
  .split-media {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .cta-band {
    padding: 28px 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .cat-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
