/* 哔咔漫画 · Mist Cherry Reader 视觉体系 */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ink: #141820;
  --ink-soft: #3a4254;
  --rose: #e84d7a;
  --rose-deep: #c73a62;
  --coral: #ff7a59;
  --aqua: #2cb8b0;
  --gold: #e8a838;
  --mist: #eef2f7;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --line: rgba(20, 24, 32, 0.08);
  --glass: rgba(255, 255, 255, 0.68);
  --shadow: 0 18px 48px rgba(20, 24, 32, 0.1);
  --radius: 22px;
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", 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(232, 77, 122, 0.16), transparent 55%),
    radial-gradient(900px 500px at 95% 8%, rgba(44, 184, 176, 0.14), transparent 50%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f7 40%, #f8fafc 100%);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

body.drawer-lock {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--aqua);
}

.petal-shell {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* 顶部推广广告区（DY 广告源） */
.top-ads-wrap {
  position: relative;
  z-index: 40;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 247, 0.88));
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.ads-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px 8px;
  margin: 0 auto;
  max-width: var(--max);
}

.ads-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  text-decoration: none !important;
  color: var(--ink-soft) !important;
  font-size: 11px;
  line-height: 1.2;
}

.ads-chip img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ads-chip:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.ads-chip span {
  display: block;
  margin-top: 4px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  height: 15px;
}

.ads-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(232, 77, 122, 0.35);
}

/* 导航 */
.bloom-mast {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

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

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(232, 77, 122, 0.25);
}

.brand-mark span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.mast-links {
  display: none;
  gap: 22px;
  align-items: center;
}

.mast-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.mast-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--aqua));
  transition: width 0.25s ease;
}

.mast-links a:hover {
  color: var(--ink);
}

.mast-links a:hover::after {
  width: 100%;
}

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

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

.nav-toggle.is-active i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active i:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  padding: 8px 0 18px;
}

.nav-drawer.is-open {
  display: grid;
  gap: 8px;
}

.nav-drawer a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border: 1px solid var(--line);
}

@media (min-width: 860px) {
  .mast-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-drawer {
    display: none !important;
  }
}

/* 滚动后固定于导航下方的漂浮广告区 */
.float-ads-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(20, 24, 32, 0.08);
}

.float-ads-wrap.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#float-ads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  justify-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

#float-ads .ads-chip {
  width: 100%;
  max-width: 72px;
}

#float-ads .ads-fallback {
  grid-column: 1 / -1;
  justify-self: center;
}

@media (min-width: 900px) {
  #float-ads {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.float-ads-spacer {
  height: 0;
  transition: height 0.28s ease;
  pointer-events: none;
}

/* Hero */
.bloom-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: 48px 0 64px;
  overflow: hidden;
}

.bloom-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 32, 0.15) 0%, rgba(20, 24, 32, 0.62) 100%),
    url("shot-comic-serial.jpg") center/cover no-repeat;
  z-index: 0;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.bloom-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, #eef2f7);
  z-index: 1;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-12px);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  animation: rise-in 0.9s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(42px, 9vw, 72px);
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-lead {
  margin: 0;
  font-size: 16px;
  opacity: 0.92;
  max-width: 34em;
}

/* 通用区块 */
.ink-section {
  padding: 56px 0;
}

.ink-section + .ink-section {
  padding-top: 12px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 700;
  margin-bottom: 8px;
}

.ink-section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 16px;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.ink-section h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--ink);
}

.ink-section p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.mist-panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
}

.split-frame {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .split-frame {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split-frame.is-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .split-frame.is-flip .shot-frame {
    order: -1;
  }
}

.shot-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
  animation: soft-float 6s ease-in-out infinite;
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.shot-glow {
  position: absolute;
  inset: auto -20% -20% auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(232, 77, 122, 0.35), transparent 70%);
  pointer-events: none;
}

/* 卡片网格（仅用于可交互/可读入口） */
.feature-mosaic {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .feature-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .feature-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-tile {
  border-radius: 20px;
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-tile h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.tile-accent {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--rose), var(--aqua));
}

/* 图文混排流 */
.story-lane {
  display: grid;
  gap: 20px;
}

.story-lane article {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

@media (min-width: 800px) {
  .story-lane article {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.story-lane img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* 长文阅读区 */
.long-prose p {
  text-indent: 2em;
  margin-bottom: 18px;
}

.long-prose h2,
.long-prose h3 {
  text-indent: 0;
}

.quote-band {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--rose);
  background: linear-gradient(90deg, rgba(232, 77, 122, 0.08), transparent);
  border-radius: 0 18px 18px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.6;
}

/* 面包屑 */
.crumb-trail {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.crumb-trail a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumb-trail a:hover {
  color: var(--rose);
}

.crumb-trail span {
  margin: 0 6px;
  opacity: 0.5;
}

/* 子页头 */
.page-banner {
  padding: 36px 0 12px;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  margin: 8px 0 12px;
}

.page-banner p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40em;
}

.legal-body {
  padding: 24px 0 64px;
}

.legal-body h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.2em;
}

/* 页脚 */
.site-foot {
  margin-top: 40px;
  padding: 36px 0 48px;
  background: #12161f;
  color: rgba(255, 255, 255, 0.78);
}

.foot-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-foot a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-foot a:hover {
  color: #fff;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.foot-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.foot-brand strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
}

.foot-links {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.foot-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.7;
}

/* 错误页 */
.fault-stage {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.fault-code {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 140px);
  line-height: 1;
  background: linear-gradient(135deg, var(--rose), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

.fault-stage h1 {
  margin: 8px 0 12px;
  font-size: 24px;
}

.fault-stage p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.ghost-link {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* 工具 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.soft-tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(44, 184, 176, 0.12);
  color: #1a7f79;
  font-weight: 600;
}
