:root {
  --brand-yellow: #ffc93c;
  --brand-orange: #ff7a18;
  --brand-magenta: #e91e63;
  --brand-deep: #c2185b;
  --ink: #1a1a1a;
  --ink-soft: #444;
  --muted: #6b6b6b;
  --line: #ececec;
  --bg: #fff8f2;
  --bg-alt: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(233, 30, 99, 0.08);
  --max: 1120px;
  --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(circle at 12% 8%, rgba(255, 201, 60, 0.28), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(233, 30, 99, 0.16), transparent 28%),
    linear-gradient(180deg, #fff9f4 0%, #fff 42%, #fff7fb 100%);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(233, 30, 99, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-magenta);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.hero {
  padding: 48px 0 28px;
}

.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.8rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.25);
}

.btn-secondary {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.25);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  scroll-margin-top: 84px;
}

.prose h2 {
  margin-top: 1.6em;
  margin-bottom: 0.55em;
  font-size: 1.35rem;
  color: var(--brand-deep);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.25em;
  margin-bottom: 0.4em;
  font-size: 1.12rem;
}

.prose p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.35em;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 201, 60, 0.18), rgba(233, 30, 99, 0.08));
  border-radius: var(--radius);
}

.toc a {
  font-weight: 600;
}

.feature-grid,
.shot-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.shot-card,
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.feature-card:hover,
.shot-card:hover,
.info-card:hover {
  transform: translateY(-4px);
}

.feature-card img,
.shot-card img,
.info-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #f3f3f3;
}

.feature-card .body,
.shot-card .body,
.info-card .body {
  padding: 14px 14px 16px;
}

.feature-card h3,
.shot-card h3,
.info-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-card p,
.shot-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq p {
  margin: 10px 0 4px;
  color: var(--ink-soft);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.internal-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.2);
  font-weight: 600;
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 40px;
  padding: 34px 0 28px;
  background: linear-gradient(180deg, #1f1a1c, #2a1520);
  color: #f7eef2;
}

.site-footer a {
  color: #ffd0e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.copyright {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbb4be;
  font-size: 0.9rem;
}

.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 8px 0 12px;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid,
  .feature-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 28px;
  }

  .prose {
    padding: 16px;
  }

  .feature-card img,
  .shot-card img,
  .info-card img {
    aspect-ratio: 3 / 4;
  }
}
