:root {
  --bg: #09090b;
  --bg-2: #101014;
  --card: #17171c;
  --card-hover: #1e1e24;
  --border: #2c2c34;
  --text: #f2f2f4;
  --muted: #9b9ba6;
  --accent: #d4203a;
  --accent-2: #ff4d63;
  --accent-dark: #8f1428;
  --gold: #d4a017;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --radius: 14px;
  --max: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(9, 9, 11, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.logo:hover {
  color: #fff;
  opacity: .9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(212, 32, 58, .16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(212, 32, 58, .35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--card) center / 22px 22px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle.is-open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(212, 32, 58, .22), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(212, 32, 58, .08), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--accent-2);
}

.lead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row strong {
  color: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.badge-18 {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-2);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  max-width: 760px;
}

.prose p,
.prose li {
  color: #d8d8de;
  margin-bottom: 14px;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}

.prose strong {
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card,
.shot-card,
.info-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card,
.info-card,
.faq-item {
  padding: 22px;
}

.feature-card h3,
.info-card h3,
.shot-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p,
.info-card p,
.shot-card p,
.faq-item p {
  color: var(--muted);
  font-size: 14px;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.shot-card .caption {
  padding: 14px 14px 16px;
}

.shot-wide {
  grid-column: span 2;
}

.shot-wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.two-col img {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.download-box {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(180deg, #1b1b22, #121216);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.download-box img {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keywords a,
.keywords span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: #121216;
}

.keywords a:hover {
  color: #fff;
  border-color: var(--accent);
}

/* Inner pages */
.page-hero {
  padding: 48px 0 24px;
  background:
    radial-gradient(600px 240px at 50% -20%, rgba(212, 32, 58, .18), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
}

.article {
  padding: 48px 0 80px;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.side-nav h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.side-nav a {
  display: block;
  color: var(--muted);
  padding: 6px 0;
  font-size: 14px;
}

.side-nav a:hover,
.side-nav a.active {
  color: #fff;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 16px;
}

.error-page .code {
  font-size: 84px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #070709;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 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: 12px;
}

.footer-brand p,
.site-footer p,
.footer-col a {
  color: var(--muted);
  font-size: 14px;
}

.footer-col h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #777;
  font-size: 13px;
}

#ads {
  position: sticky;
  top: var(--header-h);
  z-index: 95;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  background: rgba(9, 9, 11, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 8px 8px 6px;
}

#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(24, 24, 24, .12);
  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(24, 24, 24, .18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  margin-top: 4px;
  font-size: 11px;
  color: #c8c8c8;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive: tablet + mobile */
@media (max-width: 1024px) {
  .hero-grid,
  .two-col,
  .article-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid,
  .card-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .shot-wide {
    grid-column: auto;
  }

  .side-nav {
    position: static;
  }

  .download-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-box img {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #0f0f13;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .card-grid,
  .card-grid-4,
  .shot-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .error-page .code {
    font-size: 64px;
  }
}
