:root {
  --bg: #0c0a0f;
  --bg-soft: #16121c;
  --bg-card: #1c1624;
  --text: #f5eef2;
  --text-muted: #b9a8b4;
  --brand: #ff2d6a;
  --brand-2: #ff7a3d;
  --brand-3: #c43bff;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 45, 106, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 122, 61, 0.14), transparent 50%),
    linear-gradient(180deg, #120e16 0%, var(--bg) 40%, #09070c 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff8fb0;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 10, 15, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px rgba(255, 45, 106, 0.35);
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.55) saturate(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 10, 15, 0.15) 0%, rgba(12, 10, 15, 0.55) 45%, rgba(12, 10, 15, 0.96) 100%),
    linear-gradient(90deg, rgba(12, 10, 15, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 56px;
  max-width: 680px;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.15;
  margin: 0 0 14px;
  background: linear-gradient(120deg, #fff 20%, #ffb4c9 55%, #ff7a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: #fff;
}

.hero p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot.wide img {
  aspect-ratio: 16 / 10;
}

.shot figcaption {
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.prose {
  color: #e8dce3;
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  margin: 1.6em 0 0.6em;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--brand);
  background: linear-gradient(90deg, rgba(255, 45, 106, 0.12), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  min-height: 180px;
  animation: fadeUp 0.7s ease both;
}

.cat-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-weight: 600;
}

.panel {
  background: rgba(28, 22, 36, 0.85);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
}

.cta-band {
  margin: 20px 0 40px;
  padding: 36px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(255, 45, 106, 0.22), rgba(255, 122, 61, 0.16)),
    var(--bg-card);
  border: 1px solid rgba(255, 45, 106, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

.breadcrumb {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-wrap {
  padding: 40px 0 72px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #09070c;
  padding: 40px 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;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #8d7c88;
  font-size: 0.88rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--text-muted);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chip:hover {
  color: #fff;
  border-color: rgba(255, 45, 106, 0.5);
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 72vh;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    gap: 8px 12px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 56px 0 40px;
  }

  .section {
    padding: 44px 0;
  }

  .cta-band {
    padding: 24px;
  }

  .shot img {
    aspect-ratio: 3 / 4;
  }
}
