/* bi-ka.monster — 绯雾星夜主题 */
:root {
  --void: #0c060e;
  --wine: #1a0c14;
  --plum: #2a1424;
  --rose: #f43f8f;
  --rose-glow: #ff6eb4;
  --amber: #f0a060;
  --mint: #3ecfb0;
  --pearl: #fce8f0;
  --mist: #c9a8b8;
  --line: rgba(244, 63, 143, 0.22);
  --glass: rgba(26, 12, 20, 0.88);
  --shadow: 0 16px 48px rgba(244, 63, 143, 0.14);
  --radius: 16px;
  --nav-h: 60px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-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(--font-sans);
  background: var(--void);
  color: var(--pearl);
  line-height: 1.88;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 85% 5%, rgba(244, 63, 143, 0.16), transparent),
    radial-gradient(ellipse 55% 35% at 5% 30%, rgba(62, 207, 176, 0.07), transparent),
    radial-gradient(ellipse 40% 30% at 50% 95%, rgba(240, 160, 96, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--rose-glow); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--mint); }

img { max-width: 100%; height: auto; display: block; }

.shell {
  width: min(1080px, 93vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.nm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 14px;
}

.nm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.nm-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 2px solid rgba(244, 63, 143, 0.4);
  box-shadow: 0 4px 20px rgba(244, 63, 143, 0.3);
}

.nm-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--rose-glow);
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.15rem;
}

.nm-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nm-nav a {
  display: block;
  padding: 8px 13px;
  color: var(--mist);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nm-nav a:hover,
.nm-nav a.is-active {
  background: rgba(244, 63, 143, 0.14);
  color: #fff;
}

.nm-btn-dl {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: linear-gradient(120deg, var(--rose), #c026d3);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.nm-btn-dl:hover { filter: brightness(1.12); color: #fff; }

/* Sticky ads */
.nm-ads-float {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(12, 6, 14, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
  pointer-events: none;
}

.nm-ads-float.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 960px;
  margin: 0 auto;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 68px;
}

#ads img, #ads-sticky img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(244, 63, 143, 0.28);
  transition: transform 0.18s ease;
}

#ads a, #ads-sticky a { border-radius: 14px; display: inline-block; }
#ads img:hover, #ads-sticky img:hover { transform: translateY(-3px) scale(1.03); }

#ads figcaption, #ads .caption,
#ads-sticky figcaption, #ads-sticky .caption {
  height: 14px;
  font-size: 10px;
  color: var(--mist);
  text-align: center;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.nm-ads-top {
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.nm-ads-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

/* Breadcrumb */
.nm-crumb {
  padding: 16px 0 6px;
  font-size: 0.84rem;
  color: var(--mist);
}

.nm-crumb a { color: var(--rose-glow); }
.nm-crumb em { font-style: normal; margin: 0 7px; opacity: 0.45; }

/* Hero */
.nm-hero {
  padding: 44px 0 36px;
  position: relative;
}

.nm-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 143, 0.12), transparent 70%);
  pointer-events: none;
}

.nm-hero-tag {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  background: rgba(244, 63, 143, 0.06);
}

.nm-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  line-height: 1.38;
  color: #fff;
  margin-bottom: 18px;
  max-width: 820px;
}

.nm-hero h1 strong {
  color: var(--rose-glow);
  font-weight: 700;
}

.nm-hero-lead {
  font-size: 1.02rem;
  color: var(--mist);
  max-width: 720px;
  margin-bottom: 26px;
  text-align: justify;
}

.nm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nm-hero-actions .nm-btn-outline {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pearl);
  font-size: 0.88rem;
}

/* Blocks */
.nm-block {
  padding: 38px 0;
  border-top: 1px solid rgba(244, 63, 143, 0.08);
}

.nm-block-head {
  margin-bottom: 22px;
}

.nm-block-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.8vw, 1.65rem);
  color: #fff;
  margin-bottom: 6px;
  padding-left: 14px;
  border-left: 3px solid var(--rose);
}

.nm-block-head .nm-sub {
  color: var(--mist);
  font-size: 0.92rem;
  padding-left: 17px;
}

.nm-prose p {
  margin-bottom: 15px;
  text-align: justify;
  color: rgba(252, 232, 240, 0.88);
  font-size: 0.96rem;
}

/* Layout modules */
.nm-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .nm-split { grid-template-columns: 3fr 7fr; }
  .nm-split.is-flip { grid-template-columns: 7fr 3fr; }
  .nm-split.is-flip .nm-shot { order: 2; }
}

.nm-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--plum);
}

.nm-shot img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.nm-shot figcaption {
  padding: 9px 12px;
  font-size: 0.8rem;
  color: var(--mist);
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
}

.nm-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.nm-card {
  background: linear-gradient(145deg, rgba(42, 20, 36, 0.9), rgba(26, 12, 20, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.22s, border-color 0.22s;
}

.nm-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 143, 0.45);
}

.nm-card h3 {
  font-family: var(--font-serif);
  color: var(--rose-glow);
  font-size: 1rem;
  margin-bottom: 8px;
}

.nm-card p {
  font-size: 0.9rem;
  color: var(--mist);
  line-height: 1.75;
}

.nm-split-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .nm-split-cards { grid-template-columns: 3fr 7fr; }
}

.nm-note {
  background: linear-gradient(135deg, rgba(244, 63, 143, 0.1), rgba(62, 207, 176, 0.06));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 22px 0;
}

.nm-note h3 {
  font-family: var(--font-serif);
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.nm-note p { color: var(--mist); font-size: 0.93rem; }

.nm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.nm-tags span {
  padding: 4px 13px;
  border-radius: 4px;
  font-size: 0.78rem;
  background: rgba(240, 160, 96, 0.12);
  border: 1px solid rgba(240, 160, 96, 0.28);
  color: var(--amber);
}

.nm-list {
  list-style: none;
  margin: 14px 0;
}

.nm-list li {
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid rgba(244, 63, 143, 0.06);
  font-size: 0.93rem;
  color: rgba(252, 232, 240, 0.85);
}

.nm-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--rose);
  font-size: 0.75rem;
  top: 11px;
}

.nm-faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.nm-faq summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: rgba(244, 63, 143, 0.06);
  list-style: none;
  font-size: 0.94rem;
}

.nm-faq summary::-webkit-details-marker { display: none; }

.nm-faq p {
  padding: 0 18px 14px;
  color: var(--mist);
  font-size: 0.9rem;
}

/* Footer */
.nm-footer {
  margin-top: 52px;
  padding: 38px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.nm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
  margin-bottom: 24px;
}

.nm-footer-grid h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.nm-footer-grid ul { list-style: none; }
.nm-footer-grid li { margin-bottom: 7px; }
.nm-footer-grid a { color: var(--mist); font-size: 0.86rem; }

.nm-footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mist);
  padding-top: 18px;
  border-top: 1px solid rgba(244, 63, 143, 0.08);
}

/* Legal */
.nm-legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: #fff;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 3px solid var(--rose);
}

.nm-legal h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.15rem;
  margin: 28px 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.nm-legal h3 {
  color: var(--rose-glow);
  font-size: 1rem;
  margin: 18px 0 8px;
}

.nm-legal p, .nm-legal li {
  color: var(--mist);
  font-size: 0.93rem;
  margin-bottom: 11px;
  text-align: justify;
}

.nm-legal ul, .nm-legal ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

/* Error */
.nm-error {
  text-align: center;
  padding: 72px 20px 56px;
  min-height: 55vh;
}

.nm-error-code {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 14vw, 7rem);
  font-weight: 800;
  color: var(--rose);
  line-height: 1;
  text-shadow: 0 0 60px rgba(244, 63, 143, 0.35);
}

.nm-error h1 { font-size: 1.4rem; margin: 14px 0; color: #fff; }
.nm-error p { color: var(--mist); margin-bottom: 22px; }

/* Mobile */
@media (max-width: 767px) {
  .nm-nav-toggle { display: block; }

  .nm-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(12, 6, 14, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }

  .nm-nav.is-open { max-height: 300px; }
  .nm-nav ul { flex-direction: column; padding: 10px; }
  .nm-header-cta { display: none; }

  #ads > div, #ads-sticky > div {
    width: calc(25% - 6px);
  }

  .nm-hero { padding: 30px 0 22px; }
}
