/* 哔咔漫画官网 · Aqua Folio 视觉系统 */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --mf-ink: #12262f;
  --mf-ink-soft: #2a4550;
  --mf-foam: #f3fbf9;
  --mf-mist: #d7f0ea;
  --mf-teal: #1f9f8a;
  --mf-teal-deep: #0f6e60;
  --mf-coral: #ff7a59;
  --mf-coral-deep: #e85a38;
  --mf-sand: #ffe8d6;
  --mf-line: rgba(18, 38, 47, 0.1);
  --mf-glass: rgba(255, 255, 255, 0.62);
  --mf-shadow: 0 18px 40px rgba(15, 60, 52, 0.12);
  --mf-radius: 22px;
  --mf-max: 1120px;
  --mf-nav-h: 64px;
  --mf-sticky-h: 0px;
  --mf-font-display: "M PLUS Rounded 1c", "Noto Sans SC", sans-serif;
  --mf-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(--mf-font-body);
  color: var(--mf-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #c8f3e8 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe1d2 0%, transparent 50%),
    linear-gradient(180deg, #eefaf7 0%, var(--mf-foam) 40%, #fff9f4 100%);
  line-height: 1.85;
  font-size: 16px;
  padding-top: var(--mf-nav-h);
  padding-bottom: calc(24px + var(--mf-sticky-h));
}

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

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

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

h1, h2, h3 {
  font-family: var(--mf-font-display);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--mf-ink);
}

h1 { font-size: clamp(1.7rem, 5vw, 2.55rem); margin: 0 0 0.7em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); margin: 1.4em 0 0.65em; }
h3 { font-size: clamp(1.1rem, 2.8vw, 1.35rem); margin: 1.2em 0 0.5em; }

p { margin: 0 0 1em; }

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

/* 顶部推广区 */
.mf-promo {
  background: linear-gradient(90deg, rgba(31, 159, 138, 0.12), rgba(255, 122, 89, 0.12));
  border-bottom: 1px solid var(--mf-line);
  padding: 10px 0 6px;
}

.mf-promo-inner {
  width: min(100% - 16px, var(--mf-max));
  margin: 0 auto;
}

.mf-adgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  justify-items: center;
}

@media (min-width: 900px) {
  .mf-adgrid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.mf-adcell {
  width: 100%;
  max-width: 78px;
  text-align: center;
}

.mf-adcell a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mf-adcell img {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(18, 38, 47, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background: #fff;
}

.mf-adcell a:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(18, 38, 47, 0.18);
}

.mf-adcell span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--mf-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.mf-mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--mf-nav-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(243, 251, 249, 0.78);
  border-bottom: 1px solid var(--mf-line);
}

.mf-mast-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mf-ink);
  font-family: var(--mf-font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.mf-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(15, 110, 96, 0.25);
}

.mf-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mf-nav a {
  text-decoration: none;
  color: var(--mf-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mf-nav a:hover,
.mf-nav a.is-on {
  background: rgba(31, 159, 138, 0.12);
  color: var(--mf-teal-deep);
}

.mf-burger {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

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

@media (max-width: 860px) {
  .mf-burger { display: inline-block; }
  .mf-nav {
    position: absolute;
    top: var(--mf-nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--mf-line);
    box-shadow: var(--mf-shadow);
  }
  .mf-nav.is-open { display: flex; }
  .mf-nav a { padding: 12px 14px; }
}

/* 固定下载栏 */
.mf-stickydl {
  position: fixed;
  top: var(--mf-nav-h);
  left: 0;
  right: 0;
  z-index: 70;
  transform: translateY(-120%);
  transition: transform 0.28s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mf-line);
  padding: 8px 0;
}

.mf-stickydl.is-show {
  transform: translateY(0);
}

body.is-sticky-on {
  --mf-sticky-h: 96px;
}

/* Hero */
.mf-heroplane {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 28px;
}

.mf-heroplane::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 38, 47, 0.15) 0%, rgba(18, 38, 47, 0.55) 55%, rgba(18, 38, 47, 0.78) 100%),
    url("comic-serial-update.jpg") center/cover no-repeat;
  z-index: -2;
  animation: mf-drift 18s ease-in-out infinite alternate;
}

.mf-heroplane::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(31, 159, 138, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}

@keyframes mf-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-2%); }
}

.mf-hero-copy {
  width: min(100% - 32px, var(--mf-max));
  margin: 0 auto 48px;
  color: #fff;
  max-width: 720px;
  animation: mf-rise 0.9s ease both;
}

.mf-hero-copy .mf-brand-title {
  font-family: var(--mf-font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  margin: 0 0 12px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.mf-hero-copy h1 {
  color: #fff;
  font-size: clamp(1.25rem, 3.8vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.mf-hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  max-width: 34em;
}

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

/* 内容模块 */
.mf-section {
  padding: 28px 0;
}

.mf-glasscard {
  background: var(--mf-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--mf-radius);
  box-shadow: var(--mf-shadow);
  padding: clamp(18px, 3vw, 28px);
}

.mf-prose {
  font-size: 1.02rem;
  color: var(--mf-ink-soft);
}

.mf-prose strong {
  color: var(--mf-ink);
  font-weight: 700;
}

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

@media (min-width: 860px) {
  .mf-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }
  .mf-split.is-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .mf-split.is-flip .mf-shot {
    order: -1;
  }
}

.mf-shot {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--mf-shadow);
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}

.mf-shot:hover {
  transform: rotate(0deg) scale(1.015);
}

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

.mf-shot.wide img {
  aspect-ratio: 16 / 10;
  max-height: 420px;
  object-position: center;
}

.mf-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.mf-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 159, 138, 0.12);
  color: var(--mf-teal-deep);
  font-size: 0.86rem;
  font-weight: 500;
}

.mf-mosaic {
  display: grid;
  gap: 16px;
}

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

.mf-tile {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--mf-line);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 24px rgba(18, 38, 47, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.mf-tile h3 {
  margin-top: 0.2em;
}

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

.mf-ribbon {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .mf-ribbon {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.mf-quote {
  margin: 0;
  padding: 22px 24px;
  border-left: 4px solid var(--mf-coral);
  background: linear-gradient(90deg, rgba(255, 122, 89, 0.1), transparent);
  border-radius: 0 18px 18px 0;
  color: var(--mf-ink);
  font-size: 1.05rem;
}

.mf-timeline {
  position: relative;
  padding-left: 22px;
}

.mf-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--mf-teal), var(--mf-coral));
}

.mf-node {
  position: relative;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  border: 1px solid var(--mf-line);
}

.mf-node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mf-teal);
  box-shadow: 0 0 0 4px rgba(31, 159, 138, 0.18);
}

.mf-faq details {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.mf-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--mf-ink);
}

.mf-faq p {
  margin-top: 10px;
  color: var(--mf-ink-soft);
}

/* 面包屑 */
.mf-crumbs {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--mf-ink-soft);
}

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

.mf-crumbs span {
  margin: 0 6px;
  opacity: 0.5;
}

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

.mf-legal .mf-glasscard {
  padding: clamp(22px, 4vw, 40px);
}

.mf-legal h1 {
  margin-top: 0.2em;
}

.mf-legal h2 {
  border-bottom: 1px dashed var(--mf-line);
  padding-bottom: 8px;
}

/* 错误页 */
.mf-errorbox {
  min-height: calc(100vh - var(--mf-nav-h) - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

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

.mf-errorbox .mf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

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

.mf-btn-solid {
  background: linear-gradient(135deg, var(--mf-teal), var(--mf-teal-deep));
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 110, 96, 0.28);
}

.mf-btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--mf-ink);
  border: 1px solid var(--mf-line);
}

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

/* 页脚 */
.mf-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(18, 38, 47, 0.04));
  border-top: 1px solid var(--mf-line);
}

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

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

.mf-foot h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.mf-foot a {
  display: block;
  text-decoration: none;
  color: var(--mf-ink-soft);
  margin-bottom: 8px;
}

.mf-foot a:hover {
  color: var(--mf-teal-deep);
}

.mf-copy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--mf-line);
  font-size: 0.88rem;
  color: var(--mf-ink-soft);
}

.mf-glow {
  position: relative;
}

.mf-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(31, 159, 138, 0.35), rgba(255, 122, 89, 0.25));
  z-index: -1;
  filter: blur(14px);
  opacity: 0.7;
  animation: mf-pulse 3.6s ease-in-out infinite;
}

@keyframes mf-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.mf-reveal {
  animation: mf-rise 0.8s ease both;
}

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