html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#main {
  height: 100vh;
  overflow: hidden;
}

.ppt-prepare-page {
  height: 100vh;
  background: #f2f4f7;
  overflow: hidden;
  color: #1b1f26;
  font-family: "PingFang SC";
}

.ppt-prepare-page * {
  font-family: inherit;
}

.top-bar {
  height: 60px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-left {
  display: flex;
  align-items: center;
}

.file-name-new {
  font-size: 16px;
  font-weight: 500;
  margin-right: 20px;
}

.split-line {
  width: 1px;
  height: 14px;
  background: #cbcbcb;
  margin-right: 20px;
}

.label {
  font-size: 14px;
  margin-right: 10px;
}

.class-select {
  width: 200px;
}

.el-select.class-select .el-input__inner {
  height: 34px;
  line-height: 34px;
  border: 1px solid #dcdfe5;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #1b1f26;
  padding: 0 34px 0 12px;
  box-sizing: border-box;
  font-family: "PingFang SC";
}

.el-select.class-select .el-input__inner::placeholder {
  color: #a6aab2;
}

.el-select.class-select .el-input.is-focus .el-input__inner,
.el-select.class-select .el-input__inner:focus {
  border-color: #3a8bff;
}


.el-select.class-select .el-input__suffix {
  right: 10px;
  display: flex;
  align-items: center;
}

.hide-arrow-select.el-popper .popper__arrow {
  display: none;
}

.hide-arrow-select.el-popper .el-select-dropdown__item {
  height: 40px;
  line-height: 40px;
}

.hide-arrow-select.el-popper .el-select-dropdown__item.hover,
.hide-arrow-select.el-popper .el-select-dropdown__item:hover {
  background: #f0f6ff;
}

.hide-arrow-select.el-popper .el-select-dropdown__item.selected {
  color: #3a8bff;
  font-weight: 400;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.btn {
  min-width: 92px;
  height: 40px;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  cursor: pointer;
}
.btn-light:hover{
  background-color: #EDF3FF;
}

.btn-primary:hover{
  background-color: #528BFF;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn-light {
  background: #eceff4;
  color: #1b1e26;
}

.btn-primary {
  background: #266fff;
  color: #fff;
}

.main-container {
  height: calc(100vh - 60px);
  display: flex;
  position: relative;
}

.left-panel {
  width: 230px;
  background: #f2f4f7;
  padding: 10px 0 10px 0;
  border-right: 1px solid #e0e0e0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.left-panel.collapsed {
  padding: 10px 0 10px 0;
  border-right: 1px solid transparent;
}

.left-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.left-tab-wrap {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.tabs-group {
  width: 150px;
  height: 38px;
  display: flex;
}

.tab {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #8a8b99;
  position: relative;
  cursor: pointer;
}

.tab.active {
  color: #1b1e26;
  font-weight: 500;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  border-radius: 3px;
  background: #5c4dff;
}

.collapse-icon {
  width: 14px;
  height: 14px;
  display: block;
  margin-right: 2px;
  cursor: pointer;
}

.thumb-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #dadfe5 transparent;
}

.outline-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #dadfe5 transparent;
}

.outline-list::-webkit-scrollbar {
  width: 6px;
}

.outline-list::-webkit-scrollbar-track {
  background: transparent;
}

.outline-list::-webkit-scrollbar-thumb {
  background: #dadfe5;
  border-radius: 20px;
}

.outline-item {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
}

.outline-item.active {
  background: #e5e9f0;
}

.outline-num {
  width: 22px;
  font-size: 12px;
  color: #7e838c;
  text-align: center;
  flex-shrink: 0;
}

.outline-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #1c1b26;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-list::-webkit-scrollbar {
  width: 6px;
}

.thumb-list::-webkit-scrollbar-track {
  background: transparent;
}

.thumb-list::-webkit-scrollbar-thumb {
  background: #dadfe5;
  border-radius: 20px;
}

.thumb-list::-webkit-scrollbar-thumb:hover {
  background: #dadfe5;
}

.thumb-item {
  display: flex;
  gap: 4px;
}

.thumb-item .num {
  width: 22px;
  text-align: right;
  color: #474c59;
  font-size: 12px;
}

.thumb-item.active .num {
  color: #3a8bff;
}

.thumb-box {
  width: 180px;
  border-radius: 10px;
  position: relative;
  padding: 4px;
  border: 2px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
}

.thumb-box:hover{
  border-color: #528BFF;
  border-width: 1px;
}

.thumb-item.active .thumb-box {
  border-color: #3a8bff;
  background: #fff;
}

.thumb-box img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.activity-tag {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 8px 0;
}

.left-expand-trigger {
  position: absolute;
  left: 0;
  top: 24px;
  background: #fff;
  height: 34px;
  width: 34px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.expand-icon {
  width: 14px;
  height: 14px;
  cursor: pointer;
  display: block;
}

.content-area {
  flex: 1;
  min-width: 0;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
}

.ppt-preview-wrap {
  width: 100%;
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ppt-preview-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.ppt-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.right-activity-trigger {
  position: absolute;
  right: 0;
  top: 29px;
  z-index: 10;
  cursor: pointer;
}

.right-activity-trigger-icon {
  width: 75px;
  height: 41px;
  display: block;
}

.knowledge-block {
  padding-top: 30px;
}

.knowledge-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.row-title {
  flex-shrink: 0;
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-konwledge {
  height: 30px;
  line-height: 28px;
  border-radius: 4px;
  border: 1px solid #dadfe5;
  padding: 0 14px;
  font-size: 12px;
  color: #7e838c;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.item-close{
  display: none;
  position: absolute;
  right: -6px;
  top: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.tag-konwledge:hover {
  border: 1px solid #3a8bff;
  color: #3a8bff;
}

.tag-konwledge:hover .item-close {
  display: block;
}

.add-tag {
  border-style: dashed;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  cursor: pointer;
}

.add-tag:hover {
  color: #3a8bff;
  border: 1px dashed #3a8bff;
}

.add-tag img {
  width: 12px;
  height: 12px;
}

.tag.selected {
  border-color: #3a8bff;
  color: #3a8bff;
}

.remark-input {
  margin-top: 16px;
  width: 100%;
  height: 110px;
  border: 1px solid #dcdfe5;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  color: #1b1f26;
  background: transparent;
  box-sizing: border-box;
}

.right-panel {
  width: 320px;
  border-left: 1px solid #eeedf2;
  background-color: #fff;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
}

.right-panel.collapsed {
  padding-top: 0;
  border-left: 1px solid transparent;
  background-color: transparent;
}

.right-header {
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.add-btn {
  height: 34px;
  border: 1px solid #266fff;
  color: #266fff;
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.close-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.activity-list {
  overflow: auto;
  padding: 12px 0;
}

.activity-list .activity-item:nth-child(n+2){
  margin-top: -20px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  cursor: pointer;
  margin-top: -20px;
  position: relative;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 62px;
  background: transparent;
  transition: background-color .2s;
  pointer-events: none;
  z-index: 0;
}

.activity-item > * {
  position: relative;
  z-index: 1;
}

.activity-item:hover::before {
  background: #f5f8ff;
}

.activity-item .tag-img {
  width: 84px;
  height: 84px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  transform: scale(0.5);
}

.activity-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #1c1b26;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  margin-left: -20px;
}

.activity-title-input {
  flex: 1;
  min-width: 0;
  margin-left: -20px;
}

.activity-popover-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn {
  border: none;
  background: transparent;
  text-align: left;
  font-size: 12px;
  line-height: 18px;
  padding: 4px 12px;
  cursor: pointer;
  color: #1b1f26;
}

.menu-btn:hover{
  background-color: #f0f6ff;
}

.menu-btn.danger {
  color: #f56c6c;
}

.activity-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status {
  font-size: 14px;
  color: #3a8bff;
  cursor: pointer;
}

.opacity0 {
  opacity: 0;
}

.more-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.activity-more-popover {
  min-width: 50px;
}
.el-popover{
  padding: 8px 0;
}

.tag{
  border-radius: 8px;
}

/* 骨架屏 */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-block {
  background: linear-gradient(90deg, #e8eaed 25%, #f2f4f7 50%, #e8eaed 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
  border-radius: 6px;
}

/* 左侧缩略图骨架 */
.skeleton-num {
  display: inline-block;
  width: 22px;
  height: 14px;
  flex-shrink: 0;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

/* 主预览区骨架 */
.skeleton-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* 活动页 iframe 弹窗 */
#activityIframeMask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
}

#activityIframePop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 88vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#activityIframePop .activity-iframe-header {
  flex-shrink: 0;
  width: 100%;
  height: 30px;
  border-bottom: 1px solid rgba(242, 242, 242, 0.5);
  box-sizing: border-box;
}

#activityIframeClose {
  font-size: 12px;
  color: #CAD5E6;
  margin-right: 15px;
  line-height: 30px;
  cursor: pointer;
}

#activityIframeContent {
  flex: 1;
  width: 100%;
  border: none;
}