/* 91PO官方网站 — 午夜绯红主题 */
:root {
  --rp-header: 58px;
  --rp-bg: #0c0610;
  --rp-surface: #160d18;
  --rp-card: #1e1224;
  --rp-border: rgba(255, 140, 60, 0.14);
  --rp-amber: #ff8c3a;
  --rp-amber-dim: #c96a28;
  --rp-rose: #d94f8c;
  --rp-violet: #7b3fa8;
  --rp-text: #f2e8ef;
  --rp-muted: #9a8494;
  --rp-glow: rgba(255, 140, 60, 0.35);
  --rp-radius: 14px;
  --rp-wrap: min(1120px, 92vw);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--rp-bg);
  color: var(--rp-text);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(123, 63, 168, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 100%, rgba(217, 79, 140, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rp-amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffb06a; }

.rp-wrap { width: var(--rp-wrap); margin: 0 auto; position: relative; z-index: 1; }

/* ── Header ── */
.rp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--rp-header);
  background: rgba(12, 6, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rp-border);
  z-index: 900;
}

.rp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.rp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rp-text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.rp-brand img { border-radius: 8px; }

.rp-nav { display: flex; gap: 1.4rem; }
.rp-nav a {
  color: var(--rp-muted);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}
.rp-nav a.is-on,
.rp-nav a:hover { color: var(--rp-amber); }
.rp-nav a.is-on::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rp-amber), var(--rp-rose));
  border-radius: 2px;
}

.rp-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.rp-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--rp-text);
  border-radius: 2px;
  transition: 0.25s;
}

.rp-drawer {
  display: none;
  position: fixed;
  top: var(--rp-header);
  left: 0;
  right: 0;
  background: rgba(22, 13, 24, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rp-border);
  z-index: 895;
  max-height: calc(100dvh - var(--rp-header));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rp-drawer.open { display: block; }
.rp-drawer .rp-wrap {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
}
.rp-drawer a {
  display: block;
  padding: 0.8rem 0;
  color: var(--rp-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rp-drawer a:last-child { border-bottom: none; }
.rp-drawer a:hover,
.rp-drawer a.is-on { color: var(--rp-amber); }

/* ── Sticky Ads Bar ── */
.rp-ads-fixed {
  position: fixed;
  top: var(--rp-header);
  left: 0; right: 0;
  background: rgba(14, 8, 18, 0.97);
  border-bottom: 1px solid var(--rp-border);
  z-index: 880;
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.rp-ads-fixed.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads-sticky-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
}
#ads-sticky-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 4px);
  box-sizing: border-box;
}
#ads-sticky-inner img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.18s;
}
#ads-sticky-inner img:hover { transform: scale(1.06); }
#ads-sticky-inner .caption {
  font-size: 10px;
  color: var(--rp-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* ── Ads Section ── */
.rp-ads-block {
  padding: calc(var(--rp-header) + 16px) 0 12px;
  text-align: center;
}
.rp-ads-block h2 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: 1.05rem;
  color: var(--rp-muted);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  box-sizing: border-box;
}
#ads img {
  width: 65px; height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid rgba(255,140,60,0.15);
}
#ads a { display: inline-block; border-radius: 15px; text-decoration: none; }
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px var(--rp-glow);
}
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--rp-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 768px) {
  #ads > div, #ads-sticky-inner > div { width: calc(25% - 4px); }
  #ads img { width: 58px; height: 58px; }
  #ads-sticky-inner img { width: 46px; height: 46px; }
}

/* ── Hero ── */
.rp-hero {
  padding: 2.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 72vh;
}

.rp-hero-text h1 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--rp-amber) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rp-hero-tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--rp-border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--rp-rose);
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  background: rgba(217, 79, 140, 0.08);
}

.rp-hero-text p {
  color: var(--rp-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  max-width: 480px;
}

.rp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.2rem;
}
.rp-hero-badges span {
  padding: 5px 12px;
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--rp-muted);
}

.rp-hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rp-hero-stack {
  position: relative;
  width: 220px;
  height: 400px;
}

.rp-hero-stack img {
  position: absolute;
  width: 200px;
  border-radius: 22px;
  border: 2px solid rgba(255,140,60,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  transition: transform 0.4s ease;
}

.rp-hero-stack img:nth-child(1) {
  left: -60px; top: 30px;
  transform: rotate(-8deg);
  z-index: 1;
  opacity: 0.85;
}
.rp-hero-stack img:nth-child(2) {
  left: 10px; top: 0;
  transform: rotate(2deg);
  z-index: 3;
}
.rp-hero-stack img:nth-child(3) {
  left: 70px; top: 40px;
  transform: rotate(10deg);
  z-index: 2;
  opacity: 0.9;
}

.rp-hero-stack:hover img:nth-child(1) { transform: rotate(-5deg) translateY(-6px); }
.rp-hero-stack:hover img:nth-child(2) { transform: rotate(0deg) translateY(-10px); }
.rp-hero-stack:hover img:nth-child(3) { transform: rotate(7deg) translateY(-6px); }

/* ── Sections ── */
.rp-section { padding: 3.5rem 0; }
.rp-section-alt { background: rgba(22, 13, 24, 0.6); }

.rp-sec-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.rp-sec-head h2 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0.6rem;
}
.rp-sec-head p {
  color: var(--rp-muted);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto;
}

.rp-sec-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--rp-amber);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Content 3:7 Layout ── */
.rp-split {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.8rem;
}
.rp-split.reverse { grid-template-columns: 7fr 3fr; }
.rp-split.reverse .rp-split-img { order: 2; }
.rp-split.reverse .rp-split-body { order: 1; }

.rp-split-img img {
  border-radius: var(--rp-radius);
  border: 1px solid var(--rp-border);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.rp-split-body h3 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--rp-text);
}

.rp-split-body p {
  color: var(--rp-muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.rp-split-body ul {
  list-style: none;
  margin: 0.8rem 0;
}
.rp-split-body li {
  padding: 0.35rem 0 0.35rem 1.2rem;
  position: relative;
  color: var(--rp-muted);
  font-size: 0.9rem;
}
.rp-split-body li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--rp-rose);
  font-size: 0.55rem;
  top: 0.55rem;
}

/* ── Feature Grid ── */
.rp-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.rp-feat-card {
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 1.4rem;
  transition: border-color 0.25s, transform 0.25s;
}
.rp-feat-card:hover {
  border-color: rgba(255,140,60,0.35);
  transform: translateY(-3px);
}

.rp-feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rp-violet), var(--rp-rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.rp-feat-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.rp-feat-card p {
  font-size: 0.85rem;
  color: var(--rp-muted);
  line-height: 1.65;
}

/* ── Stats Row ── */
.rp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.rp-stat {
  text-align: center;
  padding: 1.2rem;
  background: var(--rp-card);
  border-radius: var(--rp-radius);
  border: 1px solid var(--rp-border);
}
.rp-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--rp-amber);
  font-weight: 700;
}
.rp-stat span {
  font-size: 0.8rem;
  color: var(--rp-muted);
}

/* ── CTA ── */
.rp-cta {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(123,63,168,0.15), rgba(217,79,140,0.1));
  border: 1px solid var(--rp-border);
  border-radius: calc(var(--rp-radius) + 4px);
  margin: 2rem 0;
}
.rp-cta h3 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.rp-cta p { color: var(--rp-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }

.rp-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--rp-amber), var(--rp-amber-dim));
  color: #1a0a00;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.rp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--rp-glow);
  color: #1a0a00;
}

/* ── FAQ ── */
.rp-faq { max-width: 720px; margin: 0 auto; }
.rp-faq-item {
  border-bottom: 1px solid var(--rp-border);
}
.rp-faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--rp-text);
  text-align: left;
  padding: 1rem 2rem 1rem 0;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}
.rp-faq-q::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--rp-amber);
  font-size: 1.2rem;
  transition: transform 0.25s;
}
.rp-faq-item.open .rp-faq-q::after { transform: translateY(-50%) rotate(45deg); }
.rp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.rp-faq-item.open .rp-faq-a { max-height: 300px; }
.rp-faq-a p {
  padding-bottom: 1rem;
  color: var(--rp-muted);
  font-size: 0.88rem;
}

/* ── Breadcrumb ── */
.rp-crumb {
  padding: calc(var(--rp-header) + 20px) 0 1rem;
  font-size: 0.82rem;
  color: var(--rp-muted);
}
.rp-crumb a { color: var(--rp-muted); }
.rp-crumb a:hover { color: var(--rp-amber); }
.rp-crumb span { margin: 0 6px; opacity: 0.4; }

/* ── Subpage ── */
.rp-subpage { padding: 1rem 0 4rem; }
.rp-subpage h1 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.rp-subpage h2 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: 1.15rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--rp-amber);
}
.rp-subpage p, .rp-subpage li {
  color: var(--rp-muted);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}
.rp-subpage ul, .rp-subpage ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

/* ── Error Pages ── */
.rp-error {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--rp-header) + 40px) 1rem 3rem;
}
.rp-error-code {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--rp-amber), var(--rp-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.rp-error h1 { font-size: 1.3rem; margin: 1rem 0 0.6rem; }
.rp-error p { color: var(--rp-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ── Footer ── */
.rp-footer {
  background: var(--rp-surface);
  border-top: 1px solid var(--rp-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.rp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.rp-footer h4 {
  font-size: 0.85rem;
  color: var(--rp-text);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}
.rp-footer p, .rp-footer a {
  font-size: 0.82rem;
  color: var(--rp-muted);
  display: block;
  margin-bottom: 0.4rem;
}
.rp-footer a:hover { color: var(--rp-amber); }
.rp-footer-bottom {
  border-top: 1px solid var(--rp-border);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--rp-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .rp-hero { grid-template-columns: 1fr; min-height: auto; }
  .rp-hero-visual { height: 340px; order: -1; }
  .rp-hero-stack { width: 180px; height: 320px; }
  .rp-hero-stack img { width: 160px; }
  .rp-split, .rp-split.reverse {
    grid-template-columns: 1fr;
  }
  .rp-split.reverse .rp-split-img { order: 0; }
  .rp-feat-grid { grid-template-columns: 1fr 1fr; }
  .rp-stats { grid-template-columns: 1fr 1fr; }
  .rp-footer-grid { grid-template-columns: 1fr; }
}

/* ── Preview Gallery ── */
.rp-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.rp-preview-item {
  border-radius: var(--rp-radius);
  overflow: hidden;
  border: 1px solid var(--rp-border);
  background: var(--rp-card);
  transition: border-color 0.25s, transform 0.25s;
}
.rp-preview-item:hover {
  border-color: rgba(255, 140, 60, 0.35);
  transform: translateY(-3px);
}
.rp-preview-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.rp-preview-item figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: var(--rp-muted);
  line-height: 1.45;
}

/* ── Prose & Column Text ── */
.rp-prose-block {
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 2rem 2.2rem;
  margin-bottom: 2rem;
}
.rp-prose-block h3 {
  font-family: 'Songti SC', 'SimSun', 'STSong', serif;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.7rem;
  color: var(--rp-text);
}
.rp-prose-block h3:first-child { margin-top: 0; }
.rp-prose-block p {
  color: var(--rp-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  text-align: justify;
}
.rp-prose-block ul {
  list-style: none;
  margin: 0.5rem 0 1rem;
}
.rp-prose-block li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  color: var(--rp-muted);
  font-size: 0.88rem;
}
.rp-prose-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rp-amber);
}

.rp-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.rp-col-card {
  padding: 1.4rem;
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
}
.rp-col-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--rp-amber);
}
.rp-col-card p {
  font-size: 0.85rem;
  color: var(--rp-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .rp-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-cols-3 { grid-template-columns: 1fr; }
  .rp-prose-block { padding: 1.4rem 1.2rem; }
}

@media (max-width: 640px) {
  .rp-nav { display: none; }
  .rp-toggle { display: flex; flex-shrink: 0; }
  .rp-brand { min-width: 0; }
  .rp-brand span {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rp-feat-grid { grid-template-columns: 1fr; }
  .rp-hero-stack img:nth-child(1) { left: -30px; }
  .rp-hero-stack img:nth-child(3) { left: 40px; }
}
