/* gdhbp 补丁：无障碍、表单、错误页与移动端增强 */
.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: #0ea5e9;
  border-radius: 0.65rem;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25);
  font-weight: 700;
}

.auth-card {
  max-width: 28rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-field .filter-input {
  width: 100%;
}

.auth-error {
  color: #b91c1c;
  font-size: 0.92rem;
  margin: 0;
}

.auth-footer {
  margin: 1.2rem 0 0;
  color: var(--muted);
  text-align: center;
}

.static-article h2 {
  margin-top: 0;
}

.faq-item {
  margin-bottom: 1.2rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.error-fallback {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
  color: var(--ink);
}

.error-fallback__card {
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

.error-fallback__card h1 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #0c4a6e;
}

.error-fallback__card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.error-fallback__card pre {
  text-align: left;
  font-size: 12px;
  color: #334155;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.65rem;
  padding: 1rem;
  overflow: auto;
  max-height: 10rem;
  margin-bottom: 1.5rem;
}

/* 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(14, 165, 233, 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, #38bdf8, #2563eb);
  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, #0ea5e9 0%, #38bdf8 45%, #2563eb 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,
  .skip-link {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .nav-search input,
  .mobile-panel input,
  .filter-input,
  .quick-search input {
    font-size: 16px;
  }

  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    margin: 0 auto;
  }

  .video-box {
    border-radius: 0.85rem;
  }

  .video-box video {
    max-height: 70vh;
    object-fit: contain;
  }

  .auth-card {
    padding: 1.2rem;
  }

  .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;
  }
}

@media (max-width: 480px) {
  .detail-poster {
    width: min(220px, 72vw);
  }

  .hero-actions,
  .auth-form .primary-btn {
    width: 100%;
    justify-content: center;
  }
}
