:root {
  --bg: #07070a;
  --bg-elev: #121218;
  --bg-soft: #1a1a22;
  --text: #f2f2f5;
  --text-muted: #a0a0b0;
  --accent: #e83e5a;
  --accent-2: #ff7a45;
  --accent-soft: rgba(232, 62, 90, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 62, 90, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 122, 69, 0.12), transparent 50%),
    linear-gradient(180deg, #0b0b10 0%, var(--bg) 40%, #09090d 100%);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff9a6b;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 10, 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-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.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);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 7, 10, 0.72) 0%, rgba(7, 7, 10, 0.35) 45%, rgba(7, 7, 10, 0.78) 100%),
    url("/featured.jpg") center / cover no-repeat;
  z-index: -1;
  animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #fff, #ffb4a2 55%, #e83e5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  max-width: 38rem;
  margin-bottom: 0.9rem;
}

.hero-lead {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Sections */
.section {
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.45rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 46rem;
}

.prose {
  color: #d6d6e0;
  font-size: 1.02rem;
}

.prose p {
  margin-bottom: 1.05rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.75rem;
  color: #fff;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 62, 90, 0.35);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
}

.feature-item .cap {
  padding: 0.95rem 1rem 1.1rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Showcase row */
.showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: start;
}

.showcase img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.shot-grid img {
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.shot-grid.wide {
  grid-template-columns: repeat(4, 1fr);
}

.shot-grid.wide img {
  aspect-ratio: 9 / 16;
}

/* Category chips as links */
.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.cat-links a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 62, 90, 0.28);
  color: #ffd0d8;
  font-size: 0.9rem;
}

.cat-links a:hover {
  background: rgba(232, 62, 90, 0.24);
  color: #fff;
}

/* FAQ */
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 0.65rem;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.8rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.55rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42rem;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-2);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

/* Footer */
.site-footer {
  padding: 2.4rem 0 2rem;
  background: #050508;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a:hover {
  color: var(--accent-2);
}

.copyright {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: #6f6f7c;
  font-size: 0.85rem;
  text-align: center;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease forwards;
}

.reveal.d2 { animation-delay: 0.12s; }
.reveal.d3 { animation-delay: 0.24s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .shot-grid.wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 2.4rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .reveal,
  .feature-item {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
