/* 引导系统样式 */
.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: none;
  animation: fadeIn 0.5s ease;
}

.guide-overlay.active {
  display: block;
}

.guide-spotlight {
  position: absolute;
  pointer-events: none;
  border-radius: 12px;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10002;
  display: none;
  border: 2px solid rgba(37, 99, 235, 0.8);
  background: transparent;
  box-shadow: 
    0 0 0 9999px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(37, 99, 235, 0.6),
    0 0 40px rgba(37, 99, 235, 0.4),
    inset 0 0 0 2px rgba(37, 99, 235, 0.8);
}

.guide-tooltip {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 2rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(37, 99, 235, 0.15);
  z-index: 10002;
  animation: tooltipSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: var(--blur-md);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.guide-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.guide-tooltip.mobile {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100vw - 3rem) !important;
  max-width: 380px !important;
  margin: 0 !important;
}

.guide-tooltip.mobile::before {
  display: none !important;
}

@keyframes tooltipSlideIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.guide-tooltip::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
}

.guide-tooltip.top::before {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(225deg);
  border-top: none;
  border-left: none;
  border-right: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.guide-tooltip.bottom::before {
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.guide-tooltip.left::before {
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
  border-top: none;
  border-right: none;
  border-bottom: 1px solid var(--border-primary);
  border-left: 1px solid var(--border-primary);
}

.guide-tooltip.right::before {
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  border-bottom: none;
  border-left: none;
  border-top: 1px solid var(--border-primary);
  border-right: 1px solid var(--border-primary);
}

.guide-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guide-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.guide-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.guide-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-secondary);
}

.guide-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.guide-progress-dots {
  display: flex;
  gap: 0.75rem;
}

.guide-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-progress-dot.active {
  background: var(--primary);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.guide-progress-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.guide-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.guide-btn-skip {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
}

.guide-btn-skip:hover {
  color: var(--text-secondary);
  text-decoration-color: var(--text-secondary);
}

.guide-nav-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.guide-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: auto;
}

.guide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.guide-btn:hover::before {
  left: 100%;
}

.guide-btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.guide-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(37, 99, 235, 0.4);
}

.guide-btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.guide-btn-secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* 引导高亮效果 - 修复版本 */
.guide-highlight {
  position: relative;
  z-index: 10003 !important;
}

/* 为输入框特别处理，确保文本可见 */
.guide-highlight.form-input {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--primary) !important;
}

.guide-highlight.form-input::placeholder {
  color: var(--text-muted) !important;
}

.guide-highlight::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  pointer-events: none;
  animation: guideGlow 3s ease-in-out infinite;
  background: transparent;
  z-index: -1;
}

/* 特别处理按钮的聚光灯效果 */
.guide-highlight.btn-primary {
  box-shadow: var(--shadow-md) !important;
  transform: none !important;
}

.guide-highlight.btn-primary:hover {
  box-shadow: var(--shadow-md) !important;
  transform: none !important;
}

@keyframes guideGlow {
  0%, 100% {
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.1);
  }
}