:root {
  --brand-orange: #ff8a1a;
  --brand-pink: #e10098;
  --brand-magenta: #c2185b;
  --bg: #0f0f14;
  --bg-soft: #1a1a24;
  --bg-card: #22222e;
  --text: #f5f5f7;
  --text-muted: #b8b8c4;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --gradient: linear-gradient(135deg, #ff8a1a 0%, #e10098 100%);
  --max: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ffb26b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffd4a8;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  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;
  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: var(--text);
  background: rgba(255, 138, 26, 0.12);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle-icon {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}

.menu-toggle-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-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 6px; }
.menu-toggle-icon span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(ellipse at top right, rgba(225, 0, 152, 0.22), transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(255, 138, 26, 0.18), transparent 40%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.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;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 138, 26, 0.45);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

.feature-grid,
.category-grid,
.shot-grid,
.card-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.feature-card,
.category-card,
.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card,
.category-card,
.shot-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.category-card:hover,
.shot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 26, 0.35);
}

.feature-card img,
.category-card img,
.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #111;
}

.feature-card .body,
.category-card .body,
.shot-card .body,
.card .body {
  padding: 16px 18px 20px;
}

.feature-card h3,
.category-card h3,
.shot-card h3,
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p,
.category-card p,
.shot-card p,
.card p,
.prose p {
  color: var(--text-muted);
}

.prose {
  max-width: 860px;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
  line-height: 1.35;
}

.prose p,
.prose li {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.seo-article {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
}

.seo-article h2 {
  margin-top: 0;
}

.breadcrumb {
  padding: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 760px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.sticky-shot {
  position: sticky;
  top: 88px;
}

.sticky-shot img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 138, 26, 0.1);
  border: 1px solid rgba(255, 138, 26, 0.25);
  color: #ffc58a;
  font-size: 0.92rem;
}

.tag-link:hover {
  color: #ffe0ba;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #0b0b10;
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-brand h3 {
  margin-bottom: 8px;
}

.footer-brand p,
.footer-col p,
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #ffc58a;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-shot {
    position: static;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: #171722;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .section {
    padding: 40px 0;
  }

  .feature-grid,
  .category-grid,
  .shot-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .seo-article {
    padding: 20px 16px;
  }

  .feature-card img,
  .category-card img,
  .shot-card img {
    aspect-ratio: 3 / 4;
  }
}
