:root {
  --bg: #0d0f14;
  --bg-soft: #151821;
  --bg-card: #1a1e28;
  --bg-elevated: #222733;
  --line: #2a3140;
  --text: #e8eaef;
  --muted: #9aa3b5;
  --accent: #3ecf5b;
  --accent-dark: #2aa845;
  --accent-soft: rgba(62, 207, 91, 0.12);
  --warn: #ff6b6b;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(62, 207, 91, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(80, 120, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 40%, #0a0c11 100%);
  color: var(--text);
  line-height: 1.75;
  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: #6dff88;
}

ul,
ol {
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(13, 15, 20, 0.88);
  border-bottom: 1px solid var(--line);
}

/* Sticky ads bar under header */
#ads.site-ads,
#ads {
  position: sticky;
  top: 68px;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: rgba(13, 15, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 10px 8px 8px;
}

#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.35);
  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.45);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #9aa3b5;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 960px) {
  #ads.site-ads,
  #ads {
    top: 68px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  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: 0.35rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #041208;
  box-shadow: 0 8px 24px rgba(62, 207, 91, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #041208;
  box-shadow: 0 12px 28px rgba(62, 207, 91, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}

.badge {
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(62, 207, 91, 0.25);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-glow {
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(62, 207, 91, 0.22), transparent 70%);
  filter: blur(24px);
  z-index: -1;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
}

.panel {
  background: linear-gradient(180deg, rgba(26, 30, 40, 0.95), rgba(20, 23, 32, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card,
.shot-card,
.content-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;
}

.feature-card:hover,
.shot-card:hover,
.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 207, 91, 0.45);
}

.feature-card .body,
.content-card .body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.feature-card h3,
.content-card h3,
.shot-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-card p,
.content-card p,
.shot-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-card img,
.content-card img,
.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-elevated);
}

.shot-card .cap {
  padding: 0.85rem 1rem 1rem;
}

.shot-card .cap h3 {
  font-size: 0.98rem;
}

.prose {
  font-size: 1.02rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.85rem;
  padding-top: 0.4rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.65rem;
  color: #f2f4f8;
}

.prose p {
  margin-bottom: 1rem;
  color: #d5dae6;
}

.prose ul,
.prose ol {
  margin: 0.4rem 0 1rem;
  color: #d5dae6;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.6rem;
}

.toc h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.toc ol {
  margin: 0;
  color: var(--muted);
}

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--accent);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat .num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent);
}

.stat .label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.cta-band {
  margin: 1.5rem 0;
  padding: 1.6rem;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(62, 207, 91, 0.16), rgba(62, 207, 91, 0.04)),
    var(--bg-card);
  border: 1px solid rgba(62, 207, 91, 0.28);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.page-desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Legal pages */
.legal {
  padding: 2.2rem 0 3rem;
}

.legal .panel {
  padding: 1.6rem 1.7rem 2rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.error-page h1 {
  margin-bottom: 0.6rem;
}

.error-page p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 1.4rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(10, 12, 17, 0.9);
  padding: 2.2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand p,
.site-footer p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links h4 {
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
}

.footer-links a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.tag-cloud a {
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.85rem;
}

.tag-cloud a:hover {
  color: var(--accent);
  border-color: rgba(62, 207, 91, 0.4);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}

.related-links a {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  color: var(--text);
}

.related-links a span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual,
.section-head,
.panel {
  animation: rise 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .shot-card img,
  .content-card img,
  .feature-card img {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    padding: 1.1rem;
  }
}
