:root {
  --brand: #e84a6a;
  --brand-deep: #c23352;
  --brand-soft: #fff0f3;
  --accent: #ff8a3d;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #ead9de;
  --bg: #fff8f6;
  --panel: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(200, 60, 90, 0.12);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 138, 61, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(232, 74, 106, 0.16), transparent 50%),
    linear-gradient(180deg, #fff7f4 0%, var(--bg) 40%, #fff 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 246, 0.92);
  border-bottom: 1px solid rgba(232, 74, 106, 0.12);
}

.header-inner {
  position: relative;
  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);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 8px 24px rgba(232, 74, 106, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 74, 106, 0.45);
}

.btn-ghost {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid rgba(232, 74, 106, 0.2);
}

.btn-ghost:hover {
  color: var(--brand-deep);
  background: #ffe4ea;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-shot {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #111;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  margin-inline: auto;
  width: min(100%, 320px);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-block: 1px solid rgba(232, 74, 106, 0.08);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  line-height: 1.35;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1em;
  color: #2b2b2b;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  color: #2b2b2b;
}

.prose li {
  margin-bottom: 0.4em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.03);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.04);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  background: #111;
}

.shot-item figcaption {
  padding: 10px 12px 14px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 56px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  margin: 20px 0 0;
  padding: 34px;
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.95), rgba(232, 74, 106, 0.95)),
    url("/p.jpg") center / cover;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.cta-band p {
  margin: 0 0 18px;
  max-width: 40em;
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  color: var(--brand);
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 42px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
  margin: 24px 0 48px;
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.04);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-links a {
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 20px;
  padding: 36px 0 28px;
  background: #1f1518;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.error-page p {
  margin: 0 0 22px;
  color: var(--muted);
}

.toc {
  background: var(--brand-soft);
  border: 1px solid rgba(232, 74, 106, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--brand-deep);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-shot {
    max-height: 480px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    z-index: 120;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12);
    z-index: 110;
  }

  .nav.open {
    display: flex;
    position: absolute;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--brand-soft);
  }

  .header-inner {
    flex-wrap: nowrap;
    min-height: 60px;
  }

  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 40px 0;
  }

  .content-panel {
    padding: 20px 16px;
  }

  .cta-band {
    padding: 24px 18px;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
