/* bi-ka.pics — 紫霓缱绻主题 */
:root {
  --ink: #0a0618;
  --velvet: #140c28;
  --plume: #221438;
  --magenta: #e91e8c;
  --magenta-soft: #ff5cb8;
  --lavender: #c9a8e8;
  --pearl: #f3e8ff;
  --gold: #ffc861;
  --cyan: #4de8ff;
  --line: rgba(233, 30, 140, 0.2);
  --glass: rgba(20, 12, 40, 0.92);
  --shadow: 0 20px 60px rgba(233, 30, 140, 0.12);
  --radius: 14px;
  --nav-h: 58px;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Serif SC", serif;
  --font-body: "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(--font-body);
  background: var(--ink);
  color: var(--pearl);
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(233, 30, 140, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 0% 40%, rgba(77, 232, 255, 0.06), transparent),
    radial-gradient(ellipse 45% 35% at 60% 100%, rgba(255, 200, 97, 0.07), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--magenta-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(1100px, 94vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.bp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.bp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.bp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.bp-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(233, 30, 140, 0.45);
}

.bp-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--magenta-soft);
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

.bp-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.bp-nav a {
  display: block;
  padding: 7px 13px;
  color: var(--lavender);
  font-size: 0.92rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.bp-nav a:hover,
.bp-nav a.is-on {
  background: rgba(233, 30, 140, 0.15);
  color: #fff;
}

.bp-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--magenta), #b8166e);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(233, 30, 140, 0.35);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bp-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(233, 30, 140, 0.45);
  color: #fff !important;
}

.bp-header-dl { display: none; }

/* Ads */
.bp-ads-top {
  margin: 18px 0 24px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(34, 20, 56, 0.9), rgba(20, 12, 40, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.bp-ads-label {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img, #ads-sticky img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s;
}

#ads a, #ads-sticky a { display: inline-block; border-radius: 14px; }

#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.04);
}

#ads .caption, #ads-sticky .caption {
  height: 15px;
  font-size: 11px;
  color: var(--lavender);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.bp-ads-float {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.bp-ads-float.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 769px) {
  #ads-sticky > div { width: calc(100% / 8 - 8px); max-width: 80px; }
}

@media (max-width: 768px) {
  #ads-sticky > div { width: calc(25% - 6px); }
}

/* Hero */
.bp-hero {
  padding: 36px 0 48px;
  position: relative;
}

.bp-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
}

.bp-hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(77, 232, 255, 0.1);
  border: 1px solid rgba(77, 232, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.bp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  line-height: 1.35;
  color: #fff;
  margin-bottom: 18px;
}

.bp-hero h1 strong { color: var(--magenta-soft); }

.bp-hero-lead {
  font-size: 1.02rem;
  color: var(--lavender);
  max-width: 820px;
  margin-bottom: 22px;
}

.bp-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bp-btn-ghost {
  display: inline-flex;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pearl);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.bp-btn-ghost:hover {
  border-color: var(--magenta-soft);
  background: rgba(233, 30, 140, 0.08);
  color: #fff;
}

/* Sections */
.bp-sec {
  padding: 44px 0;
  border-bottom: 1px solid rgba(233, 30, 140, 0.08);
}

.bp-sec-head {
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 4px solid var(--magenta);
}

.bp-sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: #fff;
  margin-bottom: 6px;
}

.bp-sec-head .bp-tagline {
  font-size: 0.9rem;
  color: var(--lavender);
}

.bp-prose p {
  margin-bottom: 16px;
  color: rgba(243, 232, 255, 0.92);
  text-align: justify;
}

.bp-prose p:last-child { margin-bottom: 0; }

/* Split 3:7 */
.bp-split {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 28px;
  align-items: start;
}

.bp-split.is-reverse { grid-template-columns: 7fr 3fr; }
.bp-split.is-reverse .bp-shot { order: 2; }

.bp-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.bp-shot img { width: 100%; }

.bp-shot figcaption {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--lavender);
  background: var(--plume);
  text-align: center;
}

/* Cards */
.bp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.bp-card {
  padding: 20px;
  background: linear-gradient(145deg, var(--plume), var(--velvet));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.bp-card:hover {
  border-color: rgba(233, 30, 140, 0.45);
  transform: translateY(-3px);
}

.bp-card h3 {
  font-size: 1rem;
  color: var(--magenta-soft);
  margin-bottom: 8px;
}

.bp-card p {
  font-size: 0.9rem;
  color: var(--lavender);
  line-height: 1.75;
}

/* Feature strip */
.bp-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.bp-strip-item {
  text-align: center;
  padding: 18px 12px;
  background: rgba(34, 20, 56, 0.6);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.bp-strip-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.bp-strip-item span {
  font-size: 0.82rem;
  color: var(--lavender);
}

/* Breadcrumb */
.bp-crumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--lavender);
}

.bp-crumb a { color: var(--magenta-soft); }
.bp-crumb em { margin: 0 8px; font-style: normal; opacity: 0.5; }

/* Legal pages */
.bp-legal h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.bp-legal h2 {
  font-size: 1.15rem;
  color: var(--magenta-soft);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.bp-legal p, .bp-legal li {
  color: rgba(243, 232, 255, 0.9);
  margin-bottom: 12px;
}

.bp-legal ul, .bp-legal ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

/* Footer */
.bp-footer {
  padding: 40px 0 32px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.bp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.bp-footer-nav a {
  font-size: 0.88rem;
  color: var(--lavender);
}

.bp-footer-copy {
  font-size: 0.8rem;
  color: rgba(201, 168, 232, 0.6);
}

/* Error pages */
.bp-error {
  text-align: center;
  padding: 80px 20px;
}

.bp-error h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--magenta);
  line-height: 1;
  margin-bottom: 12px;
}

.bp-error p { color: var(--lavender); margin-bottom: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .bp-menu-btn { display: block; }

  .bp-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--glass);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    display: none;
  }

  .bp-nav.is-open { display: block; }

  .bp-nav ul { flex-direction: column; }

  .bp-header-dl { display: none !important; }

  .bp-split,
  .bp-split.is-reverse {
    grid-template-columns: 1fr;
  }

  .bp-split.is-reverse .bp-shot { order: 0; }

  .bp-strip { grid-template-columns: 1fr; }

  .bp-hero { padding: 24px 0 36px; }
}

@media (min-width: 769px) {
  .bp-header-dl { display: inline-flex; }
}
