/* 哔咔漫画 bicar.homes — Coral Mist Scroll */
@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --hmw-ink: #12161d;
  --hmw-ink-soft: #2a3340;
  --hmw-mist: #e8eef5;
  --hmw-paper: #f7fafc;
  --hmw-coral: #ff4d6d;
  --hmw-coral-deep: #d63355;
  --hmw-teal: #0f9f9a;
  --hmw-teal-glow: #5eead4;
  --hmw-gold: #f0b429;
  --hmw-line: rgba(18, 22, 29, 0.08);
  --hmw-glass: rgba(247, 250, 252, 0.72);
  --hmw-shadow: 0 18px 40px rgba(18, 22, 29, 0.1);
  --hmw-radius: 22px;
  --hmw-max: 1080px;
  --hmw-nav-h: 64px;
  --hmw-stick-h: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--hmw-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 109, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 40% at 95% 5%, rgba(15, 159, 154, 0.12), transparent 50%),
    linear-gradient(180deg, #f2f6fb 0%, var(--hmw-paper) 38%, #eef3f8 100%);
  line-height: 1.85;
  min-height: 100vh;
  padding-top: var(--hmw-nav-h);
  padding-bottom: calc(24px + var(--hmw-stick-h));
  overflow-x: hidden;
}

body.hmw-stick-on {
  --hmw-stick-h: 118px;
}

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

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

a:hover {
  color: var(--hmw-teal);
}

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

/* Top promo */
.hmw-promo {
  background: linear-gradient(90deg, rgba(255, 77, 109, 0.08), rgba(15, 159, 154, 0.08));
  border-bottom: 1px solid var(--hmw-line);
  padding: 12px 0 6px;
}

.hmw-promo-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--hmw-ink-soft);
  text-align: center;
  margin-bottom: 8px;
}

.hmw-promo-grid,
.hmw-stick-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
}

.hmw-promo-grid a,
.hmw-stick-grid a {
  width: calc(25% - 8px);
  max-width: 72px;
  text-decoration: none;
  color: var(--hmw-ink-soft);
  text-align: center;
}

@media (min-width: 768px) {
  .hmw-promo-grid a,
  .hmw-stick-grid a {
    width: calc(12.5% - 8px);
  }
}

.hmw-promo-grid img,
.hmw-stick-grid img {
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(18, 22, 29, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hmw-promo-grid a:hover img,
.hmw-stick-grid a:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 22px rgba(18, 22, 29, 0.16);
}

.hmw-promo-grid span,
.hmw-stick-grid span {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.hmw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--hmw-nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: var(--hmw-glass);
  border-bottom: 1px solid var(--hmw-line);
}

.hmw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 24px, var(--hmw-max));
  margin-inline: auto;
}

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

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

.hmw-brand strong {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--hmw-coral), var(--hmw-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hmw-menu-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hmw-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hmw-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hmw-ink);
  position: relative;
}

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

.hmw-menu-btn span::before { top: -6px; }
.hmw-menu-btn span::after { top: 6px; }

.hmw-links {
  display: none;
  gap: 18px;
  align-items: center;
}

.hmw-links a {
  text-decoration: none;
  color: var(--hmw-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.hmw-links a:hover,
.hmw-links a.hmw-active {
  color: var(--hmw-coral);
}

.hmw-drawer {
  display: none;
  position: fixed;
  top: var(--hmw-nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(247, 250, 252, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hmw-line);
  padding: 16px 20px 22px;
}

.hmw-drawer.hmw-open { display: grid; gap: 14px; }

.hmw-drawer a {
  text-decoration: none;
  color: var(--hmw-ink);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hmw-line);
}

@media (min-width: 860px) {
  .hmw-menu-btn { display: none; }
  .hmw-links { display: flex; }
  .hmw-drawer { display: none !important; }
}

/* Sticky download */
.hmw-stick {
  position: fixed;
  top: var(--hmw-nav-h);
  left: 0;
  right: 0;
  z-index: 980;
  transform: translateY(-120%);
  transition: transform 0.28s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hmw-line);
  padding: 8px 8px 6px;
}

.hmw-stick.hmw-show {
  transform: translateY(0);
}

.hmw-stick-label {
  text-align: center;
  font-size: 11px;
  color: var(--hmw-ink-soft);
  margin-bottom: 4px;
}

/* Hero */
.hmw-hero {
  position: relative;
  min-height: calc(100vh - var(--hmw-nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hmw-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 22, 29, 0.15) 0%, rgba(18, 22, 29, 0.72) 100%),
    url("screen-comic-serial.jpg") center/cover no-repeat;
  animation: hmw-ken 18s ease-in-out infinite alternate;
}

@keyframes hmw-ken {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hmw-hero-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(247, 250, 252, 0.95) 70%);
}

.hmw-hero-copy {
  padding: 48px 0 56px;
  color: #fff;
  max-width: 720px;
}

.hmw-hero-copy .hmw-brand-mark {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  animation: hmw-rise 0.8s ease both;
}

.hmw-hero h1 {
  font-size: clamp(1.2rem, 3.6vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: hmw-rise 0.9s 0.1s ease both;
}

.hmw-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  max-width: 36em;
  animation: hmw-rise 1s 0.18s ease both;
}

.hmw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: hmw-rise 1.05s 0.25s ease both;
}

.hmw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hmw-btn:hover {
  transform: translateY(-2px);
}

.hmw-btn-light {
  background: #fff;
  color: var(--hmw-ink);
  box-shadow: var(--hmw-shadow);
}

.hmw-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

@keyframes hmw-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.hmw-block {
  padding: 56px 0;
}

.hmw-block + .hmw-block {
  border-top: 1px solid var(--hmw-line);
}

.hmw-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--hmw-teal);
  margin-bottom: 8px;
  font-weight: 700;
}

.hmw-block h2 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--hmw-ink);
}

.hmw-block h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: var(--hmw-ink);
}

.hmw-lead,
.hmw-prose p {
  color: var(--hmw-ink-soft);
  margin-bottom: 14px;
  font-size: 1rem;
}

.hmw-prose p {
  text-align: justify;
}

/* Split layouts */
.hmw-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .hmw-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
  .hmw-split.hmw-flip { direction: rtl; }
  .hmw-split.hmw-flip > * { direction: ltr; }
}

.hmw-phone {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--hmw-shadow);
  border: 1px solid var(--hmw-line);
  background: #fff;
  transform: rotate(-1.5deg);
  transition: transform 0.35s ease;
}

.hmw-phone:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.hmw-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.12), transparent 40%, rgba(15, 159, 154, 0.1));
  pointer-events: none;
}

/* Cards */
.hmw-mosaic {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .hmw-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hmw-tile {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--hmw-line);
  border-radius: var(--hmw-radius);
  padding: 22px 20px;
  box-shadow: 0 10px 28px rgba(18, 22, 29, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hmw-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 109, 0.35);
}

.hmw-tile h3 {
  margin-top: 0;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 1.25rem;
}

.hmw-tile p {
  color: var(--hmw-ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

.hmw-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(15, 159, 154, 0.15));
  color: var(--hmw-coral-deep);
  font-weight: 700;
}

/* Feature strip */
.hmw-ribbon {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(15, 159, 154, 0.12)),
    rgba(255, 255, 255, 0.65);
  border: 1px solid var(--hmw-line);
  backdrop-filter: blur(10px);
}

@media (min-width: 800px) {
  .hmw-ribbon {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

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

.hmw-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hmw-line);
  color: var(--hmw-ink-soft);
}

/* Gallery row */
.hmw-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.hmw-gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hmw-line);
  box-shadow: 0 8px 20px rgba(18, 22, 29, 0.06);
}

.hmw-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.hmw-gallery figure:hover img {
  transform: scale(1.05);
}

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

/* Quote / highlight */
.hmw-quote {
  margin: 28px 0;
  padding: 24px 22px;
  border-left: 4px solid var(--hmw-coral);
  background: linear-gradient(90deg, rgba(255, 77, 109, 0.08), transparent);
  border-radius: 0 18px 18px 0;
  color: var(--hmw-ink);
  font-size: 1.05rem;
}

/* Timeline */
.hmw-steps {
  display: grid;
  gap: 16px;
}

.hmw-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.hmw-step-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--hmw-coral), var(--hmw-teal));
  box-shadow: 0 10px 20px rgba(255, 77, 109, 0.25);
}

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

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

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

/* Legal pages */
.hmw-page-head {
  padding: 36px 0 10px;
}

.hmw-page-head h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: 10px;
}

.hmw-legal .hmw-block {
  padding: 28px 0;
}

/* Error pages */
.hmw-error {
  min-height: calc(100vh - var(--hmw-nav-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.hmw-error strong {
  display: block;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--hmw-coral), var(--hmw-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.hmw-error h1 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

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

/* Footer */
.hmw-foot {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--hmw-line);
  background: rgba(255, 255, 255, 0.45);
}

.hmw-foot-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .hmw-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.hmw-foot h3 {
  font-family: "ZCOOL XiaoWei", serif;
  margin-bottom: 10px;
}

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

.hmw-foot a {
  display: block;
  text-decoration: none;
  margin-bottom: 6px;
}

.hmw-foot a:hover {
  color: var(--hmw-coral);
}

.hmw-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hmw-line);
  font-size: 0.85rem;
  color: var(--hmw-ink-soft);
  text-align: center;
}

/* Misc */
.hmw-text-center { text-align: center; }
.hmw-mt { margin-top: 18px; }
.hmw-mb { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
