:root {
  --bg: #0b0b0d;
  --bg-elevated: #141418;
  --bg-soft: #1a1a20;
  --text: #f2f2f4;
  --text-muted: #a8a8b3;
  --accent: #e11d2e;
  --accent-soft: #ff4d5e;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 16px 40px 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;
}

*,
*::before,
*::after {
  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(225, 29, 46, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 77, 94, 0.1), transparent 50%),
    linear-gradient(180deg, #101014 0%, var(--bg) 35%, #080809 100%);
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.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(11, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.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: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  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;
  filter: brightness(0.45) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.55) 48%, rgba(8, 8, 10, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.95) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3.5rem;
  max-width: 680px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: #fff;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: #f7f7f8;
  line-height: 1.45;
}

.hero p {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff3344);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: #fff;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose h2,
.prose h3 {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.prose h2 {
  margin: 2.2rem 0 0.9rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 1.7rem 0 0.7rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-block,
.cat-item,
.shot-item,
.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-block,
.faq-item {
  padding: 1.25rem 1.3rem;
}

.feature-block h3,
.cat-item h3,
.faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: #fff;
}

.feature-block p,
.cat-item p,
.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.cat-item img,
.shot-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--bg-soft);
}

.cat-item .body,
.shot-item .body {
  padding: 0.95rem 1rem 1.1rem;
}

.shot-item img {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  width: 100%;
  margin-inline: auto;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}

.highlight-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.highlight-strip img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
}

.toc a {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.03);
}

.toc a:hover {
  color: #fff;
  border-color: rgba(225, 29, 46, 0.5);
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 2.4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.copyright {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: #7d7d88;
  font-size: 0.86rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 0.4rem;
  color: var(--accent-soft);
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.internal-links {
  margin-top: 2rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.internal-links h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: #fff;
}

.internal-links a {
  margin-right: 0.9rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.section-head,
.feature-block,
.cat-item,
.shot-item {
  animation: rise-in 0.7s ease both;
}

.cat-item:nth-child(2),
.feature-block:nth-child(2),
.shot-item:nth-child(2) {
  animation-delay: 0.08s;
}

.cat-item:nth-child(3),
.feature-block:nth-child(3),
.shot-item:nth-child(3) {
  animation-delay: 0.16s;
}

@media (max-width: 960px) {
  .grid-4,
  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 12, 15, 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);
  }

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    padding: 4rem 0 2.4rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot-item img {
    max-height: none;
    aspect-ratio: 3 / 4;
  }
}
