:root {
  --orange: #ff8c00;
  --pink: #e91e63;
  --magenta: #c2185b;
  --purple: #9c27b0;
  --yellow: #ffeb3b;
  --dark: #121218;
  --dark-2: #1c1c26;
  --dark-3: #2a2a38;
  --text: #f5f5f7;
  --muted: #b0b0be;
  --line: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(135deg, #ff8c00 0%, #e91e63 50%, #9c27b0 100%);
  --grad-soft: linear-gradient(160deg, #1a1420 0%, #241828 40%, #1a1a28 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ffb347;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffd27a;
}

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(18, 18, 24, 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: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(233, 30, 99, 0.15);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--dark-2);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background: var(--grad-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.28), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-float {
  position: absolute;
  left: -12px;
  bottom: -16px;
  width: 42%;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
}

.prose {
  color: #d8d8e2;
}

.prose p {
  margin-bottom: 16px;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
  line-height: 1.4;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.15rem;
  color: #ffe0ef;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2rem;
  list-style: disc;
}

.prose li {
  margin-bottom: 8px;
  color: #d8d8e2;
}

.prose strong {
  color: #fff;
}

/* Feature / cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--dark-2);
  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(233, 30, 99, 0.4);
  transform: translateY(-3px);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-weight: 700;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Gallery / category */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-item {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 0, 0.45);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--dark-3);
}

.cat-item .cap {
  padding: 12px 14px 16px;
}

.cat-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cat-item p {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Showcase split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  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: 12px;
}

.split-media img {
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.split-media img.wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.split-text h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.split-text p {
  color: var(--muted);
  margin-bottom: 12px;
}

.check-list {
  margin: 14px 0 18px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #dcdce8;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step .num {
  font-size: 0.85rem;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 8px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--pink);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  color: var(--muted);
  margin-top: 10px;
}

/* Page banner for inner pages */
.page-banner {
  padding: 48px 0 28px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.page-banner p {
  color: var(--muted);
  max-width: 720px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #ffb347;
}

.content-wrap {
  padding: 40px 0 64px;
}

.content-wrap .prose {
  max-width: 860px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0d0d12;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: #ffb347;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keywords-cloud a {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.keywords-cloud a:hover {
  color: #fff;
  border-color: rgba(233, 30, 99, 0.45);
}

.toc {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.1rem;
  list-style: decimal;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: #ffb347;
}

.note {
  border-left: 3px solid var(--pink);
  background: rgba(233, 30, 99, 0.08);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  color: #e8e8f0;
  margin: 16px 0;
}

/* Mobile */
@media (max-width: 960px) {
  .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;
  }

  .feature-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-float {
    width: 38%;
    left: 8px;
    bottom: -10px;
  }

  .feature-grid,
  .steps,
  .footer-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .split-media {
    grid-template-columns: 1fr 1fr;
  }
}
