/* 防线逻辑Lab 彩蛋样式 */

/* 彩蛋弹窗 */
.lab-easter-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.lab-easter-modal.active {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  opacity: 1;
}

.lab-easter-content {
  background: linear-gradient(135deg, #0A0D12 0%, #0F131C 50%, #161D2B 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.1);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lab-easter-modal.active .lab-easter-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lab-easter-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #38BDF8 0%, #6EE7B7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3);
  animation: lab-pulse 2s ease-in-out infinite;
}

@keyframes lab-pulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3);
  }
  50% {
    box-shadow: 0 8px 48px rgba(56, 189, 248, 0.5);
  }
}

.lab-easter-icon svg {
  width: 40px;
  height: 40px;
  color: #0A0D12;
  stroke-width: 2.5;
}

.lab-easter-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.lab-easter-desc {
  font-size: 1rem;
  color: #94A3B8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.lab-easter-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38BDF8 0%, #6EE7B7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.lab-easter-subtitle {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.lab-easter-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.lab-easter-btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.lab-easter-btn.secondary {
  background: rgba(148, 163, 184, 0.1);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.lab-easter-btn.secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateY(-1px);
}

.lab-easter-btn.primary {
  background: linear-gradient(135deg, #38BDF8 0%, #6EE7B7 100%);
  color: #0A0D12;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.lab-easter-btn.primary:hover {
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.lab-easter-btn.primary:active {
  transform: translateY(0);
}

/* 底部游戏入口按钮 */
.lab-entry-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lab-entry-button.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #0F131C 0%, #1E2636 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  color: #F8FAFC;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  letter-spacing: 0.01em;
}

.lab-btn:hover {
  background: linear-gradient(135deg, #161D2B 0%, #1E2636 100%);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 48px rgba(56, 189, 248, 0.2), 0 0 0 1px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.lab-btn:active {
  transform: translateY(0);
}

.lab-btn-icon {
  width: 20px;
  height: 20px;
  color: #38BDF8;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.lab-btn-text {
  white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .lab-easter-content {
    padding: 2.5rem 2rem;
  }

  .lab-easter-title {
    font-size: 1.5rem;
  }

  .lab-easter-name {
    font-size: 1.25rem;
  }

  .lab-easter-actions {
    flex-direction: column;
  }

  .lab-easter-btn {
    width: 100%;
  }

  .lab-entry-button {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .lab-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  .lab-btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .lab-easter-modal {
    padding: 1rem;
  }

  .lab-easter-content {
    padding: 2rem 1.5rem;
  }

  .lab-easter-icon {
    width: 64px;
    height: 64px;
  }

  .lab-easter-icon svg {
    width: 32px;
    height: 32px;
  }

  .lab-entry-button {
    bottom: 1rem;
    right: 1rem;
  }
}
