/* ============ 新手教程样式 ============ */

.tutorial-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9990;
  pointer-events: none;
}

.tutorial-mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: clip-path 0.35s ease;
  clip-path: inset(0 0 0 0);
}

.tutorial-highlight {
  position: absolute;
  border: 2px solid #60A5FA;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25), 0 0 24px rgba(96, 165, 250, 0.4);
  pointer-events: none;
  transition: all 0.35s ease;
  opacity: 0;
}

.tutorial-highlight.show {
  opacity: 1;
}

.tutorial-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  width: 340px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid #E5E7EB;
  pointer-events: auto;
  z-index: 9999;
  animation: tutorialCardIn 0.3s ease;
}

@keyframes tutorialCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tutorial-card .tut-step {
  display: inline-block;
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.tut-drag-handle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px -22px 10px -22px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #F3F4F6 0%, #fff 100%);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #E5E7EB;
  cursor: grab;
  user-select: none;
}

.tut-drag-handle:active {
  cursor: grabbing;
}

.tut-drag-handle .tut-step {
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tut-drag-hint {
  font-size: 11px;
  color: #9CA3AF;
  padding: 2px 8px;
  background: #F3F4F6;
  border-radius: 10px;
}

.tutorial-card h3 {
  margin: 0 0 10px 0;
  font-size: 17px;
  color: #111827;
  line-height: 1.4;
}

.tutorial-card p {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  text-wrap: pretty;
}

.tutorial-card .tut-task {
  font-size: 13px;
  color: #B45309;
  background: #FEF3C7;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  border-left: 3px solid #F59E0B;
}

.tutorial-card .tut-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tutorial-card .tut-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #374151;
}

.tutorial-card .tut-btn:hover {
  background: #F9FAFB;
}

.tutorial-card .tut-btn.primary {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}

.tutorial-card .tut-btn.primary:hover {
  background: #1D4ED8;
}

.tutorial-card .tut-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 起始页 */
.tutorial-welcome {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  text-align: center;
  animation: tutorialCardIn 0.4s ease;
}

.tutorial-welcome h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #111827;
}

.tutorial-welcome .tut-sub {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 18px;
}

.tutorial-welcome p {
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  margin: 0 0 24px 0;
}

.tutorial-welcome .tut-welcome-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tutorial-welcome .tut-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #374151;
}

.tutorial-welcome .tut-btn.primary {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}
