/* 交互式教程向导样式 - v3.1 微调版 */

/* 全屏遮罩 */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.tutorial-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗卡片 - 高度优化 */
.tutorial-card {
  background: #ffffff;
  width: 900px;
  max-width: 95vw;
  height: 750px; /* 稍微增加高度，给内容更多空间 */
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.tutorial-overlay.active .tutorial-card {
  transform: scale(1);
}

/* 关闭按钮 */
.tutorial-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.tutorial-close:hover {
  color: #333;
}

/* 顶部标题区 - 增加间距 */
.tutorial-header {
  padding: 40px 40px 20px; /* 增加左右内边距 */
  text-align: left; /* 改为左对齐，更符合阅读习惯 */
}

.tutorial-title {
  font-size: 24px; /* 稍微调小字号，更精致 */
  font-weight: 600;
  color: #1d2129;
  margin: 0;
  letter-spacing: 0.5px;
}

/* 主体内容区 */
.tutorial-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 0 40px;
}

/* 图片展示区 - 增加内边距，避免图片顶格 */
.tutorial-image-wrapper {
  width: 100%;
  max-width: 800px;
  height: 360px; /* 适度高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: #f7f8fa; /* 更淡的背景色 */
  border-radius: 8px;
  border: 1px solid #eaedf1;
  padding: 20px; /* 增加内边距 */
}

.tutorial-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 增加投影 */
}

/* 文本描述区 */
.tutorial-desc {
  font-size: 15px;
  color: #4e5969;
  text-align: left; /* 改为左对齐 */
  max-width: 100%; /* 占满容器 */
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 温馨提示框 */
.tutorial-tips-box {
  background: #f0f9ff; /* 改为淡蓝色，更清爽 */
  border: 1px solid #b3d1ff;
  border-radius: 6px;
  padding: 16px 20px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
  text-align: left;
}

.tutorial-tips-header {
  color: #1e40af;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tutorial-tips-header::before {
  content: '💡';
  font-size: 16px;
}

.tutorial-tips-list {
  margin: 0;
  padding-left: 18px;
  color: #3370ff;
  font-size: 13px;
  line-height: 1.6;
}

.tutorial-tips-list li {
  margin-bottom: 4px;
}

/* 提交完成状态样式 */
.tutorial-success-icon {
  width: 80px;
  height: 80px;
  background: #52c41a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px auto 32px;
  color: white;
  font-size: 48px;
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.tutorial-success-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 16px;
  text-align: center;
}

/* 分页圆点 */
.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e6eb;
  transition: all 0.3s ease;
}

.tutorial-dot.active {
  background: #3370ff;
  width: 16px; /* 缩短激活状态长度 */
  border-radius: 4px;
}

/* 底部栏 */
.tutorial-footer {
  padding: 20px 40px 30px;
  border-top: 1px solid #f2f3f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.tutorial-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #86909c;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.tutorial-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #c9cdd4;
  border-radius: 2px;
  cursor: pointer;
}

.tutorial-controls {
  display: flex;
  gap: 16px;
}

.btn-tutorial {
  min-width: 88px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-tutorial-prev {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  color: #4e5969;
}

.btn-tutorial-prev:hover {
  color: #3370ff;
  border-color: #3370ff;
}

.btn-tutorial-next {
  background: #3370ff;
  border: 1px solid #3370ff;
  color: #ffffff;
}

.btn-tutorial-next:hover {
  background: #1e40af;
  border-color: #1e40af;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .tutorial-card {
    width: 95%;
    height: 90vh;
  }
  
  .tutorial-image-wrapper {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .tutorial-image-wrapper {
    height: 200px;
  }
  
  .tutorial-title {
    font-size: 20px;
  }
  
  .tutorial-desc {
    font-size: 14px;
  }
  
  .tutorial-footer {
    padding: 16px 20px;
  }
}
