:root {
  --bg: #0a0a0c;
  --bg-2: #121218;
  --bg-3: #1a1a22;
  --text: #e8e6e3;
  --text-muted: #9a9690;
  --accent: #c41e3a;
  --accent-soft: #8b1528;
  --border: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti 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);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 30, 58, 0.18), transparent),
    linear-gradient(180deg, #0d0d10 0%, var(--bg) 40%, #08080a 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #f0a0ae;
  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(10, 10, 12, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  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);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 12, 0.92) 35%, rgba(10, 10, 12, 0.55) 70%, rgba(10, 10, 12, 0.35)),
    url("/home-recommend.jpg") center / cover no-repeat;
  z-index: -1;
  opacity: 0.95;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: #f5f2ee;
  max-width: 36em;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-lead {
  max-width: 38em;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42em;
}

.prose {
  max-width: 52em;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  margin-top: 2rem;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose p {
  margin: 0.9rem 0;
  color: #d4d1cc;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  color: #d4d1cc;
}

.prose li {
  margin: 0.4rem 0;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

/* Feature / gallery grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 30, 58, 0.35);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-3);
}

.feature-item figcaption {
  padding: 0.9rem 1rem 1.1rem;
}

.feature-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.shot-row figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.shot-row img {
  width: 100%;
  aspect-ratio: 9 / 18;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.shot-row figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shot-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.shot-triple figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.shot-triple img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-triple figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(196, 30, 58, 0.25);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40em;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.error-page h1 {
  margin: 0.5rem 0 1rem;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--text-muted);
  max-width: 28em;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #070709;
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0.4rem 0;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  color: #e0b4bc;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .feature-grid,
  .shot-triple {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 12, 16, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0.75) 0%, rgba(10, 10, 12, 0.92) 100%),
      url("/home-recommend.jpg") center / cover no-repeat;
  }

  .feature-grid,
  .shot-row,
  .shot-triple,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-row img,
  .feature-item img,
  .shot-triple img {
    max-height: none;
    aspect-ratio: 9 / 14;
  }

  .section {
    padding: 2.25rem 0;
  }
}
