/* pica.lat — 绯夜琉璃主题 */
:root {
  --pl-bg: #12081a;
  --pl-bg-soft: #1e1028;
  --pl-surface: rgba(255, 245, 252, 0.05);
  --pl-surface-solid: #261530;
  --pl-ink: #fff4fa;
  --pl-body: #d4c4d8;
  --pl-muted: #9a8aa8;
  --pl-rose: #ff2d6f;
  --pl-rose-glow: #ff6b9d;
  --pl-violet: #a855f7;
  --pl-amber: #ffb020;
  --pl-cyan: #22d3ee;
  --pl-line: rgba(255, 109, 157, 0.22);
  --pl-glass: rgba(18, 8, 26, 0.88);
  --pl-nav-h: 60px;
  --pl-radius: 18px;
  --pl-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --pl-display: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --pl-serif: "Noto Serif SC", "Songti SC", serif;
  --pl-sans: "Noto Sans SC", "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(--pl-sans);
  background: var(--pl-bg);
  color: var(--pl-body);
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% -5%, rgba(255, 45, 111, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 45% at 95% 12%, rgba(168, 85, 247, 0.14), transparent 52%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(255, 176, 32, 0.08), transparent 48%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--pl-rose-glow); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pl-cyan); }

img { max-width: 100%; height: auto; display: block; }

.pl-shell { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 0 18px 88px; }

/* Header */
.pl-top {
  position: sticky;
  top: 0;
  z-index: 320;
  background: var(--pl-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pl-line);
}

.pl-top-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--pl-nav-h);
}

.pl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pl-ink);
  font-family: var(--pl-display);
  font-size: 1.22rem;
  letter-spacing: 0.04em;
}

.pl-logo img {
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255, 45, 111, 0.35), 0 8px 20px rgba(255, 45, 111, 0.25);
}

.pl-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
}

.pl-menu a {
  color: var(--pl-muted);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.pl-menu a:hover,
.pl-menu a.is-on { color: var(--pl-rose-glow); border-bottom-color: var(--pl-rose); }

.pl-dl-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: linear-gradient(120deg, var(--pl-rose), var(--pl-violet));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(255, 45, 111, 0.4);
  white-space: nowrap;
}

.pl-dl-btn:hover { color: #fff; filter: brightness(1.08); }

.pl-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.pl-hamburger i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pl-ink);
  border-radius: 2px;
}

/* Sticky ads bar */
.pl-ads-pin {
  position: fixed;
  top: var(--pl-nav-h);
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(18, 8, 26, 0.96);
  border-bottom: 1px solid var(--pl-line);
  padding: 8px 14px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s, opacity 0.28s;
  pointer-events: none;
}

.pl-ads-pin.is-on { transform: translateY(0); opacity: 1; pointer-events: auto; }

.pl-ads-pin #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 940px;
  margin: 0 auto;
}

.pl-ads-pin #ads-sticky > div { width: calc(12.5% - 6px); min-width: 68px; }

@media (max-width: 768px) {
  .pl-ads-pin #ads-sticky > div { width: calc(25% - 6px); }
}

/* Top ads slot */
.pl-ads-hero {
  margin: 20px 0 32px;
  padding: 16px 12px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  box-shadow: var(--pl-shadow);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

#ads > div,
.pl-ads-pin #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img,
.pl-ads-pin #ads-sticky img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}

#ads a,
.pl-ads-pin #ads-sticky a { border-radius: 14px; display: inline-block; }

#ads img:hover,
.pl-ads-pin #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 45, 111, 0.35);
}

#ads .caption,
.pl-ads-pin .caption {
  height: 15px;
  font-size: 11px;
  color: var(--pl-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.pl-mast {
  position: relative;
  padding: 44px 0 52px;
  border-bottom: 1px dashed var(--pl-line);
  margin-bottom: 48px;
}

.pl-mast::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: 220px;
  height: 220px;
  background: conic-gradient(from 120deg, var(--pl-rose), var(--pl-violet), var(--pl-amber), var(--pl-rose));
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(40px);
  pointer-events: none;
}

.pl-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--pl-line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pl-amber);
  margin-bottom: 16px;
}

.pl-mast h1 {
  font-family: var(--pl-display);
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  color: var(--pl-ink);
  line-height: 1.32;
  margin-bottom: 18px;
  text-shadow: 0 0 40px rgba(255, 45, 111, 0.2);
}

.pl-lead {
  font-family: var(--pl-serif);
  font-size: 1.02rem;
  color: var(--pl-body);
  margin-bottom: 24px;
  max-width: 720px;
}

.pl-mast-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pl-ghost-btn {
  display: inline-flex;
  padding: 9px 22px;
  border: 1px solid var(--pl-violet);
  color: var(--pl-violet);
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 999px;
}

.pl-ghost-btn:hover { background: rgba(168, 85, 247, 0.12); color: var(--pl-rose-glow); }

/* Blocks */
.pl-block { margin-bottom: 56px; }

.pl-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pl-cyan);
  margin-bottom: 10px;
}

.pl-block h2 {
  font-family: var(--pl-display);
  font-size: clamp(1.38rem, 4.2vw, 1.85rem);
  color: var(--pl-ink);
  line-height: 1.38;
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--pl-rose);
}

.pl-copy p { margin-bottom: 1.12em; text-align: justify; font-family: var(--pl-serif); }
.pl-copy p:last-child { margin-bottom: 0; }

.pl-pull {
  margin: 24px 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255, 45, 111, 0.08), rgba(168, 85, 247, 0.06));
  border-left: 3px solid var(--pl-rose);
  border-radius: 0 var(--pl-radius) var(--pl-radius) 0;
  font-family: var(--pl-serif);
  color: var(--pl-ink);
  font-size: 0.95rem;
}

/* Grid cards */
.pl-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 540px) {
  .pl-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .pl-tiles.tri { grid-template-columns: repeat(3, 1fr); }
}

.pl-tile {
  background: var(--pl-surface);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  padding: 20px 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.pl-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 111, 0.45);
}

.pl-tile-num {
  font-family: var(--pl-display);
  font-size: 1.6rem;
  color: var(--pl-rose);
  line-height: 1;
  margin-bottom: 10px;
}

.pl-tile h3 {
  font-size: 1rem;
  color: var(--pl-ink);
  margin-bottom: 8px;
}

.pl-tile p { font-size: 0.88rem; color: var(--pl-muted); line-height: 1.78; }

/* Split media — 3:7 ratio */
.pl-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  margin: 26px 0;
}

@media (min-width: 700px) {
  .pl-split.pic-start { grid-template-columns: 0.3fr 0.7fr; }
  .pl-split.pic-end { grid-template-columns: 0.7fr 0.3fr; }
}

.pl-shot {
  background: var(--pl-surface-solid);
  border-radius: var(--pl-radius);
  overflow: hidden;
  border: 1px solid var(--pl-line);
  box-shadow: var(--pl-shadow);
}

.pl-shot img { width: 100%; }

.pl-shot figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--pl-muted);
  background: rgba(18, 8, 26, 0.6);
  border-top: 1px solid var(--pl-line);
}

/* Tags row */
.pl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.pl-chips span {
  padding: 6px 14px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--pl-body);
}

/* Breadcrumb */
.pl-trail {
  padding: 18px 0 10px;
  font-size: 0.84rem;
  color: var(--pl-muted);
}

.pl-trail a { color: var(--pl-muted); }
.pl-trail a:hover { color: var(--pl-rose-glow); }
.pl-trail span { color: var(--pl-ink); }

/* Subpage */
.pl-titlebar {
  padding: 30px 0 22px;
  border-bottom: 1px dashed var(--pl-line);
  margin-bottom: 30px;
}

.pl-titlebar h1 {
  font-family: var(--pl-display);
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  color: var(--pl-ink);
}

.pl-doc h2 {
  font-family: var(--pl-display);
  font-size: 1.18rem;
  color: var(--pl-ink);
  margin: 30px 0 12px;
}

.pl-doc h3 {
  font-size: 1.02rem;
  color: var(--pl-rose-glow);
  margin: 22px 0 10px;
}

.pl-doc p,
.pl-doc li { margin-bottom: 0.95em; font-family: var(--pl-serif); }
.pl-doc ul, .pl-doc ol { padding-left: 1.5em; margin-bottom: 1em; }

/* Footer */
.pl-foot {
  margin-top: 64px;
  padding: 36px 18px;
  border-top: 1px solid var(--pl-line);
  text-align: center;
  font-size: 0.84rem;
  color: var(--pl-muted);
}

.pl-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.pl-foot a { color: var(--pl-body); }

/* Error */
.pl-miss {
  text-align: center;
  padding: 88px 20px;
}

.pl-miss h1 {
  font-family: var(--pl-display);
  font-size: 4.2rem;
  background: linear-gradient(135deg, var(--pl-rose), var(--pl-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pl-miss p { margin: 18px 0 30px; color: var(--pl-muted); }

/* Mobile */
@media (max-width: 720px) {
  .pl-hamburger { display: flex; }
  .pl-menu {
    position: fixed;
    top: var(--pl-nav-h);
    left: 0;
    right: 0;
    background: var(--pl-glass);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--pl-line);
    padding: 14px 18px;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.25s;
    pointer-events: none;
  }
  .pl-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .pl-menu ul { flex-direction: column; gap: 4px; }
  .pl-menu a { display: block; padding: 10px 0; }
  .pl-dl-btn.top-cta { display: none; }
}
