@charset "UTF-8";
body {
  background-color: #F5F5F5;
  min-width: 1280px;
}

#index {
  position: relative;
}
#index #header {
  position: relative !important;
  top: 0 !important;
}

/*sid-groups部分的样式*/
#header,
#banner,
#footer {
  position: relative;
  z-index: 5;
}

#header:hover {
  z-index: 103;
}

.editor-page #header:hover,
.editor-page #banner:hover,
.editor-page #footer:hover {
  z-index: 103;
}
.editor-page #header:hover .module-set,
.editor-page #banner:hover .module-set,
.editor-page #footer:hover .module-set {
  display: block;
}
.editor-page .content {
  z-index: 100;
}

#header {
  z-index: 6;
}

#footer {
  z-index: 10;
}

/*aid-groups部分的样式*/
#grid1 {
  width: 1200px;
  margin: 0 auto;
}

/*中间画布的样式*/
.content {
  position: relative;
  z-index: 6;
}
.content .aid-groups {
  position: relative;
  z-index: 5;
}

#grid1 .grid-stack-item-content {
  overflow-y: hidden;
}
#grid1 .grid-stack-item-content > div {
  min-height: 100%;
}

.aid-groups {
  margin-bottom: 0;
}
.aid-groups .grid-wrap {
  position: relative;
  width: 1200px;
  margin: 0 auto;
}
.aid-groups .grid-wrap .grid-stack-item-content {
  border: 2px solid transparent;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.aid-groups .grid-wrap.editor-grid:hover:before {
  display: inline-block;
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  left: -1px;
  width: 0;
  border-left: 1px solid #3D82F2;
  z-index: 200;
}
.aid-groups .grid-wrap.editor-grid:hover:after {
  display: inline-block;
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  right: -1px;
  width: 0;
  border-left: 1px solid #3D82F2;
  z-index: 200;
}
.aid-groups .grid-wrap.editor-grid .grid-stack-item-content {
  border: 2px dashed #ddd;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.aid-groups .grid-wrap.editor-grid .grid-stack-item:hover .top-btns {
  display: block;
}
.aid-groups .grid-wrap.editor-grid .grid-stack-item:hover .grid-stack-item-content {
  border: 2px dashed #3D82F2;
}
.aid-groups #grid1 {
  margin: 0 auto;
  min-height: 700px;
  z-index: 10;
}
.aid-groups .top-btns {
  position: absolute;
  display: none;
  top: -30px;
  right: 10px;
  z-index: 100;
  padding-bottom: 10px;
  height: 33px;
  line-height: 33px;
  font-size: 12px;
  color: #666;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.aid-groups .top-btns .icon {
  display: inline-block;
  font-size: 16px;
  vertical-align: middle;
}
.aid-groups .top-btns span {
  display: inline-block;
  vertical-align: middle;
}
.aid-groups .top-btn-groups {
  padding: 0 16px;
  background: rgb(255, 255, 255);
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
          box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
.aid-groups .top-btn-groups > span:not(:last-child) {
  margin-right: 10px;
}
.aid-groups .top-btn-groups i {
  margin-right: 4px;
}
.aid-groups .top-btn-groups .set,
.aid-groups .top-btn-groups .delete {
  cursor: pointer;
}
.aid-groups .top-btn-groups .drag-nav {
  cursor: move;
}

/*背景列表的样式*/
.editor-page #bgs > li:hover {
  border-bottom: 2px dashed #eee;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.editor-page #bgs > li:hover .bg-height {
  display: inline-block;
}

#bgs {
  min-height: 500px;
}

/*编辑模块名字的弹框样式*/
.name-edit-pop .pop-content {
  width: 380px;
}
.name-edit-pop .middle {
  text-align: center;
  padding: 40px 16px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.name-edit-pop label {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.name-edit-pop .inp-name {
  padding: 0 8px;
  width: 240px;
  height: 30px;
  border-radius: 2px;
  border: 1px solid rgb(221, 221, 221);
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

@media only screen and (min-width: 1px) and (max-width: 926px) {
  #grid1 {
    width: 100%;
  }
  .aid-groups .grid-wrap {
    width: 100%;
  }
}
@media only screen and (min-width: 1px) and (max-width: 1080px) {
  .touchmachine #grid1 {
    width: 100%;
  }
  .touchmachine .aid-groups .grid-wrap {
    width: 100%;
  }
}
/*布局模式的样式---待优化*/
.editor-page.layout-mode {
  min-width: 1420px;
}
.editor-page.layout-mode #popupNav {
  position: absolute;
  top: 48px;
  left: 0 !important;
  bottom: 0;
  width: 200px;
}
.editor-page.layout-mode #popupNav .tab-con-wrap {
  max-height: none;
}
.editor-page.layout-mode #popupNav .menus {
  width: 100%;
  border-radius: 0;
  height: 100%;
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}
.editor-page.layout-mode #popupNav .modules img {
  width: 50px;
  height: 34px;
}
.editor-page.layout-mode #popupNav .module-name {
  font-size: 12px;
}
.editor-page.layout-mode #popupNav .edit-page-bg {
  left: 210px;
}
.editor-page.layout-mode #popupNav .pop-nav-content {
  height: 100%;
}
.editor-page.layout-mode #popupNav .tab-con-wrap {
  height: calc(100% - 50px);
  overflow-y: auto;
}
.editor-page.layout-mode #popupNav #scaleLeft {
  display: none;
}
.editor-page.layout-mode #popupNav .colors > li:not(:nth-child(8n)) {
  margin-right: 2px;
}
.editor-page.layout-mode .content,
.editor-page.layout-mode #header,
.editor-page.layout-mode #banner,
.editor-page.layout-mode #footer {
  width: 1204px;
  margin-left: 212px;
}