:root {
  --brand: #e85a8c;
  --brand-dark: #c43d6e;
  --brand-light: #ff8fb3;
  --accent: #ff9a3c;
  --accent-2: #b44dff;
  --bg: #0f0f14;
  --bg-soft: #1a1a24;
  --bg-card: #22222e;
  --text: #f5f5f7;
  --text-muted: #a8a8b8;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --grad: linear-gradient(135deg, #ff9a3c 0%, #e85a8c 50%, #b44dff 100%);
  --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(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

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(15, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(232, 90, 140, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 154, 60, 0.18), transparent 45%),
    radial-gradient(ellipse at 80% 10%, rgba(180, 77, 255, 0.16), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(232, 90, 140, 0.2), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 90, 140, 0.15);
  color: var(--brand-light);
  font-size: 0.85rem;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 90, 140, 0.3);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.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, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 90, 140, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 120px;
  height: 120px;
  background: var(--grad);
  filter: blur(50px);
  opacity: 0.45;
  z-index: -1;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(26, 26, 36, 0.8), transparent);
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Feature / category grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.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, 90, 140, 0.4);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-copy ul {
  margin: 12px 0 0;
}

.feature-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

/* Content blocks for SEO text */
.content-block {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 24px;
}

.content-block h2,
.content-block h3 {
  margin-bottom: 14px;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block ol,
.content-block ul {
  margin: 0 0 14px 1.2em;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 8px;
  list-style: disc;
}

.content-block ol li {
  list-style: decimal;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--text-muted);
}

.toc li {
  list-style: decimal;
  margin-bottom: 6px;
}

.vlog-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.vlog-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.vlog-item span {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Page hero for inner pages */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(232, 90, 140, 0.12), transparent 40%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 680px;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-light);
}

.legal-content {
  padding: 40px 0 64px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  margin-left: 1.2em;
}

.legal-content li {
  list-style: disc;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 40px 32px;
  border-radius: 18px;
  background: var(--grad);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin-bottom: 10px;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.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: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0b0b10;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.keywords-line {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.keywords-line a {
  color: var(--text-muted);
  margin-right: 10px;
}

.keywords-line a:hover {
  color: var(--brand-light);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-media {
    order: 0;
  }

  .grid-4,
  .vlog-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 15, 20, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .section {
    padding: 48px 0;
  }

  .content-block {
    padding: 20px 18px;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .vlog-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
