/* 哔咔漫画 b-c.lat — Ink Cascade theme */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #15202b;
  --ink-soft: #2a3a4a;
  --rose: #e6396b;
  --rose-deep: #c42252;
  --jade: #1fa89a;
  --jade-soft: #d7f3ef;
  --mist: #f3f7f9;
  --paper: #ffffff;
  --line: rgba(21, 32, 43, 0.08);
  --shadow: 0 18px 40px rgba(21, 32, 43, 0.1);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 64px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(230, 57, 107, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 168, 154, 0.14), transparent 55%),
    linear-gradient(180deg, #eef6f8 0%, var(--mist) 40%, #f7fbfc 100%);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--jade);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* promo top */
.promo-shell {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.promo-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.promo-chip {
  width: 70px;
  text-align: center;
}

.promo-chip img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-inline: auto;
}

.promo-chip a:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.promo-caption {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* nav */
.brand-rail {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand-rail .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-mark strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav-drawer {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-drawer a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-drawer a:hover {
  color: var(--rose);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: var(--ink);
  border-radius: 2px;
}

/* sticky download */
.sticky-dl-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 35;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.sticky-dl-bar.is-visible {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0 10px;
}

.sticky-dl-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
}

.sticky-dl-icons .promo-chip {
  width: 100%;
  max-width: 72px;
}

body.has-sticky-dl .hero-stage {
  scroll-margin-top: 180px;
}

/* hero */
.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: 70%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(230, 57, 107, 0.28), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(31, 168, 154, 0.25), transparent 50%);
  filter: blur(8px);
  z-index: -1;
  animation: aurora 12s ease-in-out infinite alternate;
}

@keyframes aurora {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 3%, 0) scale(1.06);
  }
}

.hero-copy {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero-copy .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.15;
  margin: 0 0 12px;
  background: linear-gradient(120deg, var(--ink) 20%, var(--rose) 55%, var(--jade) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in 0.8s ease both;
}

.hero-copy h1 {
  font-size: clamp(1.25rem, 4.2vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
  animation: rise-in 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 0 auto;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 1.02rem;
  animation: rise-in 1s ease 0.16s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-visual {
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: rise-in 1.05s ease 0.22s both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

/* breadcrumb */
.crumb-trail {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.crumb-trail a {
  text-decoration: none;
  color: var(--ink-soft);
}

.crumb-trail a:hover {
  color: var(--rose);
}

.crumb-trail span {
  margin: 0 6px;
  opacity: 0.45;
}

/* content sections */
.story-flow {
  padding: 28px 0 64px;
  display: grid;
  gap: 28px;
}

.folio-block,
.glance-panel,
.text-river,
.mosaic-band {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 10px 30px rgba(21, 32, 43, 0.04);
}

.folio-block h2,
.glance-panel h2,
.text-river h2,
.mosaic-band h2,
.legal-sheet h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin: 0 0 14px;
  color: var(--ink);
}

.folio-block h3,
.text-river h3,
.mosaic-band h3,
.legal-sheet h3 {
  font-size: 1.12rem;
  margin: 22px 0 10px;
  color: var(--ink);
}

.folio-block p,
.text-river p,
.mosaic-band p,
.legal-sheet p,
.glance-panel p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.folio-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

.folio-split.is-flip .folio-media {
  order: 2;
}

.folio-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.folio-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  transition: transform 0.55s ease;
}

.folio-media:hover img {
  transform: scale(1.04);
}

.glance-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.glance-card {
  background: linear-gradient(160deg, #fff, var(--jade-soft));
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(31, 168, 154, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.glance-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.glance-card p {
  margin: 0;
  font-size: 0.95rem;
}

.mosaic-row {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.mosaic-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.mosaic-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

.pulse-cta {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(230, 57, 107, 0.12), rgba(31, 168, 154, 0.14)),
    #fff;
  border: 1px solid var(--line);
}

.pulse-cta h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
}

.btn-dy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-width: 168px;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(230, 57, 107, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dy:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(230, 57, 107, 0.34);
}

/* legal */
.legal-sheet {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  margin: 18px auto 64px;
  width: min(100% - 32px, var(--max));
}

.legal-sheet ul {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.legal-sheet li {
  margin-bottom: 8px;
}

/* error pages */
.error-stage {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.error-stage .code-glow {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(120deg, var(--rose), var(--jade));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-stage p {
  max-width: 28em;
  margin: 12px auto 20px;
  color: var(--ink-soft);
}

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 28px 0 40px;
  margin-top: auto;
}

.site-foot .wrap {
  display: grid;
  gap: 14px;
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.foot-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot-links a:hover {
  color: var(--rose);
}

.site-foot small {
  color: #6b7a88;
  font-size: 0.85rem;
}

/* responsive */
@media (min-width: 768px) {
  .sticky-dl-icons {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .folio-split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .folio-split.is-flip .folio-media {
    order: 0;
  }

  .folio-split.is-flip .folio-copy {
    order: 2;
  }

  .glance-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mosaic-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stage {
    padding: 64px 0 48px;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-drawer {
    position: absolute;
    top: var(--nav-h);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-drawer.is-open {
    display: flex;
  }

  .nav-drawer a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-drawer a:hover {
    background: var(--jade-soft);
  }

  .brand-rail {
    position: relative;
  }

  .brand-rail .wrap {
    width: 100%;
    padding-inline: 16px;
  }
}
