html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  color: #606266;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

.page-container.page-theme-preview {
  width: 1140px;
  margin: 0 auto;
  padding-top: 30px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.page-theme-preview .display {
  width: 75%;
  min-width: 0;
  display: inline-block;
  vertical-align: top;
  padding-right: 10px;
}

.page-theme-preview .display h3 {
  font-size: 28px;
  margin: 30px 0 0;
  color: #1f2f3d;
  font-weight: 400;
}

.page-theme-preview .side {
  width: 25%;
  display: inline-block;
}

.page-theme-preview .editor {
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  border-radius: 5px;
  margin-bottom: 20px;
  position: sticky;
  top: 30px;
  height: calc(100vh - 40px);
}

.main-configurator {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.configurator-action {
  padding: 15px 18px 0;
  flex: 0 0 auto;
}

.configurator-action .action-group {
  padding: 5px 0;
}

.configurator-action .action-group img {
  cursor: not-allowed;
  width: 16px;
  height: 16px;
  padding: 7px 0;
  margin-left: 5px;
  opacity: .5;
}

.configurator-action .action-group img.active {
  opacity: 1;
  cursor: pointer;
}

.configurator-action .action-group img:last-of-type {
  margin-left: 10px;
}

.configurator-action .button-group {
  float: right;
}

.configurator-action .button-group .el-button {
  padding: 6px 15px;
}

.configurator-action .button-group .el-button.is-disabled {
  color: #c0c4cc;
  background-color: #fff;
  border-color: #ebeef5;
}

.configurator-action .reset {
  background: #e6f1fc;
  color: #1989fa;
  border-color: #a2cffc;
}

.configurator-action .download {
  background: #1989fa;
  color: #fff;
  border-color: #1989fa;
}

.configurator-action .selector {
  width: 100%;
}

.configurator-action .selector input {
  background: #f5f7fa;
  border: none;
  font-size: 18px;
  padding-left: 0;
  color: #606266;
}

.configurator-action .line {
  width: 100%;
  height: 0;
  border-bottom: 1px solid #dcdfe6;
}

.editor-main {
  flex: 1 1 auto;
  padding: 0 18px 15px;
  overflow-y: auto;
}

.category-name {
  color: #c0c4cc;
  font-size: 18px;
  display: block;
  margin: 13px 0 3px;
}

.config {
  padding: 8px 0;
}

.config-label {
  color: #909399;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-content {
  display: flex;
  align-items: center;
}

.content-80 {
  width: 80%;
}

.content-20 {
  width: 20%;
}

.colorPicker {
  margin-left: 10px;
  vertical-align: bottom;
}

.component-preview {
  padding-right: 10px;
}

.component-preview:last-of-type {
  padding-bottom: 20px;
}

.component-preview h4 {
  font-size: 20px;
  margin: 40px 0 20px;
  color: #909399;
  font-weight: 400;
}

.component-preview .demo-item {
  margin-top: 10px;
  margin-right: 40px;
}

.component-preview .demo-line {
  margin: 15px 0;
}

.basic-preview .heading > div {
  margin-bottom: 15px;
}

.basic-preview .title {
  font-size: 18px;
  font-weight: 400;
  padding: 0 20px;
}

.basic-preview .paragraph {
  padding: 0 20px;
}

.basic-preview .color {
  margin-right: -12%;
}

.demo-color-box {
  position: relative;
  border-radius: 4px;
  padding: 20px;
  margin: 5px 0 15px;
  height: 114px;
  color: #fff;
  font-size: 14px;
}

.demo-color-box .value {
  font-size: 12px;
  opacity: .8;
  line-height: 24px;
}

.demo-color-box .bg-color-sub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: 32px;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
}

.demo-color-box .bg-success-sub-item {
  flex: 1;
}

.demo-color-box-other {
  height: 74px;
}

.demo-color-box-lite {
  color: #303133;
}

.static-dialog {
  margin: 0;
  position: relative;
  width: 420px;
}

.static-popper {
  position: relative;
  width: 40px;
  text-align: center;
  display: inline-block;
  margin-right: 20px;
}

@media (max-width: 1180px) {
  .page-container.page-theme-preview {
    width: auto;
    margin: 0 20px;
  }
}

@media (max-width: 900px) {
  .page-container.page-theme-preview {
    display: block;
  }

  .page-theme-preview .display,
  .page-theme-preview .side {
    width: 100%;
  }

  .page-theme-preview .editor {
    position: relative;
    top: 0;
    height: 640px;
  }
}
