/* 哔咔漫画 · bloom 视觉系统 · 珊瑚雾与墨青 */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Serif+SC:wght@400;600;700&display=swap");

:root {
  --bloom-ink: #15202b;
  --bloom-ink-soft: #3d4f5f;
  --bloom-coral: #ff4d6d;
  --bloom-coral-deep: #e11d48;
  --bloom-teal: #0f766e;
  --bloom-mint: #5eead4;
  --bloom-blush: #ffe4ec;
  --bloom-sky: #dbeafe;
  --bloom-paper: #f8fbfd;
  --bloom-glass: rgba(255, 255, 255, 0.68);
  --bloom-line: rgba(21, 32, 43, 0.08);
  --bloom-shadow: 0 18px 48px rgba(21, 32, 43, 0.1);
  --bloom-radius: 22px;
  --bloom-nav-h: 64px;
  --bloom-promo-h: auto;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--bloom-ink);
  background: var(--bloom-paper);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--bloom-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

/* 背景氛围 */
.bloom-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 109, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(94, 234, 212, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(219, 234, 254, 0.55), transparent 55%),
    linear-gradient(165deg, #eef7fa 0%, #fff6f8 38%, #f3fbf8 72%, #eef4ff 100%);
}

.bloom-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff4d6d' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 顶部推广 */
#bloom-promo {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bloom-line);
  padding: 10px 0;
}

.bloom-promo-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.bloom-promo-inner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  text-decoration: none;
  color: var(--bloom-ink-soft);
  font-size: 11px;
}

.bloom-promo-inner img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(21, 32, 43, 0.12);
  transition: transform 0.2s ease;
}

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

.bloom-promo-inner span {
  margin-top: 4px;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 导航 */
.bloom-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bloom-nav-h);
  display: flex;
  align-items: center;
  background: rgba(248, 251, 253, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--bloom-line);
}

.bloom-nav-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

.bloom-brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.bloom-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bloom-nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--bloom-ink-soft);
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.bloom-nav-links a:hover,
.bloom-nav-links a.is-current {
  background: var(--bloom-blush);
  color: var(--bloom-coral-deep);
}

.bloom-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bloom-line);
  border-radius: 12px;
  background: var(--bloom-glass);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.bloom-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bloom-ink);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* Hero — 品牌主导，无下载按钮 */
.bloom-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: 48px 0 72px;
  overflow: hidden;
}

.bloom-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bloom-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.02);
}

.bloom-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 32, 43, 0.15) 0%,
    rgba(21, 32, 43, 0.25) 40%,
    rgba(248, 251, 253, 0.92) 88%,
    var(--bloom-paper) 100%
  );
}

.bloom-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  max-width: 640px;
  animation: bloomRise 0.9s ease both;
}

.bloom-hero-copy .bloom-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  line-height: 1.15;
  color: var(--bloom-ink);
  margin: 0 0 12px;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.8);
}

.bloom-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--bloom-ink);
  line-height: 1.45;
}

.bloom-hero-copy p {
  margin: 0;
  color: var(--bloom-ink-soft);
  font-size: 1.02rem;
  max-width: 36em;
}

@keyframes bloomRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 面包屑 */
.bloom-crumb {
  width: min(1120px, 92vw);
  margin: 20px auto 0;
  font-size: 0.88rem;
  color: var(--bloom-ink-soft);
}

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

.bloom-crumb span {
  margin: 0 6px;
  opacity: 0.45;
}

/* 区块 */
.bloom-section {
  padding: 56px 0;
}

.bloom-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--bloom-ink);
}

.bloom-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 28px 0 10px;
  color: var(--bloom-ink);
}

.bloom-lead {
  color: var(--bloom-ink-soft);
  margin: 0 0 28px;
  max-width: 42em;
}

.bloom-prose p {
  margin: 0 0 1.15em;
  color: var(--bloom-ink-soft);
  text-align: justify;
}

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

/* 图文交错 */
.bloom-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.bloom-split.is-flip {
  direction: rtl;
}

.bloom-split.is-flip > * {
  direction: ltr;
}

.bloom-shot {
  position: relative;
  border-radius: var(--bloom-radius);
  overflow: hidden;
  box-shadow: var(--bloom-shadow);
  background: #fff;
}

.bloom-shot img {
  width: 100%;
  display: block;
}

.bloom-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

.bloom-shot.is-tilt {
  transform: rotate(-1.5deg);
}

.bloom-shot.is-tilt-r {
  transform: rotate(1.8deg);
}

/* 卡片网格 — 仅用于交互/信息分组 */
.bloom-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.bloom-tile {
  background: var(--bloom-glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(21, 32, 43, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bloom-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(21, 32, 43, 0.1);
}

.bloom-tile h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.bloom-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--bloom-ink-soft);
}

.bloom-tile .bloom-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--bloom-blush), var(--bloom-sky));
  color: var(--bloom-coral-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* 混排图文带 */
.bloom-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.bloom-ribbon-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
}

.bloom-ribbon-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.bloom-ribbon-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(transparent, rgba(21, 32, 43, 0.78));
  color: #fff;
  font-size: 0.95rem;
}

/* 列表节奏 */
.bloom-list {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.bloom-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--bloom-ink-soft);
  border-bottom: 1px dashed var(--bloom-line);
}

.bloom-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bloom-coral), var(--bloom-mint));
}

/* CTA 下载区（非 hero / 非 nav） */
.bloom-cta-band {
  margin: 40px 0;
  padding: 36px 28px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(255, 77, 109, 0.12), rgba(15, 118, 110, 0.1));
  border: 1px solid rgba(255, 77, 109, 0.15);
  text-align: center;
}

.bloom-cta-band h2 {
  margin-bottom: 8px;
}

.bloom-cta-band p {
  margin: 0 auto 20px;
  max-width: 36em;
  color: var(--bloom-ink-soft);
}

.bloom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bloom-coral), var(--bloom-coral-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bloom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.35);
}

.bloom-btn.is-ghost {
  background: transparent;
  color: var(--bloom-coral-deep) !important;
  border: 1.5px solid var(--bloom-coral);
  box-shadow: none;
  margin-left: 10px;
}

/* 揭示动画 */
.bloom-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.bloom-reveal.is-in {
  opacity: 1;
  transform: none;
}

.bloom-reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.bloom-reveal:nth-child(3) {
  transition-delay: 0.12s;
}

/* 页脚 */
.bloom-foot {
  margin-top: 48px;
  padding: 48px 0 120px;
  background: linear-gradient(180deg, transparent, rgba(21, 32, 43, 0.04));
  border-top: 1px solid var(--bloom-line);
}

.bloom-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.bloom-foot h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.bloom-foot p,
.bloom-foot a {
  color: var(--bloom-ink-soft);
  font-size: 0.92rem;
}

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

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

.bloom-foot a {
  text-decoration: none;
}

.bloom-foot a:hover {
  color: var(--bloom-coral-deep);
}

.bloom-copy {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--bloom-line);
  font-size: 0.85rem;
  color: var(--bloom-ink-soft);
  text-align: center;
}

/* 固定下载坞 */
#bloom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(248, 251, 253, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--bloom-line);
  box-shadow: 0 -8px 32px rgba(21, 32, 43, 0.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}

#bloom-dock.is-visible {
  transform: translateY(0);
}

.bloom-dock-label {
  text-align: center;
  font-size: 12px;
  color: var(--bloom-ink-soft);
  margin-bottom: 6px;
}

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

.bloom-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--bloom-ink-soft);
  width: 100%;
  max-width: 72px;
}

.bloom-dock-item img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(21, 32, 43, 0.12);
}

.bloom-dock-cap {
  font-size: 10px;
  margin-top: 3px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.bloom-legal .bloom-prose {
  background: var(--bloom-glass);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.bloom-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  margin: 12px 0 20px;
}

/* 错误页 */
.bloom-error {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

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

@keyframes bloomPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

.bloom-error h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 12px 0;
}

.bloom-error p {
  color: var(--bloom-ink-soft);
  max-width: 28em;
  margin: 0 auto 24px;
}

/* 响应式 */
@media (max-width: 900px) {
  .bloom-split,
  .bloom-split.is-flip {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

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

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

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

  .bloom-nav-toggle {
    display: flex;
  }

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

  .bloom-nav-links.is-open {
    display: flex;
  }

  .bloom-hero {
    min-height: 78vh;
    align-items: flex-end;
    padding-bottom: 48px;
  }

  .bloom-btn.is-ghost {
    margin-left: 0;
    margin-top: 10px;
  }

  .bloom-shot.is-tilt,
  .bloom-shot.is-tilt-r {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
