/* 91PO 91-m.click — 深色影院风官方站 */
:root {
  --ink: #080808;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #242424;
  --amber: #ff8c00;
  --amber-light: #ffb347;
  --gold: #d4a017;
  --crimson: #c41e3a;
  --text: #ececec;
  --text-dim: #a8a8a8;
  --text-faint: #6e6e6e;
  --line: rgba(255, 255, 255, 0.07);
  --glow: 0 0 60px rgba(255, 140, 0, 0.12);
  --radius: 12px;
  --header-h: 56px;
  --ads-sticky-h: 88px;
  --max: 1080px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

body.has-bottom-ads { padding-bottom: calc(var(--ads-sticky-h) + 8px); }

a { color: var(--amber-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--header-h);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-link img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.logo-link span em {
  font-style: normal;
  color: var(--amber);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle i {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.25s;
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px 18px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1090;
}

.site-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav ul { list-style: none; }

.site-nav li + li { border-top: 1px solid var(--line); }

.site-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active { color: var(--amber); }

.header-cta {
  display: none;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.header-cta:hover { color: #000; filter: brightness(1.08); }

/* —— Ads —— */
.ads-section {
  padding: 14px 0 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.ads-section .ads-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ads-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 6px;
  background: transparent;
}

.ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

.ads-item figure { margin: 0; }

.ads-item a {
  display: inline-block;
  border-radius: 15px;
  text-decoration: none;
}

.ads-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
  background: var(--surface-2);
}

.ads-item img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.2);
}

.ads-caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Sticky ads below header */
.ads-sticky-top {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(17, 17, 17, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
}

.ads-sticky-top.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ads-sticky-top .ads-item {
  width: calc(25% - 6px);
}

.ads-sticky-top .ads-item img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .ads-sticky-bottom { display: none !important; }
}

/* Sticky ads bottom — mobile only */
.ads-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(17, 17, 17, 0.98);
  border-top: 1px solid var(--line);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.ads-sticky-bottom.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ads-sticky-bottom .ads-item {
  width: calc(25% - 6px);
}

.ads-sticky-bottom .ads-item img {
  width: 52px;
  height: 52px;
}

/* —— Main offset —— */
.page-main {
  padding-top: var(--header-h);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 48px 0 40px;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 140, 0, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(196, 30, 58, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--amber-light);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero h1 .hl { color: var(--amber); }

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--gold) 100%);
  color: #111;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover { color: #000; filter: brightness(1.06); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.hero-stack {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 420px;
  margin: 0 auto;
}

.hero-stack::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.18), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-stack .phone-frame {
  position: absolute;
  width: 200px;
  z-index: 1;
}

.phone-front {
  left: 0;
  top: 18px;
  z-index: 3;
  transform: rotate(-5deg);
}

.phone-back {
  right: 0;
  bottom: 10px;
  z-index: 2;
  opacity: 0.95;
  transform: rotate(10deg);
  filter: saturate(0.92) brightness(0.92);
}

.phone-frame {
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, #333, #111);
  box-shadow: var(--glow), 0 20px 50px rgba(0, 0, 0, 0.6);
}

.phone-frame img {
  border-radius: 22px;
  width: 100%;
  height: auto;
  display: block;
}

/* —— Metrics —— */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-card {
  text-align: center;
  padding: 18px 10px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
  line-height: 1.2;
}

.metric-card span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* —— Sections —— */
.section {
  padding: 44px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.4;
}

.section-head p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Prose — homepage text-heavy blocks */
.prose {
  font-size: 0.94rem;
  color: var(--text-dim);
}

.prose p { margin-bottom: 1.1em; }

.prose h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.1rem;
  margin: 1.6em 0 0.6em;
}

.prose ul {
  margin: 0.8em 0 1.2em 1.2em;
}

.prose li { margin-bottom: 0.45em; }

.prose a { color: var(--amber-light); }

/* Feature bento */
.bento {
  display: grid;
  gap: 14px;
}

.bento-card {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.bento-card:hover { border-color: rgba(255, 140, 0, 0.3); }

.bento-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 0, 0.12);
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.bento-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* Showcase zigzag */
.showcase {
  display: grid;
  gap: 36px;
}

.showcase-item {
  display: grid;
  gap: 20px;
  align-items: center;
}

.showcase-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.showcase-shot img { width: 100%; }

.showcase-text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

.showcase-text p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-tags span {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--text-faint);
}

#seo-guide .prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: #111;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 12px;
}

.step-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-q::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--amber);
  flex-shrink: 0;
}

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.12), rgba(212, 160, 23, 0.06));
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: var(--radius);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cta-band p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand img {
  width: 42px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb span { color: var(--text-faint); }

/* Subpage */
.page-hero-sm {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-hero-sm h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.legal-content {
  padding-bottom: 48px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.legal-content h2 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.8em 0 0.6em;
}

.legal-content p,
.legal-content li { margin-bottom: 0.8em; }

.legal-content ul { margin-left: 1.2em; }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  opacity: 0.85;
}

.error-page h1 {
  font-size: 1.25rem;
  margin: 16px 0 10px;
}

.error-page p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 400px;
  margin-bottom: 24px;
}

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    border: none;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    gap: 6px;
  }

  .site-nav li + li { border: none; }

  .site-nav a {
    padding: 8px 14px;
    font-size: 0.88rem;
    border-radius: 8px;
  }

  .site-nav a.active,
  .site-nav a:hover {
    background: rgba(255, 140, 0, 0.08);
  }

  .header-cta { display: inline-flex; }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .hero-visual {
    margin: 0;
    max-width: 340px;
    justify-self: end;
  }

  .hero-stack {
    width: 320px;
    max-width: 340px;
    height: 460px;
  }

  .hero-stack .phone-frame {
    width: 220px;
  }

  .metrics { grid-template-columns: repeat(4, 1fr); }

  .bento { grid-template-columns: repeat(3, 1fr); }

  .showcase-item {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .showcase-item.reverse .showcase-shot { order: 2; }
  .showcase-item.reverse .showcase-text { order: 1; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .ads-item { width: calc(12.5% - 8px); }

  .ads-sticky-top .ads-item { width: calc(12.5% - 8px); }

  .ads-sticky-top { display: block; }

  .ads-item img { width: 65px; height: 65px; }

  .ads-sticky-top .ads-item img { width: 56px; height: 56px; }

  .ads-sticky-bottom .ads-item img { width: 60px; height: 60px; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
