:root {
  --brand-orange: #ff7a18;
  --brand-pink: #ff2d7a;
  --brand-magenta: #e91e63;
  --brand-gold: #ffb347;
  --ink: #1a1218;
  --ink-soft: #4a3a42;
  --muted: #7a6670;
  --paper: #fff8f5;
  --paper-2: #fff0ea;
  --line: rgba(255, 45, 122, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(255, 90, 60, 0.16);
  --radius: 18px;
  --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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 179, 71, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 45, 122, 0.22), transparent 55%),
    linear-gradient(180deg, #fff7f2 0%, var(--paper) 40%, #ffe8df 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 245, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(255, 90, 60, 0.28);
}

.brand span {
  font-family: var(--font-display);
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-pink);
}

.menu-toggle {
  display: none;
  border: 0;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  color: #fff;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 10, 18, 0.25) 0%, rgba(26, 10, 18, 0.55) 45%, rgba(26, 10, 18, 0.88) 100%),
    linear-gradient(90deg, rgba(255, 122, 24, 0.35), rgba(255, 45, 122, 0.28));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 3.2rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.6rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 12px 28px rgba(255, 45, 122, 0.35);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 240, 234, 0.7));
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0 0 0.55rem;
  line-height: 1.25;
  background: linear-gradient(120deg, var(--ink), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  font-family: var(--font-display);
  margin-top: 2rem;
}

.prose p {
  margin: 0 0 1.05rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--ink);
}

/* Feature / category grids */
.feature-grid,
.shot-grid,
.channel-grid {
  display: grid;
  gap: 1.1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.channel-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.shot-card,
.channel-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.shot-card:hover,
.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(255, 90, 60, 0.2);
}

.feature-card img,
.shot-card img,
.channel-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  background: #f3d7cf;
}

.feature-card .body,
.shot-card .body,
.channel-card .body {
  padding: 1rem 1.05rem 1.15rem;
}

.feature-card h3,
.shot-card h3,
.channel-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-family: var(--font-display);
}

.feature-card p,
.shot-card p,
.channel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.wide-shot {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  display: block;
  background: #f3d7cf;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.panel img {
  border-radius: 14px;
  margin-bottom: 1rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 122, 24, 0.12), rgba(255, 45, 122, 0.12));
  color: var(--brand-magenta);
  font-size: 0.88rem;
  border: 1px solid var(--line);
}

.seo-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.seo-block h2 {
  font-family: var(--font-display);
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.seo-block h3 {
  font-family: var(--font-display);
  margin: 1.7rem 0 0.7rem;
  font-size: 1.25rem;
}

.seo-block p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1rem;
  margin: 1rem 0 1.4rem;
  padding: 1rem 1.1rem;
  background: var(--paper-2);
  border-radius: 14px;
  border: 1px dashed rgba(255, 45, 122, 0.25);
}

.toc a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.breadcrumb {
  padding: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 2.2rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42rem;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin: 0;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-wrap p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0.8rem auto 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.4rem 0 2rem;
  background: linear-gradient(180deg, rgba(26, 18, 24, 0.96), #140c11);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--brand-gold);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: auto;
    padding: 0.75rem 1rem 1rem;
    margin: 0;
    background: rgba(255, 248, 245, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(255, 90, 60, 0.16);
    z-index: 120;
  }

  .nav.open {
    display: grid;
    gap: 0.15rem;
  }

  .nav.open a {
    padding: 0.65rem 0.4rem;
    border-bottom: 1px solid rgba(255, 45, 122, 0.08);
  }

  .nav.open a:last-child {
    border-bottom: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
    min-height: 60px;
    padding: 0.55rem 0;
  }

  .hero {
    min-height: 78vh;
  }

  .feature-grid,
  .shot-grid,
  .channel-grid,
  .toc {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card img,
  .shot-card img,
  .channel-card img {
    aspect-ratio: 3 / 4;
  }

  .section {
    padding: 2.4rem 0;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .shot-grid,
  .channel-grid,
  .toc {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 3.2rem 0 2.4rem;
  }
}
