:root {
  --bg: #0a0a0b;
  --bg-elevated: #141416;
  --bg-soft: #1a1a1e;
  --text: #f3f1ef;
  --text-muted: #a8a29e;
  --accent: #e5253d;
  --accent-soft: #ff4d63;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --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;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(229, 37, 61, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 40, 50, 0.15), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  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;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  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.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle .icon-bar {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle .icon-bar:nth-child(1) { transform: translateY(-6px); }
.menu-toggle .icon-bar:nth-child(2) { transform: translateY(0); }
.menu-toggle .icon-bar:nth-child(3) { transform: translateY(6px); }

.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b8152a);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: floatIn 0.9s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 45%;
  height: 45%;
  background: radial-gradient(circle, rgba(229, 37, 61, 0.35), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46em;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.section-head p {
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 1.8rem 0 0.75rem;
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0.5rem 0 1.2rem 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Category / showcase grids */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 37, 61, 0.45);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
}

.cat-card .cap {
  padding: 0.85rem 0.95rem 1rem;
}

.cat-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.cat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shot-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.shot-card:hover {
  transform: scale(1.015);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-card figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-row img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.feature-text p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.vlog-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.92;
}

.vlog-grid img:hover {
  transform: scale(1.03);
  opacity: 1;
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent-soft);
  margin-bottom: 0.55rem;
}

.faq details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.links-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.links-box a {
  padding: 0.45rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.links-box a:hover {
  border-color: var(--accent);
  color: #fff;
}

.notice {
  background: rgba(229, 37, 61, 0.1);
  border: 1px solid rgba(229, 37, 61, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.page-hero p {
  color: var(--text-muted);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-soft);
}

/* 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, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
  background: #070708;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise 0.7s ease both;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(10, 10, 11, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .hero-grid,
  .feature-row,
  .feature-row:nth-child(even),
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 520px) {
  .cat-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  body {
    font-size: 15px;
  }
}
