/* /list/detail.html — 历史必应 hero（档案 / 时间线气质） */
.lah-poster.archive-poster {
  --lah-ink: #0c1218;
  --lah-teal: #5eb7b0;
  --lah-teal-deep: #2f7f79;
  --lah-coral: #ff6a45;
  --lah-fog: rgba(232, 240, 244, 0.92);
  /* 避开 fixed site-navbar，避免徽章被顶栏挡住 */
  --lah-nav-clear: 4.5rem;
  position: relative;
  min-height: calc(220px + var(--lah-nav-clear));
  padding-top: var(--lah-nav-clear);
  overflow: hidden;
  isolation: isolate;
}

.lah-poster .lah-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform-origin: 48% 42%;
  animation: lah-ken 30s ease-in-out infinite alternate;
  will-change: transform;
}

.lah-poster .lah-hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(8, 14, 20, 0.38) 0%, rgba(10, 16, 22, 0.58) 46%, rgba(8, 12, 18, 0.78) 100%),
    radial-gradient(110% 70% at 18% 0%, rgba(94, 183, 176, 0.28), transparent 55%),
    radial-gradient(80% 60% at 92% 88%, rgba(255, 106, 69, 0.14), transparent 50%);
  pointer-events: none;
  transition: none;
}

.lah-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lah-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  mix-blend-mode: soft-light;
}

.lah-hero-orb--a {
  width: min(46vw, 440px);
  height: min(46vw, 440px);
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(94, 183, 176, 0.7) 0%, rgba(47, 127, 121, 0.12) 52%, transparent 72%);
  opacity: 0.55;
  animation: lah-drift 16s ease-in-out infinite alternate;
}

.lah-hero-orb--b {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
  right: -8%;
  bottom: -28%;
  background: radial-gradient(circle, rgba(255, 106, 69, 0.4) 0%, rgba(94, 183, 176, 0.1) 48%, transparent 70%);
  opacity: 0.45;
  animation: lah-drift 19s ease-in-out infinite alternate-reverse;
}

.lah-hero-orb--c {
  width: min(22vw, 200px);
  height: min(22vw, 200px);
  top: 42%;
  left: 62%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, transparent 68%);
  opacity: 0.28;
  animation: lah-pulse 7.5s ease-in-out infinite;
}

.lah-hero-shimmer {
  position: absolute;
  inset: -25% -45%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(94, 183, 176, 0.16) 50%,
    rgba(255, 255, 255, 0.07) 52%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-35%) rotate(7deg);
  animation: lah-shimmer 10s ease-in-out infinite;
}

/* 时间线装饰 */
.lah-timeline {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  width: min(88vw, 520px);
  height: 28px;
  z-index: 1;
  opacity: 0.85;
}

.lah-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(94, 183, 176, 0.55) 12%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 106, 69, 0.4) 88%,
    transparent 100%
  );
  transform: translateY(-50%);
}

.lah-timeline-tick {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lah-timeline-tick::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 240, 244, 0.75);
  box-shadow: 0 0 0 2px rgba(94, 183, 176, 0.25);
  z-index: 1;
  animation: lah-tick 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.18s);
}

.lah-timeline-tick span {
  position: absolute;
  top: calc(100% + 2px);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: rgba(232, 240, 244, 0.62);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  animation: lah-year-in 0.55s ease-out forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.07s);
}

.lah-timeline-tick.is-now::before {
  background: var(--lah-coral);
  box-shadow: 0 0 0 3px rgba(255, 106, 69, 0.28);
}

.lah-timeline-tick.is-now span {
  color: rgba(255, 210, 198, 0.95);
  font-weight: 600;
}

.lah-poster .lah-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2.25rem;
}

.lah-hero-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.75rem 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e8f7f5;
  background: linear-gradient(135deg, rgba(47, 127, 121, 0.92) 0%, rgba(36, 98, 94, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(20, 60, 58, 0.35);
  animation: lah-in 0.7s ease-out both, lah-badge-glow 3.8s ease-in-out 0.7s infinite;
}

.lah-hero-badge .iconfont {
  font-size: 0.9rem;
  line-height: 1;
  color: #b8efe9;
}

.lah-poster .poster-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  animation: lah-in 0.75s ease-out 0.08s both;
}

.lah-poster-sub {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(232, 240, 244, 0.82);
  animation: lah-in 0.75s ease-out 0.16s both;
}

@keyframes lah-ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

@keyframes lah-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5%, -7%, 0) scale(1.08); }
}

@keyframes lah-pulse {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.16); }
}

@keyframes lah-shimmer {
  0%, 16% { transform: translateX(-42%) rotate(7deg); opacity: 0; }
  34% { opacity: 1; }
  58% { transform: translateX(40%) rotate(7deg); opacity: 0.85; }
  72%, 100% { transform: translateX(58%) rotate(7deg); opacity: 0; }
}

@keyframes lah-tick {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}

@keyframes lah-year-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lah-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lah-badge-glow {
  0%, 100% { box-shadow: 0 8px 22px rgba(20, 60, 58, 0.32); }
  50% { box-shadow: 0 10px 28px rgba(94, 183, 176, 0.42); }
}

@media (max-width: 767.98px) {
  .lah-poster.archive-poster {
    --lah-nav-clear: 4rem;
    min-height: calc(176px + var(--lah-nav-clear));
  }

  .lah-timeline {
    width: min(92vw, 360px);
    bottom: 0.85rem;
  }

  .lah-timeline-tick span {
    font-size: 0.5625rem;
  }

  /* 移动端只显示两端与当前年，避免拥挤 */
  .lah-timeline-tick:not(.is-edge):not(.is-now) span {
    display: none;
  }

  .lah-hero-badge {
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
  }

  .lah-poster .poster-title {
    font-size: 1.4rem;
  }

  .lah-poster-sub {
    font-size: 0.75rem;
    padding: 0 0.35rem;
  }

  .lah-poster .lah-hero-inner {
    padding-bottom: 1.85rem;
  }

  .lah-poster .poster-inner.my-6 {
    margin-top: 1.35rem !important;
    margin-bottom: 1.35rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lah-poster .lah-hero-bg,
  .lah-hero-orb,
  .lah-hero-shimmer,
  .lah-timeline-tick::before,
  .lah-timeline-tick span,
  .lah-hero-badge,
  .lah-poster .poster-title,
  .lah-poster-sub {
    animation: none !important;
  }

  .lah-poster .lah-hero-bg {
    transform: none;
  }

  .lah-timeline-tick span {
    opacity: 1;
    transform: none;
  }
}
