/* xyjxwka React 补丁：移动端自适应与无障碍 */
.app-shell {
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 120;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--red, #dc2626);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(127, 29, 29, 0.15);
}

.skip-link:focus {
  left: 16px;
}

.filter-btn,
.menu-toggle,
.hero-dots button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

.hero-dots button {
  padding: 0;
}

.mobile-panel a.active {
  color: var(--red, #dc2626);
  font-weight: 800;
}

.load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.toolbar .btn {
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .hero-carousel {
    min-height: 520px;
  }

  .hero-content {
    min-height: 520px;
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar .btn {
    width: 100%;
  }
}

/* ABABSEO 飞行小飞机 — 纯装饰、无链接、非胶囊 */
.ababseo-fly {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  user-select: none;
}

.ababseo-fly__plane {
  width: 36px;
  height: 36px;
  transform-origin: 55% 45%;
  filter: drop-shadow(0 8px 16px rgba(220, 38, 38, 0.35));
  animation: ababseo-plane-fly 4.6s ease-in-out infinite;
}

.ababseo-fly__trail {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 54px;
  height: 54px;
  transform: translateX(-30%);
  pointer-events: none;
}

.ababseo-fly__trail i {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f87171, #f97316);
  opacity: 0;
  animation: ababseo-trail-dot 4.6s ease-in-out infinite;
}

.ababseo-fly__trail i:nth-child(1) {
  left: 6px;
  top: 30px;
  animation-delay: 0.5s;
}

.ababseo-fly__trail i:nth-child(2) {
  left: 0;
  top: 22px;
  width: 3px;
  height: 3px;
  animation-delay: 1.1s;
}

.ababseo-fly__trail i:nth-child(3) {
  left: 12px;
  top: 36px;
  width: 2px;
  height: 2px;
  animation-delay: 1.7s;
}

.ababseo-fly__text {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  line-height: 1;
  background: linear-gradient(92deg, #dc2626 0%, #ef4444 45%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.92;
  animation: ababseo-text-shimmer 4.6s ease-in-out infinite;
}

@keyframes ababseo-plane-fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-16deg) scale(1);
  }
  22% {
    transform: translate(10px, -14px) rotate(-8deg) scale(1.05);
  }
  46% {
    transform: translate(18px, -5px) rotate(-20deg) scale(0.97);
  }
  72% {
    transform: translate(7px, -18px) rotate(-6deg) scale(1.06);
  }
}

@keyframes ababseo-trail-dot {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  35% {
    opacity: 0.8;
    transform: translate(-7px, 5px) scale(1);
  }
  65% {
    opacity: 0;
    transform: translate(-15px, 11px) scale(0.4);
  }
}

@keyframes ababseo-text-shimmer {
  0%,
  100% {
    opacity: 0.75;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-fly__plane,
  .ababseo-fly__trail i,
  .ababseo-fly__text {
    animation: none;
  }
}

@media print {
  .ababseo-fly {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .search-box {
    font-size: 16px;
    min-width: 0;
    width: 100%;
  }

  .ababseo-fly {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: scale(0.9);
    transform-origin: left bottom;
  }

  .player-wrap video {
    max-height: 56vh;
    object-fit: contain;
  }

  .hero-title {
    font-size: 36px !important;
  }

  .detail-hero .hero-actions {
    display: grid;
    gap: 10px;
  }

  .detail-hero .btn {
    width: 100%;
  }

  .breadcrumb {
    line-height: 1.6;
    word-break: break-word;
  }
}
