/* Inkwave — 哔咔漫画 p-c.baby 独立视觉体系 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --iw-ink: #152033;
  --iw-ink-soft: #3a465c;
  --iw-mist: #eef3f8;
  --iw-paper: #f8fbfd;
  --iw-cherry: #e83d5a;
  --iw-cherry-deep: #c22845;
  --iw-teal: #1aa6a0;
  --iw-gold: #f0b429;
  --iw-glass: rgba(255, 255, 255, 0.62);
  --iw-line: rgba(21, 32, 51, 0.08);
  --iw-shadow: 0 18px 48px rgba(21, 32, 51, 0.1);
  --iw-radius: 22px;
  --iw-nav-h: 64px;
  --iw-promo-h: 0px;
  --iw-dock-h: 0px;
  --iw-font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --iw-font-body: "Noto Sans SC", sans-serif;
  --iw-max: 1080px;
  --iw-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--iw-font-body);
  color: var(--iw-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 166, 160, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 61, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #e8eef6 0%, var(--iw-mist) 38%, #f4f7fb 100%);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
  padding-top: calc(var(--iw-nav-h) + var(--iw-promo-h));
  padding-bottom: calc(28px + var(--iw-dock-h));
  overflow-x: hidden;
}

body.iw-has-promo {
  --iw-promo-h: 118px;
}

body.iw-dock-on {
  --iw-dock-h: 108px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--iw-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--iw-cherry);
}

.iw-shell {
  width: min(100% - 32px, var(--iw-max));
  margin-inline: auto;
}

/* 顶部推广区 */
.iw-promo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(90deg, #fff7f8, #f3fffd);
  border-bottom: 1px solid var(--iw-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
}

body.iw-has-promo .iw-promo {
  display: block;
}

.iw-promo-inner {
  width: min(100% - 16px, var(--iw-max));
  margin: 0 auto;
  padding: 8px 0 6px;
  overflow: hidden;
}

.iw-promo-label {
  font-size: 12px;
  color: var(--iw-ink-soft);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.iw-promo-track,
.iw-dock-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.iw-ad-item {
  width: 70px;
  text-align: center;
  text-decoration: none;
  color: var(--iw-ink-soft);
}

.iw-ad-item img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(21, 32, 51, 0.12);
  transition: transform 0.25s var(--iw-ease), box-shadow 0.25s var(--iw-ease);
  background: #fff;
}

.iw-ad-item:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(21, 32, 51, 0.16);
}

.iw-ad-item span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.iw-nav {
  position: fixed;
  top: var(--iw-promo-h);
  left: 0;
  right: 0;
  height: var(--iw-nav-h);
  z-index: 50;
  background: rgba(248, 251, 253, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--iw-line);
  transition: box-shadow 0.3s var(--iw-ease);
}

.iw-nav.iw-nav-solid {
  box-shadow: 0 8px 28px rgba(21, 32, 51, 0.08);
}

.iw-nav-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.iw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--iw-ink);
}

.iw-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(232, 61, 90, 0.25);
}

.iw-brand strong {
  font-family: var(--iw-font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.iw-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.iw-menu a {
  text-decoration: none;
  color: var(--iw-ink-soft);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.iw-menu a:hover,
.iw-menu a.iw-active {
  background: rgba(232, 61, 90, 0.1);
  color: var(--iw-cherry-deep);
}

.iw-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--iw-line);
  border-radius: 12px;
  background: var(--iw-glass);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.iw-burger span {
  width: 18px;
  height: 2px;
  background: var(--iw-ink);
  border-radius: 2px;
}

/* 固定下载坞 */
.iw-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  transform: translateY(110%);
  transition: transform 0.35s var(--iw-ease);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--iw-line);
  box-shadow: 0 -10px 30px rgba(21, 32, 51, 0.08);
  padding: 10px 8px 12px;
}

body.iw-dock-on .iw-dock {
  transform: translateY(0);
}

.iw-dock-title {
  text-align: center;
  font-size: 12px;
  color: var(--iw-ink-soft);
  margin-bottom: 6px;
}

.iw-dock-track .iw-ad-item {
  width: calc(25% - 10px);
  max-width: 78px;
}

@media (min-width: 768px) {
  .iw-dock-track .iw-ad-item {
    width: calc(12.5% - 10px);
  }
}

/* Hero */
.iw-hero {
  position: relative;
  padding: 36px 0 48px;
  overflow: hidden;
}

.iw-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 20% 40%, rgba(240, 180, 41, 0.22), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(26, 166, 160, 0.2), transparent 42%),
    radial-gradient(circle at 55% 80%, rgba(232, 61, 90, 0.16), transparent 45%);
  filter: blur(8px);
  pointer-events: none;
  animation: iw-float 10s ease-in-out infinite alternate;
}

@keyframes iw-float {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(18px) scale(1.04); }
}

.iw-hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .iw-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.iw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--iw-teal);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.iw-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--iw-teal), var(--iw-cherry));
  border-radius: 2px;
}

.iw-hero h1 {
  font-family: var(--iw-font-display);
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.25;
  font-weight: 400;
  margin-bottom: 16px;
  background: linear-gradient(120deg, var(--iw-ink) 20%, #29486e 55%, var(--iw-cherry-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.iw-hero-lead {
  font-size: 17px;
  color: var(--iw-ink-soft);
  max-width: 36em;
}

.iw-hero-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.iw-phone {
  width: min(240px, 70vw);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--iw-shadow), 0 0 0 1px rgba(21, 32, 51, 0.06);
  transform: rotate(-4deg);
  animation: iw-rise 1s var(--iw-ease) both;
}

.iw-phone-b {
  position: absolute;
  width: min(180px, 48vw);
  right: 4%;
  bottom: 6%;
  transform: rotate(8deg);
  animation: iw-rise 1.2s 0.15s var(--iw-ease) both;
  opacity: 0.96;
}

@keyframes iw-rise {
  from { opacity: 0; transform: translateY(28px) rotate(0deg); }
  to { opacity: 1; }
}

.iw-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(26, 166, 160, 0.35));
  filter: blur(2px);
  animation: iw-pulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes iw-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

/* 通用区块 */
.iw-block {
  padding: 42px 0;
}

.iw-block + .iw-block {
  border-top: 1px dashed rgba(21, 32, 51, 0.08);
}

.iw-block h2 {
  font-family: var(--iw-font-display);
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.35;
}

.iw-block h3 {
  font-size: 20px;
  margin: 22px 0 10px;
  color: #1d2c45;
}

.iw-block p {
  margin-bottom: 14px;
  color: var(--iw-ink-soft);
  text-align: justify;
}

.iw-lead {
  font-size: 17px;
  color: var(--iw-ink);
}

.iw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.iw-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 166, 160, 0.1);
  color: #0d7a75;
  border: 1px solid rgba(26, 166, 160, 0.18);
}

/* 卡片矩阵 */
.iw-card-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

@media (min-width: 680px) {
  .iw-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .iw-card-grid.iw-triple {
    grid-template-columns: repeat(3, 1fr);
  }
}

.iw-card {
  background: var(--iw-glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--iw-radius);
  padding: 22px 20px;
  box-shadow: var(--iw-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--iw-ease), box-shadow 0.3s var(--iw-ease);
}

.iw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(21, 32, 51, 0.14);
}

.iw-card h3 {
  margin-top: 0;
  font-size: 18px;
}

.iw-card p {
  font-size: 14px;
  margin-bottom: 0;
}

.iw-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(232, 61, 90, 0.15), rgba(26, 166, 160, 0.18));
  font-size: 18px;
  color: var(--iw-cherry-deep);
  font-weight: 700;
}

/* 图文交错 */
.iw-split {
  display: grid;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
}

@media (min-width: 860px) {
  .iw-split {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .iw-split.iw-flip .iw-split-media {
    order: 2;
  }
}

.iw-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--iw-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
  position: relative;
}

.iw-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

.iw-frame-wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  object-fit: cover;
}

.iw-caption {
  font-size: 13px;
  color: var(--iw-ink-soft);
  margin-top: 8px;
}

/* 色带面板 */
.iw-ribbon {
  margin: 28px 0;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(232, 61, 90, 0.92), rgba(194, 40, 69, 0.88) 40%, rgba(26, 166, 160, 0.85));
  color: #fff;
  box-shadow: 0 20px 40px rgba(232, 61, 90, 0.25);
  position: relative;
  overflow: hidden;
}

.iw-ribbon::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.iw-ribbon h2,
.iw-ribbon h3,
.iw-ribbon p {
  color: #fff;
  position: relative;
  z-index: 1;
}

.iw-ribbon a {
  color: #fff8c8;
}

/* CTA（非 Hero / 非导航） */
.iw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.iw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.iw-btn-primary {
  background: linear-gradient(135deg, var(--iw-cherry), var(--iw-cherry-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 61, 90, 0.28);
}

.iw-btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
}

.iw-btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--iw-ink);
  border: 1px solid var(--iw-line);
}

.iw-btn-ghost:hover {
  color: var(--iw-cherry-deep);
}

/* 时间轴 */
.iw-timeline {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.iw-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.iw-step-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--iw-line);
  font-family: var(--iw-font-display);
  font-size: 20px;
  color: var(--iw-cherry);
}

/* 面包屑 */
.iw-crumb {
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--iw-ink-soft);
}

.iw-crumb a {
  color: var(--iw-ink-soft);
  text-decoration: none;
}

.iw-crumb a:hover {
  color: var(--iw-cherry);
}

.iw-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* 法律页 */
.iw-legal {
  padding-bottom: 48px;
}

.iw-legal h1 {
  font-family: var(--iw-font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  margin: 8px 0 18px;
}

.iw-legal h2 {
  font-size: 22px;
  margin: 28px 0 10px;
}

.iw-legal ul {
  margin: 8px 0 16px 1.2em;
  color: var(--iw-ink-soft);
}

.iw-legal li {
  margin-bottom: 8px;
}

/* 页脚 */
.iw-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #132033;
  color: rgba(255, 255, 255, 0.78);
}

.iw-foot a {
  color: #9fe3df;
  text-decoration: none;
}

.iw-foot a:hover {
  color: #fff;
}

.iw-foot-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .iw-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.iw-foot h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.iw-foot p,
.iw-foot li {
  font-size: 14px;
  line-height: 1.7;
}

.iw-foot ul {
  list-style: none;
}

.iw-foot li {
  margin-bottom: 6px;
}

.iw-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  text-align: center;
  opacity: 0.75;
}

/* 状态页 */
.iw-status {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.iw-status h1 {
  font-family: var(--iw-font-display);
  font-size: clamp(40px, 10vw, 72px);
  font-weight: 400;
  margin-bottom: 10px;
}

.iw-status p {
  color: var(--iw-ink-soft);
  margin-bottom: 18px;
}

/* 显隐动画 */
.iw-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--iw-ease), transform 0.7s var(--iw-ease);
}

.iw-reveal.iw-in {
  opacity: 1;
  transform: none;
}

/* 移动端菜单 */
@media (max-width: 820px) {
  .iw-burger {
    display: inline-flex;
  }

  .iw-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--iw-line);
    border-radius: 16px;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--iw-shadow);
  }

  .iw-menu.iw-open {
    display: flex;
  }

  .iw-menu a {
    padding: 12px 14px;
  }

  body.iw-has-promo {
    --iw-promo-h: 132px;
  }

  body.iw-dock-on {
    --iw-dock-h: 128px;
  }
}

@media (max-width: 480px) {
  body.iw-has-promo {
    --iw-promo-h: 148px;
  }
}
