:root {
  --brand: #c41e3a;
  --brand-dark: #9a1530;
  --brand-soft: #fde8ec;
  --ink: #1a1520;
  --ink-soft: #4a4450;
  --muted: #7a7480;
  --line: #e8e2e6;
  --paper: #faf7f8;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 21, 32, 0.08);
  --radius: 14px;
  --max: 1180px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fde8ec 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #efe8f4 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--paper) 40%, #f3eef1 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(232, 226, 230, 0.9);
}

/* ads.js sticky bar sits just under header */
.site-ads-bar {
  position: sticky;
  top: 68px;
  z-index: 90;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 400;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 30, 58, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand-soft);
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  animation: floatIn 0.9s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(26, 21, 32, 0.55));
  pointer-events: none;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-up {
  animation: rise 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(232, 226, 230, 0.7);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-item {
  padding: 8px 4px 4px;
}

.feature-item h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #eee;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  display: block;
  color: inherit;
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  color: inherit;
}

.category-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}

.category-card small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top;
  max-height: 560px;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 14px;
  font-weight: 400;
}

.split-copy p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.split-copy ul {
  margin: 0 0 18px;
  padding-left: 1.15em;
  color: var(--ink-soft);
}

.split-copy li {
  margin-bottom: 8px;
}

.pro-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pro-item {
  padding: 22px 22px 20px;
  border-top: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.72);
}

.pro-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.pro-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.article-body {
  max-width: 820px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2em 0 0.7em;
  font-weight: 400;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.5em 0 0.55em;
}

.article-body p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.article-body ul,
.article-body ol {
  color: var(--ink-soft);
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.article-body li {
  margin-bottom: 0.45em;
}

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: inline-block;
  margin: 0 14px 8px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.toc a:hover {
  color: var(--brand);
}

.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 8px 0 12px;
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46em;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.vlog-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-strip img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.cta-banner {
  margin: 20px 0 0;
  padding: 36px 32px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(196, 30, 58, 0.92), rgba(154, 21, 48, 0.95)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 45%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 8px;
  font-weight: 400;
}

.cta-banner p {
  margin: 0;
  opacity: 0.92;
  max-width: 36em;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.cta-banner .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--brand);
  margin: 0;
}

.error-page h1 {
  font-size: 1.5rem;
  margin: 12px 0;
}

.error-page p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  background: #1a1520;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-cloud a {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.keyword-cloud a:hover {
  color: var(--brand);
  border-color: var(--brand-soft);
}

/* Mobile */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .feature-grid,
  .category-grid,
  .vlog-strip,
  .pro-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 36px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .feature-grid,
  .category-grid,
  .vlog-strip,
  .pro-list {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .cta-banner {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .vlog-strip {
    grid-template-columns: 1fr 1fr;
  }
}
