﻿/* lizhi80 补丁：无障碍、移动端与 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: #111827;
  color: #facc15;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-weight: 700;
  text-decoration: none;
}

[data-mobile-panel] {
  display: none;
}

[data-mobile-panel].open {
  display: block;
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.break-words {
  overflow-wrap: break-word;
  word-break: break-word;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.inline-flex {
  display: inline-flex;
}

.hero-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
  box-shadow: 0 12px 28px rgba(250, 204, 21, 0.35);
}

.hero-emblem__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: #fff;
}

.target-player-video {
  height: 56vw;
  min-height: 260px;
  max-height: 620px;
}

@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:border-l {
    border-left-width: 1px;
  }

  .lg\:border-t-0 {
    border-top-width: 0;
  }
}

@media (max-width: 767px) {
  header input[type='search'] {
    font-size: 16px;
  }

  #player video,
  .target-player-video {
    max-height: 56vh;
    min-height: 220px;
    width: 100%;
    object-fit: contain;
  }

  .hero-title {
    word-break: break-word;
    hyphens: auto;
  }

  .section-heading h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .ababseo-fly {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: scale(0.9);
    transform-origin: left bottom;
  }

  .ababseo-fly__badge {
    padding: 0.6rem 0.7rem 0.5rem;
    gap: 0.35rem;
  }
}

/* ── ABABSEO 飞行装饰（高端版） ── */

.ababseo-fly {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  pointer-events: none;
  user-select: none;
}

.ababseo-fly__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem 0.6rem;
  border-radius: 0.75rem;
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.88) 0%, rgba(49, 46, 129, 0.82) 52%, rgba(88, 28, 135, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 28px rgba(17, 24, 39, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  animation: ababseo-badge-float 5s ease-in-out infinite;
}

.ababseo-fly__plane-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  animation: ababseo-plane-glide 5s ease-in-out infinite;
}

.ababseo-fly__plane {
  width: 1.35rem;
  height: 1.35rem;
  transform: rotate(-14deg);
  filter: drop-shadow(0 2px 6px rgba(250, 204, 21, 0.35));
}

.ababseo-fly__trail {
  position: absolute;
  left: -0.55rem;
  bottom: 0.2rem;
  width: 0.65rem;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(254, 243, 199, 0.65));
  opacity: 0;
  animation: ababseo-trail 5s ease-in-out infinite;
}

.ababseo-fly__label {
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  text-transform: uppercase;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #fef3c7 0%, #facc15 42%, #d97706 100%);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ababseo-label-shine 6s ease-in-out infinite;
}

@keyframes ababseo-badge-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes ababseo-plane-glide {
  0%,
  100% {
    transform: translate(0, 0) rotate(-14deg);
  }
  35% {
    transform: translate(2px, -3px) rotate(-8deg);
  }
  70% {
    transform: translate(1px, -5px) rotate(-11deg);
  }
}

@keyframes ababseo-trail {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0) scaleX(0.5);
  }
  35%,
  70% {
    opacity: 0.85;
    transform: translateX(-3px) scaleX(1);
  }
}

@keyframes ababseo-label-shine {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-fly__badge,
  .ababseo-fly__plane-wrap,
  .ababseo-fly__trail,
  .ababseo-fly__label {
    animation: none;
  }
}

@media print {
  .ababseo-fly,
  .skip-link {
    display: none !important;
  }
}

/* ── 分类页 Hero ── */

.category-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 2.5rem 0 3.5rem;
}

@media (min-width: 768px) {
  .category-hero {
    padding: 3rem 0 4.5rem;
  }
}

.category-hero__cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: blur(2px);
}

.category-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.92) 0%, rgba(88, 28, 135, 0.88) 55%, rgba(131, 24, 67, 0.85) 100%);
}

.category-hero__glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.category-hero__glow--tl {
  top: -6rem;
  right: -4rem;
  background: rgba(250, 204, 21, 0.12);
}

.category-hero__glow--br {
  bottom: -6rem;
  left: -4rem;
  background: rgba(168, 85, 247, 0.15);
}

.category-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .category-hero__inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .category-hero__inner {
    padding: 0 2rem;
  }
}

.category-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.category-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-hero__breadcrumb a:hover {
  color: #fde68a;
}

.category-hero__breadcrumb span[aria-current='page'] {
  color: #fde68a;
  font-weight: 600;
}

.category-hero__sep {
  color: rgba(255, 255, 255, 0.35);
}

.category-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .category-hero__content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.category-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-hero__back:hover {
  color: #fde68a;
}

.category-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.category-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 768px) {
  .category-hero__lead {
    font-size: 1.0625rem;
  }
}

.category-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 6.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  text-align: center;
}

.category-hero__stat-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #facc15;
}

.category-hero__stat-label {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ── 播放页相关视频 ── */

.related-section {
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .related-section {
    margin-top: 4rem;
  }
}

.related-section__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

@media (min-width: 640px) {
  .related-section__title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.related-card__thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f3f4f6;
  margin-bottom: 0.5rem;
}

.related-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card__img {
  transform: scale(1.05);
}

.related-card__title {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  transition: color 0.2s ease;
}

.related-card:hover .related-card__title {
  color: #4f46e5;
}

/* ── 页脚 ── */

.site-footer {
  margin-top: 4rem;
  background: linear-gradient(135deg, #111827 0%, #312e81 45%, #581c87 100%);
  color: #f9fafb;
}

.site-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.site-footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.site-footer__logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.25);
  flex-shrink: 0;
}

.site-footer__logo-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.site-footer__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fde68a 0%, #facc15 50%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__desc {
  margin: 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #d1d5db;
}

.site-footer__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__links a {
  color: #9ca3af;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #facc15;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.site-footer__heart {
  color: #ef4444;
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.site-footer__bottom-links a {
  color: #9ca3af;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom-links a:hover {
  color: #facc15;
}

@media (max-width: 767px) {
  .site-footer__bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
