:root {
  --brand: #e5396a;
  --brand-dark: #c2185b;
  --accent: #ff8a00;
  --accent-soft: #ffc14a;
  --ink: #1a1220;
  --muted: #5c5360;
  --line: #eadfe6;
  --paper: #fffaf8;
  --card: #ffffff;
  --grad: linear-gradient(135deg, #ffb347 0%, #e5396a 55%, #c2185b 100%);
  --shadow: 0 12px 40px rgba(194, 24, 91, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 193, 74, 0.18), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(229, 57, 106, 0.12), transparent 28%),
    linear-gradient(180deg, #fff7f2 0%, var(--paper) 40%, #fff 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 248, 0.92);
  border-bottom: 1px solid rgba(234, 223, 230, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26, 18, 32, 0.72), rgba(194, 24, 91, 0.45)),
    url("/g.jpg") center/cover no-repeat;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 760px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  font-weight: 700;
}

.hero p {
  margin: 0 0 26px;
  font-size: 1.08rem;
  opacity: 0.95;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(229, 57, 106, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  line-height: 1.35;
  margin-top: 1.8em;
}

.prose h2 {
  font-size: 1.7rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: #2c2430;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose strong {
  color: var(--ink);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.shot.wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shot figcaption {
  padding: 12px 14px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list a,
.pill-list span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.pill-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  font-weight: 700;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 48px 0 24px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--muted);
}

.content-page {
  padding-bottom: 72px;
}

.content-page .prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px clamp(18px, 3vw, 36px);
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 40px;
  background: #1a1220;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.error-box {
  text-align: center;
  max-width: 560px;
}

.error-box h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-box p {
  color: var(--muted);
}

.toc {
  background: #fff8f5;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--ink);
}

.media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.inline-note {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  background: #fff5f8;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .container,
.section-head,
.feature,
.shot {
  animation: rise 0.7s ease both;
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .media-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: block;
  }

  .menu-toggle .menu-icon-close {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    right: 16px;
    left: 16px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(255, 250, 248, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav a:hover,
  .nav a.active {
    background: #fff5f8;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .media-row {
    grid-template-columns: 1fr;
  }

  .shot img {
    aspect-ratio: 9 / 14;
  }

  .section {
    padding: 48px 0;
  }
}
