:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a22;
  --text: #f2f2f5;
  --text-muted: #a0a0b0;
  --accent: #ff2d55;
  --accent-2: #ff6b35;
  --accent-3: #c44dff;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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: #ff8aa0;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  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: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 6px 4px;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 45, 85, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(196, 77, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.15);
  color: #ff8aa0;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.25;
  background: linear-gradient(120deg, #fff 20%, #ff8aa0 55%, #ffb347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 36em;
}

.hero-actions {
  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;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-float {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 42%;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

/* Sections */
section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48em;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 45, 85, 0.35);
  transform: translateY(-3px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #111;
}

.shot.wide img {
  aspect-ratio: 9 / 16;
}

.shot figcaption {
  padding: 12px 14px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.shot figcaption strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

/* Content article */
.prose {
  max-width: 820px;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}

.prose p {
  margin: 0 0 1em;
  color: #d8d8e2;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  color: #d8d8e2;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose .lead {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.inline-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.inline-shots img {
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.split img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #e8e8f0;
  font-size: 0.9rem;
}

.chip:hover {
  border-color: rgba(255, 45, 85, 0.5);
  color: #fff;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 36px 28px;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(120deg, rgba(255, 45, 85, 0.2), rgba(196, 77, 255, 0.15)),
    var(--bg-card);
  border: 1px solid rgba(255, 45, 85, 0.25);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

/* Page hero small */
.page-hero {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, rgba(255, 45, 85, 0.15), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
}

.page-body {
  padding: 36px 0 60px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: #fff;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-wrap h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 8px;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-wrap p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 40px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand p,
.footer-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 8px 0 0;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #777788;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* Related links box */
.related {
  margin-top: 36px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.related ul {
  margin: 0;
  padding-left: 1.2em;
}

.related li {
  margin-bottom: 6px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-float {
    width: 38%;
    right: 8px;
    bottom: -12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(20, 20, 24, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .showcase-grid,
  .inline-shots {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 28px;
  }

  section {
    padding: 40px 0;
  }

  .shot img {
    aspect-ratio: 9 / 16;
    max-height: 520px;
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual img {
    animation: floaty 6s ease-in-out infinite;
  }

  .hero-float {
    animation: floaty 7s ease-in-out 0.6s infinite;
  }

  .shot {
    animation: fadeUp 0.6s ease both;
  }

  .shot:nth-child(2) { animation-delay: 0.08s; }
  .shot:nth-child(3) { animation-delay: 0.16s; }
  .shot:nth-child(4) { animation-delay: 0.24s; }
  .shot:nth-child(5) { animation-delay: 0.32s; }
  .shot:nth-child(6) { animation-delay: 0.4s; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
