/* pindiao 补丁：React 路由链接可点击 + ABABSEO 飞行装饰 */

a,
button {
  cursor: pointer;
}

.card-image img,
.tuy-card__media img,
.fsp-hl-card__media img,
.detail-hero__cover img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── ABABSEO 高级飞机大战装饰（纯视觉，霓虹玻璃风） ── */

.ababseo-sky {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

/* 流转渐变描边的玻璃外框 */
.ababseo-sky__frame {
  position: relative;
  padding: 1.5px;
  border-radius: 16px;
  background: conic-gradient(
    from var(--ababseo-angle, 0deg),
    rgba(255, 126, 95, 0.9),
    rgba(168, 85, 247, 0.55),
    rgba(125, 211, 252, 0.5),
    rgba(254, 180, 123, 0.9),
    rgba(255, 126, 95, 0.9)
  );
  animation: ababseo-border-spin 6s linear infinite;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(255, 126, 95, 0.25);
}

@property --ababseo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.ababseo-sky__glow {
  position: absolute;
  inset: -14px;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 126, 95, 0.22), transparent 65%);
  filter: blur(6px);
  animation: ababseo-glow-breathe 3.6s ease-in-out infinite;
}

.ababseo-sky__scene {
  position: relative;
  width: 128px;
  height: 86px;
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(90px 50px at 78% 8%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(70px 40px at 15% 30%, rgba(56, 189, 248, 0.14), transparent 70%),
    linear-gradient(180deg, #05060f 0%, #0b0a1c 55%, #170d24 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 三层视差星空 */
.ababseo-sky__stars {
  position: absolute;
  inset: -100% 0 0 0;
  background-repeat: repeat;
}

.ababseo-sky__stars--far {
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 65% 55%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.3), transparent);
  background-size: 90px 90px;
  animation: ababseo-starfield 9s linear infinite;
  opacity: 0.7;
}

.ababseo-sky__stars--mid {
  background-image:
    radial-gradient(1.2px 1.2px at 30% 35%, rgba(186, 230, 253, 0.7), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 55% 70%, rgba(254, 215, 170, 0.5), transparent);
  background-size: 70px 70px;
  animation: ababseo-starfield 5.5s linear infinite;
}

.ababseo-sky__stars--near {
  background-image:
    radial-gradient(1.6px 1.6px at 20% 50%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.4px 1.4px at 70% 30%, rgba(255, 236, 200, 0.85), transparent);
  background-size: 110px 110px;
  animation: ababseo-starfield 3.2s linear infinite;
}

/* 流动星云 */
.ababseo-sky__nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50px 30px at 25% 20%, rgba(255, 126, 95, 0.16), transparent 70%),
    radial-gradient(60px 36px at 75% 65%, rgba(168, 85, 247, 0.18), transparent 70%);
  animation: ababseo-nebula-drift 8s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

/* 全息扫描线 */
.ababseo-sky__scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(125, 211, 252, 0.06) 48%,
    rgba(125, 211, 252, 0.16) 50%,
    rgba(125, 211, 252, 0.06) 52%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: ababseo-scan 4s linear infinite;
}

/* 玩家战机 */
.ababseo-sky__jet {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 26px;
  height: 32px;
  margin-left: -13px;
  animation: ababseo-jet-glide 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 126, 95, 0.75)) drop-shadow(0 0 20px rgba(255, 126, 95, 0.3));
}

.ababseo-sky__jet svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 引擎尾焰（双层） */
.ababseo-sky__flame {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 7px;
  height: 13px;
  margin-left: -3.5px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: linear-gradient(180deg, rgba(255, 179, 123, 0.95), rgba(255, 126, 95, 0.55), transparent);
  filter: blur(1.2px);
  transform-origin: top center;
  animation: ababseo-flame-flicker 0.22s ease-in-out infinite alternate;
}

.ababseo-sky__flame--inner {
  width: 3.5px;
  height: 9px;
  margin-left: -1.75px;
  bottom: -5px;
  background: linear-gradient(180deg, #fff7ed, rgba(125, 211, 252, 0.9), transparent);
  filter: blur(0.6px);
  animation-duration: 0.16s;
}

/* 霓虹激光 */
.ababseo-sky__laser {
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: 2.5px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff 0%, #7dd3fc 35%, rgba(125, 211, 252, 0) 100%);
  box-shadow:
    0 0 6px rgba(125, 211, 252, 0.95),
    0 0 14px rgba(125, 211, 252, 0.5);
  opacity: 0;
}

.ababseo-sky__laser--1 { margin-left: -1.25px; animation: ababseo-laser-shot 1.4s cubic-bezier(0.2, 0.7, 0.6, 1) infinite; }
.ababseo-sky__laser--2 { margin-left: -1.25px; animation: ababseo-laser-shot 1.4s cubic-bezier(0.2, 0.7, 0.6, 1) infinite 0.45s; }
.ababseo-sky__laser--3 { margin-left: -10px; animation: ababseo-laser-shot 1.4s cubic-bezier(0.2, 0.7, 0.6, 1) infinite 0.22s; }
.ababseo-sky__laser--4 { margin-left: 7.5px; animation: ababseo-laser-shot 1.4s cubic-bezier(0.2, 0.7, 0.6, 1) infinite 0.68s; }

/* 敌机 */
.ababseo-sky__enemy {
  position: absolute;
  top: -18px;
  width: 16px;
  height: 13px;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.75));
}

.ababseo-sky__enemy svg {
  width: 100%;
  height: 100%;
}

.ababseo-sky__enemy--1 { left: 16%; animation: ababseo-enemy-dive 3.8s cubic-bezier(0.4, 0, 0.7, 1) infinite; }
.ababseo-sky__enemy--2 { left: 48%; animation: ababseo-enemy-dive 3.8s cubic-bezier(0.4, 0, 0.7, 1) infinite 1.3s; }
.ababseo-sky__enemy--3 { left: 74%; animation: ababseo-enemy-dive 3.8s cubic-bezier(0.4, 0, 0.7, 1) infinite 2.5s; }

/* 爆炸：冲击环 + 核心闪光 + 六向碎片 */
.ababseo-sky__burst {
  position: absolute;
  width: 26px;
  height: 26px;
}

.ababseo-sky__burst--1 { left: 12%; top: 34%; }
.ababseo-sky__burst--2 { left: 62%; top: 46%; }

.ababseo-sky__burst-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 200, 130, 0.9);
  box-shadow: 0 0 10px rgba(255, 156, 100, 0.7), inset 0 0 8px rgba(255, 156, 100, 0.4);
  opacity: 0;
}

.ababseo-sky__burst-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffd9a0 35%, rgba(255, 126, 95, 0.6) 65%, transparent 80%);
  opacity: 0;
}

.ababseo-sky__shard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #ffc38a;
  box-shadow: 0 0 5px rgba(255, 165, 100, 0.9);
  opacity: 0;
}

.ababseo-sky__burst--1 .ababseo-sky__burst-ring { animation: ababseo-ring-pop 3.8s ease-out infinite 3.35s; }
.ababseo-sky__burst--1 .ababseo-sky__burst-core { animation: ababseo-core-flash 3.8s ease-out infinite 3.35s; }
.ababseo-sky__burst--1 .ababseo-sky__shard--1 { animation: ababseo-shard-fly 3.8s ease-out infinite 3.35s; --sx: 12px; --sy: -9px; }
.ababseo-sky__burst--1 .ababseo-sky__shard--2 { animation: ababseo-shard-fly 3.8s ease-out infinite 3.35s; --sx: -11px; --sy: -7px; }
.ababseo-sky__burst--1 .ababseo-sky__shard--3 { animation: ababseo-shard-fly 3.8s ease-out infinite 3.35s; --sx: 9px; --sy: 10px; }
.ababseo-sky__burst--1 .ababseo-sky__shard--4 { animation: ababseo-shard-fly 3.8s ease-out infinite 3.35s; --sx: -12px; --sy: 8px; }
.ababseo-sky__burst--1 .ababseo-sky__shard--5 { animation: ababseo-shard-fly 3.8s ease-out infinite 3.35s; --sx: 0px; --sy: -13px; }
.ababseo-sky__burst--1 .ababseo-sky__shard--6 { animation: ababseo-shard-fly 3.8s ease-out infinite 3.35s; --sx: 2px; --sy: 13px; }

.ababseo-sky__burst--2 .ababseo-sky__burst-ring { animation: ababseo-ring-pop 3.8s ease-out infinite 2.05s; }
.ababseo-sky__burst--2 .ababseo-sky__burst-core { animation: ababseo-core-flash 3.8s ease-out infinite 2.05s; }
.ababseo-sky__burst--2 .ababseo-sky__shard--1 { animation: ababseo-shard-fly 3.8s ease-out infinite 2.05s; --sx: 13px; --sy: -6px; }
.ababseo-sky__burst--2 .ababseo-sky__shard--2 { animation: ababseo-shard-fly 3.8s ease-out infinite 2.05s; --sx: -10px; --sy: -10px; }
.ababseo-sky__burst--2 .ababseo-sky__shard--3 { animation: ababseo-shard-fly 3.8s ease-out infinite 2.05s; --sx: 8px; --sy: 11px; }
.ababseo-sky__burst--2 .ababseo-sky__shard--4 { animation: ababseo-shard-fly 3.8s ease-out infinite 2.05s; --sx: -13px; --sy: 6px; }
.ababseo-sky__burst--2 .ababseo-sky__shard--5 { animation: ababseo-shard-fly 3.8s ease-out infinite 2.05s; --sx: -2px; --sy: -13px; }
.ababseo-sky__burst--2 .ababseo-sky__shard--6 { animation: ababseo-shard-fly 3.8s ease-out infinite 2.05s; --sx: 3px; --sy: 12px; }

/* 品牌标签 */
.ababseo-sky__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  text-transform: uppercase;
  font-family: Manrope, 'Noto Sans SC', ui-sans-serif, system-ui, sans-serif;
  background: linear-gradient(110deg, #ffe9c7 0%, #ff7e5f 30%, #f0abfc 55%, #feb47b 80%, #ffe9c7 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 4px rgba(255, 126, 95, 0.45));
  animation: ababseo-label-flow 5s ease-in-out infinite;
}

.ababseo-sky__label-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff7e5f;
  box-shadow: 0 0 6px rgba(255, 126, 95, 0.9);
  animation: ababseo-dot-pulse 1.8s ease-in-out infinite;
}

.ababseo-sky__label-dot:last-child {
  animation-delay: 0.9s;
}

/* ── 动画 ── */

@keyframes ababseo-border-spin {
  to { --ababseo-angle: 360deg; }
}

@keyframes ababseo-glow-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes ababseo-starfield {
  from { transform: translateY(0); }
  to { transform: translateY(50%); }
}

@keyframes ababseo-nebula-drift {
  from { transform: translate(-4px, -3px) scale(1); }
  to { transform: translate(5px, 4px) scale(1.15); }
}

@keyframes ababseo-scan {
  from { background-position: 0 -100%; }
  to { background-position: 0 100%; }
}

@keyframes ababseo-jet-glide {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  22% { transform: translateX(-20px) rotate(-7deg); }
  50% { transform: translateX(4px) rotate(2deg); }
  74% { transform: translateX(20px) rotate(7deg); }
}

@keyframes ababseo-flame-flicker {
  from { transform: scaleY(0.75) scaleX(0.9); opacity: 0.85; }
  to { transform: scaleY(1.2) scaleX(1.08); opacity: 1; }
}

@keyframes ababseo-laser-shot {
  0% { opacity: 0; transform: translateY(4px) scaleY(0.4); }
  10% { opacity: 1; transform: translateY(-2px) scaleY(1); }
  80% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-66px) scaleY(1.3); }
}

@keyframes ababseo-enemy-dive {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.8); }
  10% { opacity: 1; transform: translate(-3px, 12px) rotate(-6deg) scale(1); }
  45% { opacity: 1; transform: translate(4px, 42px) rotate(5deg) scale(1); }
  82% { opacity: 1; transform: translate(-2px, 74px) rotate(-4deg) scale(1); }
  88% { opacity: 0; transform: translate(0, 80px) rotate(0deg) scale(0.3); }
  100% { opacity: 0; transform: translate(0, 84px) scale(0); }
}

@keyframes ababseo-ring-pop {
  0%, 86%, 100% { opacity: 0; transform: scale(0.15); }
  88% { opacity: 1; transform: scale(0.5); }
  95% { opacity: 0.5; transform: scale(1.25); }
  99% { opacity: 0; transform: scale(1.6); }
}

@keyframes ababseo-core-flash {
  0%, 86%, 100% { opacity: 0; transform: scale(0.2); }
  88% { opacity: 1; transform: scale(1.35); }
  93% { opacity: 0.7; transform: scale(0.9); }
  98% { opacity: 0; transform: scale(0.4); }
}

@keyframes ababseo-shard-fly {
  0%, 86%, 100% { opacity: 0; transform: translate(0, 0) scale(1); }
  88% { opacity: 1; transform: translate(0, 0) scale(1.2); }
  99% { opacity: 0; transform: translate(var(--sx, 10px), var(--sy, -10px)) scale(0.2); }
}

@keyframes ababseo-label-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ababseo-dot-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (max-width: 640px) {
  .ababseo-sky__scene {
    width: 104px;
    height: 70px;
  }

  .ababseo-sky__label {
    font-size: 0.56rem;
    letter-spacing: 0.26em;
  }
}

@media (max-width: 640px) {
  .ababseo-sky__scene {
    width: 104px;
    height: 70px;
  }

  .ababseo-sky__label {
    font-size: 0.56rem;
    letter-spacing: 0.26em;
  }
}

/* ── 手机端自适应增强 ── */

@media (max-width: 768px) {
  .header-inner--ref {
    gap: 10px;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header-tools {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-width: 0;
  }

  .header-search--ref {
    flex: 1 1 100%;
    min-width: 0;
  }

  .header-main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .hero-cq__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cq-block__head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-row {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .result-row {
    gap: 12px;
  }

  .search-form-panel {
    flex-direction: column;
  }

  .search-form-panel button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .home-pop-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-main-nav__link {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }

  .header-reg--portal,
  .header-link-login {
    font-size: 0.8125rem;
  }

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

  .result-row__play {
    align-self: stretch;
    text-align: center;
  }

  .auth-page__card {
    margin: 12px;
    padding: 20px 16px;
  }
}

/* ── 认证 / 静态 / 搜索页 ── */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 120px);
  padding: 24px 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.auth-page__card {
  width: 100%;
  max-width: 420px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 14px);
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.auth-page__card h1 {
  margin: 0 0 20px;
  font-size: 1.375rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form__field span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted, #64748b);
}

.auth-form__field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}

.auth-form__field input:focus {
  outline: 2px solid rgba(255, 126, 95, 0.45);
  border-color: #ff7e5f;
}

.auth-form__error {
  margin: 0;
  color: #ef4444;
  font-size: 0.875rem;
}

.auth-form__submit {
  margin-top: 4px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #1a0e07;
  font-weight: 700;
  font-size: 1rem;
}

.auth-form__foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted, #64748b);
}

.auth-form__foot a {
  color: #ff7e5f;
  font-weight: 600;
}

.static-page__body {
  line-height: 1.75;
  color: var(--text, #0f172a);
}

.static-page__body p {
  margin: 0 0 1em;
}

.static-page__h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.static-page__faq {
  margin-bottom: 20px;
}

.static-page__faq h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.static-page__faq p {
  margin: 0;
  color: var(--muted, #64748b);
}

.static-page__contact {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e2e8f0);
  font-size: 0.875rem;
  color: var(--muted, #64748b);
}

.static-page__crumb a {
  color: #ff7e5f;
}

.search-form-panel {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.search-form-panel input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  font-size: 1rem;
}

.search-form-panel button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #1a0e07;
  font-weight: 700;
  white-space: nowrap;
}

.search-empty {
  text-align: center;
  color: var(--muted, #64748b);
  padding: 24px 0;
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-sky__frame,
  .ababseo-sky__glow,
  .ababseo-sky__stars,
  .ababseo-sky__nebula,
  .ababseo-sky__scanline,
  .ababseo-sky__jet,
  .ababseo-sky__flame,
  .ababseo-sky__laser,
  .ababseo-sky__enemy,
  .ababseo-sky__burst-ring,
  .ababseo-sky__burst-core,
  .ababseo-sky__shard,
  .ababseo-sky__label,
  .ababseo-sky__label-dot {
    animation: none;
  }
}

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