:root {
  --bg: #0a0a0c;
  --bg-2: #121218;
  --bg-3: #1a1a22;
  --card: #16161e;
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff4d6d;
  --accent-2: #ff8a3d;
  --grad: linear-gradient(135deg, #ff4d6d 0%, #ff8a3d 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --header-h: 64px;
  --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;
  min-height: 100vh;
  padding-top: var(--header-h);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 109, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 138, 61, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, #0e0e14 100%);
}

body.has-fixed-ads {
  padding-top: calc(var(--header-h) + var(--ads-h, 96px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff8fa3;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffc2cc;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header - always pinned to viewport top */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: var(--header-h);
  margin: 0 !important;
  z-index: 2147483000 !important;
  background: rgba(10, 10, 12, 0.98) !important;
  border-bottom: 1px solid var(--line);
  transform: none !important;
  -webkit-transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.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 14px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.28);
  color: #ff9aab;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--text);
  display: block;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 560px;
  margin: 0 auto;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -10% auto;
  width: 55%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.25), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Cards / grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 77, 109, 0.35);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card .num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 77, 109, 0.12);
  color: #ff8fa3;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.4);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-3);
}

.shot-card .cap {
  padding: 12px 14px 16px;
}

.shot-card h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.shot-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

.shot-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Content prose for SEO */
.prose {
  color: #d4d4dc;
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin: 1.6em 0 0.7em;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.45rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.18rem;
}

.prose p {
  margin-bottom: 1.05em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.2em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.45em;
  color: #cfcfd8;
}

.prose strong {
  color: #fff;
  font-weight: 650;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.toc h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--muted);
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}

.toc a:last-child {
  border-bottom: none;
}

.toc a:hover {
  color: #ffb3c0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.tag:hover {
  color: var(--text);
  border-color: rgba(255, 77, 109, 0.4);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step .n {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: #ff9aab;
  margin-bottom: 8px;
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page header for subpages */
.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 60ch;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #ffb3c0;
}

.legal-body {
  max-width: 800px;
  padding-bottom: 64px;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 1.5em 0 0.6em;
}

.legal-body p,
.legal-body li {
  color: #c8c8d2;
  margin-bottom: 0.9em;
}

.legal-body ul {
  list-style: disc;
  margin-left: 1.2em;
  margin-bottom: 1em;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 40px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 5px 0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ffb3c0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #6f6f7c;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Animations disabled: transform animations can break position:fixed in some WebViews */

/* Mobile */
@media (max-width: 980px) {
  .hero-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid,
  .shot-grid.cols-3,
  .shot-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 70px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    background: #15151c;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    z-index: 1001;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    border-radius: 10px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .feature-grid,
  .steps,
  .shot-grid,
  .shot-grid.cols-3,
  .shot-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ==== FORCE FIXED HEADER (do not override) ==== */
html body header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  z-index: 2147483000 !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}
