.classroom {
}
.classroom .header {
}
.search {
  width: 100%;
  height: 1.5rem;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1rem;
  padding: 0.2rem 0.2rem;
  box-sizing: border-box;
}
.search input {
  width: 100%;
  height: 100%;
  font-size: 15px;
  border-radius: 0.2rem;
  border: none;
  padding: 0 0.2rem;
  box-sizing: border-box;
  background: #f5f5f5;
  color: #333;
  flex: 1;
}
.search .btn {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.1rem 0.2rem;
  color: #fff;
  background: #ff6039;
  border-radius: 0.1rem;
  font-size: 15px;
}
.category {
  margin-top: 0.3rem;
  padding: 0 0.3rem;
  display: flex;
  flex-wrap: wrap;
}
.category .tag.active {
  background: #ff6039;
  color: #fff;
}
.category .tag {
  max-width: 50%;
  font-size: 14px;
  padding: 0.1rem 0.2rem;
  border-radius: 0.1rem;
  border: 1px solid #ff6039;
  color: #ff6039;
  white-space: nowrap;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.classroom .body {
  margin-top: 0.1rem;
  min-height: 60vh;
}

.classroom .body .item {
  border-top: 1px solid #ebeef5;
  padding: 0.3rem 0.3rem;
}

.cover {
  width: 3.2rem;
  height: 2.2rem;
  overflow: hidden;
  border-radius: 0.1rem;
  object-fit: cover;
}
.left {
  flex: 1;
  padding-bottom: 0.3rem;
  position: relative;
}
.flex-box {
  display: flex;
}
.item .title {
  font-weight: 600;
  font-size: 15px;
  color: #252933;
}

.left .desc {
  margin-top: 0.2rem;
  font-size: 13px;
  color: #8a919f;
}

[class*="ellipsis"] {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  white-space: normal;
}

.ellipsis-2 {
  -webkit-line-clamp: 2;
}

.ellipsis-3 {
  -webkit-line-clamp: 3;
}

.room-tag {
  position: absolute;
  bottom: 0;
  right: 0.2rem;
  font-size: 14px;

  padding: 0 0.15rem;
  border-radius: 2px;
  background: #f2f3f5;
  box-sizing: border-box;
  color: #8a919f;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 80%;
}

.pagination {
  text-align: right;
  margin-top: 10px;
}

.empty {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #8a919f;
  font-size: 14px;
}

.editor-drawer {
  border-radius: 0;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;
  transform: none !important;
  overflow-y: auto;
}

.editor-drawer .van-dialog__header {
  padding-top: 0;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4rem;
  position: relative;
}
.drawer-header .back {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.editor-drawer .title {
  font-weight: bold;
  margin-top: 0.2rem;
  border-top: 1px solid #ededed;
  padding: 0.4rem 0.2rem;
  text-align: left;
}

.editor-drawer .van-dialog__header {
  position: sticky;
  top: 0;
  background: #fff;
}
.editor-drawer .van-dialog__content {
  padding: 0 0.2rem;
}
.editor-drawer .van-dialog__content .mce-item-table {
  padding: 0 0.3rem;
  flex: 1;
}

.editor-drawer .datetime {
  text-align: left;
  font-size: 12px;
  color: #868e96;
  padding-left: 0.2rem;
  margin-top: -3px;
  margin-bottom: 1.2rem;
}
