:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a22;
  --text: #f5f5f7;
  --text-muted: #a8a8b3;
  --accent: #ff4d6d;
  --accent-2: #ff8c42;
  --accent-3: #ffd166;
  --grad: linear-gradient(135deg, #ffd166 0%, #ff8c42 45%, #ff4d6d 100%);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 140, 66, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 77, 109, 0.16), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ffb4c0;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 12, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 140, 66, 0.12);
  color: var(--accent-3);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 28px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #1a0f08;
}

.btn-primary:hover {
  color: #1a0f08;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: #fff;
  display: block;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 620px;
}

.hero-float {
  position: absolute;
  left: -18px;
  bottom: 36px;
  width: min(46%, 220px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-float img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

.feature-grid,
.category-grid,
.shot-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.category-card,
.shot-card,
.content-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  padding: 22px;
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature-card h3,
.category-card h3,
.content-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-card p,
.category-card p,
.content-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  padding: 0;
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-card .body {
  padding: 16px;
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.shot-card .cap {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.prose {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px clamp(18px, 3vw, 36px);
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #d7d7df;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.toc a {
  color: #ffc2cc;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 12px;
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  color: var(--text-muted);
  margin: 12px 0 4px;
}

.page-hero {
  padding: 48px 0 20px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  opacity: 0.5;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 42px 0 28px;
}

.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: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand p,
.footer-col p {
  color: var(--text-muted);
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #7d7d88;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin: 0 0 12px;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.related-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-float {
    display: none;
  }

  .hero-frame img {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(10, 10, 12, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 36px;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .category-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 12px;
  }
}
