/* 91POAPP — Noir Velvet Cinema Theme */
:root {
  --bg-deep: #08050f;
  --bg-card: #120d1c;
  --bg-elevated: #1a1228;
  --orange: #ff6b2c;
  --orange-glow: rgba(255, 107, 44, 0.35);
  --magenta: #d44a8a;
  --violet: #8b5cf6;
  --gold: #e8b86d;
  --text: #f3ebe4;
  --text-muted: #a89bb0;
  --border: rgba(255, 107, 44, 0.18);
  --radius: 14px;
  --nav-h: 58px;
  --sticky-ads-h: 0px;
  --font-display: "STSong", "SimSun", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(212, 74, 138, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 107, 44, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8, 5, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav-desktop { display: flex; gap: 1.6rem; list-style: none; }
.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding: 4px 0;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text); }
.nav-desktop a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--magenta));
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(12, 8, 20, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 4vw 1.2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.6rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}
.nav-mobile a:hover { color: var(--orange); }

/* ── Sticky Ads Bar ── */
.ads-sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(10, 6, 18, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 4vw;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.ads-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Ads Grid ── */
#ads, .ads-sticky-bar .ads-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
}

#ads > div, .ads-sticky-bar .ads-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% / 4);
  box-sizing: border-box;
  padding: 2px;
}

@media (min-width: 768px) {
  #ads > div, .ads-sticky-bar .ads-inner > div { width: calc(100% / 8); }
}

#ads img, .ads-sticky-bar img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255,107,44,0.15);
}

@media (min-width: 768px) {
  #ads img, .ads-sticky-bar img { width: 62px; height: 62px; border-radius: 16px; }
}

#ads a, .ads-sticky-bar a { display: inline-block; border-radius: 14px; text-decoration: none; }
#ads img:hover, .ads-sticky-bar img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px var(--orange-glow);
}

#ads figcaption, #ads .caption,
.ads-sticky-bar figcaption, .ads-sticky-bar .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.ads-section {
  padding-top: calc(var(--nav-h) + 12px);
  padding-bottom: 8px;
}

.ads-section .ads-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  padding: 2.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  background: rgba(255,107,44,0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 30%, var(--orange) 70%, var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.8rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange);
}
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); }

/* ── Section ── */
.section {
  padding: 2.8rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto 2.5rem;
  max-width: 200px;
}

/* ── 3:7 Media Block ── */
.media-block {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.8rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.media-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange), var(--magenta), var(--violet));
}

.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }

.media-block figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,107,44,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.media-block figure img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }

.media-block .content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.media-block .content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}

.media-block .content ul {
  list-style: none;
  margin-top: 0.8rem;
}

.media-block .content li {
  padding: 0.35rem 0 0.35rem 1.2rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.media-block .content li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.55rem;
  top: 0.55rem;
}

/* ── Text Modules ── */
.text-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.text-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 0.8rem;
}

.text-panel p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.text-panel p:last-child { margin-bottom: 0; }

/* ── Text Grid (SEO modules) ── */
.text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.text-grid .text-panel { margin-bottom: 0; }

/* ── SEO Prose Article ── */
.seo-prose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.seo-prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin: 1.6rem 0 0.7rem;
}

.seo-prose h3:first-child { margin-top: 0; }

.seo-prose p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  line-height: 1.8;
}

/* ── Showcase Grid ── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.showcase-card:hover {
  border-color: rgba(255,107,44,0.35);
  transform: translateY(-3px);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.showcase-card figcaption {
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .showcase-card figcaption { font-size: 0.8rem; }
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(255,107,44,0.4);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.feature-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── CTA ── */
.cta-strip {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(255,107,44,0.08), rgba(139,92,246,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-strip h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.cta-strip p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--orange), #e84d6f);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--orange-glow);
  color: #fff;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 0;
}

.faq-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding-top: calc(var(--nav-h) + 1.2rem);
  padding-bottom: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }

/* ── Page Content ── */
.page-main {
  padding: 1rem 0 3rem;
  min-height: 60vh;
}

.page-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-bottom: 1.2rem;
}

.page-main h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  margin: 1.8rem 0 0.7rem;
}

.page-main p, .page-main li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.page-main ul, .page-main ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-content { max-width: 800px; }

/* ── Error Pages ── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 2rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 7rem);
  background: linear-gradient(135deg, var(--orange), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  background: rgba(8,5,15,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .media-block {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .media-block.reverse { direction: ltr; }

  .media-block figure img { max-height: 320px; aspect-ratio: auto; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero { padding: 1.8rem 0 2rem; }

  .seo-prose { padding: 1.3rem; }

  .text-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  body.has-sticky-ads { padding-top: var(--sticky-ads-h); }
}
