/* 91PO Official — Velvet Pulse Theme */
:root {
  --bg-deep: #08060f;
  --bg-card: #12101c;
  --bg-elevated: #1a1628;
  --rose: #e84393;
  --violet: #9b59f5;
  --magenta: #d633a8;
  --amber: #ff7a2f;
  --gold: #d4a853;
  --text-primary: #f4f0fa;
  --text-muted: #9d94b0;
  --text-dim: #6b6280;
  --border: rgba(155, 89, 245, 0.18);
  --glow-rose: rgba(232, 67, 147, 0.35);
  --glow-violet: rgba(155, 89, 245, 0.3);
  --nav-h: 60px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "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-primary);
  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%, var(--glow-violet), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 15%, var(--glow-rose), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 122, 47, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rose); }

.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(8, 6, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav-desktop { display: flex; gap: 6px; list-style: none; }
.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
  background: rgba(155, 89, 245, 0.12);
}

.nav-download { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(12, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px 20px;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-mobile.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile ul { list-style: none; }
.nav-mobile li a {
  display: block;
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-mobile li a:hover { color: var(--rose); }

/* ── Sticky Ads Bar ── */
.ads-sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 950;
  background: rgba(10, 8, 18, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.ads-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 0;
  gap: 4px 0;
}
#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12.5%;
  box-sizing: border-box;
  padding: 2px;
}
#ads img, #ads-sticky img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  border: 1px solid rgba(155,89,245,0.2);
}
#ads a, #ads-sticky a {
  display: inline-block;
  text-decoration: none;
  border-radius: 14px;
}
#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px var(--glow-violet);
}
#ads figcaption, #ads .caption,
#ads-sticky figcaption, #ads-sticky .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: 3px;
}

.download-zone {
  padding: calc(var(--nav-h) + 14px) 0 14px;
  text-align: center;
  scroll-margin-top: var(--nav-h);
}
.download-zone-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  padding: 24px 0 50px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(155, 89, 245, 0.12);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: var(--violet);
  margin-bottom: 16px;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--rose);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--rose) 70%, var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 20px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.05);
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px var(--glow-rose);
}
.hero-visual img { width: 100%; aspect-ratio: 9/16; object-fit: cover; max-height: 480px; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,6,15,0.7) 0%, transparent 40%);
  pointer-events: none;
}

/* ── Content Sections ── */
main { padding-bottom: 60px; position: relative; z-index: 1; }

.section { padding: 48px 0; }
.section-header { margin-bottom: 28px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  margin-bottom: 8px;
  color: var(--text-primary);
}
.section-header p { color: var(--text-muted); font-size: 0.92rem; }
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--violet));
  border-radius: 3px;
  margin-top: 12px;
}

/* 3:7 text-image layout */
.content-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
  align-items: start;
}
.content-row.reverse .content-img { order: -1; }

.content-text { flex: 7; }
.content-text h3 {
  font-size: 1.1rem;
  color: var(--rose);
  margin-bottom: 10px;
  font-weight: 600;
}
.content-text p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 12px;
  text-align: justify;
}
.content-text ul {
  list-style: none;
  margin: 10px 0 14px;
}
.content-text ul li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.content-text ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-size: 0.55rem;
  top: 6px;
}

.content-img {
  flex: 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.content-img img { width: 100%; aspect-ratio: 9/16; object-fit: cover; max-height: 380px; }
.content-img figcaption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg-card);
  text-align: center;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(232, 67, 147, 0.35);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* CTA */
.cta-block {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(155,89,245,0.08), rgba(232,67,147,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.cta-block h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.cta-block p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  color: #fff;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px var(--glow-rose);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--glow-violet);
  color: #fff;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq-item h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--violet); }
.faq-item p { font-size: 0.88rem; color: var(--text-muted); }

/* Text-only SEO block */
.seo-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
}
.seo-block h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.seo-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: justify;
}

.text-module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 28px;
}
.text-module h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.text-module h3 {
  font-size: 1rem;
  color: var(--violet);
  margin: 18px 0 8px;
}
.text-module p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: justify;
  line-height: 1.85;
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}
.guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
}
.guide-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.guide-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  text-align: justify;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.thumb-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.thumb-item img {
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
  max-height: 200px;
}
.thumb-item figcaption {
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.keyword-row span {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(155, 89, 245, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .thumb-strip { grid-template-columns: repeat(4, 1fr); }
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
}

.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}
body:not(.has-download) .breadcrumb {
  padding-top: calc(var(--nav-h) + 20px);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 6px; color: var(--text-dim); }

/* ── Subpage ── */
.page-content {
  padding: 24px 0 60px;
  max-width: 800px;
}
.page-content h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.page-content h2 {
  font-size: 1.1rem;
  color: var(--rose);
  margin: 24px 0 10px;
}
.page-content p, .page-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.page-content ul, .page-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.page-content li { margin-bottom: 6px; }

/* ── Error pages ── */
.error-page {
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h1 { font-size: 1.3rem; margin-bottom: 10px; }
.error-page p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-links a {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.error-links a:first-child {
  background: linear-gradient(135deg, var(--violet), var(--rose));
  border: none;
  color: #fff;
}
.error-links a:hover { color: var(--rose); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand img { width: 44px; border-radius: 10px; margin-bottom: 10px; }
.footer-brand p { font-size: 0.82rem; color: var(--text-dim); max-width: 280px; }
.footer-links h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 0.82rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--rose); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 18px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .content-row { grid-template-columns: 7fr 3fr; }
  .content-row.reverse { grid-template-columns: 3fr 7fr; }
  .content-row.reverse .content-text { order: 2; }
  .content-row.reverse .content-img { order: 1; }
  .nav-download {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--violet), var(--rose));
    color: #fff !important;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
  }
  .nav-download:hover { color: #fff !important; opacity: 0.9; }
}

@media (max-width: 767px) {
  .menu-toggle { display: flex; }
  .nav-desktop { display: none; }
  .download-zone { padding: calc(var(--nav-h) + 18px) 8px 16px; }
  #ads > div, #ads-sticky > div { width: 25%; padding: 3px 1px; }
  #ads img, #ads-sticky img { width: 54px; height: 54px; }
  #ads .caption, #ads-sticky .caption { max-width: 68px; font-size: 9px; }
}

@media (min-width: 768px) {
  #ads > div, #ads-sticky > div { width: 12.5%; }
}

body.has-download .error-page {
  padding: 40px 0 80px;
}
