/* 哔咔漫画 b-c.mom — 墨粉二次元品牌站 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+KuaiLe&display=swap");

:root {
  --bkm-ink: #241018;
  --bkm-rose: #ff3d7f;
  --bkm-rose-deep: #d91a5c;
  --bkm-petal: #ffd6e6;
  --bkm-mist: #fff7fb;
  --bkm-cream: #fff0f5;
  --bkm-night: #140a10;
  --bkm-glass: rgba(255, 255, 255, 0.55);
  --bkm-line: rgba(255, 61, 127, 0.18);
  --bkm-shadow: 0 18px 40px rgba(217, 26, 92, 0.12);
  --bkm-radius: 22px;
  --bkm-max: 1080px;
  --bkm-nav-h: 58px;
  --bkm-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bkm-display: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
  --bkm-dock-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--bkm-font);
  color: var(--bkm-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 61, 127, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(255, 180, 210, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bkm-mist) 0%, #fff 40%, var(--bkm-cream) 100%);
  line-height: 1.75;
  min-height: 100vh;
  padding-top: var(--bkm-nav-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bkm-rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bkm-rose);
}

.bkm-wrap {
  width: min(100% - 32px, var(--bkm-max));
  margin-inline: auto;
}

/* 顶部推广区（随页面滚动，不固定悬浮） */
.bkm-promo {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 247, 251, 0.96) 100%);
  border-bottom: 1px solid var(--bkm-line);
  padding: 8px 0 6px;
}

.bkm-promo #ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  background: transparent;
  margin: 0;
}

.bkm-promo #ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.bkm-promo #ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bkm-promo #ads img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: #fff;
}

.bkm-promo #ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 0;
  line-height: 0;
}

.bkm-promo #ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.bkm-promo #ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* 导航 */
.bkm-halo-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--bkm-nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bkm-line);
  transition: box-shadow 0.25s ease;
}

.bkm-halo-nav.is-scrolled {
  box-shadow: 0 8px 28px rgba(36, 16, 24, 0.08);
}

.bkm-nav-inner {
  width: min(100% - 24px, var(--bkm-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bkm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bkm-ink);
}

.bkm-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 61, 127, 0.25);
}

.bkm-brand span {
  font-family: var(--bkm-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--bkm-rose-deep), #ff7aad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bkm-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bkm-menu a {
  text-decoration: none;
  color: var(--bkm-ink);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.2s, color 0.2s;
}

.bkm-menu a:hover,
.bkm-menu a.is-on {
  opacity: 1;
  color: var(--bkm-rose-deep);
}

.bkm-menu-toggle {
  display: none;
  border: none;
  background: var(--bkm-petal);
  color: var(--bkm-rose-deep);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* 滚动后：导航下方固定下载入口（移动 4/行，PC 8/行，自动换行） */
.bkm-dock {
  position: fixed;
  top: var(--bkm-nav-h);
  left: 0;
  right: 0;
  z-index: 1090;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bkm-line);
  padding: 8px 6px 6px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.bkm-dock.is-show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bkm-dock-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: var(--bkm-max);
  margin-inline: auto;
}

.bkm-dock-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #555;
  font-size: 11px;
  width: 25%;
  max-width: 25%;
  box-sizing: border-box;
  padding: 4px 2px;
}

.bkm-dock-grid img {
  width: 52px;
  height: 52px;
  border-radius: 0;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.bkm-dock-grid a:hover img {
  transform: translateY(-3px);
}

.bkm-dock-grid span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

body.bkm-dock-open {
  padding-top: calc(var(--bkm-nav-h) + var(--bkm-dock-h));
}

/* Hero */
.bkm-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
  isolation: isolate;
}

.bkm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 61, 127, 0.22), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255, 158, 196, 0.28), transparent 40%),
    repeating-radial-gradient(circle at 0 0, rgba(255, 61, 127, 0.06) 0 1px, transparent 1px 12px);
  z-index: -1;
  animation: bkm-drift 18s ease-in-out infinite alternate;
}

@keyframes bkm-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-2%, 1%); }
}

.bkm-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.bkm-hero-copy h1 {
  font-family: var(--bkm-display);
  font-size: clamp(1.7rem, 5.5vw, 2.55rem);
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--bkm-ink);
  font-weight: 400;
}

.bkm-hero-copy p {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(36, 16, 24, 0.78);
  max-width: 36em;
}

.bkm-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--bkm-shadow);
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #ffb6d0, #ff6b9d);
}

.bkm-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bkm-softzoom 12s ease-in-out infinite alternate;
}

@keyframes bkm-softzoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.bkm-hero-badge {
  position: absolute;
  inset: auto 16px 16px auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bkm-glass);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bkm-rose-deep);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: bkm-float 3.2s ease-in-out infinite;
}

@keyframes bkm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 面包屑 */
.bkm-crumb {
  padding: 18px 0 8px;
  font-size: 0.88rem;
  color: rgba(36, 16, 24, 0.65);
}

.bkm-crumb a {
  text-decoration: none;
  color: var(--bkm-rose-deep);
}

.bkm-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* 正文区块 */
.bkm-section {
  padding: 36px 0;
}

.bkm-section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 0 0 14px;
  line-height: 1.4;
  color: var(--bkm-ink);
}

.bkm-section h3 {
  font-size: 1.12rem;
  margin: 22px 0 10px;
  color: var(--bkm-rose-deep);
}

.bkm-section p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: rgba(36, 16, 24, 0.88);
}

.bkm-lead {
  font-size: 1.05rem;
  padding: 18px 20px;
  border-radius: var(--bkm-radius);
  background: linear-gradient(135deg, rgba(255, 214, 230, 0.65), rgba(255, 255, 255, 0.8));
  border: 1px solid var(--bkm-line);
  margin-bottom: 20px;
}

/* 图文混排 */
.bkm-split {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.bkm-split.is-flip .bkm-shot {
  order: -1;
}

.bkm-shot {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--bkm-shadow);
  background: #fff;
  border: 1px solid var(--bkm-line);
}

.bkm-shot img {
  width: 100%;
  display: block;
}

.bkm-shot figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: rgba(36, 16, 24, 0.6);
  background: rgba(255, 247, 251, 0.9);
}

/* 卡片网格 */
.bkm-mosaic {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.bkm-tile {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--bkm-line);
  border-radius: var(--bkm-radius);
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(217, 26, 92, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bkm-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--bkm-shadow);
}

.bkm-tile h3 {
  margin-top: 0;
}

.bkm-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff8ab8, var(--bkm-rose));
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* 图文卡片 */
.bkm-media-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--bkm-radius);
  border: 1px solid var(--bkm-line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 16, 24, 0.06);
  margin: 20px 0;
}

.bkm-media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.bkm-media-card .bkm-media-body {
  padding: 16px 18px 20px;
}

.bkm-media-card h3 {
  margin-top: 0;
}

/* 纯文本长文 */
.bkm-prose p {
  text-align: justify;
  text-justify: inter-ideograph;
}

.bkm-prose ul {
  padding-left: 1.2em;
  margin: 0 0 16px;
}

.bkm-prose li {
  margin-bottom: 8px;
}

/* 页脚 */
.bkm-foot {
  margin-top: 48px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 214, 230, 0.45));
  border-top: 1px solid var(--bkm-line);
}

.bkm-foot-grid {
  display: grid;
  gap: 22px;
}

.bkm-foot h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--bkm-ink);
}

.bkm-foot a {
  display: block;
  text-decoration: none;
  color: rgba(36, 16, 24, 0.75);
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.bkm-foot a:hover {
  color: var(--bkm-rose-deep);
}

.bkm-copy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--bkm-line);
  font-size: 0.82rem;
  color: rgba(36, 16, 24, 0.55);
  text-align: center;
}

/* 法律页 */
.bkm-legal {
  padding: 12px 0 40px;
}

.bkm-legal h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 8px 0 18px;
  font-family: var(--bkm-display);
  font-weight: 400;
}

.bkm-legal article {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--bkm-line);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 12px 32px rgba(217, 26, 92, 0.06);
}

/* 错误页 */
.bkm-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.bkm-error h1 {
  font-family: var(--bkm-display);
  font-size: clamp(2.4rem, 10vw, 4rem);
  margin: 0 0 8px;
  background: linear-gradient(120deg, var(--bkm-rose-deep), #ff8ab8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.bkm-error p {
  margin: 0 0 20px;
  color: rgba(36, 16, 24, 0.7);
}

.bkm-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bkm-rose), var(--bkm-rose-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(217, 26, 92, 0.28);
  transition: transform 0.2s ease;
}

.bkm-ghost-btn:hover {
  transform: translateY(-2px);
}

.bkm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  justify-content: center;
}

.bkm-inline-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b9d, #ff3d7f);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(255, 61, 127, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bkm-inline-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 61, 127, 0.38);
  color: #fff !important;
}

.bkm-note {
  font-size: 0.88rem;
  color: rgba(36, 16, 24, 0.55);
  margin-top: 8px;
}

/* 响应式 */
@media (min-width: 768px) {
  .bkm-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .bkm-split {
    grid-template-columns: 1fr 1fr;
  }

  .bkm-split.is-flip .bkm-shot {
    order: 0;
  }

  .bkm-split.is-flip .bkm-copy-side {
    order: -1;
  }

  .bkm-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .bkm-mosaic.is-triple {
    grid-template-columns: repeat(3, 1fr);
  }

  .bkm-media-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .bkm-media-card.is-rev {
    direction: rtl;
  }

  .bkm-media-card.is-rev > * {
    direction: ltr;
  }

  .bkm-media-card img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 220px;
  }

  .bkm-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .bkm-dock-grid {
    justify-content: center;
  }

  .bkm-dock-grid a {
    width: 25%;
    max-width: 120px;
  }

  .bkm-promo #ads img {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 720px) {
  .bkm-menu-toggle {
    display: grid;
    place-items: center;
  }

  .bkm-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--bkm-line);
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
    box-shadow: var(--bkm-shadow);
  }

  .bkm-menu.is-open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
