/* 哔咔漫画官网 — folio bloom theme (pi-ca.pics) */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ink: #2a1520;
  --ink-soft: #5c3a48;
  --rose: #ff4d78;
  --rose-deep: #d62f58;
  --mint: #2eb8a6;
  --mint-soft: #a8efe4;
  --cream: #fff7fb;
  --blush: #ffe4ee;
  --mist: #eef8ff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow: 0 18px 40px rgba(214, 47, 88, 0.12);
  --radius: 22px;
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang 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%, #ffd6e6 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c9f3ec 0%, transparent 50%),
    radial-gradient(800px 500px at 50% 100%, #dcecff 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #fff 40%, var(--mist) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--mint);
}

.folio-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— top ads promo (from bk.json) —— */
.folio-promo {
  background: linear-gradient(180deg, #fff0f5 0%, #ffe8f0 100%);
  border-bottom: 1px solid rgba(255, 77, 120, 0.16);
  padding: 0.65rem 0.75rem 0.45rem;
}

.folio-promo-inner {
  width: min(100% - 0.5rem, var(--max));
  margin-inline: auto;
}

.folio-promo-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--rose-deep);
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.folio-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  background: transparent;
  margin: 0;
}

.folio-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.folio-ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.folio-ads a {
  display: inline-block;
  border-radius: 15px;
  text-decoration: none;
}

.folio-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  background: linear-gradient(135deg, #fff, #fff);
}

.folio-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.folio-ads-cap {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* —— top nav —— */
.folio-topnav {
  position: sticky;
  top: 0;
  z-index: 80;
  --folio-nav-h: 58px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 247, 251, 0.78);
  border-bottom: 1px solid rgba(255, 77, 120, 0.12);
}

.folio-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.folio-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.folio-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(255, 77, 120, 0.25);
}

.folio-nav-links {
  display: none;
  gap: 1.25rem;
  align-items: center;
}

.folio-nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.folio-nav-links a:hover,
.folio-nav-links a.is-active {
  color: var(--rose);
}

.folio-menu-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 5px;
}

.folio-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.folio-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(42, 21, 32, 0.45);
  backdrop-filter: blur(4px);
}

.folio-drawer.is-open {
  display: block;
}

.folio-drawer-panel {
  margin-left: auto;
  width: min(78vw, 300px);
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--blush) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: folio-slide 0.28s ease;
}

@keyframes folio-slide {
  from {
    transform: translateX(30px);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.folio-drawer-panel a {
  color: var(--ink);
  font-size: 1.05rem;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px dashed rgba(255, 77, 120, 0.2);
}

/* —— sticky download dock (ads under nav) —— */
.folio-sticky-dl {
  position: sticky;
  top: var(--folio-nav-h, 58px);
  z-index: 70;
  display: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46, 184, 166, 0.22);
  box-shadow: 0 8px 20px rgba(42, 21, 32, 0.06);
  padding: 0.5rem 0.6rem;
}

.folio-sticky-dl.is-visible {
  display: block;
}

.folio-sticky-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: min(100% - 0.5rem, var(--max));
  margin-inline: auto;
  justify-items: center;
}

.folio-sticky-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  color: var(--ink-soft);
  width: 100%;
  max-width: 72px;
  text-decoration: none;
}

.folio-sticky-grid a:hover {
  color: var(--rose);
}

.folio-sticky-grid img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 21, 32, 0.12);
}

.folio-sticky-grid span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* —— hero —— */
.folio-hero {
  position: relative;
  padding: 2.2rem 0 1.5rem;
  overflow: hidden;
}

.folio-hero-bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 420px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 77, 120, 0.22), transparent 50%),
    radial-gradient(circle at 75% 30%, rgba(46, 184, 166, 0.2), transparent 45%);
  pointer-events: none;
  animation: folio-pulse 8s ease-in-out infinite alternate;
}

@keyframes folio-pulse {
  from {
    transform: scale(1);
    opacity: 0.85;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

.folio-hero-grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.folio-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.folio-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-weight: 400;
}

.folio-hero-lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34em;
}

.folio-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  aspect-ratio: 9 / 14;
  max-height: 520px;
  margin-inline: auto;
  width: min(100%, 320px);
}

.folio-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: folio-float 6s ease-in-out infinite;
}

@keyframes folio-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.folio-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42, 21, 32, 0.35));
  z-index: 1;
  pointer-events: none;
}

/* —— sections —— */
.folio-section {
  padding: 2.4rem 0;
}

.folio-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.35;
  font-weight: 400;
}

.folio-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.4rem 0 0.55rem;
  color: var(--rose-deep);
  font-weight: 400;
}

.folio-lead {
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  font-size: 0.98rem;
}

.folio-prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.folio-prose p:last-child {
  margin-bottom: 0;
}

/* glass panel */
.folio-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem;
}

/* split figure */
.folio-split {
  display: grid;
  gap: 1.35rem;
  align-items: center;
}

.folio-split.reverse .folio-shot {
  order: -1;
}

.folio-shot {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.9);
  max-width: 280px;
  margin-inline: auto;
}

.folio-shot img {
  width: 100%;
  display: block;
}

/* feature tiles */
.folio-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.folio-tile {
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(255, 77, 120, 0.12);
  box-shadow: 0 10px 28px rgba(42, 21, 32, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.folio-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 77, 120, 0.14);
}

.folio-tile h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

.folio-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.folio-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

/* ribbon band */
.folio-ribbon {
  background: linear-gradient(120deg, #2a1520 0%, #5a2040 50%, #1a4a45 100%);
  color: #ffe9f1;
  border-radius: 28px;
  padding: 1.8rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.folio-ribbon::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 77, 120, 0.25);
  top: -60px;
  right: -40px;
}

.folio-ribbon h2 {
  color: #fff;
  position: relative;
}

.folio-ribbon p {
  position: relative;
  margin: 0 0 0.9rem;
  color: rgba(255, 233, 241, 0.9);
}

.folio-ribbon a {
  color: var(--mint-soft);
  font-weight: 600;
}

/* mosaic gallery */
.folio-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.folio-mosaic figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.folio-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(42, 21, 32, 0.75));
}

.folio-mosaic img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* timeline */
.folio-timeline {
  display: grid;
  gap: 1rem;
  position: relative;
  padding-left: 1.2rem;
}

.folio-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--rose), var(--mint));
  border-radius: 2px;
}

.folio-time-item {
  position: relative;
  padding-left: 0.85rem;
}

.folio-time-item::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 77, 120, 0.2);
}

/* faq */
.folio-faq details {
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(46, 184, 166, 0.18);
}

.folio-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.folio-faq summary::-webkit-details-marker {
  display: none;
}

.folio-faq details p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* cta strip (not in hero) */
.folio-cta-band {
  text-align: center;
  padding: 2rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blush), var(--mint-soft));
  margin: 1rem 0;
}

.folio-cta-band h2 {
  margin-bottom: 0.5rem;
}

.folio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(214, 47, 88, 0.35);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.folio-btn:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* breadcrumb */
.folio-crumb {
  padding: 1rem 0 0.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.folio-crumb a {
  color: var(--ink-soft);
}

.folio-crumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* legal pages */
.folio-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0.4rem 0 1rem;
  font-weight: 400;
}

.folio-legal h2 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
  color: var(--rose-deep);
}

.folio-legal p,
.folio-legal li {
  color: var(--ink-soft);
}

.folio-legal ul {
  padding-left: 1.2rem;
}

/* error pages */
.folio-error {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.folio-error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--rose), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.folio-error h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0.5rem 0;
}

/* footer */
.folio-foot {
  margin-top: 2.5rem;
  padding: 2.2rem 0 2.5rem;
  background: #2a1520;
  color: rgba(255, 233, 241, 0.78);
}

.folio-foot a {
  color: #ffb3c7;
}

.folio-foot a:hover {
  color: var(--mint-soft);
}

.folio-foot-grid {
  display: grid;
  gap: 1.5rem;
}

.folio-foot h3 {
  font-family: var(--font-display);
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.folio-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.folio-foot li {
  margin-bottom: 0.45rem;
}

.folio-copy {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-align: center;
}

/* reveal animation */
.folio-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.folio-reveal.is-shown {
  opacity: 1;
  transform: none;
}

.folio-reveal.delay-1 {
  transition-delay: 0.1s;
}

.folio-reveal.delay-2 {
  transition-delay: 0.2s;
}

/* chip row */
.folio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.folio-chip {
  background: #fff;
  border: 1px solid rgba(255, 77, 120, 0.2);
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* quote block */
.folio-quote {
  border-left: 4px solid var(--mint);
  padding: 0.85rem 1rem;
  margin: 1.2rem 0;
  background: rgba(46, 184, 166, 0.08);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
}

/* dual column text */
.folio-columns {
  display: grid;
  gap: 1rem;
}

/* tablet+ */
@media (min-width: 720px) {
  .folio-nav-links {
    display: flex;
  }

  .folio-menu-btn {
    display: none;
  }

  .folio-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .folio-hero-visual {
    width: 100%;
    max-height: 560px;
  }

  .folio-split {
    grid-template-columns: 1fr 1.2fr;
  }

  .folio-split.reverse {
    grid-template-columns: 1.2fr 1fr;
  }

  .folio-split.reverse .folio-shot {
    order: 0;
  }

  .folio-shot {
    margin-inline: 0;
    max-width: 300px;
  }

  .folio-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .folio-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }

  .folio-sticky-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .folio-sticky-grid img {
    width: 52px;
    height: 52px;
  }

  .folio-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .folio-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .folio-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .folio-section {
    padding: 3rem 0;
  }
}
