/* 哔咔漫画官网 · 独立设计系统 · bica.pics */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+KuaiLe&display=swap');

:root {
  --ink: #141822;
  --ink-soft: #3a4258;
  --paper: #f3f6fa;
  --paper-deep: #e4eaf2;
  --berry: #e23b5c;
  --berry-deep: #b81f3f;
  --aqua: #1fa8a0;
  --aqua-soft: #d5f3f0;
  --sun: #f0b429;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(20, 24, 34, 0.1);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 64px;
  --dock-gap: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(226, 59, 92, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(31, 168, 160, 0.14), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--paper) 35%, #f8fafc 100%);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

.orbit-wrap {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* —— 顶部推广条 —— */
.promo-rail {
  background: linear-gradient(90deg, #fff5f7, #f0fffd);
  border-bottom: 1px solid rgba(226, 59, 92, 0.12);
  padding: 10px 0 6px;
}

.promo-rail #ads,
.dock-lane #ads-dock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
}

.promo-rail #ads > div,
.dock-lane #ads-dock > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.promo-rail #ads img,
.dock-lane #ads-dock img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: none;
  background: #fff;
}

.promo-rail #ads a,
.dock-lane #ads-dock a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
}

.promo-rail #ads img:hover,
.dock-lane #ads-dock img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.16);
}

.promo-rail .caption,
.dock-lane .caption {
  height: 16px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* —— 导航 —— */
.spark-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(243, 246, 250, 0.86);
  border-bottom: 1px solid rgba(20, 24, 34, 0.06);
}

.spark-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(226, 59, 92, 0.25);
}

.brand-mark strong {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-on {
  color: var(--berry);
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--paper-deep);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

/* —— 滚动后固定下载栏 —— */
.dock-lane {
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 168, 160, 0.15);
  padding: 8px 6px 4px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  box-shadow: 0 8px 24px rgba(20, 24, 34, 0.06);
}

.dock-lane.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dock-lane #ads-dock > div {
  width: 25%;
  max-width: 72px;
}

@media (min-width: 768px) {
  .dock-lane #ads-dock > div {
    width: 12.5%;
  }
}

/* —— Hero —— */
.ribbon-hero {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
}

.ribbon-hero__glow {
  position: absolute;
  inset: auto -20% 10% -20%;
  height: 55%;
  background: linear-gradient(105deg, rgba(226, 59, 92, 0.18), rgba(31, 168, 160, 0.16) 50%, rgba(240, 180, 41, 0.12));
  filter: blur(40px);
  pointer-events: none;
  animation: glow-drift 9s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translateX(-3%) scale(1); }
  to { transform: translateX(3%) scale(1.05); }
}

.ribbon-hero__panel {
  position: relative;
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 28px 22px;
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .ribbon-hero__panel {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 36px 34px;
  }
}

.hero-brand {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  color: var(--berry);
  line-height: 1.15;
  margin-bottom: 10px;
  animation: rise-in 0.7s ease both;
}

.ribbon-hero h1 {
  font-size: clamp(1.25rem, 3.6vw, 1.65rem);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 12px;
  animation: rise-in 0.7s 0.08s ease both;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 18px;
  animation: rise-in 0.7s 0.16s ease both;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: rise-in 0.7s 0.22s ease both;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(31, 168, 160, 0.12);
  color: var(--aqua);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.ghost-link:hover {
  background: rgba(31, 168, 160, 0.2);
  color: #0f7f79;
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(226, 59, 92, 0.18);
  animation: float-soft 5.5s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

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

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

/* —— 面包屑 —— */
.crumb-bar {
  padding: 16px 0 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.crumb-bar ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.crumb-bar li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #9aa3b5;
}

.crumb-bar a {
  text-decoration: none;
  color: var(--aqua);
}

/* —— 通用区块 —— */
.lane {
  padding: 28px 0;
}

.lane-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.4;
}

.lane-sub {
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 46em;
}

.prose p {
  margin-bottom: 1.05em;
  text-align: justify;
  word-break: break-word;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.7em;
  font-weight: 900;
}

.prose h3 {
  font-size: 1.12rem;
  margin: 1.35em 0 0.55em;
  font-weight: 700;
  color: #24304a;
}

/* 图文交替 */
.split-row {
  display: grid;
  gap: 20px;
  align-items: center;
  margin: 28px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

@media (min-width: 780px) {
  .split-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
  }
  .split-row.is-flip .split-copy { order: 2; }
  .split-row.is-flip .split-media { order: 1; }
}

.split-media {
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-deep);
}

.split-media img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

.split-row:hover .split-media img {
  transform: scale(1.03);
}

.split-copy h2,
.split-copy h3 {
  margin-top: 0;
}

/* 卡片网格 */
.tile-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 960px) {
  .tile-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-tile {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 24, 34, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(20, 24, 34, 0.12);
}

.feature-tile h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

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

.feature-tile img {
  border-radius: 14px;
  margin-bottom: 12px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

/* 纯文本 SEO 长文容器 */
.scroll-article {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 24px 18px;
  border: 1px solid rgba(20, 24, 34, 0.05);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .scroll-article {
    padding: 34px 36px;
  }
}

/* 横向亮点条 */
.pulse-strip {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

@media (min-width: 700px) {
  .pulse-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pulse-item {
  text-align: center;
  padding: 18px 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, var(--aqua-soft));
  border: 1px solid rgba(31, 168, 160, 0.18);
}

.pulse-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--berry-deep);
  margin-bottom: 4px;
}

.pulse-item span {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* 混排图文带 */
.mosaic-band {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 800px) {
  .mosaic-band {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }
  .mosaic-band .mosaic-wide {
    grid-row: span 2;
  }
}

.mosaic-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mosaic-card img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  object-position: top;
}

.mosaic-card .mosaic-body {
  padding: 14px 16px 18px;
}

.mosaic-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.mosaic-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* CTA 区（非 hero / 非 nav） */
.cta-panel {
  margin: 32px 0;
  padding: 28px 22px;
  border-radius: 24px;
  background: linear-gradient(125deg, #e23b5c, #c41e5a 40%, #1fa8a0);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 40px rgba(226, 59, 92, 0.28);
}

.cta-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.cta-panel p {
  opacity: 0.92;
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--berry-deep);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta-btn:hover {
  transform: scale(1.04);
  color: var(--berry);
}

/* 页脚 */
.site-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #12161f;
  color: #c8d0de;
}

.site-foot a {
  color: #9fe3de;
  text-decoration: none;
}

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

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

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

.foot-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

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

.foot-brand strong {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 400;
}

.foot-brand p {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.foot-col h3 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 10px;
}

.foot-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.foot-copy {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: #8a93a8;
  text-align: center;
}

/* 法律页 */
.legal-shell {
  background: #fff;
  border-radius: 22px;
  padding: 24px 18px 36px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

@media (min-width: 720px) {
  .legal-shell {
    padding: 32px 40px 48px;
  }
}

.legal-shell h1 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.legal-shell .meta-line {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

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

.fault-stage .code-glow {
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: clamp(4rem, 18vw, 7rem);
  background: linear-gradient(120deg, var(--berry), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.fault-stage h1 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.fault-stage p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 0 auto 20px;
}

.back-home {
  display: inline-flex;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.back-home:hover {
  color: #fff;
  background: var(--berry);
}

/* 移动导航 */
@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 12px auto 12px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
    z-index: 90;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
