/* 哔咔漫画官网 · reel 视觉系统 · 移动端优先 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
  --reel-ink: #14262f;
  --reel-muted: #4a6670;
  --reel-coral: #ff5c4d;
  --reel-coral-deep: #e03d2f;
  --reel-aqua: #1fb8a8;
  --reel-aqua-soft: #c8efe9;
  --reel-sky: #d7eef3;
  --reel-mist: #f3fafb;
  --reel-paper: #ffffff;
  --reel-line: rgba(20, 38, 47, 0.08);
  --reel-glass: rgba(255, 255, 255, 0.72);
  --reel-shadow: 0 18px 40px rgba(20, 38, 47, 0.1);
  --reel-radius: 22px;
  --reel-nav-h: 64px;
  --reel-promo-gap: 12px;
  --font-display: 'ZCOOL QingKe HuangYou', '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(--reel-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe4df 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c9f3ec 0%, transparent 50%),
    linear-gradient(180deg, var(--reel-mist) 0%, #eef7f8 40%, var(--reel-sky) 100%);
  background-attachment: fixed;
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--reel-aqua);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--reel-coral);
}

.reel-wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* —— 顶部推广区 —— */
.reel-promo {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--reel-line);
  padding: 10px 0 6px;
}

.reel-promo #ads,
.reel-dock #ads-dock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
}

.reel-promo #ads > div,
.reel-dock #ads-dock > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .reel-promo #ads {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    gap: 8px 0;
    width: 100%;
    padding: 0 4px;
  }

  .reel-promo #ads > div {
    width: 100%;
    min-width: 0;
  }
}

.reel-promo #ads img,
.reel-dock #ads-dock img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

.reel-promo #ads a,
.reel-dock #ads-dock a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.reel-promo #ads img:hover,
.reel-dock #ads-dock img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.reel-promo #ads .caption,
.reel-dock #ads-dock .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— 导航 —— */
.reel-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--reel-nav-h);
  display: flex;
  align-items: center;
  background: var(--reel-glass);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--reel-line);
}

.reel-nav__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--reel-ink);
}

.reel-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(255, 92, 77, 0.25);
}

.reel-brand span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.reel-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reel-menu a {
  text-decoration: none;
  color: var(--reel-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.reel-menu a:hover,
.reel-menu a.is-on {
  color: var(--reel-ink);
  background: var(--reel-aqua-soft);
}

.reel-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--reel-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.reel-burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--reel-ink);
  border-radius: 2px;
}

/* —— 固定下载条 —— */
.reel-dock {
  position: sticky;
  top: var(--reel-nav-h);
  z-index: 70;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--reel-line);
  padding: 8px 4px 4px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.reel-dock.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.reel-dock #ads-dock {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  justify-items: center;
  align-items: flex-start;
  gap: 6px 0;
  width: min(1120px, 96%);
  margin: 0 auto;
}

.reel-dock #ads-dock > div {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
}

@media (max-width: 768px) {
  .reel-dock #ads-dock {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 0;
    padding: 0 2px;
  }

  .reel-dock #ads-dock img,
  .reel-promo #ads img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .reel-dock #ads-dock .caption,
  .reel-promo #ads .caption {
    max-width: 100%;
  }
}

/* —— Hero —— */
.reel-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.reel-hero__glow {
  position: absolute;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  animation: reel-float 8s ease-in-out infinite;
}

.reel-hero__glow--a {
  top: -40px;
  right: 8%;
  background: var(--reel-coral);
}

.reel-hero__glow--b {
  bottom: 0;
  left: 5%;
  background: var(--reel-aqua);
  animation-delay: -3s;
}

@keyframes reel-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(18px) scale(1.08); }
}

.reel-hero__grid {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

.reel-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.reel-hero__lead {
  color: var(--reel-muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin-bottom: 22px;
}

.reel-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reel-chip {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--reel-line);
  color: var(--reel-muted);
}

.reel-hero__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--reel-shadow);
  transform: rotate(-1.5deg);
  animation: reel-tilt 7s ease-in-out infinite;
}

@keyframes reel-tilt {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-8px); }
}

.reel-hero__visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
}

.reel-hero__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(20, 38, 47, 0.72);
  color: #fff;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

/* —— 通用区块 —— */
.reel-section {
  padding: 42px 0;
}

.reel-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin-bottom: 10px;
  line-height: 1.35;
}

.reel-section h3 {
  font-size: 1.15rem;
  margin: 22px 0 8px;
  color: var(--reel-ink);
}

.reel-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--reel-coral);
  font-weight: 700;
  margin-bottom: 8px;
}

.reel-lead {
  color: var(--reel-muted);
  margin-bottom: 22px;
  max-width: 46em;
}

.reel-prose p {
  margin-bottom: 1.05em;
  color: var(--reel-ink);
}

.reel-prose p + p {
  text-indent: 0;
}

/* —— 图文交替 —— */
.reel-split {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.reel-split--flip .reel-shot {
  order: -1;
}

.reel-shot {
  border-radius: var(--reel-radius);
  overflow: hidden;
  box-shadow: var(--reel-shadow);
  background: #fff;
  border: 1px solid var(--reel-line);
}

.reel-shot img {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.reel-shot figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--reel-muted);
  background: #fff;
}

/* —— 卡片网格 —— */
.reel-cards {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.reel-card {
  background: var(--reel-paper);
  border: 1px solid var(--reel-line);
  border-radius: var(--reel-radius);
  padding: 22px 20px;
  box-shadow: 0 10px 28px rgba(20, 38, 47, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--reel-shadow);
}

.reel-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.reel-card p {
  color: var(--reel-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.reel-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--reel-aqua-soft), #ffe8e4);
  color: var(--reel-coral-deep);
  font-weight: 900;
  font-size: 1.1rem;
}

/* —— 条纹图文混排 —— */
.reel-mosaic {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.reel-mosaic__item {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--reel-line);
  border-radius: var(--reel-radius);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.reel-mosaic__item img {
  border-radius: 16px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  max-height: 360px;
  width: 100%;
}

.reel-mosaic__item h3 {
  margin-top: 0;
}

/* —— CTA 区（非 hero/nav） —— */
.reel-cta {
  margin: 36px 0;
  padding: 28px 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(31, 184, 168, 0.18), rgba(255, 92, 77, 0.16)),
    #fff;
  border: 1px solid var(--reel-line);
  text-align: center;
}

.reel-cta h2 {
  margin-bottom: 8px;
}

.reel-cta p {
  color: var(--reel-muted);
  margin-bottom: 18px;
}

.reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--reel-coral), var(--reel-coral-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 92, 77, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.reel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 92, 77, 0.42);
}

.reel-btn--ghost {
  background: #fff;
  color: var(--reel-ink) !important;
  border: 1px solid var(--reel-line);
  box-shadow: none;
  margin-left: 8px;
}

/* —— 面包屑 —— */
.reel-crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--reel-muted);
}

.reel-crumb a {
  color: var(--reel-muted);
  text-decoration: none;
}

.reel-crumb a:hover {
  color: var(--reel-coral);
}

.reel-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* —— 法律页 —— */
.reel-legal {
  padding: 10px 0 56px;
}

.reel-legal .reel-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--reel-line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--reel-shadow);
}

.reel-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.reel-legal .reel-updated {
  color: var(--reel-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.reel-legal h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--reel-aqua);
}

.reel-legal p,
.reel-legal li {
  color: var(--reel-ink);
  margin-bottom: 0.9em;
}

.reel-legal ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

/* —— 错误页 —— */
.reel-error {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.reel-error__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--reel-coral), var(--reel-aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: reel-pulse 2.4s ease-in-out infinite;
}

@keyframes reel-pulse {
  0%, 100% { filter: saturate(1); transform: scale(1); }
  50% { filter: saturate(1.2); transform: scale(1.03); }
}

.reel-error h1 {
  font-size: 1.6rem;
  margin: 12px 0;
}

.reel-error p {
  color: var(--reel-muted);
  margin-bottom: 22px;
}

/* —— 页脚 —— */
.reel-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #122229;
  color: rgba(255, 255, 255, 0.78);
}

.reel-foot a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.reel-foot a:hover {
  color: #fff;
}

.reel-foot__grid {
  display: grid;
  gap: 22px;
}

.reel-foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reel-foot__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.reel-foot__brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}

.reel-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.reel-foot__copy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* —— 时间线 / 列表特色 —— */
.reel-timeline {
  position: relative;
  margin: 24px 0;
  padding-left: 22px;
}

.reel-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--reel-aqua), var(--reel-coral));
  border-radius: 2px;
}

.reel-timeline li {
  list-style: none;
  position: relative;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--reel-line);
}

.reel-timeline li::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--reel-coral);
  box-shadow: 0 0 0 4px rgba(255, 92, 77, 0.2);
}

.reel-quote {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(31, 184, 168, 0.12), rgba(255, 92, 77, 0.08));
  border-left: 4px solid var(--reel-aqua);
  font-size: 1.02rem;
  color: var(--reel-ink);
}

/* —— 响应式 —— */
@media (min-width: 768px) {
  .reel-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .reel-split {
    grid-template-columns: 1fr 1fr;
  }

  .reel-split--flip .reel-shot {
    order: 0;
  }

  .reel-split--flip .reel-shot {
    order: 2;
  }

  .reel-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .reel-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .reel-foot__grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .reel-burger {
    display: flex;
  }

  .reel-menu {
    display: none;
    position: absolute;
    top: var(--reel-nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--reel-line);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .reel-menu.is-open {
    display: flex;
  }

  .reel-menu a {
    border-radius: 12px;
  }

  .reel-btn--ghost {
    margin-left: 0;
    margin-top: 10px;
  }

  .reel-cta .reel-btn,
  .reel-cta .reel-btn--ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
