:root {
  --c-pink: #e91e63;
  --c-magenta: #c2185b;
  --c-orange: #ff6d00;
  --c-amber: #ffab00;
  --c-bg: #0f0f14;
  --c-surface: #1a1a24;
  --c-card: #22222f;
  --c-text: #f5f5f7;
  --c-muted: #a8a8b8;
  --c-line: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(135deg, #ffab00 0%, #ff6d00 40%, #e91e63 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 171, 0, 0.18), rgba(233, 30, 99, 0.22));
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 109, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(233, 30, 99, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 171, 0, 0.08), transparent 60%),
    var(--c-bg);
}

a {
  color: #ff8fab;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffc1d3;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.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, 15, 20, 0.82);
  border-bottom: 1px solid var(--c-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(--c-text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(255, 171, 0, 0.35);
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--c-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(233, 30, 99, 0.35);
  color: #ffc1d3;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--c-muted);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  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: 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.05);
  color: var(--c-text);
  border: 1px solid var(--c-line);
}

.btn-ghost:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.09);
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  animation: floatIn 0.9s ease both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 20, 0.75), transparent 45%);
}

.hero-visual .caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-size: 0.9rem;
  color: #fff;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: rise 0.7s ease both;
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--c-muted);
  max-width: 46rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 0.4rem;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 99, 0.45);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.cat-item .meta {
  padding: 0.85rem 0.95rem 1rem;
}

.cat-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cat-item p {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* Feature rows */
.feature-list {
  display: grid;
  gap: 1.4rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}

.feature-row.reverse {
  grid-template-columns: 1.15fr 1fr;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  min-height: 240px;
  max-height: 360px;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-body {
  padding: 1.5rem 1.6rem;
}

.feature-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.feature-body p {
  color: var(--c-muted);
  margin-bottom: 0.85rem;
}

.feature-body ul {
  margin-left: 1.1rem;
  color: var(--c-muted);
}

.feature-body li {
  margin-bottom: 0.35rem;
}

/* Vlog gallery */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.vlog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  transition: transform 0.25s ease;
}

.vlog-card:hover {
  transform: translateY(-4px);
}

.vlog-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
}

.vlog-card .meta {
  padding: 0.9rem 1rem 1.1rem;
}

.vlog-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.vlog-card p {
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* Prose / SEO long content */
.prose {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  margin: 1.6rem 0 0.75rem;
  line-height: 1.35;
}

.prose h2:first-child,
.prose > .section-label + h2 {
  margin-top: 0;
}

.prose p {
  color: #d0d0dc;
  margin-bottom: 1rem;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
  color: #d0d0dc;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 1.2rem 0 1.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 171, 0, 0.25);
}

.toc a {
  font-size: 0.92rem;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.stat {
  text-align: center;
  padding: 1.1rem 0.6rem;
  background: var(--grad-soft);
  border: 1px solid rgba(233, 30, 99, 0.25);
  border-radius: 12px;
}

.stat b {
  display: block;
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* Guide steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  padding: 1.3rem;
  background: var(--c-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--c-muted);
  font-size: 0.92rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--c-muted);
  max-width: 40rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover {
  color: #ffc1d3;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.error-wrap h2 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.error-wrap p {
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--c-line);
  background: rgba(0, 0, 0, 0.35);
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  color: var(--c-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--c-muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: #ffc1d3;
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--c-muted);
  font-size: 0.85rem;
}

/* Mobile bottom nav */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
  padding: 0.45rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
}

.mobile-nav a {
  flex: 1;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.72rem;
  padding: 0.35rem 0.2rem;
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: #ff8fab;
}

.mobile-nav svg {
  display: block;
  margin: 0 auto 0.15rem;
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    background: rgba(15, 15, 20, 0.98);
    border-bottom: 1px solid var(--c-line);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.9rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-visual {
    max-height: 420px;
    aspect-ratio: 3 / 4;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vlog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vlog-card img {
    max-height: 300px;
  }

  .mobile-nav {
    display: flex;
  }

  body {
    padding-bottom: 68px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .cat-item .meta {
    padding: 0.65rem 0.7rem 0.8rem;
  }

  .cat-item h3 {
    font-size: 0.92rem;
  }
}
