/* sgsqkj 补丁：无障碍、移动端与 ABABSEO 小飞机 */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #db2777;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.2);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 767px) {
  header input[type='search'] {
    font-size: 16px;
  }

  #player video {
    max-height: 56vh;
    width: 100%;
    object-fit: contain;
  }

  .photo-grid-tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-actions-stack {
    width: 100%;
  }

  .hero-actions-stack a {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .photo-grid-tight {
    grid-template-columns: 1fr;
  }
}

[data-mobile-panel] {
  display: none;
}

[data-mobile-panel].open {
  display: block;
}

/* ABABSEO 飞行动画 — 无胶囊、无链接 */
.ababseo-fly {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
  user-select: none;
}

.ababseo-fly__stage {
  position: relative;
  width: 52px;
  height: 52px;
}

.ababseo-fly__plane {
  width: 48px;
  height: 48px;
  transform-origin: 38% 52%;
  animation: ababseo-plane-fly 5.2s ease-in-out infinite;
}

.ababseo-fly__trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ababseo-fly__trail i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, #fbcfe8 0%, #db2777 55%, transparent 100%);
  opacity: 0;
  animation: ababseo-trail-spark 5.2s ease-in-out infinite;
}

.ababseo-fly__trail i:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 4px;
  top: 28px;
  animation-delay: 0.35s;
}

.ababseo-fly__trail i:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 0;
  top: 20px;
  animation-delay: 0.9s;
}

.ababseo-fly__trail i:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 10px;
  top: 34px;
  animation-delay: 1.45s;
}

.ababseo-fly__trail i:nth-child(4) {
  width: 2px;
  height: 2px;
  left: 16px;
  top: 26px;
  animation-delay: 2.1s;
}

.ababseo-fly__text {
  margin: 0;
  display: flex;
  gap: 0.14em;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(219, 39, 119, 0.35);
}

.ababseo-fly__text span {
  display: inline-block;
  background: linear-gradient(160deg, #f9a8d4 0%, #db2777 42%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ababseo-letter-float 5.2s ease-in-out infinite;
}

.ababseo-fly__text span:nth-child(1) {
  animation-delay: 0s;
}
.ababseo-fly__text span:nth-child(2) {
  animation-delay: 0.08s;
}
.ababseo-fly__text span:nth-child(3) {
  animation-delay: 0.16s;
}
.ababseo-fly__text span:nth-child(4) {
  animation-delay: 0.24s;
}
.ababseo-fly__text span:nth-child(5) {
  animation-delay: 0.32s;
}
.ababseo-fly__text span:nth-child(6) {
  animation-delay: 0.4s;
}
.ababseo-fly__text span:nth-child(7) {
  animation-delay: 0.48s;
}

@keyframes ababseo-plane-fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-12deg) scale(1);
  }
  20% {
    transform: translate(12px, -16px) rotate(-2deg) scale(1.06);
  }
  42% {
    transform: translate(22px, -6px) rotate(-18deg) scale(0.98);
  }
  64% {
    transform: translate(10px, -20px) rotate(-4deg) scale(1.04);
  }
  82% {
    transform: translate(3px, -8px) rotate(-10deg) scale(1);
  }
}

@keyframes ababseo-trail-spark {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  30% {
    opacity: 0.95;
    transform: translate(-10px, 6px) scale(1);
  }
  60% {
    opacity: 0;
    transform: translate(-20px, 14px) scale(0.3);
  }
}

@keyframes ababseo-letter-float {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-2px);
    filter: brightness(1.2);
  }
}

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

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

@media (max-width: 767px) {
  .ababseo-fly {
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: scale(0.92);
    transform-origin: left bottom;
  }

  .ababseo-fly__plane {
    width: 38px;
    height: 38px;
  }
}
