/* 哔咔漫画 · BloomInk 视觉体系 — picas.lat */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --bi-ink: #141821;
  --bi-muted: #5a6474;
  --bi-paper: #f4f8fb;
  --bi-mist: #e4f0f5;
  --bi-blush: #ffe8ef;
  --bi-sakura: #ff4d8d;
  --bi-sakura-deep: #e01f66;
  --bi-teal: #00b3a8;
  --bi-teal-deep: #008f86;
  --bi-amber: #ffb020;
  --bi-glass: rgba(255, 255, 255, 0.55);
  --bi-glass-edge: rgba(255, 255, 255, 0.75);
  --bi-shadow: 0 18px 48px rgba(20, 24, 33, 0.12);
  --bi-radius: 22px;
  --bi-max: 1080px;
  --bi-nav-h: 64px;
  --bi-promo-gap: 12px;
  --bi-font-display: "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
  --bi-font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bi-font-body);
  color: var(--bi-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 179, 168, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(255, 77, 141, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bi-mist) 0%, var(--bi-paper) 38%, var(--bi-blush) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--bi-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--bi-sakura-deep);
}

ul,
ol {
  padding-left: 1.2em;
}

/* —— 顶部推广条 —— */
.bi-promo {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 24, 33, 0.06);
  padding: 10px 8px 6px;
}

.bi-promo-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  max-width: var(--bi-max);
  margin: 0 auto;
}

.bi-promo-rail > div {
  width: 72px;
  text-align: center;
}

.bi-promo-rail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(20, 24, 33, 0.12);
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.bi-promo-rail a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.bi-promo-rail .caption {
  font-size: 11px;
  color: var(--bi-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 顶栏 —— */
.bi-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--bi-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(244, 248, 251, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 24, 33, 0.07);
}

.bi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bi-ink);
}

.bi-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.25);
}

.bi-brand-name {
  font-family: var(--bi-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.bi-nav {
  display: none;
  gap: 18px;
  align-items: center;
}

.bi-nav a {
  text-decoration: none;
  color: var(--bi-ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

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

.bi-burger {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--bi-glass);
  display: grid;
  place-items: center;
  cursor: pointer;
  gap: 5px;
}

.bi-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bi-ink);
  border-radius: 2px;
  transition: 0.25s ease;
}

.bi-drawer {
  display: none;
  position: fixed;
  inset: var(--bi-nav-h) 0 auto 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px;
  z-index: 75;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid rgba(20, 24, 33, 0.08);
}

.bi-drawer.is-open {
  display: flex;
}

.bi-drawer a {
  text-decoration: none;
  color: var(--bi-ink);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 179, 168, 0.08), rgba(255, 77, 141, 0.08));
}

/* —— 滚动后固定下载条 —— */
.bi-dock {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--bi-nav-h);
  z-index: 70;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: rgba(20, 24, 33, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 6px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.bi-dock-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  max-width: var(--bi-max);
  margin: 0 auto;
}

.bi-dock-rail > div {
  width: calc(25% - 6px);
  max-width: 78px;
  text-align: center;
}

.bi-dock-rail img {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.bi-dock-rail .caption {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 布局 —— */
.bi-wrap {
  width: min(100% - 28px, var(--bi-max));
  margin: 0 auto;
}

.bi-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.bi-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 77, 141, 0.22), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(0, 179, 168, 0.2), transparent 40%);
  filter: blur(8px);
  pointer-events: none;
  animation: bi-float 12s ease-in-out infinite alternate;
}

@keyframes bi-float {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(18px) scale(1.05); }
}

.bi-hero-inner {
  position: relative;
  text-align: center;
  padding: 28px 18px 36px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  border: 1px solid var(--bi-glass-edge);
  box-shadow: var(--bi-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.bi-hero-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(255, 77, 141, 0.3);
  animation: bi-pulse 3.2s ease-in-out infinite;
}

@keyframes bi-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bi-hero h1 {
  font-family: var(--bi-font-display);
  font-size: clamp(1.7rem, 5.5vw, 2.55rem);
  line-height: 1.35;
  margin-bottom: 12px;
  background: linear-gradient(105deg, var(--bi-ink) 20%, var(--bi-sakura-deep) 55%, var(--bi-teal-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bi-hero-lead {
  color: var(--bi-muted);
  font-size: 0.98rem;
  max-width: 36em;
  margin: 0 auto;
}

.bi-crumb {
  padding: 18px 0 6px;
  font-size: 0.88rem;
  color: var(--bi-muted);
}

.bi-crumb a {
  text-decoration: none;
  color: var(--bi-teal-deep);
}

.bi-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* —— 内容模块 —— */
.bi-section {
  padding: 36px 0;
}

.bi-section h2 {
  font-family: var(--bi-font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.bi-section h2::after {
  content: "";
  display: block;
  width: 48%;
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bi-sakura), var(--bi-teal));
}

.bi-section h3 {
  font-size: 1.12rem;
  margin: 22px 0 10px;
  color: var(--bi-ink);
}

.bi-prose p {
  margin-bottom: 1em;
  color: #2a3342;
  font-size: 0.98rem;
}

.bi-prose p:last-child {
  margin-bottom: 0;
}

/* 图文交替 */
.bi-split {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.bi-frame {
  border-radius: var(--bi-radius);
  overflow: hidden;
  box-shadow: var(--bi-shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}

.bi-frame:nth-child(even),
.bi-split:nth-child(even) .bi-frame {
  transform: rotate(1.2deg);
}

.bi-frame:hover {
  transform: rotate(0) scale(1.02);
}

.bi-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

/* 卡片网格 */
.bi-cards {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.bi-card {
  padding: 20px 18px;
  border-radius: 20px;
  background: var(--bi-glass);
  border: 1px solid var(--bi-glass-edge);
  box-shadow: 0 10px 28px rgba(20, 24, 33, 0.06);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 24, 33, 0.1);
}

.bi-card h3 {
  margin-top: 0;
  font-family: var(--bi-font-display);
}

.bi-card p {
  color: var(--bi-muted);
  font-size: 0.94rem;
  margin-top: 8px;
}

.bi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bi-teal-deep);
  background: rgba(0, 179, 168, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.bi-chip.is-sakura {
  color: var(--bi-sakura-deep);
  background: rgba(255, 77, 141, 0.12);
}

/* 混排画廊 */
.bi-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.bi-mosaic figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 24, 33, 0.08);
}

.bi-mosaic img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.bi-mosaic figcaption {
  font-size: 0.78rem;
  padding: 8px 10px;
  color: var(--bi-muted);
}

/* CTA */
.bi-cta-band {
  margin: 40px 0;
  padding: 28px 20px;
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(125deg, rgba(255, 77, 141, 0.92), rgba(0, 179, 168, 0.88));
  color: #fff;
  box-shadow: 0 20px 40px rgba(224, 31, 102, 0.25);
  position: relative;
  overflow: hidden;
}

.bi-cta-band::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -40px;
  top: -60px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: bi-float 8s ease-in-out infinite alternate;
}

.bi-cta-band h2,
.bi-cta-band h2::after {
  color: #fff;
  background: none;
}

.bi-cta-band h2::after {
  background: rgba(255, 255, 255, 0.55);
}

.bi-cta-band p {
  color: rgba(255, 255, 255, 0.92);
  margin: 10px auto 18px;
  max-width: 30em;
}

.bi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--bi-sakura-deep);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 24, 33, 0.15);
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.bi-btn:hover {
  transform: scale(1.04);
  color: var(--bi-teal-deep);
}

.bi-btn-ghost {
  background: transparent;
  color: var(--bi-ink);
  border: 2px solid rgba(20, 24, 33, 0.15);
  box-shadow: none;
}

/* 法律页 */
.bi-legal {
  padding: 12px 0 48px;
}

.bi-legal article {
  padding: 24px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--bi-glass-edge);
  box-shadow: var(--bi-shadow);
}

.bi-legal h1 {
  font-family: var(--bi-font-display);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.bi-legal .bi-updated {
  color: var(--bi-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.bi-legal h2 {
  font-size: 1.2rem;
  margin: 26px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--bi-sakura);
}

.bi-legal p,
.bi-legal li {
  color: #2a3342;
  margin-bottom: 0.85em;
  font-size: 0.96rem;
}

/* 错误页 */
.bi-error {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.bi-error-code {
  font-family: var(--bi-font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--bi-sakura), var(--bi-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bi-pulse 2.8s ease-in-out infinite;
}

.bi-error h1 {
  font-size: 1.4rem;
  margin: 12px 0;
}

.bi-error p {
  color: var(--bi-muted);
  margin-bottom: 20px;
}

.bi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* 页脚 */
.bi-foot {
  margin-top: 48px;
  padding: 36px 0 120px;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 33, 0.92));
  color: rgba(255, 255, 255, 0.88);
}

.bi-foot a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.bi-foot a:hover {
  color: var(--bi-amber);
}

.bi-foot-grid {
  display: grid;
  gap: 22px;
}

.bi-foot h3 {
  font-family: var(--bi-font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.bi-foot ul {
  list-style: none;
  padding: 0;
}

.bi-foot li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.bi-foot-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* 亮点条 */
.bi-ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 4px;
  margin: 18px 0;
  scrollbar-width: none;
}

.bi-ribbon::-webkit-scrollbar {
  display: none;
}

.bi-ribbon span {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(20, 24, 33, 0.08);
  box-shadow: 0 4px 12px rgba(20, 24, 33, 0.05);
}

/* 时间轴 */
.bi-timeline {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 3px solid rgba(255, 77, 141, 0.35);
}

.bi-timeline li {
  list-style: none;
  margin-bottom: 18px;
  position: relative;
  padding-left: 8px;
}

.bi-timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bi-sakura), var(--bi-teal));
  box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.15);
}

/* 问答块 */
.bi-qa {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border-left: 4px solid var(--bi-teal);
}

.bi-qa strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bi-ink);
}

/* 桌面适配 */
@media (min-width: 768px) {
  .bi-burger {
    display: none;
  }

  .bi-nav {
    display: flex;
  }

  .bi-split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
  }

  .bi-split.is-flip {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .bi-split.is-flip .bi-frame {
    order: 2;
  }

  .bi-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .bi-cards.is-two {
    grid-template-columns: repeat(2, 1fr);
  }

  .bi-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }

  .bi-dock-rail > div {
    width: calc(12.5% - 6px);
  }

  .bi-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .bi-frame img {
    max-height: 560px;
  }
}

@media (min-width: 1024px) {
  .bi-hero-inner {
    padding: 48px 40px 56px;
  }

  body.has-dock-pad {
    padding-bottom: 0;
  }
}
