/* 哔咔漫画官网 — luna 视觉系统 · p-c.click */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+KuaiLe&display=swap");

:root {
  --ink: #121820;
  --ink-soft: #2a3444;
  --mist: #eef4f8;
  --paper: #f7fafc;
  --coral: #ff6f61;
  --coral-deep: #e84d3d;
  --teal: #00a896;
  --teal-soft: #5fd4c4;
  --gold: #f0c75e;
  --line: rgba(18, 24, 32, 0.08);
  --glass: rgba(255, 255, 255, 0.68);
  --shadow: 0 18px 48px rgba(18, 24, 32, 0.12);
  --radius: 22px;
  --nav-h: 58px;
  --dock-gap: 8px;
  --max: 1080px;
  --font-display: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, 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(0, 168, 150, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 111, 97, 0.16), transparent 50%),
    linear-gradient(180deg, #e8f3f6 0%, var(--paper) 38%, #f3f7fa 100%);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--coral-deep);
}

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

/* 顶栏 */
.luna-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 250, 252, 0.82);
  border-bottom: 1px solid var(--line);
}

.luna-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.luna-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.luna-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 168, 150, 0.25);
}

.luna-nav-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 18px;
  flex-direction: column;
  gap: 4px;
}

.luna-nav-panel.is-open {
  display: flex;
}

.luna-nav-panel a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.luna-nav-panel a:hover,
.luna-nav-panel a[aria-current="page"] {
  background: rgba(0, 168, 150, 0.1);
  color: var(--teal);
}

.luna-nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.luna-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.luna-nav-toggle span::before,
.luna-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.luna-nav-toggle span::before {
  top: -6px;
}

.luna-nav-toggle span::after {
  top: 6px;
}

@media (min-width: 860px) {
  .luna-nav-toggle {
    display: none;
  }

  .luna-nav-panel {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 2px;
  }

  .luna-nav-panel a {
    padding: 8px 12px;
    font-size: 0.92rem;
  }
}

/* 推广区 */
.luna-promo {
  margin: 14px auto 6px;
  padding: 14px 12px 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.luna-promo-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 500;
}

.luna-ad-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
}

.luna-ad-item {
  width: 70px;
  text-decoration: none;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.luna-ad-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 0.18s ease, box-shadow 0.18s ease;
}

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

.luna-ad-item span {
  font-size: 11px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  height: 15px;
}

/* 固定下载码头 */
.luna-dock {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  z-index: 70;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(18, 24, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 8px 10px;
}

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

.luna-dock .luna-ad-grid {
  gap: var(--dock-gap);
}

.luna-dock .luna-ad-item {
  width: calc(25% - 8px);
  max-width: 76px;
}

.luna-dock .luna-ad-item span {
  color: rgba(255, 255, 255, 0.78);
}

.luna-dock .luna-ad-item img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

body.luna-dock-open {
  scroll-padding-top: calc(var(--nav-h) + 86px);
}

@media (min-width: 860px) {
  .luna-dock .luna-ad-item {
    width: calc(12.5% - 8px);
  }

  .luna-dock .luna-ad-item img {
    width: 60px;
    height: 60px;
  }
}

/* Hero —— 无下载按钮 */
.luna-hero {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
}

.luna-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.luna-hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 2.65rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--ink) 20%, var(--teal) 55%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.luna-hero-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.luna-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.luna-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 24, 32, 0.35));
  pointer-events: none;
}

.luna-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  animation: luna-float 7s ease-in-out infinite;
}

.luna-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  animation: luna-pulse 6s ease-in-out infinite;
}

.luna-orb-a {
  top: -40px;
  right: -30px;
  background: rgba(0, 168, 150, 0.35);
}

.luna-orb-b {
  bottom: 20px;
  left: -50px;
  background: rgba(255, 111, 97, 0.28);
  animation-delay: -2s;
}

@keyframes luna-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.015);
  }
}

@keyframes luna-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.12);
  }
}

@media (min-width: 860px) {
  .luna-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }

  .luna-hero-visual img {
    aspect-ratio: 3 / 4;
  }
}

/* 章节与内容 */
.luna-section {
  padding: 36px 0;
}

.luna-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.35;
  font-weight: 900;
}

.luna-section h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.luna-lead {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

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

.luna-prose p:last-child {
  margin-bottom: 0;
}

/* 卡片矩阵 */
.luna-card-mesh {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.luna-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(18, 24, 32, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.luna-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.luna-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.luna-card-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.18), rgba(255, 111, 97, 0.16));
}

@media (min-width: 700px) {
  .luna-card-mesh {
    grid-template-columns: repeat(2, 1fr);
  }

  .luna-card-mesh.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 图文交错 */
.luna-split {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.luna-split.reverse .luna-split-media {
  order: -1;
}

.luna-phone {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}

.luna-phone img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.luna-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.luna-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(0, 168, 150, 0.1);
  color: var(--teal);
  border: 1px solid rgba(0, 168, 150, 0.18);
}

@media (min-width: 860px) {
  .luna-split {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .luna-split.reverse .luna-split-media {
    order: 0;
  }

  .luna-split.reverse .luna-split-text {
    order: -1;
  }
}

/* 时间线 / 步骤 */
.luna-timeline {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid rgba(0, 168, 150, 0.28);
}

.luna-timeline li {
  position: relative;
  padding: 0 0 22px 22px;
}

.luna-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.15);
}

.luna-timeline strong {
  display: block;
  margin-bottom: 4px;
}

/* CTA 条（非 Hero / 非导航） */
.luna-cta-band {
  margin: 28px 0;
  padding: 28px 20px;
  border-radius: 26px;
  background:
    linear-gradient(125deg, rgba(0, 168, 150, 0.92), rgba(18, 24, 32, 0.92) 55%, rgba(255, 111, 97, 0.85));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.luna-cta-band h2 {
  margin: 0 0 8px;
  color: #fff;
}

.luna-cta-band p {
  margin: 0 0 18px;
  opacity: 0.92;
}

.luna-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.luna-btn:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.luna-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  margin-left: 8px;
}

.luna-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

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

.luna-crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.luna-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  opacity: 0.45;
}

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

.luna-crumb a:hover {
  color: var(--teal);
}

/* 法律页 */
.luna-legal {
  padding: 12px 0 48px;
}

.luna-legal h1 {
  margin: 8px 0 16px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-family: var(--font-display);
}

.luna-legal article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 18px 28px;
  box-shadow: 0 12px 32px rgba(18, 24, 32, 0.06);
}

.luna-legal h2 {
  margin: 26px 0 10px;
  font-size: 1.2rem;
}

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

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

/* 错误页 */
.luna-error {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.luna-error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--teal), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.luna-error h1 {
  margin: 8px 0 12px;
  font-size: 1.4rem;
}

.luna-error p {
  color: var(--ink-soft);
  margin: 0 0 22px;
}

/* 页脚 */
.luna-footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(18, 24, 32, 0.04));
}

.luna-footer-grid {
  display: grid;
  gap: 22px;
}

.luna-footer h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-family: var(--font-display);
}

.luna-footer p,
.luna-footer a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.luna-footer a {
  text-decoration: none;
  display: inline-block;
  margin: 4px 0;
}

.luna-footer a:hover {
  color: var(--teal);
}

.luna-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: rgba(42, 52, 68, 0.72);
  text-align: center;
}

@media (min-width: 700px) {
  .luna-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* 动效显现 */
.luna-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.luna-reveal.is-in {
  opacity: 1;
  transform: none;
}

.luna-quote {
  margin: 22px 0;
  padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--coral);
  background: rgba(255, 111, 97, 0.08);
  border-radius: 0 16px 16px 0;
  color: var(--ink-soft);
}

.luna-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.luna-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  text-align: center;
}

.luna-stat b {
  display: block;
  font-size: 1.35rem;
  color: var(--teal);
  font-family: var(--font-display);
}

.luna-stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

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

.luna-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0;
}

.luna-gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.luna-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.luna-gallery figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .luna-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
