/* 哔咔漫画 pi-ca.mom — Inklane Visual System */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Outfit:wght@500;700;800&family=ZCOOL+XiaoWei&display=swap');

:root {
  --ink: #15202b;
  --ink-soft: #3d5166;
  --mist: #eef7f9;
  --paper: #f7fcfd;
  --coral: #ff4d6d;
  --coral-deep: #e0284f;
  --teal: #1abc9c;
  --teal-deep: #0e8f76;
  --amber: #f0a202;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(21, 32, 43, 0.12);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 64px;
  --promo-gap: 12px;
  --font-brand: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-ui: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 188, 156, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(255, 77, 109, 0.16), transparent 50%),
    linear-gradient(180deg, #e8f4f7 0%, var(--paper) 28%, #f3fafb 100%);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

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

/* —— Top promo strip —— */
.il-promo {
  background: linear-gradient(90deg, rgba(26, 188, 156, 0.12), rgba(255, 77, 109, 0.1));
  border-bottom: 1px solid rgba(21, 32, 43, 0.06);
  padding: 10px 0 6px;
}

.il-promo-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.il-promo-inner > div {
  width: 70px;
  text-align: center;
}

.il-promo-inner img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(21, 32, 43, 0.14);
  margin-inline: auto;
  transition: transform 0.2s ease;
}

.il-promo-inner a:hover img {
  transform: translateY(-3px) scale(1.05);
}

.il-promo-inner .caption {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Nav —— */
.il-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 252, 253, 0.78);
  border-bottom: 1px solid rgba(21, 32, 43, 0.07);
}

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

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

.il-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.il-brand span {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.il-menu {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.il-menu a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.il-menu a:hover,
.il-menu a.is-on {
  background: rgba(26, 188, 156, 0.14);
  color: var(--teal-deep);
}

.il-burger {
  display: none;
  border: 1px solid rgba(21, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 32, 43, 0.06);
}

.il-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--ink);
  border-radius: 2px;
}

/* —— Sticky download dock —— */
.il-dock {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  display: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21, 32, 43, 0.08);
  padding: 8px 0;
}

.il-dock.is-show {
  display: block;
}

.il-dock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
  justify-items: center;
}

.il-dock-grid > div {
  width: 100%;
  max-width: 72px;
  text-align: center;
}

.il-dock-grid img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  margin-inline: auto;
  box-shadow: 0 6px 16px rgba(21, 32, 43, 0.12);
}

.il-dock-grid .caption {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.il-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    linear-gradient(125deg, rgba(26, 188, 156, 0.22), transparent 45%),
    linear-gradient(210deg, rgba(255, 77, 109, 0.2), transparent 40%);
  filter: blur(8px);
  pointer-events: none;
}

.il-hero-stage {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: end;
}

.il-hero-copy {
  position: relative;
  z-index: 1;
}

.il-hero-kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 12px;
}

.il-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}

.il-hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36em;
}

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

.il-hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  animation: il-float 7s ease-in-out infinite;
}

.il-hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(21, 32, 43, 0.45));
  pointer-events: none;
}

@keyframes il-float {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50% { transform: scale(1.05) translateY(-6px); }
}

/* —— Sections —— */
.il-section {
  padding: 42px 0;
}

.il-section h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  line-height: 1.35;
  margin-bottom: 14px;
}

.il-section h3 {
  font-family: var(--font-brand);
  font-size: 1.22rem;
  margin: 22px 0 10px;
  color: var(--ink);
}

.il-section p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.il-section p strong {
  color: var(--ink);
  font-weight: 700;
}

.il-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 8px;
}

/* —— Layout modules —— */
.il-textblock {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(21, 32, 43, 0.05);
}

.il-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

.il-split.is-flip .il-media {
  order: -1;
}

.il-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.il-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.il-media.wide img {
  aspect-ratio: 16 / 10;
  max-height: 380px;
}

.il-cards {
  display: grid;
  gap: 16px;
}

.il-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 18px;
  border: 1px solid rgba(21, 32, 43, 0.06);
  box-shadow: 0 12px 28px rgba(21, 32, 43, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.il-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(21, 32, 43, 0.1);
}

.il-card h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

.il-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.il-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(26, 188, 156, 0.2), rgba(255, 77, 109, 0.18));
  font-size: 1.2rem;
}

.il-mosaic {
  display: grid;
  gap: 14px;
}

.il-mosaic .il-tile {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(21, 32, 43, 0.06);
  box-shadow: 0 10px 26px rgba(21, 32, 43, 0.06);
}

.il-mosaic .il-tile img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
}

.il-mosaic .il-tile figcaption {
  padding: 12px 14px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.il-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.il-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.il-btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 40, 79, 0.28);
}

.il-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.il-btn-ghost {
  background: rgba(26, 188, 156, 0.12);
  color: var(--teal-deep);
}

.il-btn-ghost:hover {
  color: var(--teal-deep);
  background: rgba(26, 188, 156, 0.2);
}

.il-ribbon {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(26, 188, 156, 0.16), rgba(255, 77, 109, 0.12)),
    #fff;
  overflow: hidden;
}

.il-ribbon::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(240, 162, 2, 0.18);
  animation: il-pulse 5s ease-in-out infinite;
}

@keyframes il-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.il-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.il-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.il-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  transform: rotate(45deg);
}

/* —— Breadcrumb —— */
.il-crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.il-crumb a {
  text-decoration: none;
  color: var(--teal-deep);
}

.il-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* —— Legal / sub pages —— */
.il-page-head {
  padding: 28px 0 10px;
}

.il-page-head h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.3;
}

.il-legal {
  padding-bottom: 48px;
}

.il-legal article {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 32, 43, 0.05);
}

.il-legal h2 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin: 26px 0 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(21, 32, 43, 0.1);
}

.il-legal h2:first-of-type {
  border-top: 0;
  margin-top: 8px;
}

.il-legal p,
.il-legal li {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.il-legal ul {
  padding-left: 1.2em;
  margin-bottom: 14px;
}

/* —— Error pages —— */
.il-error {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.il-error-code {
  font-family: var(--font-ui);
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.il-error h1 {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

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

/* —— Footer —— */
.il-footer {
  margin-top: 20px;
  padding: 36px 0 48px;
  background: linear-gradient(180deg, transparent, rgba(21, 32, 43, 0.04));
  border-top: 1px solid rgba(21, 32, 43, 0.06);
}

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

.il-footer h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.il-footer p,
.il-footer a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}

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

.il-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
}

.il-copy {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* —— Reveal animation —— */
.il-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* —— Desktop —— */
@media (min-width: 768px) {
  .il-dock-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .il-hero-stage {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
  }

  .il-split {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .il-split.is-flip .il-media {
    order: 0;
  }

  .il-split.is-flip .il-copy {
    order: -1;
  }

  .il-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .il-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .il-footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .il-media img {
    max-height: 560px;
  }
}

@media (max-width: 767px) {
  .il-burger {
    display: flex;
  }

  .il-menu {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--nav-h) + 8px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    box-shadow: var(--shadow);
    border: 1px solid rgba(21, 32, 43, 0.08);
  }

  .il-menu.is-open {
    display: flex;
  }

  .il-nav {
    position: sticky;
  }

  .il-nav-row {
    position: relative;
  }
}
