:root {
  --bg: #0c0c0e;
  --bg-soft: #16161a;
  --bg-card: #1c1c22;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f3f5;
  --muted: #a8a8b3;
  --brand: #e11d2e;
  --brand-soft: #ff4d5a;
  --accent: #f5c518;
  --max: 1160px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 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.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.45) saturate(1.05);
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.25) 0%, rgba(12, 12, 14, 0.78) 58%, rgba(12, 12, 14, 0.98) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(225, 29, 46, 0.22), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.2rem;
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
}

.hero-brand span {
  color: var(--brand-soft);
}

.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.9rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.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;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff3344);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: #fff;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.65), rgba(12, 12, 14, 0));
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--muted);
}

.feature-grid,
.shot-grid,
.cat-grid,
.link-grid {
  display: grid;
  gap: 1.1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.link-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.35);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.card.wide img {
  aspect-ratio: 16 / 10;
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  animation: fadeUp 0.7s ease both;
}

.feature-item h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.94rem;
}

.prose {
  max-width: 820px;
}

.prose h2,
.prose h3 {
  margin: 1.8rem 0 0.75rem;
  line-height: 1.35;
}

.prose p {
  margin-bottom: 1rem;
  color: #d7d7de;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem 1.2rem;
  color: #d7d7de;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(225, 29, 46, 0.18), transparent 45%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.55rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 680px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.sticky-shot {
  position: sticky;
  top: 88px;
}

.sticky-shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0.2rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(225, 29, 46, 0.2), rgba(255, 77, 90, 0.08)),
    var(--bg-card);
  border: 1px solid rgba(225, 29, 46, 0.28);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.55rem;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #09090b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.4rem;
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: #7d7d88;
  font-size: 0.85rem;
  text-align: center;
}

.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: var(--brand-soft);
  margin-bottom: 0.5rem;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .cat-grid,
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-shot {
    position: static;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 3.2rem 0 2.2rem;
  }

  .feature-grid,
  .cat-grid,
  .shot-grid,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid .card:nth-child(n + 5),
  .cat-grid .card:nth-child(n + 5) {
    display: none;
  }

  .section {
    padding: 2.8rem 0;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}
