:root {
  --brand: #c41e4a;
  --brand-dark: #9a1639;
  --brand-soft: #fff0f4;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e8e0e2;
  --bg: #faf7f8;
  --card: #ffffff;
  --max: 1100px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffe6ee 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #fff5e8 0%, transparent 45%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo span {
  font-family: var(--display);
  color: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: background 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 30, 74, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 10px;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  line-height: 1.35;
  margin: 1.6em 0 0.7em;
}

.prose h2 {
  font-size: 1.45rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--brand-dark);
}

.prose p {
  margin: 0 0 1em;
  color: #2a2a2a;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: #2a2a2a;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--ink);
}

/* Feature / gallery grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.7s ease both;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.feature-item .body {
  padding: 16px 18px 20px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s ease;
}

.gallery-grid figure:hover {
  transform: scale(1.02);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.gallery-grid figcaption {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.shot-pair figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.shot-pair img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.shot-pair figcaption {
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.wide-shot {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wide-shot img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
}

.wide-shot figcaption {
  padding: 12px 16px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(196, 30, 74, 0.95), rgba(154, 22, 57, 0.92)),
    url("/ae-featured.jpg") center / cover;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 30, 74, 0.92), rgba(120, 20, 50, 0.88));
  animation: softPulse 4s ease-in-out infinite;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0 0 18px;
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--brand-soft);
}

/* Breadcrumb / page hero */
.page-hero {
  padding: 36px 0 20px;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 8px 0 12px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.page-lead {
  color: var(--muted);
  max-width: 42em;
  margin: 0;
}

.content-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin: 0;
}

.error-page h1 {
  margin: 12px 0;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  background: #1f1518;
  color: #d9d0d3;
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 12px;
  font-family: var(--display);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer a {
  color: #d9d0d3;
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.85rem;
  color: #a89aa0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 20px 0;
  padding: 16px;
  background: var(--brand-soft);
  border-radius: 10px;
}

.internal-links a {
  font-weight: 600;
  font-size: 0.92rem;
}

/* TOC */
.toc {
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--ink);
}

/* Mobile */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-pair {
    grid-template-columns: 1fr;
  }

  .shot-pair img {
    max-height: 420px;
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--brand-soft);
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .feature-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-panel {
    padding: 20px 16px;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .section {
    padding: 36px 0;
  }

  .cta-band {
    padding: 22px 16px;
  }
}
