:root {
  --brand-yellow: #ffb347;
  --brand-orange: #ff6b4a;
  --brand-pink: #e84a8a;
  --brand-purple: #7b3fa0;
  --brand-deep: #4a1d6a;
  --bg: #0f0a14;
  --bg-soft: #1a1224;
  --bg-card: #22182e;
  --text: #f5eef8;
  --text-muted: #c4b3d4;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --grad: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange), var(--brand-pink), var(--brand-purple));
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 107, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(123, 63, 160, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232, 74, 138, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff9ec8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffd0e4;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(15, 10, 20, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(232, 74, 138, 0.35);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.25;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 74, 138, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.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: 560px;
  margin-inline: auto;
}

.hero-float {
  position: absolute;
  right: -4%;
  bottom: 8%;
  width: 42%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: floatY 4.5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--text);
}

/* Feature / category grids */
.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1.15rem;
}

.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: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 74, 138, 0.35);
}

.card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-soft);
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item img {
  width: 120px;
  border-radius: 12px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.shot-row img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  color: #fff;
}

.cta-band p {
  margin: 0;
  opacity: 0.95;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-deep);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.breadcrumb {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-wrap {
  padding: 2.25rem 0 3.5rem;
}

.legal {
  max-width: 800px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 10vw, 5.5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.75rem;
}

.toc h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.toc a {
  color: #ff9ec8;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .footer-grid,
  .shot-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    grid-template-columns: 96px 1fr;
  }

  .feature-item img {
    width: 96px;
  }

  .hero-float {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .shot-row {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .cta-band {
    text-align: center;
    justify-content: center;
  }
}
