/* 哔咔漫画官网 · cel design system · p-c.lat */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
  --cel-ink: #1b2838;
  --cel-ink-soft: #3a4a5c;
  --cel-coral: #e83a5c;
  --cel-coral-deep: #c42a48;
  --cel-mint: #2fbfa5;
  --cel-mint-soft: #a8efe0;
  --cel-cream: #fff6f0;
  --cel-blush: #ffe4d8;
  --cel-sand: #f5ebe3;
  --cel-paper: #ffffff;
  --cel-line: rgba(27, 40, 56, 0.1);
  --cel-glass: rgba(255, 255, 255, 0.72);
  --cel-shadow: 0 18px 40px rgba(27, 40, 56, 0.08);
  --cel-radius: 22px;
  --cel-max: 1080px;
  --cel-nav-h: 58px;
  --cel-dock-h: 0px;
  --cel-font-display: "ZCOOL QingKe HuangYou", "Ma Shan Zheng", cursive;
  --cel-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;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--cel-font-body);
  color: var(--cel-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 58, 92, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(47, 191, 165, 0.14), transparent 50%),
    linear-gradient(180deg, var(--cel-cream) 0%, var(--cel-sand) 45%, #f8f1ea 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cel-coral-deep);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--cel-coral);
}

ul, ol {
  padding-left: 1.2em;
}

h1, h2, h3 {
  font-family: var(--cel-font-display);
  line-height: 1.35;
  font-weight: 400;
  color: var(--cel-ink);
}

h1 { font-size: clamp(1.85rem, 5.5vw, 2.65rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); margin-bottom: 0.55rem; }

p {
  margin-bottom: 1em;
  color: var(--cel-ink-soft);
}

.cel-wrap {
  width: min(100% - 2rem, var(--cel-max));
  margin-inline: auto;
}

/* —— 顶部 / 漂浮下载推广区（DY 广告图标网格） —— */
.cel-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
  gap: 0;
}

.cel-ads-top {
  position: relative;
  z-index: 40;
  width: min(100% - 1rem, var(--cel-max));
  margin: 10px auto;
  padding: 0.25rem 0 0.35rem;
}

.cel-ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  max-width: 90px;
  box-sizing: border-box;
  padding: 0.2rem 0.15rem 0.35rem;
}

@media (min-width: 768px) {
  .cel-ads-item {
    width: 12.5%;
  }
}

.cel-ads-item figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

.cel-ads-item a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.cel-ads-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

.cel-ads-item img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.cel-ads-caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.25rem;
}

/* —— 导航 —— */
.cel-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--cel-nav-h);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: var(--cel-glass);
  border-bottom: 1px solid var(--cel-line);
}

.cel-nav-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cel-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cel-ink) !important;
  font-family: var(--cel-font-display);
  font-size: 1.25rem;
}

.cel-brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.cel-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cel-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.cel-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cel-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.cel-nav-open .cel-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.cel-nav-open .cel-burger span:nth-child(2) {
  opacity: 0;
}

body.cel-nav-open .cel-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.cel-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cel-menu a {
  display: block;
  padding: 0.35rem 0.65rem;
  color: var(--cel-ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
}

.cel-menu a:hover,
.cel-menu a.cel-on {
  color: var(--cel-coral);
  background: rgba(232, 58, 92, 0.08);
}

@media (max-width: 860px) {
  .cel-burger {
    display: inline-flex;
  }

  .cel-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem;
    background: rgba(255, 246, 240, 0.98);
    backdrop-filter: blur(14px);
    border: 1px solid var(--cel-line);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--cel-shadow);
  }

  body.cel-nav-open .cel-menu {
    display: flex;
  }

  .cel-menu a {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }
}

/* —— 滚动后固定下载条 —— */
.cel-dock {
  position: fixed;
  top: var(--cel-nav-h);
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 246, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cel-line);
  padding: 0.15rem 0.5rem 0.35rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cel-dock.cel-dock-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cel-dock .cel-ads {
  margin: 4px auto;
  width: min(100%, var(--cel-max));
}

/* 停靠条展开时为正文预留空间，避免遮挡 */
body.cel-dock-active .cel-main {
  padding-top: var(--cel-dock-h, 96px);
  transition: padding-top 0.35s ease;
}

/* —— Hero —— */
.cel-hero {
  position: relative;
  padding: 2.4rem 0 2rem;
  overflow: hidden;
}

.cel-hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.cel-hero-glow-a {
  top: -60px;
  right: -40px;
  background: var(--cel-coral);
}

.cel-hero-glow-b {
  bottom: 10%;
  left: -80px;
  background: var(--cel-mint);
  opacity: 0.3;
}

.cel-hero-stage {
  position: relative;
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

@media (min-width: 860px) {
  .cel-hero-stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.2rem;
  }
}

.cel-hero-mark {
  font-family: var(--cel-font-display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  color: var(--cel-coral);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  animation: cel-rise 0.8s ease both;
}

.cel-hero h1 {
  margin-bottom: 0.85rem;
  animation: cel-rise 0.9s 0.08s ease both;
}

.cel-hero-lead {
  font-size: 1.02rem;
  max-width: 34em;
  animation: cel-rise 1s 0.14s ease both;
}

.cel-hero-visual {
  position: relative;
  animation: cel-float 5.5s ease-in-out infinite;
}

.cel-hero-visual img {
  width: 100%;
  border-radius: 28px 28px 40px 18px;
  box-shadow: var(--cel-shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  transform: rotate(-1.5deg);
}

.cel-hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 42%;
  height: 42%;
  background: linear-gradient(145deg, var(--cel-mint-soft), transparent);
  border-radius: 50%;
  z-index: -1;
  filter: blur(8px);
}

@keyframes cel-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— 通用区块 —— */
.cel-main {
  padding-bottom: 3rem;
}

.cel-block {
  margin: 2.2rem 0;
  animation: cel-rise 0.7s ease both;
}

.cel-block-head {
  margin-bottom: 1.1rem;
}

.cel-block-head p {
  max-width: 40em;
}

.cel-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cel-mint);
  background: rgba(47, 191, 165, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}

/* 图文交替 */
.cel-split {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  background: var(--cel-paper);
  border-radius: var(--cel-radius);
  padding: 1.2rem;
  box-shadow: var(--cel-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

@media (min-width: 760px) {
  .cel-split {
    grid-template-columns: 1fr 1fr;
    padding: 1.6rem;
    gap: 1.8rem;
  }
  .cel-split.cel-flip .cel-split-media { order: 2; }
  .cel-split.cel-flip .cel-split-copy { order: 1; }
}

.cel-split-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cel-blush);
}

.cel-split-media img {
  width: 100%;
  border-radius: 18px;
  transition: transform 0.55s ease;
}

.cel-split:hover .cel-split-media img {
  transform: scale(1.03);
}

.cel-split-copy h2,
.cel-split-copy h3 {
  margin-top: 0.2rem;
}

/* 纯文本阅读区 */
.cel-prose {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 244, 0.95));
  border-radius: var(--cel-radius);
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--cel-line);
  box-shadow: var(--cel-shadow);
}

.cel-prose p:last-child {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .cel-prose {
    padding: 1.85rem 2rem;
  }
}

/* 卡片网格 */
.cel-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cel-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cel-cards.cel-cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cel-card {
  background: var(--cel-paper);
  border-radius: 18px;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--cel-line);
  box-shadow: 0 10px 28px rgba(27, 40, 56, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cel-shadow);
}

.cel-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  background: linear-gradient(145deg, var(--cel-blush), #fff);
  font-size: 1.2rem;
}

.cel-card h3 {
  font-family: var(--cel-font-body);
  font-weight: 700;
  font-size: 1.05rem;
}

/* 图文混排 mosaic */
.cel-mosaic {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cel-mosaic {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }
  .cel-mosaic-wide {
    grid-column: 1 / -1;
  }
}

.cel-mosaic-item {
  background: var(--cel-paper);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--cel-line);
  box-shadow: var(--cel-shadow);
}

.cel-mosaic-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
}

.cel-mosaic-item .cel-mosaic-body {
  padding: 1rem 1.05rem 1.2rem;
}

.cel-mosaic-wide img {
  aspect-ratio: 16/9;
  max-height: 360px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* 功能清单条 */
.cel-rail {
  display: grid;
  gap: 0.75rem;
}

.cel-rail-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.9rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid var(--cel-line);
}

.cel-rail-row img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

/* 面包屑 */
.cel-crumb {
  padding: 1rem 0 0.25rem;
  font-size: 0.82rem;
  color: var(--cel-ink-soft);
}

.cel-crumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.cel-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.45;
}

.cel-crumb a {
  color: var(--cel-ink-soft);
}

.cel-crumb [aria-current="page"] {
  color: var(--cel-coral);
  font-weight: 600;
}

/* 法律页 */
.cel-legal {
  background: var(--cel-paper);
  border-radius: var(--cel-radius);
  padding: 1.5rem 1.25rem 2rem;
  margin: 1rem 0 2.5rem;
  border: 1px solid var(--cel-line);
  box-shadow: var(--cel-shadow);
}

.cel-legal h1 {
  margin-bottom: 0.75rem;
}

.cel-legal h2 {
  margin-top: 1.6rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--cel-line);
  font-family: var(--cel-font-body);
  font-weight: 700;
  font-size: 1.15rem;
}

.cel-legal h3 {
  margin-top: 1.1rem;
  font-family: var(--cel-font-body);
  font-weight: 700;
  font-size: 1rem;
}

@media (min-width: 760px) {
  .cel-legal {
    padding: 2rem 2.25rem 2.5rem;
  }
}

/* 错误页 */
.cel-error {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.cel-error-code {
  font-family: var(--cel-font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  color: var(--cel-coral);
  line-height: 1;
  margin-bottom: 0.4rem;
  animation: cel-float 4s ease-in-out infinite;
}

.cel-error h1 {
  margin-bottom: 0.75rem;
}

.cel-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.cel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.cel-btn-primary {
  background: linear-gradient(135deg, var(--cel-coral), #ff6b4a);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(232, 58, 92, 0.28);
}

.cel-btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--cel-ink) !important;
  border: 1px solid var(--cel-line);
}

/* 页脚 */
.cel-foot {
  background: #1b2838;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.2rem 0 2.6rem;
  margin-top: 1rem;
}

.cel-foot a {
  color: rgba(255, 255, 255, 0.88);
}

.cel-foot a:hover {
  color: var(--cel-mint-soft);
}

.cel-foot-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--cel-font-display);
  font-size: 1.35rem;
  color: #fff;
}

.cel-foot-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.cel-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1rem 0 1.4rem;
  font-size: 0.88rem;
}

.cel-foot-note {
  font-size: 0.78rem;
  opacity: 0.65;
  line-height: 1.6;
}

/* 站内链接带 */
.cel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cel-links a {
  background: rgba(232, 58, 92, 0.08);
  color: var(--cel-coral-deep);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 引用强调 */
.cel-quote {
  border-left: 4px solid var(--cel-mint);
  padding: 0.75rem 0 0.75rem 1rem;
  margin: 1.1rem 0;
  background: rgba(47, 191, 165, 0.06);
  border-radius: 0 12px 12px 0;
  color: var(--cel-ink);
  font-weight: 500;
}

/* SEO 关键词自然高亮避免堆砌 - 仅样式 */
.cel-em {
  color: var(--cel-ink);
  font-weight: 600;
}

/* 响应式微调 */
@media (max-width: 480px) {
.cel-hero {
    padding-top: 1.6rem;
  }
}
