:root {
  --bg: #0b0b0f;
  --bg-soft: #14141c;
  --bg-card: #1a1a24;
  --line: #2a2a38;
  --text: #f2f2f7;
  --muted: #a8a8b8;
  --accent: #e11d48;
  --accent-soft: #fb7185;
  --gold: #f5c542;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(225, 29, 72, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(245, 197, 66, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 15, 0.86);
  border-bottom: 1px solid var(--line);
}

/* 顶部固定广告条：紧贴导航下方，便于点击 */
#ads.ads-bar,
#ads {
  position: sticky;
  top: 68px;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  background: rgba(11, 11, 15, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0.55rem 0.75rem 0.45rem;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #c8c8d4;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.25;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #be123c);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: 520px;
}

.badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.feature-grid,
.shot-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.content-card,
.shot-card,
.soft-box {
  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,
.content-card,
.soft-box {
  padding: 1.25rem;
}

.feature-card h3,
.content-card h3,
.soft-box h3 {
  margin: 0.85rem 0 0.55rem;
  font-size: 1.12rem;
}

.feature-card p,
.content-card p,
.soft-box p,
.prose p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.feature-card img,
.shot-card img,
.media-row img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

.shot-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.45);
}

.shot-card figcaption {
  padding: 0.75rem 0.85rem 0.95rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.media-row .stack {
  display: grid;
  gap: 1rem;
}

.prose {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.prose h2,
.prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  color: var(--muted);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.6rem;
}

.toc a {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.toc a:hover {
  border-color: var(--accent);
}

.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0 0;
}

.kpi div {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}

.kpi strong {
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
}

.kpi span {
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 2.2rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 48rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 0.6rem;
}

.error-page p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.4rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #08080c;
  padding: 2.2rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.copyright {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #777788;
  font-size: 0.86rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.related-links a {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .media-row,
  .footer-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpi {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(78vw, 260px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    background: rgba(20, 20, 28, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
  }

  .nav.open a {
    padding: 0.7rem 0.85rem;
    border-bottom: none;
    border-radius: 8px;
  }

  .nav.open a:hover,
  .nav.open a.active {
    background: rgba(225, 29, 72, 0.16);
    border-bottom-color: transparent;
  }

  .nav-wrap {
    flex-wrap: nowrap;
  }

  .feature-grid,
  .shot-grid,
  .kpi {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-visual img,
  .feature-card img,
  .shot-card img,
  .media-row img {
    max-height: 420px;
  }
}
