/* bks.homes — 哔咔漫画官方站 · Orbit Shelf 视觉体系 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Sora:wght@500;600;700&display=swap");

:root {
  --ink: #150a16;
  --ink-soft: #3a2438;
  --rose: #ff2f74;
  --rose-deep: #d4155a;
  --amber: #ff8f3c;
  --aqua: #26c7b8;
  --pearl: #fff7fa;
  --fog: #f3e8ee;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 47, 116, 0.18);
  --shadow: 0 18px 50px rgba(40, 8, 28, 0.12);
  --radius: 22px;
  --nav-h: 64px;
  --promo-gap: 0px;
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --max: 1080px;
}

*,
*::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(255, 47, 116, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 5%, rgba(38, 199, 184, 0.16), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(255, 143, 60, 0.12), transparent 45%),
    linear-gradient(180deg, #fff9fb 0%, #f7f0f4 48%, #eef6f5 100%);
  line-height: 1.85;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rose);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— 顶栏 —— */
.flare-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(255, 249, 251, 0.85);
  border-bottom: 1px solid var(--line);
}

.flare-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(255, 47, 116, 0.28);
}

.brand-mark span {
  font-size: 1.05rem;
}

.trail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.92rem;
}

.trail-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.trail-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  transition: width 0.25s ease;
}

.trail-links a:hover,
.trail-links a.is-on {
  color: var(--rose-deep);
}

.trail-links a:hover::after,
.trail-links a.is-on::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--fog);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* —— 顶部推广 / 固定下载条 —— */
.promo-dock {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 250, 0.9));
  border-bottom: 1px dashed var(--line);
  padding: 8px 0 4px;
}

.sticky-dl {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(21, 10, 22, 0.92);
  color: #fff;
  transform: translateY(-120%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-bottom: 1px solid rgba(255, 47, 116, 0.35);
}

.sticky-dl.is-show {
  transform: translateY(0);
}

.sticky-dl .wrap {
  padding: 8px 0 6px;
}

.sticky-dl .dock-title {
  font-size: 0.78rem;
  opacity: 0.75;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}

#promo-ads,
#sticky-ads,
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
  margin: 6px 0;
}

#promo-ads > div,
#sticky-ads > div,
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#promo-ads img,
#sticky-ads img,
#ads 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);
}

#sticky-ads img {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

#promo-ads a,
#sticky-ads a,
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#promo-ads img:hover,
#sticky-ads img:hover,
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#promo-ads .caption,
#sticky-ads .caption,
#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: 4px;
}

#sticky-ads .caption {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 900px) {
  #sticky-ads > div {
    width: calc(12.5% - 6px);
    max-width: 78px;
  }
}

@media (max-width: 899px) {
  #sticky-ads > div {
    width: calc(25% - 6px);
    max-width: 78px;
  }
}

/* —— Hero：斜切轨道构图 —— */
.ribbon-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.ribbon-hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: 420px;
  height: 420px;
  background:
    repeating-radial-gradient(circle at center, rgba(255, 47, 116, 0.18) 0 2px, transparent 2px 10px);
  border-radius: 50%;
  animation: spin-slow 28s linear infinite;
  pointer-events: none;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.ribbon-hero__grid {
  display: grid;
  gap: 28px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 0 0 4px rgba(255, 47, 116, 0.15);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}

.ribbon-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--ink) 20%, var(--rose-deep) 70%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0;
}

.hero-orbit {
  display: none;
}

/* —— 内容区块 —— */
.canvas-block {
  padding: 42px 0;
}

.canvas-block + .canvas-block {
  border-top: 1px solid rgba(21, 10, 22, 0.06);
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--rose);
  font-weight: 700;
  margin-bottom: 8px;
}

.canvas-block h2 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 900;
}

.canvas-block h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--ink);
  font-weight: 700;
}

.canvas-block p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.duo-split {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
}

.comic-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a0f1c;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.comic-frame.is-in {
  transform: translateY(0);
  opacity: 1;
}

.comic-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.comic-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

.comic-frame--wide img {
  aspect-ratio: 3 / 4;
  max-height: 480px;
}

.frame-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(21, 10, 22, 0.55);
  color: #fff;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

/* 功能棱镜卡片 */
.prism-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.prism-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(40, 8, 28, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.prism-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 47, 116, 0.4);
}

.prism-card strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.prism-card p {
  margin: 0;
  font-size: 0.95rem;
}

.prism-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(38, 199, 184, 0.15);
  color: #0f7a70;
  margin-bottom: 10px;
  font-weight: 600;
}

/* 时间轴流程 */
.orbit-steps {
  display: grid;
  gap: 0;
  margin: 24px 0;
  counter-reset: step;
}

.orbit-steps li {
  list-style: none;
  position: relative;
  padding: 18px 18px 18px 64px;
  border-left: 2px solid rgba(255, 47, 116, 0.25);
  margin-left: 18px;
}

.orbit-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -19px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(255, 47, 116, 0.35);
}

.orbit-steps h3 {
  margin: 0 0 6px;
}

.orbit-steps p {
  margin: 0;
}

/* 引用条 */
.ink-quote {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 47, 116, 0.1), rgba(38, 199, 184, 0.1));
  border: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
}

.ink-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--rose);
  position: absolute;
  top: 4px;
  left: 14px;
  opacity: 0.45;
}

.ink-quote p {
  margin: 0;
  padding-left: 28px;
  color: var(--ink);
}

/* 面包屑 */
.crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.crumb a {
  color: var(--ink-soft);
}

.crumb span {
  opacity: 0.45;
  margin: 0 6px;
}

/* 法律页 */
.legal-shell {
  padding: 10px 0 60px;
}

.legal-shell .prose {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 8px 0 18px;
}

.legal-shell h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 47, 116, 0.2);
}

.legal-shell p,
.legal-shell li {
  color: var(--ink-soft);
}

.legal-shell ul {
  padding-left: 1.2em;
}

/* 错误页 */
.fault-stage {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0 80px;
}

.fault-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  margin: 0;
  background: linear-gradient(120deg, var(--rose), var(--amber), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fault-stage p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 12px auto 24px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 47, 116, 0.35);
}

.ghost-btn:hover {
  filter: brightness(1.05);
}

/* 页脚 */
.site-foot {
  margin-top: 40px;
  padding: 36px 0 48px;
  background: #150a16;
  color: rgba(255, 255, 255, 0.78);
}

.site-foot a {
  color: rgba(255, 255, 255, 0.85);
}

.site-foot a:hover {
  color: #ff8fb3;
}

.foot-grid {
  display: grid;
  gap: 22px;
}

.foot-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
}

.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.foot-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* 内链芯片 */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.chip-row a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.chip-row a:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

/* 响应式 */
@media (min-width: 760px) {
  .ribbon-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-orbit {
    display: block;
    position: relative;
  }

  .hero-orbit .comic-frame {
    transform: rotate(3deg);
    opacity: 1;
    max-width: 280px;
    margin-left: auto;
  }

  .hero-orbit .comic-frame:nth-child(2) {
    position: absolute;
    right: 40%;
    top: 18%;
    max-width: 160px;
    transform: rotate(-8deg);
    z-index: -1;
    opacity: 0.55;
    filter: saturate(1.1);
  }

  .duo-split {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .duo-split.is-flip {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .duo-split.is-flip .comic-frame {
    order: 2;
  }

  .prism-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .legal-shell .prose {
    padding: 40px 42px;
  }
}

@media (min-width: 980px) {
  .prism-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 759px) {
  .nav-toggle {
    display: inline-flex;
  }

  .trail-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 249, 251, 0.98);
    padding: 14px 16px 18px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 12px;
  }

  .trail-links.is-open {
    display: flex;
  }

  .flare-nav {
    position: sticky;
  }
}

/* 显隐动画 */
.fade-rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-rise.is-in {
  opacity: 1;
  transform: none;
}
