/* 哔咔漫画 b-c.pics — Ink Bloom 主题（独立原创） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
  --bloom-ink: #132238;
  --bloom-rose: #ff4d6d;
  --bloom-petal: #ff8fa3;
  --bloom-mist: #f3f8fc;
  --bloom-sky: #d6ecf7;
  --bloom-teal: #1ec8b8;
  --bloom-deep: #0a1628;
  --bloom-glass: rgba(255, 255, 255, 0.68);
  --bloom-line: rgba(19, 34, 56, 0.08);
  --bloom-shadow: 0 18px 40px rgba(19, 34, 56, 0.12);
  --bloom-radius: 22px;
  --bloom-nav-h: 64px;
  --bloom-promo-gap: 12px;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--bloom-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe3ea 0%, transparent 55%),
    radial-gradient(900px 500px at 95% 5%, #c8f5ef 0%, transparent 50%),
    linear-gradient(180deg, var(--bloom-mist) 0%, #eef6fb 45%, #f7fbfe 100%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--bloom-rose);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--bloom-teal);
}

.bloom-wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* —— 顶部推广区 —— */
.bloom-promo {
  background: linear-gradient(90deg, #fff5f7, #eefaf8);
  border-bottom: 1px solid var(--bloom-line);
  padding: 10px 0 6px;
}

.bloom-promo-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.bloom-promo-item {
  width: 70px;
  text-align: center;
}

.bloom-promo-item a {
  display: inline-block;
  border-radius: 16px;
}

.bloom-promo-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(19, 34, 56, 0.12);
  transition: transform 0.2s ease;
}

.bloom-promo-item img:hover {
  transform: translateY(-3px) scale(1.04);
}

.bloom-promo-item span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #667788;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— 导航 —— */
.bloom-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bloom-nav-h);
  backdrop-filter: blur(16px);
  background: rgba(243, 248, 252, 0.86);
  border-bottom: 1px solid var(--bloom-line);
}

.bloom-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bloom-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bloom-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.bloom-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.25);
}

.bloom-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
}

.bloom-menu a {
  color: var(--bloom-ink);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.82;
}

.bloom-menu a:hover,
.bloom-menu a.is-on {
  color: var(--bloom-rose);
  opacity: 1;
}

.bloom-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bloom-line);
  border-radius: 12px;
  background: var(--bloom-glass);
  cursor: pointer;
}

.bloom-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--bloom-ink);
}

/* —— 滚动后固定下载条 —— */
.bloom-sticky-dl {
  position: sticky;
  top: var(--bloom-nav-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bloom-line);
  box-shadow: 0 8px 24px rgba(19, 34, 56, 0.08);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
  padding: 0;
}

.bloom-sticky-dl.is-show {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0;
}

.bloom-sticky-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
  width: min(1120px, 94%);
  margin: 0 auto;
}

.bloom-sticky-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 72px;
}

.bloom-sticky-grid img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(19, 34, 56, 0.12);
}

.bloom-sticky-grid span {
  margin-top: 3px;
  font-size: 10px;
  color: #778899;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Hero —— */
.bloom-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.bloom-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 77, 109, 0.12), transparent 40%),
    linear-gradient(300deg, rgba(30, 200, 184, 0.14), transparent 42%),
    url("anime-home-screen.jpg") center / cover no-repeat;
  filter: saturate(1.05);
  opacity: 0.28;
  z-index: 0;
}

.bloom-hero-panel {
  position: relative;
  z-index: 1;
  padding: 36px 28px;
  border-radius: 28px;
  background: var(--bloom-glass);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--bloom-shadow);
  animation: bloom-rise 0.8s ease both;
}

.bloom-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 14px;
  background: linear-gradient(92deg, var(--bloom-ink) 20%, var(--bloom-rose) 70%, var(--bloom-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bloom-hero-lead {
  font-size: 1.05rem;
  color: #3a5168;
  max-width: 40em;
}

.bloom-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bloom-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 77, 109, 0.1);
  color: var(--bloom-rose);
  border: 1px solid rgba(255, 77, 109, 0.18);
}

/* —— 主体结构 —— */
.bloom-main {
  padding: 12px 0 64px;
}

.bloom-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  color: #6a7f93;
  margin: 18px 0 22px;
}

.bloom-crumb a {
  color: #4a6278;
}

.bloom-crumb span {
  opacity: 0.45;
}

.bloom-section {
  margin: 42px 0;
  animation: bloom-fade 0.7s ease both;
}

.bloom-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin-bottom: 14px;
  position: relative;
  padding-left: 14px;
}

.bloom-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 5px;
  height: 0.9em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--bloom-rose), var(--bloom-teal));
}

.bloom-section h3 {
  font-size: 1.12rem;
  margin: 22px 0 10px;
  color: #1c334d;
}

.bloom-section p {
  margin-bottom: 14px;
  color: #2b4056;
  text-align: justify;
}

.bloom-section ul,
.bloom-section ol {
  margin: 10px 0 16px 1.2em;
  color: #2b4056;
}

.bloom-section li {
  margin-bottom: 8px;
}

/* 图文交替 */
.bloom-duo {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.bloom-duo.reverse {
  direction: rtl;
}

.bloom-duo.reverse > * {
  direction: ltr;
}

.bloom-shot {
  border-radius: var(--bloom-radius);
  overflow: hidden;
  box-shadow: var(--bloom-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
  position: relative;
}

.bloom-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

.bloom-shot.wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
}

.bloom-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(19, 34, 56, 0.18));
  pointer-events: none;
}

/* 卡片 */
.bloom-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.bloom-card {
  background: var(--bloom-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(19, 34, 56, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bloom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(19, 34, 56, 0.12);
}

.bloom-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.bloom-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.bloom-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(30, 200, 184, 0.18));
  font-size: 1.2rem;
}

/* 排行条 */
.bloom-rank {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.bloom-rank li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--bloom-line);
}

.bloom-rank .n {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--bloom-rose), #ff8fa3);
}

.bloom-rank li:nth-child(2) .n {
  background: linear-gradient(135deg, #1ec8b8, #7ee8df);
}

.bloom-rank li:nth-child(3) .n {
  background: linear-gradient(135deg, #5b8def, #9bb8f5);
}

.bloom-rank .tag {
  font-size: 0.78rem;
  color: #6a8096;
}

/* CTA 下载区（非 hero/nav） */
.bloom-cta {
  margin: 36px 0;
  padding: 28px 24px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255, 77, 109, 0.12), rgba(30, 200, 184, 0.14)),
    rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-align: center;
  box-shadow: var(--bloom-shadow);
}

.bloom-cta h2 {
  padding-left: 0;
  justify-content: center;
}

.bloom-cta h2::before {
  display: none;
}

.bloom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, var(--bloom-rose), #ff7a92 45%, var(--bloom-teal));
  background-size: 160% 160%;
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.28);
  animation: bloom-glow 4s ease-in-out infinite;
}

.bloom-btn:hover {
  filter: brightness(1.05);
}

.bloom-text-panel {
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--bloom-line);
  margin: 18px 0;
}

.bloom-quote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--bloom-teal);
  background: rgba(30, 200, 184, 0.08);
  border-radius: 0 14px 14px 0;
  color: #355066;
  font-style: normal;
}

/* 法律页 */
.bloom-legal {
  padding: 8px 0 40px;
}

.bloom-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 8px;
}

.bloom-legal .lede {
  color: #5a7288;
  margin-bottom: 24px;
}

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

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

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

.bloom-error p {
  color: #5a7288;
  max-width: 28em;
  margin: 0 auto 18px;
}

.bloom-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.bloom-link-row a {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--bloom-line);
  color: var(--bloom-ink);
}

/* Footer */
.bloom-foot {
  background: var(--bloom-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0 24px;
  margin-top: 20px;
}

.bloom-foot a {
  color: #9fe8df;
}

.bloom-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

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

.bloom-foot ul {
  list-style: none;
}

.bloom-foot li {
  margin-bottom: 8px;
}

.bloom-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* 动画 */
@keyframes bloom-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bloom-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bloom-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes bloom-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.03);
    filter: saturate(1.15);
  }
}

.bloom-float {
  animation: bloom-rise 0.9s ease both;
}

/* 响应式 */
@media (max-width: 960px) {
  .bloom-duo,
  .bloom-duo.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .bloom-card-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .bloom-sticky-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bloom-burger {
    display: grid;
    place-items: center;
  }

  .bloom-menu {
    display: none;
    position: absolute;
    top: var(--bloom-nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bloom-line);
    padding: 8px 0;
  }

  .bloom-menu.is-open {
    display: flex;
  }

  .bloom-menu li a {
    display: block;
    padding: 12px 6%;
  }

  .bloom-card-grid {
    grid-template-columns: 1fr;
  }

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

  .bloom-hero-panel {
    padding: 26px 18px;
  }

  .bloom-shot img {
    max-height: 420px;
  }
}
