:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #f2f2f5;
  --text-muted: #a0a0ab;
  --accent: #e11d48;
  --accent-soft: #fb7185;
  --grad-a: #f97316;
  --grad-b: #e11d48;
  --grad-c: #db2777;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 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;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b), var(--grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(225, 29, 72, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(249, 115, 22, 0.15), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  color: var(--accent-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 400;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: floatIn 0.8s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy > * {
  animation: rise 0.7s ease both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  margin: 0 0 0.6rem;
  font-weight: 400;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-3px);
}

.feature-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-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;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 113, 133, 0.45);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #111;
}

.shot-card figcaption {
  padding: 0.75rem 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shot-card figcaption strong {
  display: block;
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.shot-grid.wide img {
  aspect-ratio: 3 / 4;
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.content-block:nth-child(even) {
  direction: rtl;
}

.content-block:nth-child(even) > * {
  direction: ltr;
}

.content-block img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
}

.content-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.content-block p {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.seo-article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.seo-article h2,
.seo-article h3 {
  scroll-margin-top: 5rem;
}

.seo-article h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
}

.seo-article p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.seo-article ul,
.seo-article ol {
  color: var(--text-muted);
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.seo-article li {
  margin-bottom: 0.4rem;
}

.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.toc a {
  color: var(--accent-soft);
}

.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.cat-tags a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: 6px;
  color: #fff;
  font-size: 0.88rem;
}

.cat-tags a:hover {
  background: rgba(225, 29, 72, 0.28);
}

/* Page common */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(225, 29, 72, 0.18), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
}

.page-body {
  padding: 2.5rem 0 3.5rem;
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.55rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 0.5rem;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .content-block,
  .content-block:nth-child(even),
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(14, 14, 18, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 560px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot-card img {
    aspect-ratio: 3 / 4;
    max-height: 520px;
    margin-inline: auto;
  }

  .seo-article {
    padding: 1.25rem 1rem;
  }
}
