/* 91PO 91-pn.xyz — Crimson Nocturne Theme */
:root {
  --bg-void: #0a0612;
  --bg-surface: #12091c;
  --bg-panel: #1a1028;
  --bg-glass: rgba(26, 16, 40, 0.82);
  --crimson: #c2185b;
  --crimson-soft: #e91e7a;
  --violet: #7c3aed;
  --violet-glow: rgba(124, 58, 237, 0.3);
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --text-bright: #faf5ff;
  --text-body: #c4b5d4;
  --text-dim: #7a6b8a;
  --line: rgba(194, 24, 91, 0.18);
  --nav-h: 58px;
  --radius: 12px;
  --ease: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg-void);
  color: var(--text-body);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, var(--violet-glow) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 95% 100%, rgba(194, 24, 91, 0.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--crimson-soft); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--amber-soft); }

ul, ol { padding-left: 1.35em; }
h1, h2, h3, h4 { color: var(--text-bright); line-height: 1.4; font-weight: 700; }
h1 { font-size: clamp(1.55rem, 4.8vw, 2.35rem); }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.7rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Header */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 7px 13px;
  color: var(--text-body);
  font-size: 0.88rem;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}

.nav-list a:hover,
.nav-list a.current {
  color: var(--text-bright);
  background: rgba(194, 24, 91, 0.12);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: var(--ease);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  z-index: 999;
  padding: 12px 0;
}

.drawer.open { display: block; }

.drawer ul { list-style: none; padding: 0; }

.drawer a {
  display: block;
  padding: 12px 20px;
  color: var(--text-body);
  font-size: 0.95rem;
}

.drawer a:hover,
.drawer a.current { color: var(--crimson-soft); background: rgba(124, 58, 237, 0.08); }

/* Sticky Ads Bar */
.ads-sticky-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 998;
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
  pointer-events: none;
}

.ads-sticky-wrap.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Ads Grid */
.ads-block { padding: 14px 0; }

.ads-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 6px;
}

.ads-grid > div {
  width: calc(12.5% - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ads-grid figure { display: flex; flex-direction: column; align-items: center; }

.ads-grid a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
}

.ads-grid img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform var(--ease), box-shadow var(--ease);
}

.ads-grid img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(194, 24, 91, 0.25);
}

.ads-grid .caption {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ads-grid > div { width: calc(25% - 5px); }
  .ads-grid img { width: 58px; height: 58px; }
}

/* Main offset */
.page-body { padding-top: var(--nav-h); position: relative; z-index: 1; }

/* Hero */
.hero-zone {
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}

.hero-zone::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(194, 24, 91, 0.08));
  transform: skewY(-6deg);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-zone h1 {
  margin-bottom: 14px;
  background: linear-gradient(120deg, var(--text-bright) 30%, var(--crimson-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 680px;
  margin-bottom: 20px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.hero-chips li {
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-panel);
  border-radius: 6px;
  border-left: 3px solid var(--violet);
}

/* Sections */
.block { padding: 40px 0; }

.block-head {
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 4px solid var(--crimson);
}

.block-head p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 6px 0 0;
}

/* Content layout 3:7 */
.split-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }

.fig-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.fig-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 6, 18, 0.5));
  pointer-events: none;
}

.fig-cap {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}

.text-col h3 { color: var(--crimson-soft); }

@media (max-width: 768px) {
  .split-row, .split-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* Feature grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.feat-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: border-color var(--ease), transform var(--ease);
}

.feat-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.feat-card .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--violet);
  opacity: 0.5;
  margin-bottom: 8px;
}

.feat-card h3 { font-size: 1rem; }

@media (max-width: 768px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* Prose blocks */
.prose-block {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.prose-block h2 { font-size: 1.2rem; }

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.inline-links a {
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-body);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.inline-links a:hover { color: var(--amber-soft); border-color: var(--amber); }

/* CTA */
.cta-strip {
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(135deg, var(--bg-panel), rgba(124, 58, 237, 0.08));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 32px 0;
}

.cta-strip h2 { margin-bottom: 10px; }

.btn-scroll {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--crimson), var(--violet));
  color: #fff;
  font-weight: 600;
  border-radius: 28px;
  font-size: 0.95rem;
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-scroll:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 24, 91, 0.35);
}

/* Breadcrumb */
.crumb {
  padding: 16px 0 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--crimson-soft); }
.crumb span { margin: 0 6px; }

/* Subpage */
.sub-main { padding: 20px 0 50px; }

.legal-doc {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
}

.legal-doc h2 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.legal-doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* Error pages */
.err-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.err-code {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--crimson), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

/* Footer */
.site-foot {
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.foot-grid h4 {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.foot-links { list-style: none; padding: 0; }
.foot-links li { margin-bottom: 6px; }
.foot-links a { font-size: 0.85rem; color: var(--text-dim); }
.foot-links a:hover { color: var(--crimson-soft); }

.foot-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* SEO text modules */
.seo-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.seo-columns h3 {
  font-size: 1rem;
  color: var(--amber-soft);
  margin-bottom: 8px;
}

.seo-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.seo-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid rgba(194, 24, 91, 0.08);
  font-size: 0.92rem;
}

.seo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
}

.seo-list li:last-child { border-bottom: none; }

.faq-group { margin-top: 16px; }

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}

.thumb-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.thumb-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease);
}

.thumb-card:hover { border-color: rgba(194, 24, 91, 0.35); }

.thumb-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.thumb-card figcaption {
  padding: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
}

.keyword-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.keyword-bar li {
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(10, 6, 18, 0.6);
  border-radius: 4px;
  border: 1px solid var(--line);
}

@media (max-width: 768px) {
  .seo-columns { grid-template-columns: 1fr; }
  .thumb-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-list { display: none; }
  .burger { display: flex; }
  .foot-grid { grid-template-columns: 1fr; gap: 16px; }
}
