:root {
  --bg: #0c0b0f;
  --bg-soft: #15131a;
  --bg-card: #1b1822;
  --text: #f3efe8;
  --text-muted: #a59e94;
  --accent: #e8324a;
  --accent-soft: #ff6b7a;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --radius: 14px;
  --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(ellipse 90% 50% at 10% -10%, rgba(232, 50, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 0%, rgba(255, 140, 90, 0.1), transparent 50%),
    linear-gradient(180deg, #120f16 0%, var(--bg) 35%, #0a090d 100%);
  line-height: 1.75;
  min-height: 100vh;
}

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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 15, 0.86);
  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.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.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;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle-icon::before {
  top: -6px;
}

.menu-toggle-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 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;
  object-position: center top;
  filter: brightness(0.55) saturate(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 15, 0.25) 0%, rgba(12, 11, 15, 0.55) 45%, rgba(12, 11, 15, 0.96) 100%),
    linear-gradient(90deg, rgba(12, 11, 15, 0.75) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.5rem;
  max-width: 640px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: #ffe8ea;
}

.hero-desc {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  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), #ff6a4d);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.55rem;
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
  font-size: 1rem;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 2.2rem 0 0.85rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.65rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 50, 74, 0.35);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot.wide img {
  aspect-ratio: 16 / 10;
  object-position: center top;
}

.shot figcaption {
  padding: 0.85rem 1rem 1rem;
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}

.shot figcaption span {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(232, 50, 74, 0.08), transparent 45%),
    var(--bg-soft);
  border: 1px solid var(--line);
}

.feature-band.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.feature-band.reverse .feature-text {
  order: 2;
}

.feature-band h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
}

.feature-band p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tag-list a:hover {
  color: #fff;
  border-color: rgba(232, 50, 74, 0.45);
}

.cat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.cat-item {
  text-align: center;
  padding: 0.9rem 0.5rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cat-item:hover {
  color: #fff;
  border-color: rgba(232, 50, 74, 0.4);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
}

.page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.6rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.breadcrumb {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-wrap {
  padding: 2.5rem 0 4rem;
  max-width: 760px;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #09080c;
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Motion */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.section-head,
.feature-band,
.shot {
  animation: riseIn 0.7s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 11, 15, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 4rem 0 2.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .cat-strip,
  .feature-band,
  .feature-band.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-band.reverse .feature-text {
    order: 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .shot img {
    aspect-ratio: 3 / 4;
  }
}
