:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1a1a22;
  --text: #f2f2f5;
  --text-muted: #a0a0b0;
  --accent: #e53935;
  --accent-soft: #ff6b6b;
  --grad-start: #ff8c1a;
  --grad-end: #d81b60;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1180px;
  --header-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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(--accent-soft);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

ul,
ol {
  padding-left: 1.25em;
}

li {
  margin: 0.35em 0;
}

.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.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
  background: rgba(229, 57, 53, 0.15);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
}

.nav-mobile a:hover {
  background: rgba(229, 57, 53, 0.12);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(216, 27, 96, 0.22), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 140, 26, 0.15), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 52ch;
}

.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: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  max-height: 480px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.75), transparent 50%);
  pointer-events: none;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 10px;
  line-height: 1.35;
}

.section-head p {
  color: var(--text-muted);
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
  font-weight: 600;
}

/* Category chips */
.cat-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.cat-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}

.cat-chip:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(229, 57, 53, 0.45);
  transform: translateY(-3px);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-body h3 a {
  color: #fff;
}

.card-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Feature split */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-row.reverse .feature-copy {
  order: 1;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  max-height: 520px;
  background: #111;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.feature-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-copy .link-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.feature-copy .link-list li {
  margin: 8px 0;
}

.feature-copy .link-list a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 107, 107, 0.35);
}

/* Pros */
.pros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pros-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.pros-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #fff;
}

.pros-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pros-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--grad-start);
  margin-bottom: 8px;
}

/* Article / long content */
.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul,
.prose ol {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  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.02rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Legal / inner pages */
.page-hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(255, 140, 26, 0.1), transparent),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.page-hero .breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-hero .breadcrumb a {
  color: var(--text-muted);
}

.page-hero .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  padding: 40px 0 64px;
}

.legal-content .prose {
  max-width: 800px;
}

/* 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-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 40ch;
  margin-inline: auto;
}

/* Vlog strip */
.vlog-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  position: relative;
}

.vlog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vlog-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.82rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  margin: 20px 0;
  padding: 36px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 140, 26, 0.2), rgba(216, 27, 96, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #050507;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  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 p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 8px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc ol {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.toc a {
  color: var(--text);
}

/* Mobile bottom nav hint spacing */
.bottom-spacer {
  height: 0;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vlog-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual {
    max-height: 380px;
    aspect-ratio: 3 / 4;
  }

  .section {
    padding: 40px 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy {
    order: unset;
  }

  .feature-media {
    max-height: 420px;
  }

  .pros-grid {
    grid-template-columns: 1fr;
  }

  .vlog-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cta-band {
    padding: 28px 18px;
  }

  .card-body {
    padding: 10px;
  }

  .card-body h3 {
    font-size: 0.88rem;
  }
}

@media (max-width: 400px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  body {
    font-size: 15px;
  }
}
