:root {
  --bg: #0a0a0c;
  --bg-soft: #121218;
  --bg-card: #1a1a22;
  --text: #f2f2f5;
  --text-muted: #a0a0b0;
  --accent: #e11d48;
  --accent-soft: #be123c;
  --gold: #f5c542;
  --line: #2a2a35;
  --radius: 12px;
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  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;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fb7185;
}

.container {
  width: min(100% - 32px, 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: 20px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo span {
  background: linear-gradient(90deg, #fff, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-card);
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(225, 29, 72, 0.25), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 197, 66, 0.08), transparent 40%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fb7185;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 28px;
  max-width: 70ch;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

.section-label {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* Cards / grids */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.cat-card:hover {
  border-color: rgba(225, 29, 72, 0.5);
  transform: translateY(-3px);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.cat-card .body {
  padding: 14px 16px 18px;
}

.cat-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 420px;
}

.shot-item figcaption {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Article / long content */
.prose {
  max-width: 78ch;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
  color: #fecdd3;
}

.prose p {
  margin-bottom: 14px;
  color: #d4d4dc;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.3em;
  color: #d4d4dc;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.toc h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.toc ol {
  margin: 0 0 0 1.2em;
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: #fb7185;
}

.content-with-side {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.side-box {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.side-box ul {
  list-style: none;
}

.side-box li {
  margin-bottom: 8px;
}

.side-box a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.side-box a:hover {
  color: #fb7185;
}

.inline-shot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 28px;
}

.inline-shot figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.inline-shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.inline-shot figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  color: #fecdd3;
}

.faq-item p {
  padding: 14px 18px;
  color: var(--text-muted);
}

/* Page hero for subpages */
.page-hero {
  padding: 40px 0 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(225, 29, 72, 0.18), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 60ch;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: #fb7185;
}

.legal-content {
  padding: 40px 0 64px;
}

.legal-content .prose {
  max-width: 820px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #f5c542);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 42ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fb7185;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .content-with-side {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .shot-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .cat-grid,
  .feature-grid,
  .shot-grid,
  .footer-grid,
  .inline-shot {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }
}
