:root {
  --bg: #0f0c10;
  --bg-soft: #1a141c;
  --bg-card: #221a24;
  --text: #f5eef2;
  --text-muted: #b9a8b0;
  --brand: #ff4d8d;
  --brand-2: #ff8a3d;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 141, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(255, 138, 61, 0.16), transparent 50%),
    linear-gradient(180deg, #120e14 0%, var(--bg) 40%, #0c0a0e 100%);
  color: var(--text);
  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, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-2);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15, 12, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 77, 141, 0.35);
}

.brand span {
  font-family: var(--display);
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.28);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 77, 141, 0.4);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 560px;
  margin-inline: auto;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% 35%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(12px);
}

.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 48em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 141, 0.35);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 320px;
}

.feature-card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.shot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shot-item:hover img {
  transform: scale(1.04);
}

.shot-item figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.prose {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  margin: 1.6rem 0 0.7rem;
  line-height: 1.35;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: #e8dde3;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.2rem;
  color: #e8dde3;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 77, 141, 0.08);
  border: 1px solid rgba(255, 77, 141, 0.18);
}

.toc a {
  color: var(--text);
  font-size: 0.95rem;
}

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0;
}

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42em;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 2.2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.4rem;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5rem);
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split-media,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual img {
    max-height: 480px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(18, 14, 20, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid,
  .shot-grid,
  .toc {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-visual img {
    max-height: 420px;
  }
}
