:root {
  --brand: #d4145a;
  --brand-dark: #9f0f44;
  --brand-soft: #ffe4ee;
  --ink: #1c1218;
  --muted: #5c4a52;
  --line: #ebdae2;
  --paper: #fff9fb;
  --paper-2: #fff0f5;
  --surface: #ffffff;
  --shadow: 0 12px 40px rgba(212, 20, 90, 0.08);
  --radius: 16px;
  --max: 1120px;
  --header-h: 68px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif 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%, #ffd6e6 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe9f1 0%, transparent 50%),
    linear-gradient(180deg, #fff7fa 0%, var(--paper) 40%, #fff 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(255, 249, 251, 0.88);
  border-bottom: 1px solid rgba(235, 218, 226, 0.85);
}

.ads-bar,
#ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  background: rgba(255, 249, 251, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(235, 218, 226, 0.9);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 400;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #f43f7a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(212, 20, 90, 0.25);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--brand-soft);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeLift 0.9s ease both;
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(12px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 48em;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 8px;
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 1.4em 0 0.6em;
  line-height: 1.35;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
}

.prose ul {
  padding-left: 1.2em;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: riseIn 0.7s ease both;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(212, 20, 90, 0.12);
}

.feature-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.feature-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .thumb img {
  transform: scale(1.04);
}

.feature-card .body {
  padding: 16px 18px 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.feature-card:nth-child(2) { animation-delay: 0.06s; }
.feature-card:nth-child(3) { animation-delay: 0.12s; }
.feature-card:nth-child(4) { animation-delay: 0.18s; }
.feature-card:nth-child(5) { animation-delay: 0.24s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(transparent, rgba(28, 18, 24, 0.78));
}

.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.vlog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vlog-item:hover img {
  transform: scale(1.05);
}

.split-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.split-block .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
  background: var(--paper-2);
}

.split-block .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 10px 0 4px;
  color: var(--muted);
}

.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46em;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, #fff0f5, #ffe4ee);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 20, 90, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.error-page {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin: 0;
}

.error-page h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 22px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
}

.toc a {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

@media (max-width: 960px) {
  .hero-grid,
  .split-block,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid,
  .vlog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 249, 251, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    padding: 28px 0 20px;
  }

  .hero-visual {
    aspect-ratio: 16 / 11;
  }

  .card-grid,
  .cat-grid,
  .vlog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prose {
    padding: 20px 16px 4px;
  }

  .section {
    padding: 36px 0;
  }
}

@media (max-width: 420px) {
  .cat-grid,
  .vlog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
