/* 9lporn.xyz — Velvet Midnight Theme */
:root {
  --ink: #07040f;
  --plum: #120a1e;
  --surface: #1a1028;
  --surface-2: #221533;
  --glass: rgba(18, 10, 30, 0.92);
  --orange: #ff8a1f;
  --orange-glow: #ffb347;
  --violet: #a855f7;
  --magenta: #e879f9;
  --rose: #f43f8e;
  --gold: #f0c040;
  --text-bright: #faf5ff;
  --text-body: #c4b8d4;
  --text-dim: #7a6d8e;
  --line: rgba(168, 85, 247, 0.18);
  --line-soft: rgba(255, 255, 255, 0.06);
  --nav-h: 58px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ink);
  color: var(--text-body);
  line-height: 1.88;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 90% 8%, rgba(168, 85, 247, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 8% 85%, rgba(244, 63, 142, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 35% 30% at 50% 45%, rgba(255, 138, 31, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--magenta); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--orange-glow); }

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, 5.2vw, 2.35rem); }
h2 { font-size: clamp(1.15rem, 3.5vw, 1.7rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Header */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1100;
}

.top-bar-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.05rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(255, 138, 31, 0.3);
}

.main-nav { display: flex; list-style: none; gap: 0; padding: 0; }

.main-nav a {
  display: block;
  padding: 7px 13px;
  color: var(--text-body);
  font-size: 0.86rem;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}

.main-nav a:hover,
.main-nav a.on {
  color: var(--text-bright);
  background: rgba(168, 85, 247, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.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(--plum);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 16px 16px;
  z-index: 1050;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform var(--ease), opacity var(--ease);
}

.drawer.show { transform: translateY(0); opacity: 1; }
.drawer ul { list-style: none; padding: 0; }

.drawer a {
  display: block;
  padding: 11px 6px;
  color: var(--text-body);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}

.drawer a.on { color: var(--magenta); }

/* Ads */
.ads-fixed {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1090;
  padding: 7px 0;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--ease), opacity var(--ease), visibility var(--ease);
}

.ads-fixed.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.ads-top {
  padding: 12px 0 4px;
  margin-top: var(--nav-h);
}

.ads-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.ads-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 4px);
  box-sizing: border-box;
}

.ads-row figure { margin: 0; text-align: center; }

.ads-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--line-soft);
}

.ads-row a { display: inline-block; border-radius: 15px; }

.ads-row img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.25);
}

.ads-row .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (min-width: 768px) {
  .ads-row > div { width: calc(12.5% - 4px); }
  .ads-row img { width: 62px; height: 62px; }
  .ads-row .caption { max-width: 76px; font-size: 11px; }
}

/* Layout */
.page-wrap { padding-bottom: 44px; }

.breadcrumb {
  padding: 16px 0 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--magenta); }
.breadcrumb em { color: var(--text-body); font-style: normal; margin: 0 5px; }

/* Hero */
.banner {
  padding: 32px 0 24px;
  position: relative;
}

.banner-tag {
  display: inline-block;
  padding: 4px 13px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(244, 63, 142, 0.14));
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 0.76rem;
  color: var(--magenta);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.banner h1 { margin-bottom: 12px; }

.banner-lead {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 680px;
  margin-bottom: 18px;
}

.kw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
}

.kw-tags li {
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  font-size: 0.78rem;
  color: var(--violet);
}

/* 3:7 split */
.split-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}

.split-block.flip .split-visual { order: -1; }

.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 4, 15, 0.75) 100%);
  pointer-events: none;
}

.split-visual img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  max-height: 400px;
}

.split-visual .cap {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 9px;
  border-radius: 5px;
}

.split-text h3 { color: var(--orange-glow); margin-top: 2px; }
.split-text ul { margin: 10px 0; }
.split-text li { margin-bottom: 5px; font-size: 0.92rem; }

@media (min-width: 768px) {
  .split-block { grid-template-columns: 3fr 7fr; gap: 26px; }
  .split-block.flip { grid-template-columns: 7fr 3fr; }
  .split-block.flip .split-visual { order: 2; }
}

/* Sections */
.block {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.block-title { margin-bottom: 20px; }
.block-title p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0; }

.text-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
}

.text-panel h3 {
  color: var(--violet);
  font-size: 1.02rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.text-panel p { font-size: 0.92rem; margin-bottom: 0.8rem; }
.text-panel p:last-child { margin-bottom: 0; }

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color var(--ease);
}

.tile:hover { border-color: var(--line); }
.tile h3 { font-size: 0.98rem; }
.tile p { font-size: 0.88rem; margin-bottom: 0; color: var(--text-dim); }

.qa-box {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.qa-box h3 { font-size: 0.93rem; margin-bottom: 6px; }
.qa-box p { font-size: 0.88rem; margin-bottom: 0; color: var(--text-dim); }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 5px 20px rgba(168, 85, 247, 0.3);
}

.cta-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244, 63, 142, 0.35);
}

/* Subpages */
.page-head { padding: 24px 0 16px; }
.page-head h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); }

.doc-body {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-bottom: 28px;
}

.doc-body h2 {
  font-size: 1.08rem;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--violet);
}

.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 0.88rem; }

/* Error */
.err-wrap {
  min-height: calc(100vh - var(--nav-h) - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 16px;
}

.err-num {
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.err-wrap h1 { font-size: 1.25rem; margin-bottom: 8px; }
.err-wrap p { color: var(--text-dim); max-width: 400px; margin: 0 auto 20px; }

/* Footer */
.bottom {
  background: var(--plum);
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 20px;
  margin-top: 16px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 580px) {
  .bottom-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.bottom-brand p { font-size: 0.83rem; color: var(--text-dim); margin-top: 8px; }

.bottom-col h4 {
  font-size: 0.83rem;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.bottom-col ul { list-style: none; padding: 0; }
.bottom-col li { margin-bottom: 7px; }
.bottom-col a { font-size: 0.83rem; color: var(--text-dim); }
.bottom-col a:hover { color: var(--magenta); }

.bottom-copy {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* SEO prose modules */
.prose-wide {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-bottom: 18px;
}

.prose-wide h3 {
  color: var(--magenta);
  font-size: 1rem;
  margin-bottom: 10px;
}

.prose-wide p { font-size: 0.92rem; margin-bottom: 0.75rem; }
.prose-wide p:last-child { margin-bottom: 0; }

.prose-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 700px) {
  .prose-columns { grid-template-columns: repeat(3, 1fr); }
}

.prose-col {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.prose-col h3 { font-size: 0.95rem; color: var(--orange-glow); margin-bottom: 8px; }
.prose-col p { font-size: 0.88rem; margin-bottom: 0; color: var(--text-dim); }

.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .compare-row { grid-template-columns: 1fr 1fr; }
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.compare-card.good { border-color: rgba(168, 85, 247, 0.35); }
.compare-card.bad { border-color: rgba(244, 63, 142, 0.2); }

.compare-card h3 { font-size: 0.95rem; margin-bottom: 10px; }
.compare-card.good h3 { color: var(--violet); }
.compare-card.bad h3 { color: var(--rose); }
.compare-card li { font-size: 0.88rem; margin-bottom: 5px; }

.img-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

@media (min-width: 600px) {
  .img-gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .img-gallery { grid-template-columns: repeat(7, 1fr); }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 9/14;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  font-size: 0.68rem;
  color: var(--text-bright);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  text-align: center;
}

@media (max-width: 767px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .drawer { display: block; }
}
