/* 91PO官网 — 91-s.baby 独立视觉体系 */
:root {
  --bg-deep: #0a0814;
  --bg-panel: #12101f;
  --bg-card: #1a1730;
  --bg-elevated: #221e3c;
  --orange: #ff8f00;
  --orange-glow: rgba(255, 143, 0, 0.35);
  --purple: #9d4edd;
  --purple-soft: #c77dff;
  --cyan: #4cc9f0;
  --gold: #fbbf24;
  --text-bright: #f8f6ff;
  --text-body: #b8b4cc;
  --text-dim: #6e6a82;
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(157, 78, 221, 0.3);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-h: 58px;
  --ads-sticky-h: 0px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(157, 78, 221, 0.12), transparent),
    radial-gradient(ellipse 55% 35% at 85% 10%, rgba(255, 143, 0, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 50% 95%, rgba(76, 201, 240, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--purple-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(10, 8, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-body);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-bright);
  background: rgba(157, 78, 221, 0.15);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-size: 1.3rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ===== Sticky Ads Bar ===== */
.ads-sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(18, 16, 31, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.ads-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  max-width: 1100px;
  margin: 0 auto;
}

#ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads-sticky img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s;
}

#ads-sticky a:hover img {
  transform: translateY(-3px) scale(1.04);
}

#ads-sticky .caption {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* ===== Top Ads ===== */
.ads-top-wrap {
  padding-top: calc(var(--nav-h) + 16px);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0 8px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s, box-shadow 0.18s;
}

#ads a:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(157, 78, 221, 0.2);
}

#ads .caption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
}

/* ===== Main offset ===== */
main {
  padding-top: 0;
  position: relative;
  z-index: 1;
}

body.has-sticky-ads main {
  padding-top: var(--ads-sticky-h);
}

/* ===== Hero ===== */
.hero {
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 143, 0, 0.12);
  border: 1px solid rgba(255, 143, 0, 0.3);
  border-radius: var(--radius-pill, 999px);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  color: var(--text-bright);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange), var(--purple-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text-bright);
  font-weight: 800;
}

.metric span {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone {
  position: relative;
  max-width: 280px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--border-glow);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(157, 78, 221, 0.15);
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(160deg, var(--orange), var(--purple), var(--cyan));
  z-index: -1;
  opacity: 0.4;
}

/* ===== Sections ===== */
.section {
  padding: 56px 0;
  position: relative;
}

.section-alt {
  background: rgba(18, 16, 31, 0.6);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--purple-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-header h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  background: rgba(157, 78, 221, 0.15);
}

.feature-card h3 {
  color: var(--text-bright);
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ===== Content Blocks (3:7 ratio) ===== */
.content-block {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.content-img img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.content-text h3 {
  color: var(--text-bright);
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.content-text p {
  margin-bottom: 14px;
  font-size: 0.93rem;
}

.content-text ul {
  margin: 12px 0 16px 20px;
  font-size: 0.9rem;
}

.content-text li {
  margin-bottom: 6px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
}

.text-link:hover { color: var(--purple-soft); }

/* ===== Screenshot Showcase ===== */
.screenshot-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.showcase-item {
  text-align: center;
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: transform 0.25s, border-color 0.25s;
}

.showcase-item:hover img {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.showcase-item figcaption {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ===== Steps Guide ===== */
.steps-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step-card h4 {
  color: var(--text-bright);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ===== Compare Table ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--bg-elevated);
  color: var(--text-bright);
  font-weight: 600;
}

.compare-table td:first-child {
  color: var(--text-bright);
  font-weight: 500;
}

.compare-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* ===== Pure text module ===== */
.prose-module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 36px;
}

.prose-module h3 {
  color: var(--text-bright);
  font-size: 1.15rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.prose-module p {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-q {
  padding: 18px 22px;
  color: var(--text-bright);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "+";
  color: var(--purple-soft);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ===== CTA ===== */
.cta-band {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(255, 143, 0, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.cta-band h2 {
  color: var(--text-bright);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-band p {
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--orange), #ff6b00);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill, 999px);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px var(--orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--orange-glow);
  color: #fff;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: calc(var(--nav-h) + 20px) 0 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-body);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ===== Subpage ===== */
.page-hero {
  padding: 24px 0 32px;
}

.page-hero h1 {
  font-size: 1.7rem;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-body);
  font-size: 0.95rem;
}

.legal-content {
  padding-bottom: 60px;
}

.legal-content h2 {
  color: var(--text-bright);
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.legal-content ul {
  margin: 10px 0 16px 24px;
}

/* ===== Error Pages ===== */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  color: var(--text-bright);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.error-page p {
  margin-bottom: 24px;
  max-width: 440px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--text-bright);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-body);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links a {
  margin-right: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-metrics { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-phone { max-width: 220px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .content-block,
  .content-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .content-img {
    max-width: 240px;
    margin: 0 auto;
  }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 8, 20, 0.98);
    flex-direction: column;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .feature-grid { grid-template-columns: 1fr; }

  .section { padding: 40px 0; }

  .prose-module { padding: 22px 18px; }

  .screenshot-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-guide {
    grid-template-columns: 1fr;
  }

  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
}
