html,body {
    background-color: #f5f5f5;
}

img {
    image-rendering: -webkit-optimize-contrast; /* 针对WebKit引擎 */
    image-rendering: crisp-edges; /* WebKit引擎现不支持该值，Firefox支持 */
  
 
}

#header {
    background-color: #000;
    color: #dedede;
}

#footer {
    background-color: #aaa;
    padding: 10px 0;
}

#toolbar {
    background-color: #dedede;
    padding: 10px 0;
}

#section {
    padding: 15px 0;
}

.ui-container {
    padding: 0 20px;
}

/* 右下角工具栏 */
#fixed-toolsbar {
    position: fixed;
    right: 2px;
    bottom: 20px;
}
#fixed-toolsbar > div {
    padding: 10px;
    background-color: #111;
    color: #fff;
    text-align: center;
    width: 52px;
    font-size: 12px;
    line-height: 15px;
    display: block;
    margin-bottom: 1px;
    cursor: pointer;
}


/* ui-flex */
.ui-flex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.ui-flex.inline,
.ui-flex.inline-center {
    flex-direction: row;
}
.ui-flex.inline-center {
    align-items: center;
}
.ui-flex-1 {
    flex: 1;
}
.ui-flex-2 {
    flex: 2;
}
.ui-flex-3 {
    flex: 3;
}
.ui-flex-4 {
    flex: 4;
}
.ui-hide {
    display: none;
}


/* xbox 原//position: fixed*/
.xbox-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    /*cursor: move;鼠标拖动*/
}
.xbox-header,
.xbox-footer,
.xbox-buttons {
    display: flex;
    align-items: center;
}
.xbox-title,
.xbox-message,
.xbox-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.xbox-message {
    color: #999;
    font-size: 12px;
}
.xbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,.1);
}


.theme-defaults.xbox-container {
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 6px;
    outline: 0;
    box-shadow: 0 3px 9px rgba(0,0,0,.5);
}
.theme-defaults .xbox-header {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}
.theme-defaults .xbox-body {
    padding: 0 15px 15px 15px;
}
.theme-defaults .xbox-footer {
    padding: 5px;
    border-top: 1px solid #e5e5e5;
}
.theme-defaults .xbox-closable:before {
    content: 'X';
    font-size: 16px;
}
.theme-defaults .xbox-buttons > button {
    margin-left: 10px;
}


/* 弹出层图片选择样式 */
.imagelist {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 10px -10px 10px -10px;
}
.imagelist > .item {
    width: 12.5%;
    padding: 10px;
}
.imagelist > .item > div {
    border: 4px solid #dedede;
}
.imagelist > .item.selected > div {
    border-color: blue;
}
.imagelist > .item img {
    width: 100%;
}
.imagelist > .item span {
    font-size: 10px;
    color: #999;
    display: block;
    padding: 5px;
}
@media screen and (max-width: 760px) {
    .imagelist > .item {
        width: 33.3333%;
    }
}



/* 段落样式 */
.image-section {
    /*padding: 10px 0;*/
  padding: 2px 0;
}
.image-section .image-header {
    border-bottom: 3px solid #dedede;
    /*margin-bottom: 10px;*/
    /*padding: 5px 0;*/
  padding: 0 0 5px 0;
}
.image-section .image-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 20px;
}
.remove-section {
    color: #999;
    cursor: pointer;
}

.add-image > div {
    border: 1px dotted #dedede;
    background-color: #fff;
    height: 100%;
    min-height: 100px;
    position: relative;
    cursor: pointer;
}
.add-image > div > i {
    font-size: 60px;
    color: #dedede;
    display: block;
    height: 60px;
    width: 60px;
    text-align: center;
    position: absolute;
    top: 38%;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
}
.image-items {
    margin: 0 -10px;
}
.image-items .item {
    /*width: 12.5%;*/
  width: 6%;
    padding: 2px;
    position: relative;
}
.image-items .item img {
    max-width: 100%;
}
.image-items .item .title {
    font-size: 10px;
    text-align: center;
    line-height: 16px;
    background-color: #fff;
    padding: 8px 5px;
    color: #333;
}
.selected .item-block {
    border: 2px solid blue;
}
.item-block {
    position: relative;
    background-color: #fff;
    height: 100%;
}
.image-items .item .remove {
    position: absolute;
    top: 0;
    right: 0;
    height: 18px;
    line-height: 18px;
    cursor: pointer;
    width: 18px;
    text-align: center;
    background-color: rgba(0,0,0,.5);
    color: #fff;
    font-size: 10px;
}

@media screen and (max-width: 1200px) {
    .image-items .item {
        /*width: 20%;*/
      width: 16%;
    }
}
@media screen and (max-width: 760px) {
    .image-items {
        margin: 0 -5px;
    }
    .image-items .item {
        /*width: 33.33333%;*/
      width: 16%;
        padding: 2px;
    }
    .ui-container {
        padding: 0 10px;
    }
}