@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --ink: #15202b;
  --ink-soft: #3a4a5a;
  --paper: #f5f8fc;
  --panel: rgba(255, 255, 255, 0.72);
  --rose: #ff4d6d;
  --rose-deep: #e03555;
  --teal: #1fbfa5;
  --teal-deep: #129882;
  --sun: #ffb347;
  --line: rgba(21, 32, 43, 0.08);
  --shadow: 0 18px 48px rgba(21, 32, 43, 0.12);
  --radius: 22px;
  --nav-h: 64px;
  --dock-gap: 12px;
  --max: 1120px;
  --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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 77, 109, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 191, 165, 0.16), transparent 50%),
    linear-gradient(180deg, #eef4fb 0%, var(--paper) 38%, #eef7f4 100%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rose-deep);
}

.bloom-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Top promo: ads icon grid from bk.json */
.bloom-promo {
  position: relative;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
}

.bloom-promo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.bloom-promo-tile {
  width: 70px;
  text-decoration: none;
  color: var(--ink-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bloom-promo-tile img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bloom-promo-tile:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.bloom-promo-tile:hover {
  color: var(--ink);
}

.bloom-promo-tile b {
  font-size: 11px;
  font-weight: 500;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nav */
.bloom-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(245, 248, 252, 0.78);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}

.bloom-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bloom-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.bloom-nav__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.25);
}

.bloom-nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.bloom-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.bloom-nav__menu {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bloom-nav__menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.bloom-nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.bloom-nav__menu a:hover,
.bloom-nav__menu a.is-active {
  color: var(--ink);
}

.bloom-nav__menu a:hover::after,
.bloom-nav__menu a.is-active::after {
  transform: scaleX(1);
}

/* Sticky download rail under nav (scroll reveal, no overlay) */
.bloom-dl-rail {
  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.28s ease, padding 0.28s ease;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bloom-dl-rail.is-show {
  max-height: 240px;
  opacity: 1;
  pointer-events: auto;
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.08);
}

body.has-dock {
  scroll-padding-top: 180px;
}

.bloom-dl-rail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dock-gap);
  justify-items: center;
}

.bloom-rail-chip {
  text-decoration: none;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.bloom-rail-chip img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(21, 32, 43, 0.12);
  background: #fff;
}

.bloom-rail-chip span {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bloom-rail-chip:hover {
  transform: translateY(-3px);
  color: var(--ink);
}

@media (min-width: 900px) {
  .bloom-dl-rail-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .bloom-rail-chip img {
    width: 56px;
    height: 56px;
  }
}

/* Hero */
.bloom-hero {
  position: relative;
  min-height: clamp(520px, 88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.bloom-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(21, 32, 43, 0.55) 0%, rgba(21, 32, 43, 0.15) 48%, rgba(255, 77, 109, 0.25) 100%),
    url("shot-comic-update.jpg") center/cover no-repeat;
  transform: scale(1.02);
  animation: bloom-pan 18s ease-in-out infinite alternate;
}

.bloom-hero__glow {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 191, 165, 0.35), transparent 65%);
  z-index: -1;
  filter: blur(8px);
  animation: bloom-float 8s ease-in-out infinite;
}

.bloom-hero__content {
  padding: 48px 0 56px;
  color: #fff;
  max-width: 720px;
}

.bloom-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 92px);
  line-height: 1.05;
  margin: 0 0 12px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.06em;
}

.bloom-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}

.bloom-hero__lead {
  margin: 0 0 22px;
  font-size: 16px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.92);
}

.bloom-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bloom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bloom-btn--solid {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.bloom-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.bloom-btn:hover {
  transform: translateY(-2px);
}

/* Sections */
.bloom-section {
  padding: 56px 0;
}

.bloom-section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

.bloom-section__sub {
  margin: 0 0 28px;
  color: var(--ink-soft);
  max-width: 46em;
}

.bloom-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.1);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Text blocks */
.bloom-prose p {
  margin: 0 0 1.1em;
  color: var(--ink-soft);
  font-size: 16px;
  text-align: justify;
}

.bloom-prose h2,
.bloom-prose h3 {
  color: var(--ink);
  margin: 1.4em 0 0.6em;
}

.bloom-prose h2 {
  font-size: 26px;
}

.bloom-prose h3 {
  font-size: 20px;
}

/* Split media */
.bloom-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .bloom-split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .bloom-split--flip {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .bloom-split--flip .bloom-split__media {
    order: -1;
  }
}

.bloom-split__media {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.bloom-split__media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.bloom-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(21, 32, 43, 0.18));
  pointer-events: none;
}

.bloom-glass {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

/* Cards */
.bloom-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .bloom-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .bloom-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bloom-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bloom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bloom-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.bloom-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.bloom-card--media img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

/* Ribbon feature */
.bloom-ribbon {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 77, 109, 0.12), rgba(31, 191, 165, 0.14)),
    #fff;
  border: 1px solid var(--line);
}

.bloom-ribbon__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.bloom-ribbon__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #ff8a5b);
  box-shadow: 0 8px 18px rgba(255, 77, 109, 0.28);
}

.bloom-ribbon__item:nth-child(2n) .bloom-ribbon__num {
  background: linear-gradient(135deg, var(--teal), #5ad6c4);
  box-shadow: 0 8px 18px rgba(31, 191, 165, 0.28);
}

.bloom-ribbon h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.bloom-ribbon p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Mosaic */
.bloom-mosaic {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .bloom-mosaic {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .bloom-mosaic__big {
    grid-row: span 2;
  }
}

.bloom-mosaic figure {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}

.bloom-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.bloom-mosaic figure:hover img {
  transform: scale(1.04);
}

.bloom-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}

/* Timeline */
.bloom-timeline {
  position: relative;
  padding-left: 22px;
}

.bloom-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--rose), var(--teal));
}

.bloom-timeline__item {
  position: relative;
  margin-bottom: 22px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.bloom-timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
}

.bloom-timeline__item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.bloom-timeline__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Quote band */
.bloom-quote {
  margin: 0;
  padding: 36px 28px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(120deg, #15202b, #243746);
  color: #fff;
  box-shadow: var(--shadow);
}

.bloom-quote p {
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.6;
  font-weight: 500;
}

.bloom-quote footer {
  margin-top: 14px;
  opacity: 0.75;
  font-size: 13px;
}

/* Breadcrumb */
.bloom-crumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.bloom-crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.bloom-crumb a:hover {
  color: var(--rose-deep);
}

.bloom-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Legal / sub pages */
.bloom-page-hero {
  padding: 36px 0 10px;
}

.bloom-page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: 0.04em;
}

.bloom-page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42em;
}

.bloom-legal {
  padding: 28px 0 64px;
}

.bloom-legal .bloom-glass + .bloom-glass {
  margin-top: 18px;
}

.bloom-legal h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.bloom-legal h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.bloom-legal p,
.bloom-legal li {
  color: var(--ink-soft);
  font-size: 15px;
}

.bloom-legal ul {
  padding-left: 1.2em;
}

/* Error pages */
.bloom-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.bloom-error__code {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 140px);
  line-height: 1;
  background: linear-gradient(120deg, var(--rose), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.bloom-error h1 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.bloom-error p {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

/* Footer */
.bloom-footer {
  margin-top: 40px;
  padding: 40px 0 28px;
  background: #13202c;
  color: rgba(255, 255, 255, 0.78);
}

.bloom-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.bloom-footer a:hover {
  color: #fff;
}

.bloom-footer__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .bloom-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.bloom-footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  margin: 0 0 10px;
}

.bloom-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.bloom-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bloom-footer li {
  margin-bottom: 8px;
  font-size: 14px;
}

.bloom-footer__copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.7;
}

/* Reveal motion */
.bloom-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.bloom-reveal.is-in {
  opacity: 1;
  transform: none;
}

.bloom-reveal-delay-1 {
  transition-delay: 0.1s;
}

.bloom-reveal-delay-2 {
  transition-delay: 0.2s;
}

@keyframes bloom-pan {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes bloom-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-20px, -16px, 0);
  }
}

/* Mobile nav */
@media (max-width: 820px) {
  .bloom-nav__toggle {
    display: inline-block;
  }

  .bloom-nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(21, 32, 43, 0.1);
  }

  .bloom-nav__menu.is-open {
    display: flex;
  }

  .bloom-nav__menu a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
