:root {
  --bg: #0c0c10;
  --bg-soft: #15151c;
  --bg-card: #1a1a24;
  --line: #2a2a38;
  --text: #f2f2f5;
  --muted: #a8a8b8;
  --accent: #ff4d8d;
  --accent2: #ff7a45;
  --grad: linear-gradient(135deg, #ff7a45 0%, #ff4d8d 55%, #c44dff 100%);
  --radius: 12px;
  --max: 1120px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff8ab3;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 16, 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;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 6px 2px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle .menu-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.menu-toggle .menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.menu-toggle .menu-icon span:nth-child(1) { top: 0; }
.menu-toggle .menu-icon span:nth-child(2) { top: 6px; }
.menu-toggle .menu-icon span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 77, 141, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(255, 122, 69, 0.16), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 48em;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

/* Cards / grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-media {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  overflow: hidden;
  background: #111;
}

.card-media.wide {
  aspect-ratio: 3 / 4;
  max-height: 360px;
}

.card-media.screen {
  aspect-ratio: 9 / 19;
  max-height: 480px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card-body {
  padding: 16px 18px 20px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.feature-item img {
  width: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: top;
  aspect-ratio: 9 / 16;
  max-height: 200px;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prose / SEO content */
.prose {
  max-width: 52em;
}

.prose h2,
.prose h3 {
  margin: 1.4em 0 0.6em;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose p {
  margin-bottom: 1em;
  color: #d8d8e2;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em 1.2em;
  color: #d8d8e2;
}

.prose li {
  margin-bottom: 0.45em;
  list-style: disc;
}

.prose ol li {
  list-style: decimal;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0 32px;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.2em;
}

.toc li {
  list-style: decimal;
  margin-bottom: 6px;
  color: var(--muted);
}

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--accent);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 77, 141, 0.15), transparent 45%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.content-wrap {
  padding: 36px 0 56px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-box h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-box p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #08080c;
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.footer-brand p,
.footer-col p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #777788;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

.related-links {
  margin-top: 36px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.related-links .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.related-links a {
  color: var(--muted);
}

.related-links a:hover {
  color: var(--accent);
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.shot-pair figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-pair figcaption {
  padding: 10px 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.shot-pair img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid,
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item {
    grid-template-columns: 88px 1fr;
  }

  .feature-item img {
    width: 88px;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(18, 18, 26, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .nav a:hover {
    background: var(--bg-card);
  }

  .header-inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 0.95rem;
  }

  .section {
    padding: 36px 0;
  }

  .hero {
    padding: 28px 0 20px;
  }
}
