/* 哔咔漫画官网 · 全新视觉体系 Inklane Bloom */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+KuaiLe&display=swap");

:root {
  --ink: #141820;
  --ink-soft: #3a4250;
  --paper: #fff7fa;
  --paper-2: #ffe8f0;
  --bloom: #ff3d7f;
  --bloom-deep: #e0185c;
  --mint: #1fbfa8;
  --mint-soft: #d8f6f1;
  --gold: #f0b429;
  --line: rgba(20, 24, 32, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(224, 24, 92, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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%, #ffd0e2 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c8f3ec 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #fff 40%, var(--paper-2) 100%);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bloom-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.ink-shell {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* 顶部推广 */
.bloom-rail {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.bloom-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  width: min(100% - 16px, var(--max));
  margin: 0 auto;
}

.bloom-ad-item figure {
  margin: 0;
  width: 70px;
  text-align: center;
}

.bloom-ad-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(20, 24, 32, 0.1);
  transition: transform 0.2s ease;
}

.bloom-ad-item a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.bloom-ad-cap {
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

/* 导航 */
.ink-mast {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ink-mast.is-pinned {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(20, 24, 32, 0.06);
}

.ink-mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.ink-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.ink-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.ink-brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.ink-nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
}

.ink-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.ink-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--bloom);
  transition: width 0.25s ease;
}

.ink-nav a:hover,
.ink-nav a.is-on {
  color: var(--bloom-deep);
}

.ink-nav a:hover::after,
.ink-nav a.is-on::after {
  width: 100%;
}

.ink-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.ink-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.ink-drawer {
  display: none;
}

/* 固定下载坞 */
.spark-dock {
  position: sticky;
  top: 64px;
  z-index: 70;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 247, 250, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.spark-dock.is-visible {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 10px 0 12px;
}

.spark-dock-label {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

.spark-dock-grid {
  width: min(100% - 16px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

.spark-dock-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-soft);
  width: 100%;
  max-width: 72px;
}

.spark-dock-cell img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(20, 24, 32, 0.1);
}

.spark-dock-cell span {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero */
.strip-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  padding: 48px 0 64px;
  overflow: hidden;
}

.strip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 61, 127, 0.18), transparent 42%),
    linear-gradient(320deg, rgba(31, 191, 168, 0.16), transparent 40%),
    repeating-radial-gradient(circle at 20% 30%, rgba(20, 24, 32, 0.05) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.strip-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.strip-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--mint);
  border-radius: 2px;
}

.strip-hero h1 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.strip-hero h1 em {
  font-style: normal;
  color: var(--bloom);
}

.strip-lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36em;
}

.strip-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--mint), #149e8b);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(31, 191, 168, 0.28);
  transition: transform 0.2s ease;
}

.btn-mint:hover {
  transform: translateY(-2px);
  color: #fff;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: linear-gradient(145deg, #ffb3cc, #9eeddf);
  filter: blur(8px);
  opacity: 0.55;
  animation: morph 8s ease-in-out infinite alternate;
}

.phone-frame {
  position: relative;
  width: min(100%, 280px);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
  animation: floaty 5s ease-in-out infinite;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-12px);
  }
}

@keyframes morph {
  from {
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  }
  to {
    border-radius: 55% 45% 40% 60% / 55% 55% 45% 45%;
  }
}

/* 章节分隔 */
.chapter-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px auto 28px;
  width: min(100% - 32px, var(--max));
  color: var(--bloom-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.chapter-mark::before,
.chapter-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bloom), transparent);
}

/* 内容区块 */
.panel-block {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 48px;
}

.panel-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  line-height: 1.35;
}

.panel-block h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  color: var(--ink);
}

.panel-block p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.panel-block ul,
.panel-block ol {
  color: var(--ink-soft);
  padding-left: 1.2em;
}

.panel-block li {
  margin-bottom: 8px;
}

.gaze-rise {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.gaze-rise.is-in {
  opacity: 1;
  transform: none;
}

/* 图文交错 */
.zig-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 36px 0;
}

.zig-row.is-flip .zig-media {
  order: 2;
}

.zig-media {
  position: relative;
}

.zig-media img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
}

.zig-media::after {
  content: "";
  position: absolute;
  inset: 12px -10px -10px 12px;
  border: 2px dashed rgba(255, 61, 127, 0.35);
  border-radius: 22px;
  z-index: -1;
}

.zig-copy h3 {
  margin-top: 0;
}

/* 卡片矩阵 */
.tile-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.tile-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(20, 24, 32, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tile-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.tile-card p {
  margin: 0;
  font-size: 0.95rem;
}

.tile-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffe0ec, #d8f6f1);
  font-size: 1.2rem;
}

/* 图文卡片混排 */
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.mosaic-big,
.mosaic-stack article {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.mosaic-big img,
.mosaic-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.mosaic-big figcaption,
.mosaic-stack figcaption {
  padding: 14px 16px 18px;
}

.mosaic-stack {
  display: grid;
  gap: 16px;
}

/* 引用条 */
.quote-band {
  margin: 40px 0;
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(120deg, #141820, #2a3344);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: "「";
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 6rem;
  color: rgba(255, 61, 127, 0.35);
  font-family: var(--font-display);
  line-height: 1;
}

.quote-band p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
}

/* FAQ */
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq-list details p {
  margin: 10px 0 0;
}

/* 面包屑 */
.crumb-bar {
  width: min(100% - 32px, var(--max));
  margin: 18px auto 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.crumb-bar a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumb-bar a:hover {
  color: var(--bloom-deep);
}

.crumb-bar span {
  margin: 0 6px;
  opacity: 0.5;
}

/* 子页头 */
.sub-hero {
  width: min(100% - 32px, var(--max));
  margin: 12px auto 32px;
  padding: 36px 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 61, 127, 0.12), rgba(31, 191, 168, 0.1)),
    #fff;
  border: 1px solid var(--line);
}

.sub-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
}

.sub-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42em;
}

.legal-body {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 64px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px 36px;
}

.legal-body h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--paper-2);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

/* 错误页 */
.err-stage {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}

.err-stage strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 8rem);
  color: var(--bloom);
  line-height: 1;
  margin-bottom: 8px;
}

.err-stage h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.err-stage p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 0 auto 22px;
}

/* 页脚 */
.ink-foot {
  margin-top: 72px;
  background: #141820;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
}

.ink-foot a {
  color: #ffb3cc;
  text-decoration: none;
}

.ink-foot a:hover {
  color: #fff;
}

.ink-foot-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.ink-foot h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.ink-foot p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.ink-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ink-foot li {
  margin-bottom: 8px;
}

.ink-copy {
  width: min(100% - 32px, var(--max));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 响应式 */
@media (max-width: 900px) {
  .strip-hero-grid,
  .zig-row,
  .mosaic,
  .tile-matrix,
  .ink-foot-grid {
    grid-template-columns: 1fr;
  }

  .zig-row.is-flip .zig-media {
    order: 0;
  }

  .spark-dock-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ink-nav {
    display: none;
  }

  .ink-toggle {
    display: grid;
    place-items: center;
  }

  .ink-drawer.is-open {
    display: block;
    padding: 0 16px 14px;
  }

  .ink-drawer a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
  }

  .strip-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .phone-stage {
    min-height: 340px;
    order: -1;
  }

  .phone-frame {
    width: min(100%, 220px);
  }
}

@media (max-width: 560px) {
  .tile-matrix {
    grid-template-columns: 1fr;
  }

  .sub-hero,
  .legal-body {
    padding: 22px 16px;
  }
}
