.steps-navigator {
  margin-bottom: 32px;
  padding: 0 20px;
}

.step-content {
  min-height: 400px;
  padding: 0 20px;
}

.step-panel {
  h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2D3436;
  }

  h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    margin-top: 20px;
    color: #333;
  }
}

.collection-selector {
  margin-bottom: 20px;
  padding: 16px;
  background: #FAFAFA;
  border-radius: 8px;

  .selector-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
  }

  .collection-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.collection-option {
  .collection-name {
    font-weight: 500;
  }
  .collection-info {
    font-size: 12px;
    color: #999;
  }
}

.packages-section {
  margin-top: 24px;
}

.collections-grid {
  .collection-card {
    .package-count {
      color: #FF8C42;
    }
  }
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.package-card {
  padding: 12px;
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    border-color: #BDBDBD;
  }

  &.active {
    border-color: #FF8C42;
    background: #FFF0E6;
  }

  .package-name {
    font-weight: 500;
    color: #2D3436;
    margin-bottom: 4px;
  }

  .package-grade {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
  }

  .package-count {
    font-size: 11px;
    color: #FF8C42;
  }
}

.schedule-ref-card {
  margin-top: 24px;
  padding: 16px;
  background: #FFF8F0;
  border-radius: 8px;

  .ref-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;

    .ref-icon {
      color: #FF8C42;
    }

    .ref-title {
      font-weight: 600;
      color: #2D3436;
    }
  }
}

.lesson-type-empty {
  padding: 40px;
  text-align: center;
  color: #999;
}

.lesson-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.lesson-type-card {
  padding: 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  /* 背景色、文字色由 getLessonTagStyle 内联样式注入，与课程卡片 tag 一致 */

  &:hover {
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  &.active {
    border-color: #43e97b !important;
    box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.4) !important;
    transform: scale(1.02);
  }

  .type-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.9;
  }

  .type-name {
    font-weight: 500;
    margin-bottom: 4px;
    /* color 继承自父级内联样式 */
  }

  .type-count {
    font-size: 12px;
    opacity: 0.85;
    /* color 继承自父级内联样式 */
  }
}

.grade-selector {
  margin-bottom: 16px;
}

.class-teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.class-teacher-card {
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;

  &.selected {
    border-color: #FF8C42;
  }

  .class-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;

    .class-info {
      flex: 1;

      .class-name {
        font-weight: 500;
        color: #2D3436;
      }

      .class-detail {
        font-size: 12px;
        color: #999;
        margin-top: 2px;
      }
    }
  }

  .teacher-selector {
    padding: 12px;
    border-top: 1px solid #E0E0E0;
    background: #FAFAFA;
  }
}

.selection-summary {
  margin-top: 16px;
  padding: 12px;
  background: #FFF8F0;
  border-radius: 8px;
  text-align: center;
  color: #FF8C42;
  font-weight: 500;
}

.confirm-info {
  margin-top: 24px;
  padding: 16px;
  background: #F5F5F5;
  border-radius: 8px;

  div {
    margin-bottom: 4px;

    &:last-child {
      margin-bottom: 0;
    }

    strong {
      color: #FF8C42;
    }
  }
}

.class-teacher-list {
  margin-top: 20px;

  h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
  }

  .teacher-status {
    color: #999;

    &.assigned {
      color: #52c41a;
      font-weight: 500;
    }
  }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
