:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --text: #f2f2f5;
  --muted: #a8a8b8;
  --line: #2a2a38;
  --brand: #e11d48;
  --brand-2: #fb7185;
  --accent: #f43f5e;
  --ok: #34d399;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", 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;
  font-size: 16px;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .7rem; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 1.6rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.1rem 0 .55rem; }
p { margin: .75rem 0; color: var(--muted); }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 15, .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: .85rem 0;
}
.logo {
  display: flex; align-items: center; gap: .65rem;
  color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.logo span { background: linear-gradient(90deg, #fff, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: center; }
.nav a {
  color: var(--muted); font-size: .95rem; text-decoration: none;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: #fff; border-color: var(--brand); text-decoration: none; }
.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}
.menu-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-2);
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(225, 29, 72, .28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(244, 63, 94, .12), transparent 50%),
    var(--bg);
  padding: 2.8rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.hero-badge {
  display: inline-block; font-size: .8rem; letter-spacing: .04em;
  color: var(--brand-2); background: rgba(225, 29, 72, .15);
  border: 1px solid rgba(225, 29, 72, .35); padding: .3rem .7rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.hero p.lead { font-size: 1.08rem; color: #d4d4de; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.35rem; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; transition: .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), #be123c); color: #fff; box-shadow: 0 8px 24px rgba(225, 29, 72, .35); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.btn-ghost { background: var(--bg-3); color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; text-decoration: none; }
.hero-shot {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-shot img { width: 100%; border-radius: 0; }

/* Sections */
.section { padding: 2.6rem 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 1.4rem; max-width: 46rem; }
.section-head p { margin-top: .4rem; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.feature-card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; transition: .2s;
}
.feature-card:hover { border-color: rgba(225, 29, 72, .5); transform: translateY(-2px); }
.feature-card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: .8rem;
  background: rgba(225, 29, 72, .15); color: var(--brand-2); font-size: 1.2rem;
}
.feature-card h3 { margin-top: 0; color: #fff; }
.feature-card p { font-size: .95rem; margin-bottom: 0; }

.shot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.shot-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.shot-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.shot-item {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.shot-item:hover { border-color: rgba(225, 29, 72, .45); }
.shot-item img { width: 100%; border-radius: 0; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.shot-item.wide img { aspect-ratio: 16/10; }
.shot-item .cap { padding: .85rem 1rem 1rem; }
.shot-item .cap h3 { font-size: 1rem; margin: 0 0 .35rem; }
.shot-item .cap p { font-size: .88rem; margin: 0; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split img {
  width: 100%; border: 1px solid var(--line); box-shadow: var(--shadow);
}

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tag {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: var(--muted); font-size: .85rem; text-decoration: none;
}
.tag:hover { border-color: var(--brand); color: #fff; text-decoration: none; }

.article { max-width: 48rem; }
.article p { color: #c5c5d0; }
.article h2 { scroll-margin-top: 5rem; }
.toc {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.2rem 0 1.8rem;
}
.toc strong { display: block; margin-bottom: .5rem; color: #fff; }
.toc ol { margin: 0; color: var(--muted); }
.toc a { color: var(--brand-2); }

.steps { counter-reset: step; display: grid; gap: .9rem; }
.step {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.4rem;
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .9rem;
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: .95rem; }

.faq details {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: .65rem; padding: .85rem 1rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brand-2); margin-bottom: .45rem; }
.faq p { margin: 0; font-size: .95rem; }

/* Legal / about pages */
.page-hero {
  padding: 2.2rem 0 1.4rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(225, 29, 72, .22), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 40rem; }
.prose { padding: 2rem 0 3rem; max-width: 48rem; }
.prose h2 { margin-top: 1.8rem; }
.prose li { color: var(--muted); margin: .35rem 0; }

/* Error pages */
.error-wrap {
  min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem;
}
.error-wrap .code {
  font-size: clamp(4rem, 12vw, 7rem); font-weight: 900;
  background: linear-gradient(135deg, var(--brand), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.error-wrap h1 { margin: .6rem 0; }
.error-wrap p { max-width: 28rem; margin: 0 auto 1.4rem; }

/* Footer */
.site-footer {
  background: #08080c; border-top: 1px solid var(--line);
  padding: 2.4rem 0 1.5rem; margin-top: 1rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.footer-grid h4 { color: #fff; margin-bottom: .7rem; font-size: .95rem; }
.footer-grid a { display: block; color: var(--muted); margin: .35rem 0; font-size: .9rem; text-decoration: none; }
.footer-grid a:hover { color: var(--brand-2); }
.footer-brand p { font-size: .9rem; }
.copyright {
  border-top: 1px solid var(--line); padding-top: 1rem;
  font-size: .82rem; color: #777; text-align: center;
}

/* Breadcrumb */
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-2); }

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem; gap: .5rem;
  }
  .nav.open { display: flex; }
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-grid, .shot-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 1.8rem 0 1.4rem; }
}
@media (max-width: 560px) {
  .shot-grid, .shot-grid.cols-3, .shot-grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
