/* gp 模板补充：缺失工具类 + 移动端 + 卡片遮罩 + ABABSEO */

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 640px) {
  .sm\:py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .sm\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .sm\:p-5 {
    padding: 1.25rem;
  }
  .sm\:gap-4 {
    gap: 1rem;
  }
  .sm\:gap-6 {
    gap: 1.5rem;
  }
  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

.w-28 {
  width: 7rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.overflow-y-auto {
  overflow-y: auto;
}

.max-h-\[70vh\] {
  max-height: 70vh;
}

.card-hover {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-hover:hover {
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* 卡片底部遮罩：勿用 bg-gradient-*，会继承父级 --tw-gradient-* */
.gp-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 65%);
}

.gp-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border: 0;
  cursor: pointer;
  padding: 0;
}

.gp-play-overlay:hover {
  background: rgba(0, 0, 0, 0.38);
}

.gp-play-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.gp-brand {
  max-width: 8.5rem;
}

.gp-hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.gp-hero-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.gp-hero-sub {
  font-size: 1rem;
  line-height: 1.5rem;
}

.gp-mobile-search {
  display: flex;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.gp-mobile-search input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #f9fafb;
}

.-top-40 {
  top: -10rem;
}
.-right-40 {
  right: -10rem;
}
.-bottom-40 {
  bottom: -10rem;
}
.-left-40 {
  left: -10rem;
}
.top-40 {
  top: 10rem;
}
.left-40 {
  left: 10rem;
}

.hover\:bg-white:hover {
  background-color: #fff;
}
.hover\:text-blue-600:hover {
  color: #475569;
}

@media (min-width: 640px) {
  .gp-brand {
    max-width: none;
  }
  .sm\:gap-2 {
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  .gp-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .gp-hero-title {
    font-size: 3.75rem;
    line-height: 1;
  }
  .gp-hero-sub {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .md\:inline {
    display: inline;
  }
}

/* blob */
@keyframes blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

@media (max-width: 767px) {
  .animate-blob {
    display: none;
  }
}

/* ABABSEO — 小飞机（无胶囊、无链接） */
.ababseo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.ababseo-mark__sky {
  position: relative;
  width: 2.25rem;
  height: 1.5rem;
  overflow: visible;
}

.ababseo-mark__plane {
  position: absolute;
  left: 0;
  top: 50%;
  display: inline-flex;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
  animation: ababseo-fly 4.2s ease-in-out infinite;
  will-change: transform;
}

.ababseo-mark__plane svg {
  display: block;
  transform: rotate(-12deg);
}

.ababseo-mark__trail {
  position: absolute;
  right: calc(100% + 2px);
  top: 52%;
  width: 22px;
  height: 2px;
  border-radius: 0;
  transform: translateY(-50%);
  background: linear-gradient(to left, rgba(56, 189, 248, 0.9), rgba(148, 163, 184, 0.35), transparent);
  animation: ababseo-trail 4.2s ease-in-out infinite;
}

.ababseo-mark__spark {
  position: absolute;
  right: calc(100% + 18px);
  top: 40%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bae6fd;
  box-shadow: 0 0 6px #38bdf8;
  animation: ababseo-spark 4.2s ease-in-out infinite;
}

.ababseo-mark__text {
  position: relative;
  font-family: ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  line-height: 1;
  background: linear-gradient(100deg, #e2e8f0 0%, #38bdf8 40%, #94a3b8 70%, #7dd3fc 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ababseo-shimmer 5s linear infinite;
}

.ababseo-mark__text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
}

@keyframes ababseo-fly {
  0% {
    transform: translate(-2px, 4px) rotate(8deg);
  }
  20% {
    transform: translate(4px, -6px) rotate(-10deg);
  }
  45% {
    transform: translate(12px, -2px) rotate(-4deg);
  }
  70% {
    transform: translate(6px, 5px) rotate(10deg);
  }
  100% {
    transform: translate(-2px, 4px) rotate(8deg);
  }
}

@keyframes ababseo-trail {
  0%,
  100% {
    opacity: 0.2;
    width: 10px;
  }
  40% {
    opacity: 1;
    width: 26px;
  }
  70% {
    opacity: 0.55;
    width: 16px;
  }
}

@keyframes ababseo-spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 0.3;
    transform: scale(0.6) translateX(-4px);
  }
}

@keyframes ababseo-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-mark__plane,
  .ababseo-mark__trail,
  .ababseo-mark__spark,
  .ababseo-mark__text,
  .animate-blob {
    animation: none;
  }

  .ababseo-mark__plane {
    transform: translate(4px, 0);
  }
}
