:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --text: #f2f2f4;
  --text-muted: #9a9aa3;
  --accent: #e8365a;
  --accent-soft: #ff6b8a;
  --accent-dim: rgba(232, 54, 90, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 54, 90, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(120, 40, 80, 0.12), transparent),
    linear-gradient(180deg, #0a0a0c 0%, #0e0e12 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 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;
  height: var(--header-h);
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  background: linear-gradient(120deg, #fff 30%, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 54, 90, 0.35);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.25;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: var(--text-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 24px;
  border-radius: 10px;
  font-size: 0.98rem;
  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(135deg, var(--accent), #c41e42);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 54, 90, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 32px rgba(232, 54, 90, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--text);
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin-inline: auto;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 60%;
  background: radial-gradient(circle, rgba(232, 54, 90, 0.25), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(20, 20, 24, 0.55);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
  max-width: 40em;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: block;
  color: var(--accent-soft);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Feature cards / grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
  border-color: rgba(232, 54, 90, 0.4);
  transform: translateY(-3px);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* Showcase with screenshots */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.showcase-item figcaption {
  padding: 12px 14px 16px;
}

.showcase-item h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.showcase-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Two column content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: 560px;
  margin-inline: auto;
  object-fit: cover;
  object-position: top;
}

.split-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 14px;
}

.split-body p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.split-body ul {
  margin: 12px 0 20px;
}

.split-body li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.split-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Prose / SEO article */
.prose {
  max-width: 48em;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 36px 0 14px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: #fff;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2em;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 8px;
  list-style: disc;
}

.prose ol li {
  list-style: decimal;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Category chips */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cat-list a,
.cat-list span {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cat-list a:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 48px 24px;
  background:
    linear-gradient(135deg, rgba(232, 54, 90, 0.2), rgba(20, 20, 24, 0.9)),
    var(--bg-elevated);
  border: 1px solid rgba(232, 54, 90, 0.25);
  border-radius: calc(var(--radius) + 4px);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 32em;
  margin-inline: auto;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-soft);
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Legal / content page */
.content-page {
  padding: 32px 0 64px;
}

.content-page .prose {
  max-width: 52em;
}

.update-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 28em;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #070709;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28em;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.vlog-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.vlog-row img {
  border-radius: 10px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: fadeUp 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vlog-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-visual img,
  .split-media img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 10, 12, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-grid,
  .showcase-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vlog-row {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}
