:root {
  --bg: #0b0c10;
  --bg-soft: #14161c;
  --bg-card: #1a1d26;
  --line: #2a2f3a;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #e11d48;
  --accent-2: #fb7185;
  --gold: #f59e0b;
  --ok: #22c55e;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 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;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Ads bar injected by /ads.js sits sticky under header */
#zk-ads-bar {
  position: sticky;
  top: 68px;
  z-index: 95;
  display: flex;
  justify-content: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(225, 29, 72, 0.15);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #be123c) !important;
  color: #fff !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(225, 29, 72, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(180deg, #101218 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #be123c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--gold);
}

.hero-visual {
  position: relative;
}

.phone-frame {
  margin: 0 auto;
  width: min(100%, 320px);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2f3a, #12141a);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.phone-frame img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.float-chip {
  position: absolute;
  right: 0;
  bottom: 24px;
  background: rgba(26, 29, 38, 0.95);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

.float-chip span {
  color: var(--ok);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  max-width: 48em;
  margin: 0 auto;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.02rem;
}

/* Feature / cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.45);
}

.card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.card-body {
  padding: 16px 18px 20px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-media img {
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.feature-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-copy p {
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-copy ul {
  margin: 12px 0 0;
}

.feature-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Content blocks for SEO text */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2,
.prose h3 {
  margin: 1.4em 0 0.6em;
}

.prose p,
.content-block p {
  margin-bottom: 1em;
  color: var(--muted);
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 24px;
}

.content-block h2,
.content-block h3 {
  color: #fff;
  margin-bottom: 12px;
}

.content-block p + p {
  margin-top: 12px;
}

.content-block ul,
.legal-body ul {
  margin: 12px 0 12px 1.2em;
  list-style: disc;
  color: var(--muted);
}

.content-block li,
.legal-body li {
  margin-bottom: 8px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip-link {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.chip-link:hover {
  color: #fff;
  border-color: var(--accent);
}

/* Download CTA */
.cta-band {
  padding: 48px 0;
  background:
    linear-gradient(120deg, rgba(225, 29, 72, 0.18), rgba(245, 158, 11, 0.08)),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-2);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 18px 16px;
  color: var(--muted);
}

/* Page banner for inner pages */
.page-banner {
  padding: 48px 0 28px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(225, 29, 72, 0.18), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.page-banner p {
  color: var(--muted);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.legal-body {
  padding: 40px 0 64px;
}

.legal-body .content-block h2 {
  font-size: 1.2rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #08090c;
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
}

.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: 12px;
}

.footer-brand h3 {
  margin-bottom: 6px;
}

.footer-brand p,
.footer-col p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.age-note {
  color: var(--gold);
}

/* Back to top */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.back-top.show {
  display: flex;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .float-chip {
    display: none;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 12, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .section {
    padding: 48px 0;
  }

  .grid-3,
  .grid-4,
  .feature-media {
    grid-template-columns: 1fr 1fr;
  }

  .phone-frame {
    width: min(100%, 260px);
  }

  .content-block {
    padding: 20px 16px;
  }
}

@media (max-width: 420px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-media {
    grid-template-columns: 1fr;
  }
}
