/* 哔咔漫画 b-c.click — Nightwave ink aesthetic (unique to this site) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+KuaiLe&display=swap');

:root {
  --nw-ink: #0b1220;
  --nw-deep: #132238;
  --nw-panel: rgba(18, 34, 56, 0.72);
  --nw-frost: #f3f7fb;
  --nw-mist: #d7e4f2;
  --nw-coral: #ff5f7a;
  --nw-coral-soft: #ff8fa3;
  --nw-jade: #2ad4b0;
  --nw-gold: #f0c56e;
  --nw-line: rgba(255, 255, 255, 0.12);
  --nw-text: #e8eef7;
  --nw-muted: #9bb0c9;
  --nw-shadow: 0 18px 50px rgba(4, 10, 22, 0.45);
  --nw-radius: 22px;
  --nw-nav-h: 64px;
  --nw-dock-gap: 8px;
  --nw-max: 1120px;
  --nw-font-display: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --nw-font-body: "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--nw-font-body);
  color: var(--nw-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 95, 122, 0.22), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(42, 212, 176, 0.16), transparent 50%),
    linear-gradient(180deg, #071018 0%, #0b1220 38%, #101b2d 100%);
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nw-jade);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--nw-coral-soft);
}

.nw-skip {
  position: absolute;
  left: -9999px;
}

.nw-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

/* Promo strip (index / about / 404) */
.nw-promo {
  background: rgba(7, 16, 24, 0.92);
  border-bottom: 1px solid var(--nw-line);
  padding: 10px 12px 4px;
}

.nw-promo[hidden] {
  display: none !important;
}

#nw-promo-ads,
#nw-dock-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  margin: 0 auto;
  max-width: var(--nw-max);
}

#nw-promo-ads > div,
#nw-dock-ads > div {
  width: calc(25% - 8px);
  max-width: 78px;
  text-align: center;
}

@media (min-width: 900px) {
  #nw-promo-ads > div,
  #nw-dock-ads > div {
    width: calc(12.5% - 8px);
  }
}

#nw-promo-ads img,
#nw-dock-ads img {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#nw-promo-ads a:hover img,
#nw-dock-ads a:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

#nw-promo-ads .nw-ad-cap,
#nw-dock-ads .nw-ad-cap {
  margin-top: 4px;
  font-size: 11px;
  color: var(--nw-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Top navigation */
.nw-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 14, 24, 0.78);
  border-bottom: 1px solid var(--nw-line);
}

.nw-topbar-inner {
  max-width: var(--nw-max);
  margin: 0 auto;
  min-height: var(--nw-nav-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nw-frost);
  text-decoration: none;
  font-family: var(--nw-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.nw-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--nw-line);
}

.nw-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nw-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--nw-frost);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nw-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nw-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nw-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nw-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
}

.nw-nav a {
  color: var(--nw-mist);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.nw-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nw-coral), var(--nw-jade));
  transition: width 0.25s ease;
}

.nw-nav a:hover {
  color: #fff;
}

.nw-nav a:hover::after,
.nw-nav a.nw-on::after {
  width: 100%;
}

@media (max-width: 860px) {
  .nw-burger {
    display: inline-flex;
  }

  .nw-topbar-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nw-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--nw-line);
    background: rgba(8, 14, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--nw-shadow);
    z-index: 60;
  }

  .nw-nav.nw-nav-open {
    display: flex;
  }

  .nw-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .nw-nav a:hover,
  .nw-nav a.nw-on {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .nw-nav a::after {
    display: none;
  }
}

/* Sticky download dock under nav after scroll */
.nw-dock {
  position: sticky;
  top: var(--nw-nav-h);
  z-index: 45;
  background: rgba(10, 18, 32, 0.94);
  border-bottom: 1px solid var(--nw-line);
  padding: 8px 10px 6px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nw-dock.nw-dock-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nw-dock-title {
  text-align: center;
  font-size: 12px;
  color: var(--nw-muted);
  margin: 0 0 6px;
}

/* Hero — no download CTA */
.nw-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 16px 28px;
  isolation: isolate;
}

.nw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 16, 24, 0.55) 8%, rgba(7, 16, 24, 0.2) 48%, rgba(7, 16, 24, 0.72) 100%),
    url("shot-comic-serial.jpg") center / cover no-repeat;
  z-index: -2;
  transform: scale(1.04);
  animation: nw-drift 18s ease-in-out infinite alternate;
}

.nw-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, #0b1220, transparent);
  z-index: -1;
}

@keyframes nw-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-12px); }
}

.nw-hero-box {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 28px 20px;
  border-radius: calc(var(--nw-radius) + 6px);
  background: rgba(10, 18, 32, 0.48);
  border: 1px solid var(--nw-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--nw-shadow);
  animation: nw-rise 0.8s ease both;
}

@keyframes nw-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.nw-kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nw-jade);
  margin-bottom: 10px;
}

.nw-hero h1 {
  margin: 0 0 14px;
  font-family: var(--nw-font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  line-height: 1.25;
  color: #fff;
  font-weight: 400;
  max-width: 16ch;
}

.nw-hero-lead {
  margin: 0;
  max-width: 36em;
  color: var(--nw-mist);
  font-size: 1.02rem;
}

.nw-shell {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 8px 16px 56px;
}

.nw-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--nw-muted);
  margin: 18px 0 8px;
}

.nw-crumb a {
  color: var(--nw-mist);
  text-decoration: none;
}

.nw-crumb span {
  opacity: 0.55;
}

/* Content modules */
.nw-block {
  margin: 28px 0;
  animation: nw-rise 0.7s ease both;
}

.nw-block h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.35;
  color: #fff;
}

.nw-block h3 {
  margin: 22px 0 10px;
  font-size: 1.12rem;
  color: var(--nw-coral-soft);
}

.nw-block p {
  margin: 0 0 14px;
  color: var(--nw-text);
  font-size: 0.98rem;
}

.nw-prose {
  background: var(--nw-panel);
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius);
  padding: 22px 18px;
  backdrop-filter: blur(8px);
}

.nw-split {
  display: grid;
  gap: 18px;
  align-items: center;
}

@media (min-width: 860px) {
  .nw-split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .nw-split.nw-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .nw-split.nw-flip .nw-media {
    order: 2;
  }
}

.nw-media {
  position: relative;
  border-radius: var(--nw-radius);
  overflow: hidden;
  border: 1px solid var(--nw-line);
  box-shadow: var(--nw-shadow);
  background: #0a1422;
}

.nw-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
  transition: transform 0.55s ease;
}

.nw-media:hover img {
  transform: scale(1.03);
}

.nw-media-wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  object-position: center;
}

.nw-glow {
  position: absolute;
  inset: auto 12% -20px 12%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(255, 95, 122, 0.45), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.nw-card-rail {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .nw-card-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nw-tile {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--nw-line);
  border-radius: 18px;
  padding: 18px 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.nw-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 212, 176, 0.45);
}

.nw-tile h3 {
  margin-top: 0;
  color: #fff;
}

.nw-tile p {
  margin: 0;
  color: var(--nw-muted);
  font-size: 0.92rem;
}

.nw-mosaic {
  display: grid;
  gap: 12px;
}

@media (min-width: 780px) {
  .nw-mosaic {
    grid-template-columns: 1.2fr 1fr;
  }
}

.nw-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.nw-pill {
  border: 1px solid var(--nw-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nw-mist);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.nw-band {
  margin: 34px 0;
  padding: 28px 18px;
  border-radius: calc(var(--nw-radius) + 4px);
  background:
    linear-gradient(120deg, rgba(255, 95, 122, 0.16), rgba(42, 212, 176, 0.12)),
    rgba(12, 22, 38, 0.85);
  border: 1px solid var(--nw-line);
  text-align: center;
}

.nw-band p {
  margin: 0 auto;
  max-width: 40em;
  color: var(--nw-mist);
}

.nw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.nw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--nw-coral), #ff7a55);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 95, 122, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nw-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.nw-btn-ghost {
  background: transparent;
  border: 1px solid var(--nw-line);
  box-shadow: none;
  color: var(--nw-frost) !important;
}

.nw-list {
  margin: 0 0 14px;
  padding-left: 1.15em;
  color: var(--nw-text);
}

.nw-list li {
  margin-bottom: 8px;
}

.nw-timeline {
  border-left: 2px solid rgba(42, 212, 176, 0.35);
  margin: 12px 0 0 8px;
  padding-left: 16px;
}

.nw-timeline article {
  margin-bottom: 18px;
  position: relative;
}

.nw-timeline article::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nw-coral);
  box-shadow: 0 0 0 4px rgba(255, 95, 122, 0.2);
}

.nw-legal .nw-block h2 {
  scroll-margin-top: 120px;
}

.nw-error-panel {
  text-align: center;
  padding: 48px 18px 30px;
}

.nw-error-panel h1 {
  font-family: var(--nw-font-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin: 0 0 8px;
}

.nw-footer {
  border-top: 1px solid var(--nw-line);
  background: rgba(5, 10, 18, 0.9);
  padding: 28px 16px 40px;
  margin-top: 20px;
}

.nw-footer-inner {
  max-width: var(--nw-max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .nw-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.nw-footer h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #fff;
}

.nw-footer p,
.nw-footer a {
  color: var(--nw-muted);
  font-size: 0.9rem;
}

.nw-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nw-footer li {
  margin-bottom: 8px;
}

.nw-footer a {
  text-decoration: none;
}

.nw-footer a:hover {
  color: var(--nw-jade);
}

.nw-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--nw-line);
  padding-top: 14px;
  font-size: 0.82rem;
  color: #7f93ab;
}

@media (max-width: 640px) {
  .nw-hero {
    padding-top: 28px;
  }
}
