﻿/*
	Name:			style_clearfix
	Example:		class="clearfix|cl"
	Explain:		Clearfix（简写cl）避免因子元素浮动而导致的父元素高度缺失能问题
*/
.cl:after, .clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden
}

.cl, .clearfix {
    zoom: 1
}

/*通用样式*/
.fl {
    float: left;
}

.fr {
    float: right;
}

/*PC端内容区包裹层*/
.pc-wrap {
    width: 1200px;
    height: auto;
    margin: 0 auto;
}

/*字体大小*/
.font-large-xxxx {
    font-size: 30px;
}

.font-large-xxx {
    font-size: 24px;
}

.font-large-xx {
    font-size: 20px;
}

.font-large-x {
    font-size: 18px;
}

.font-large {
    font-size: 16px;
}

.font-medium {
    font-size: 14px;
}

.font-small {
    font-size: 12px;
}

.font-small-s {
    font-size: 10px;
}

/*颜色*/

.color-routine {
    color: #303133; /*常规类*/
}

.color-desc {
    color: #606266; /*描述类*/
}

.color-minor {
    color: #909399; /*次要类*/
}

.color-occupy {
    color: #C0C4CC; /*占位类*/
}

.color-theme {
    color: #53A8FF !important;
}

.color-success {
    color: #67C23A;
}

.color-warning {
    color: #E6A23C;
}

.color-danger {
    color: #F56C6C;
}

.bg-color-success {
    background-color: #67C23A;
}

.bg-color-waring {
    background-color: #E6A23C;
}

.bg-color-danger {
    background-color: #F56C6C;
}

/*外边距*/
.ml-6 {
    margin-left: 6px;
}

.ml-12 {
    margin-left: 12px;
}

.ml-18 {
    margin-left: 18px;
}

.ml-24 {
    margin-left: 24px;
}

.mr-6 {
    margin-right: 6px;
}

.mr-12 {
    margin-right: 12px;
}

.mr-18 {
    margin-right: 18px;
}

.mr-24 {
    margin-right: 24px;
}

.mt-6 {
    margin-top: 6px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-18 {
    margin-top: 18px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-6 {
    margin-bottom: 6px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-18 {
    margin-bottom: 18px;
}

.mb-24 {
    margin-bottom: 24px;
}

.margin-auto {
    margin: 0 auto;
}

/*内边距*/
.pl-6 {
    padding-left: 6px;
}

.pl-12 {
    padding-left: 12px;
}

.pl-18 {
    padding-left: 18px;
}

.pl-24 {
    padding-left: 24px;
}

.pr-6 {
    padding-right: 6px;
}

.pr-12 {
    padding-right: 12px;
}

.pr-16 {
    padding-right: 16px;
}

.pr-24 {
    padding-right: 24px;
}

.pt-6 {
    padding-top: 6px;
}

.pt-12 {
    padding-top: 12px;
}

.pt-18 {
    padding-top: 18px;
}

.pt-24 {
    padding-top: 24px;
}

.pb-6 {
    padding-bottom: 6px;
}

.pb-12 {
    padding-bottom: 12px;
}

.pb-18 {
    padding-bottom: 18px;
}

.pb-24 {
    padding-bottom: 24px;
}

.p-horizontal-6 {
    padding: 0 6px;
}

.p-horizontal-12 {
    padding: 0 12px;
}

.p-horizontal-18 {
    padding: 0 18px;
}

.p-horizontal-24 {
    padding: 0 24px;
}

.p-vertical-6 {
    padding: 6px 0;
}

.p-vertical-12 {
    padding: 12px 0;
}

.p-vertical-18 {
    padding: 18px 0;
}

.p-vertical-24 {
    padding: 24px 0;
}

/*边框*/
.all-border {
    border: 1px solid #e5e5e5;
}

.t-border {
    border-top: 1px solid #e5e5e5;
}

.b-border {
    border-bottom: 1px solid #e5e5e5;
}

/*圆角*/
.radius-medium {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.radius-circle {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

/*下边阴影*/
.all-shadow {
    -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.b-shadow {
    -moz-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.07);
    -webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.07);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.07);
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#c0c4c5')";
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#c0c4c5');
}


/*字数限制一行*/
.one-line {
    /*max-width: 110px;*/
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*因使用了WebKit的CSS扩展属性，该方法适用于WebKit浏览器及移动端；*/
/*字数限制两行*/
.multiline-2 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/*字数限制3行*/
.multiline-3 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/*字数限制3行*/
.multiline-4 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/*字数限制3行*/
.multiline-5 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

/*图片包裹层*/
.img-wrap, .img_wrap {
    position: relative;
    width: inherit;
    overflow: hidden;
}

/*图片类*/
.in-img, ._img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    /*默认裁切*/
    -o-object-fit: cover;
    object-fit: cover;
    /*z-index: 3;*/
}

/*弹性布局*/
.flex-between {
    display: flex;
    justify-content: space-between;
}

.flex-around {
    display: flex;
    justify-content: space-around;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.flex-center {
    display: flex;
    justify-content: center;
}

/*定位*/
.position-r {
    position: relative;
}

.position-a {
    position: absolute;
}

/*三角伪类*/
.triangle-left {
    position: relative;
}

.triangle-left:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border: 6px solid transparent;
    border-right-color: #fff;
}

.triangle-right {
    position: relative;
}

.triangle-right:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border: 6px solid transparent;
    border-left-color: #fff;
}

.triangle-right {
    position: relative;
}

.triangle-top:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border: 6px solid transparent;
    border-bottom-color: #fff;
}

.triangle-bottom {
    position: relative;
}

.triangle-bottom:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    border: 6px solid transparent;
    border-top-color: #fff;
}

/*文字排版*/
.txt-center {
    text-align: center;
}

.txt-left {
    text-align: left;
}

.txt-right {
    text-align: right;
}

.txt-upper {
    text-transform: uppercase;
}

.txt-lower {
    text-transform: lowercase;
}

.txt-lh-22 {
    line-height: 22px;
}

.txt-lh-26 {
    line-height: 26px;
}

.txt-lh-30 {
    line-height: 30px;
}

/*通用表单*/
.public-input {
    /*-webkit-appearance: none;*/
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    height: 36px;
    line-height: 36px;
    outline: none;
    padding: 0 15px;
    transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
    width: inherit;
    cursor: pointer;
}

.public-input:hover {
    border-color: #c0c4cc;
}

.public-input:focus {
    border-color: #409eff;
}

.public-textarea {
    display: block;
    resize: none;
    padding: 5px 15px;
    line-height: 1.5;
    min-height: 60px;
    box-sizing: border-box;
    width: 100%;
    font-size: inherit;
    color: #606266;
    background-color: #fff;
    background-image: none;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
    cursor: pointer;
}

.public-textarea:hover {
    border-color: #c0c4cc;
}

.public-textarea:focus {
    border-color: #409eff;
}

.public-btn {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    transition: .1s;
    font-weight: 500;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
}

.public-btn:focus {
    /*background-color: #ecf5ff;*/
}

.public-btn:hover, .public-btn:active {
    /*color: #409eff;*/
    border-color: #c6e2ff;
    /*background-color: #ecf5ff;*/
}

.public-label {
    text-align: right;
    vertical-align: middle;
    /*float: left;*/
    font-size: 14px;
    color: #606266;
    line-height: 36px;
    padding: 0 12px 0 0;
    box-sizing: border-box;
    display: inline-block;
}

/*美化单选多选*/
@keyframes hover-color {
    from {
        border-color: #c0c0c0;
    }

    to {
        border-color: #3e97eb;
    }
}

.magic-radio,
.magic-checkbox {
    position: absolute;
    display: none;
}

.magic-radio[disabled],
.magic-checkbox[disabled] {
    cursor: not-allowed;
}

.magic-radio + label,
.magic-checkbox + label {
    position: relative;
    display: block;
    padding-left: 22px;
    cursor: pointer;
    vertical-align: middle;
    height: 22px;
}

.magic-radio + label:hover:before,
.magic-checkbox + label:hover:before {
    animation-duration: 0.4s;
    animation-fill-mode: both;
    animation-name: hover-color;
}

.magic-radio + label:before,
.magic-checkbox + label:before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    content: '';
    border: 1px solid #c0c0c0;
}

.magic-radio + label:after,
.magic-checkbox + label:after {
    position: absolute;
    display: none;
    content: '';
}

.magic-radio[disabled] + label,
.magic-checkbox[disabled] + label {
    cursor: not-allowed;
    color: #e4e4e4;
}

.magic-radio[disabled] + label:hover,
.magic-radio[disabled] + label:before,
.magic-radio[disabled] + label:after,
.magic-checkbox[disabled] + label:hover,
.magic-checkbox[disabled] + label:before,
.magic-checkbox[disabled] + label:after {
    cursor: not-allowed;
}

.magic-radio[disabled] + label:hover:before,
.magic-checkbox[disabled] + label:hover:before {
    border: 1px solid #e4e4e4;
    animation-name: none;
}

.magic-radio[disabled] + label:before,
.magic-checkbox[disabled] + label:before {
    border-color: #e4e4e4;
}

.magic-radio:checked + label:before,
.magic-checkbox:checked + label:before {
    animation-name: none;
}

.magic-radio:checked + label:after,
.magic-checkbox:checked + label:after {
    display: block;
}

.magic-radio + label:before {
    border-radius: 50%;
}

.magic-radio + label:after {
    top: 7px;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3e97eb;
}

.magic-radio:checked + label:before {
    border: 1px solid #3e97eb;
}

.magic-radio:checked[disabled] + label:before {
    border: 1px solid #c9e2f9;
}

.magic-radio:checked[disabled] + label:after {
    background: #c9e2f9;
}

.magic-checkbox + label:before {
    border-radius: 3px;
}

.magic-checkbox + label:after {
    top: 2px;
    left: 7px;
    box-sizing: border-box;
    width: 6px;
    height: 12px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #fff;
    border-top: 0;
    border-left: 0;
}

.magic-checkbox:checked + label:before {
    border: #3e97eb;
    background: #3e97eb;
}

.magic-checkbox:checked[disabled] + label:before {
    border: #c9e2f9;
    background: #c9e2f9;
}

.prettify-scrollbar {
    overflow-y: visible;
}

.prettify-scrollbar::-webkit-scrollbar-track-piece {
    background: #d3dce6;
}

.prettify-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.prettify-scrollbar::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
}

/*修复文章嵌套地图样式bug*/
.contain-body article iframe {
    width: 100% !important;
}

.form-main ul .captcha_block {
    display: none;
}

.swal2-title {
    font-size: 18px !important;
}

.swal2-styled.swal2-confirm {
    background-color: #3e97eb !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(62, 151, 235, .3) !important;
}
