/* Pilot 专用样式，复用全局变量与字体 */

html {
  height: 100%;
  margin: 0;
  padding: 0;
  /* html 背景设为黑色，这样剪切蒙版外部是黑色 */
  background: #ffffff;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* body 的紫色背景会随着圆形剪切蒙版展开而显示 */
  background: var(--secondary-color);
  color: var(--text-color);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  /* 整个页面（包括背景）应用圆形剪切蒙版，从中心展开 */
  clip-path: circle(0% at 50% 50%);
  animation: pilot-clip-expand 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* 圆形展开动画（与主站 Loading 相反） */
@keyframes pilot-clip-expand {
  0% {
    clip-path: circle(0% at 50% 50%);
  }
  100% {
    clip-path: circle(200% at 50% 50%);
  }
}

/* 圆形收缩动画（跳转时使用，与展开相反） */
@keyframes pilot-clip-shrink {
  0% {
    clip-path: circle(200% at 50% 50%);
  }
  100% {
    clip-path: circle(0% at 50% 50%);
  }
}

/* 跳转时 body 应用收缩动画 */
body.leaving {
  animation: pilot-clip-shrink 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* 主容器 */
.pilot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.pilot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* 三行依次缩放+淡入 */
.line-1, .line-2, .line-3 {
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScaleIn .7s cubic-bezier(.22,.61,.36,1) forwards;
}
.line-1 { animation-delay: .0s; }
.line-2 { animation-delay: .25s; }
.line-3 { animation-delay: .5s; }

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 标题使用英文字体（与主站相同的 tech 字体） */
.pilot-title {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: .5px;
  text-shadow: 0 0 14px var(--glow-color);
}
.pilot-title .accent { color: var(--primary-color); }

.pilot-subtitle {
  font-size: clamp(16px, 2.8vw, 22px);
  opacity: .92;
}

/* 目的地选择 */
.destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  width: min(680px, 92vw);
}

.destination {
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 22px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(159,93,255,.25);
  border-radius: 14px;
  color: var(--text-color);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.destination:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,.35), 0 0 24px rgba(159,93,255,.25) inset;
  border-color: var(--primary-color);
  background: rgba(255,255,255,0.08);
}
.destination:active {
  transform: translateY(-1px) scale(.99);
}
.destination[disabled] { opacity: .6; pointer-events: none; }

.icon {
  font-family: 'Material Symbols Outlined';
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  color: var(--primary-color);
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
}
.dest-title {
  font-family: var(--font-tech);
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700;
}
.dest-sub { opacity: .9; font-size: 0.95rem; }

/* 整体缓出 */
.pilot-leave {
  animation: pilotFadeOut .35s ease forwards;
}
@keyframes pilotFadeOut {
  to { opacity: 0; transform: scale(.98); filter: blur(1px); }
}

/* 响应式 */
@media (max-width: 640px) {
  .destinations {
    grid-template-columns: 1fr;
    width: min(520px, 92vw);
  }
}
