/* 课程中心 — 设计稿 3:1924 内容区 */

.workspace {
  padding: 16px;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.workspace__panel {
  display: none;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: auto;
}

.workspace__panel.is-visible {
  display: flex;
  flex-direction: column;
}

.workspace__panel--home {
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* —— 课程中心壳 —— */
.course {
  width: 1888px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}

.course__toolbar {
  width: 1888px;
  background: #ffffff; /* splitContainers 3:5986 */
  border-radius: 16px;
  overflow: hidden;
}

/* 搜索条 */
.course__search-banner {
  position: relative;
  height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #cee8ff 0%, #f0f7ff 51%, #f8f0f3 99%);
  overflow: hidden;
}

.course__search-deco {
  position: absolute;
  pointer-events: none;
  border-radius: 100px;
}

.course__search-deco--1 {
  width: 144px;
  height: 144px;
  left: 344px;
  top: -105px;
  border-radius: 40px;
  background: #f0f6ff;
  transform: rotate(45deg);
}

.course__search-deco--2 {
  width: 178px;
  height: 178px;
  left: 461px;
  top: 91px;
  background: #d9e9ff;
}

.course__search-deco--3 {
  width: 178px;
  height: 178px;
  left: 1266px;
  top: 107px;
  border-radius: 20px;
  background: #ffeff9;
  transform: rotate(-17.4deg);
}

.course__search-deco--4 {
  width: 178px;
  height: 178px;
  left: 1469px;
  top: -95px;
  background: #e8ebf7;
  transform: rotate(-17.4deg);
}

.course__search-box {
  position: relative;
  z-index: 1;
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.course__search-field {
  width: 600px;
  height: 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 4px 24px;
  border-radius: 100px;
  background: #ffffff;
}

.course__search-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary, #303133);
  font-family: inherit;
}

.course__search-input::placeholder {
  color: #909399; /* token: 文字/次辅色 */
}

.course__search-btn {
  width: 80px;
  height: 40px;
  border: 0;
  border-radius: 100px;
  background: #139686; /* token: app-绿-主色 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.course__search-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.course__hot {
  display: flex;
  flex-direction: row;
  gap: 24px;
  font-size: 14px;
  line-height: 20px;
  color: #139686;
}

.course__hot button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* 筛选 */
.course__filters {
  padding: 16px 24px 16px;
}

.course__filter-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course__filter-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  min-height: 30px;
}

.course__filter-label {
  flex: 0 0 70px;
  padding-top: 4px;
  font-size: 14px;
  line-height: 22px;
  color: #606266;
  white-space: nowrap;
}

.course__filter-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.course__chip {
  border: 0;
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 22px;
  color: #606266;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.course__chip.is-active {
  background: #f0f2f5;
  color: #139686;
  font-weight: 350;
}

.course__filter-aside {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
}

.course__bought {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
  color: #606266;
  cursor: pointer;
  user-select: none;
}

.course__bought input {
  width: 16px;
  height: 16px;
  accent-color: #139686;
}

.course__expand {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 14px;
  line-height: 22px;
  color: #303133;
  cursor: pointer;
  font-family: inherit;
}

/* 课程卡片行 */
.course__grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 1888px;
}

.course-card {
  flex: 1 1 0;
  width: 454px;
  min-width: 0;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-card__cover {
  position: relative;
  width: 100%;
  height: 211.5px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #d9d9d9;
}

.course-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card__body {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-card__title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.course-card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-card__badge {
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 6px;
  background: #575aff;
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
}

.course-card__majors {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 30px;
}

.course-card__major {
  font-size: 14px;
  line-height: 22px;
  color: #606266;
  padding: 4px 0;
}

.course-card__major-sep {
  width: 1px;
  height: 12px;
  background: #d9d9d9;
}

.course-card__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 32px;
}

.course-card__footer--between {
  justify-content: space-between;
}

.course-card__tools {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.course-card__tool {
  width: 32px;
  height: 32px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.course-card__add {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 16px;
  border: 1px solid #28b28b;
  border-radius: 100px;
  background: #28b28b;
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  font-family: inherit;
}

.course-card__add svg {
  width: 12px;
  height: 12px;
  display: block;
}

.course-card__logo {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: linear-gradient(223deg, #497fe2 5%, #184fb5 95%);
  flex-shrink: 0;
}
