/* 9lpo.xyz — Neon Velvet Midnight Theme */
:root {
  --ink: #07050f;
  --velvet: #110a1f;
  --surface: #1a1228;
  --surface-2: #231832;
  --glass: rgba(17, 10, 31, 0.92);
  --violet: #a855f7;
  --violet-bright: #c084fc;
  --magenta: #ec4899;
  --magenta-soft: #f472b6;
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.12);
  --gold: #fbbf24;
  --text-bright: #f3e8ff;
  --text-body: #c4b5d4;
  --text-dim: #7c6b94;
  --line: rgba(168, 85, 247, 0.18);
  --line-soft: rgba(255, 255, 255, 0.05);
  --nav-h: 58px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --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: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ink);
  color: var(--text-body);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 92% 8%, rgba(236, 72, 153, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 40% 38% at 8% 82%, rgba(168, 85, 247, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 50% 45%, rgba(56, 189, 248, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet-bright); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--magenta-soft); }

ul, ol { padding-left: 1.35em; }
h1, h2, h3, h4 { color: var(--text-bright); line-height: 1.42; font-weight: 700; }
h1 { font-size: clamp(1.55rem, 4.8vw, 2.35rem); }
h2 { font-size: clamp(1.15rem, 3.2vw, 1.65rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
p { margin-bottom: 0.95rem; }

.shell {
  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: 1200;
}

.top-bar::after {
  content: "";
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--magenta), transparent);
  opacity: 0.45;
}

.top-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.brand {
  grid-column: 2;
  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(168, 85, 247, 0.35);
}

.top-links {
  grid-column: 3;
  justify-self: end;
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
}

.top-links a {
  display: block;
  padding: 7px 12px;
  color: var(--text-body);
  font-size: 0.84rem;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}

.top-links a:hover,
.top-links a.on {
  color: var(--text-bright);
  background: rgba(168, 85, 247, 0.15);
}

.ham {
  display: none;
  grid-column: 1;
  justify-self: start;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.ham span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.ham.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.on span:nth-child(2) { opacity: 0; }
.ham.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--velvet);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 16px 16px;
  z-index: 1150;
  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: 13px 6px;
  color: var(--text-body);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}

.drawer a.on { color: var(--magenta-soft); }

/* Ads */
.ad-pin {
  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: 1100;
  padding: 7px 0;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--ease), opacity var(--ease), visibility var(--ease);
}

.ad-pin.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.ad-top {
  padding: 12px 0 8px;
  margin-top: var(--nav-h);
}

.ad-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.ad-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 4px);
  box-sizing: border-box;
}

.ad-row figure { margin: 0; text-align: center; }

.ad-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.ad-row a { display: inline-block; border-radius: 14px; }

.ad-row img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.25);
}

.ad-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) {
  .ad-row > div { width: calc(12.5% - 4px); }
  .ad-row img { width: 62px; height: 62px; }
  .ad-row .caption { max-width: 76px; font-size: 11px; }
}

/* Layout */
.body-wrap { padding-bottom: 52px; }

.trail {
  padding: 16px 0 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.trail a { color: var(--text-dim); }
.trail a:hover { color: var(--violet-bright); }
.trail em { font-style: normal; color: var(--text-body); margin: 0 5px; }

/* Hero */
.mast {
  padding: 40px 0 32px;
  position: relative;
}

.mast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.08) 0%, transparent 45%, rgba(236, 72, 153, 0.06) 100%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.mast-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--magenta-soft);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.mast-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

.mast h1 { margin-bottom: 12px; }

.mast-lead {
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 720px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 18px;
}

.chips li {
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Sections */
.block {
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
}

.block-head {
  margin-bottom: 22px;
}

.block-head p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }

.split-pic {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.split-pic img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

.split-pic .lbl {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(7, 5, 15, 0.88));
  font-size: 0.72rem;
  color: var(--violet-bright);
  letter-spacing: 0.04em;
}

.split-text h3 { color: var(--text-bright); }

.prose p:last-child { margin-bottom: 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color var(--ease), transform var(--ease);
}

.info-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.info-card .num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--magenta);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.info-card h3 { font-size: 0.98rem; }

/* CTA band */
.cta-band {
  margin: 28px 0;
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-band h2 { margin-bottom: 8px; }

.cta-band p { color: var(--text-dim); margin-bottom: 14px; }

.btn-glow {
  display: inline-block;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.35);
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-glow:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(236, 72, 153, 0.4);
}

/* Gallery showcase */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.showcase-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease);
}

.showcase-item:hover { border-color: var(--line); }

.showcase-item img {
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
}

.showcase-body {
  padding: 14px 16px 18px;
}

.showcase-body h3 {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.showcase-body p {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.75;
}

/* Text panels */
.text-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
}

.text-panel h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--violet-bright);
}

.text-panel p:last-child { margin-bottom: 0; }

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.topic-tags li {
  padding: 6px 14px;
  background: var(--cyan-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--cyan);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}

.faq-item h3 { font-size: 0.95rem; margin-bottom: 6px; }
.faq-item p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 0; }

/* Legal */
.legal-body h2 { margin-top: 24px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { margin-bottom: 1rem; }

/* 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: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

/* Footer */
.foot {
  background: var(--velvet);
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 20px;
  margin-top: 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 8px;
}

.foot-brand img { width: 32px; height: 32px; border-radius: 8px; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
}

.foot-nav a {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.foot-nav a:hover { color: var(--violet-bright); }

.foot-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* Responsive */
@media (max-width: 767px) {
  .top-inner { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 2; justify-self: center; font-size: 0.95rem; }
  .top-links { display: none; }
  .ham { display: flex; }
  .drawer { display: block; }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .split.flip { direction: ltr; }
  .split-pic { max-width: 220px; margin: 0 auto; }
}

@media (min-width: 768px) {
  .foot-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
