/* 哔咔漫画官网 - 水色纸卷视觉系统 */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ink-depth: #0b1f24;
  --ink-soft: #16343b;
  --mist-sheet: #eef7f6;
  --paper-glow: #f5fcfb;
  --aqua-core: #1aa6a6;
  --aqua-deep: #0d7a7a;
  --peach-flare: #ff8f6b;
  --mint-haze: #7fd6c2;
  --line-faint: rgba(11, 31, 36, 0.08);
  --glass: rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 18px 48px rgba(11, 31, 36, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-rail: 1080px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-depth);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(127, 214, 194, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 143, 107, 0.18), transparent 55%),
    linear-gradient(180deg, #dcefee 0%, var(--mist-sheet) 28%, var(--paper-glow) 100%);
  line-height: 1.85;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--aqua-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--peach-flare);
}

.site-shell {
  width: min(100% - 32px, var(--max-rail));
  margin-inline: auto;
}

/* 顶部推广 */
.top-promo-wrap {
  background: linear-gradient(90deg, rgba(26, 166, 166, 0.12), rgba(255, 143, 107, 0.1));
  border-bottom: 1px solid var(--line-faint);
  padding: 10px 0 6px;
}

.promo-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.promo-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
  gap: 4px;
}

.promo-chip img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(11, 31, 36, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-chip:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(11, 31, 36, 0.2);
}

.promo-chip span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 导航 */
.mast-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(245, 252, 251, 0.82);
  border-bottom: 1px solid var(--line-faint);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-depth);
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-mark strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav-drawer {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-drawer a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-drawer a:hover {
  color: var(--aqua-core);
}

.menu-spark {
  display: none;
  border: 0;
  background: var(--ink-depth);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

/* 滚动固定下载坞 */
.scroll-dock {
  position: sticky;
  top: 66px;
  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(11, 31, 36, 0.92);
  backdrop-filter: blur(12px);
}

.scroll-dock.is-visible {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
}

.dock-icon img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.dock-icon:hover img {
  transform: translateY(-2px) scale(1.05);
}

/* Hero - 全幅视觉，无下载按钮 */
.bloom-stage {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 48px;
}

.bloom-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 36, 0.15) 0%, rgba(11, 31, 36, 0.72) 100%),
    url("feature-comic-serial.jpg") center / cover no-repeat;
  z-index: -2;
  animation: drift-glow 18s ease-in-out infinite alternate;
}

.bloom-stage::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(26, 166, 166, 0.45), transparent 65%);
  z-index: -1;
  animation: pulse-mist 8s ease-in-out infinite;
}

.bloom-copy {
  padding: 48px 0 56px;
  color: #f7fffe;
  max-width: 720px;
}

.bloom-copy .brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1.15;
  margin: 0 0 12px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.bloom-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.4;
}

.bloom-copy p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 34em;
}

@keyframes drift-glow {
  from { transform: scale(1); }
  to { transform: scale(1.06) translateY(-1%); }
}

@keyframes pulse-mist {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(-4%); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-block {
  margin: 56px 0;
  animation: rise-in 0.7s ease both;
}

.section-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  margin: 0 0 14px;
  color: var(--ink-depth);
}

.section-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--ink-soft);
}

.section-block p {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: rgba(11, 31, 36, 0.92);
}

/* 模块：纸卷条带 */
.ribbon-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

/* 图文交错 */
.split-frame {
  display: grid;
  gap: 28px;
  align-items: center;
}

.split-frame.is-reverse .visual-slot {
  order: -1;
}

.visual-slot {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.visual-slot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin-inline: auto;
}

.visual-slot.wide img {
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

/* 卡片网格 - 仅用于可交互/可浏览内容块 */
.tile-mosaic {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.pulse-tile {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 246, 0.75));
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pulse-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.pulse-tile h3 {
  margin-top: 0;
}

.pulse-tile a {
  font-weight: 700;
  text-decoration: none;
}

/* 漫画分镜条 */
.strip-row {
  display: grid;
  gap: 14px;
}

.strip-cell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 180px;
}

.strip-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.strip-cell figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(11, 31, 36, 0.78));
  color: #fff;
  font-size: 0.95rem;
}

/* 下载行动区（非 Hero/导航） */
.cta-lane {
  margin: 48px 0;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(26, 166, 166, 0.16), rgba(255, 143, 107, 0.18)),
    var(--paper-glow);
  border: 1px solid var(--line-faint);
  text-align: center;
}

.cta-lane h2 {
  margin-top: 0;
}

.action-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aqua-core), var(--aqua-deep));
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(26, 166, 166, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-orb:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26, 166, 166, 0.45);
  color: #fff !important;
}

/* 面包屑 */
.crumb-trail {
  padding: 18px 0 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.crumb-trail a {
  text-decoration: none;
}

.crumb-trail span {
  opacity: 0.55;
  margin: 0 6px;
}

/* 法律页 */
.legal-sheet {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 28px 22px 40px;
  border: 1px solid var(--line-faint);
  box-shadow: var(--shadow-soft);
  margin-bottom: 48px;
}

.legal-sheet h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0 0 18px;
}

.legal-sheet h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

/* 错误页 */
.error-stage {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.error-stage .code-glow {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--aqua-core), var(--peach-flare));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* 页脚 */
.foot-rail {
  margin-top: 64px;
  padding: 36px 0 88px;
  background: var(--ink-depth);
  color: rgba(255, 255, 255, 0.82);
}

.foot-rail a {
  color: var(--mint-haze);
  text-decoration: none;
}

.foot-grid {
  display: grid;
  gap: 24px;
}

.foot-grid h3 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.1rem;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-grid li {
  margin-bottom: 8px;
}

.foot-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.75;
}

@media (min-width: 720px) {
  .dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .split-frame {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split-frame.is-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split-frame.is-reverse .visual-slot {
    order: 0;
  }

  .tile-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .legal-sheet {
    padding: 40px 48px 56px;
  }
}

@media (min-width: 980px) {
  .tile-mosaic.is-triple {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 719px) {
  .menu-spark {
    display: inline-grid;
    place-items: center;
  }

  .nav-drawer {
    display: none;
    position: absolute;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    padding: 14px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    min-width: 160px;
  }

  .nav-drawer.is-open {
    display: flex;
  }

  .mast-inner {
    position: relative;
  }

  .split-frame.is-reverse .visual-slot {
    order: 0;
  }
}
