/**
 * +------------------------------------------------------------
 * | 全局样式表 (static/css/common.css)
 * +------------------------------------------------------------
 * | @copyright: CIM (https://cimxx.com)
 * +------------------------------------------------------------
 * | 目录:
 * |    重定义浏览器默认样式
 * |    全局常用样式
 * |    附件 files
 * |    评论 comment
 * +------------------------------------------------------------
 */

@charset "utf-8";

/**
--- 重定义浏览器样式 -----------------------
*/

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    margin: 0;
    padding: 0;
}

body {
    font: 14px/1.5 "Microsoft YaHei", "Lantinghei SC", "PingFang SC", "HanHei SC", "Helvetica Neue", "Open Sans", Arial, "Hiragino Sans GB", "微软雅黑", STHeiti, "WenQuanYi Micro Hei", SimSun, sans-serif;
    background: #dedede;
}

input:focus {
    outline: none;
}

article,
aside,
dialog,
footer,
header,
section,
footer,
nav,
figure,
menu {
    display: block
}


/* HTML5 媒体文件跟 img 保持一致 */
audio,
canvas,
video {
    *display: inline;
    *zoom: 1;
}


/* IE bug fixed: th 不继承 text-align*/
th {
    text-align: inherit;
}


/* ie6 7 8(q) bug 显示为行内表现 */
iframe {
    display: block;
}

/* 去掉 firefox 下此元素的边框 */
abbr,
acronym {
    border: 0;
    font-variant: normal;
}

address,
caption,
cite,
code,
dfn,
em,
th,
var {
    font-style: normal;
    font-weight: 500;
}

/* 去掉列表前的标识, li 会继承 */
ol,
ul {
    list-style: none;
}


/* 对齐是排版最重要的因素, 别让什么都居中 */
caption,
th {
    text-align: left;
}


/* 来自yahoo, 让标题都自定义, 适应多个系统应用 */
q:before,
q:after {
    content: '';
}


/* 统一上标和下标 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}


/* 默认不显示下划线，保持页面简洁 */

a,
a:hover {
    text-decoration: none !important;
}


/* 代码字体 */

code,
kbd,
pre,
samp {
    font-family: monospace, serif;
    font-size: 1em;
}

a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    outline: none;
}

P {
    word-break: break-all;
}


/**
--- 全局常用样式 -----------------------
*/

/* 字体超出范围截断显示省略号 */

.overflow {
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
}


/* 间距 */

.m-0 { margin: 0 }
.m-xs { margin: 5px }
.m-sm { margin: 10px }
.m-md { margin: 20px }
.m-lg { margin: 30px }

.p-0 { padding: 0 }
.p-xs { padding: 5px }
.p-sm { padding: 10px }
.p-md { padding: 20px }
.p-lg { padding: 30px }
.pt-0 { padding-top: 0 }

.pt-xs {
    padding-top: 5px
}

.pt-sm {
    padding-top: 10px
}

.pt-md {
    padding-top: 20px
}

.pt-lg {
    padding-top: 30px
}

.pr-0 {
    padding-right: 0
}

.pr-xs {
    padding-right: 5px
}

.pr-sm {
    padding-right: 10px
}

.pr-md {
    padding-right: 20px
}

.pr-lg {
    padding-right: 30px
}

.pb-0 {
    padding-bottom: 0
}

.pb-xs {
    padding-bottom: 5px
}

.pb-sm {
    padding-bottom: 10px
}

.pb-md {
    padding-bottom: 20px
}

.pb-lg {
    padding-bottom: 30px
}

.pl-0 {
    padding-left: 0
}

.pl-xs {
    padding-left: 5px
}

.pl-sm {
    padding-left: 10px
}

.pl-md {
    padding-left: 20px
}

.pl-lg {
    padding-left: 30px
}

.mt-0 {
    margin-top: 0
}

.mt-xs {
    margin-top: 5px
}

.mt-sm {
    margin-top: 10px
}

.mt-md {
    margin-top: 20px
}

.mt-lg {
    margin-top: 30px
}

.mr-0 {
    margin-right: 0
}

.mr-xs {
    margin-right: 5px
}

.mr-sm {
    margin-right: 10px
}

.mr-md {
    margin-right: 20px
}

.mr-lg {
    margin-right: 30px
}

.mb-0 {
    margin-bottom: 0
}

.mb-xs {
    margin-bottom: 5px
}

.mb-sm {
    margin-bottom: 10px
}

.mb-md {
    margin-bottom: 20px
}

.mb-lg {
    margin-bottom: 30px
}

.ml-0 {
    margin-left: 0
}

.ml-xs {
    margin-left: 5px
}

.ml-sm {
    margin-left: 10px
}

.ml-md {
    margin-left: 20px
}

.ml-lg {
    margin-left: 30px
}


/* fix bootstrap */

.img-captcha {
    cursor: pointer;
    border-radius: 4px;
}

.btn-theme {
    border-radius: 0px;
    color: #fff;
    background: #fd2b50;
}

.btn-theme:hover {
    background: #fd2b50;
}

.text-danger {
    color: #fd2b50;
}

.label-danger {
    background: #fd2b50;
}


/* 面包屑导航 */
.breadcrumb>li+li:before {
    content: ">";
}

.breadcrumb a {
    color: #222;
}


/* 头部 */

#topbar {
    line-height: 35px;
    height: 35px;
}

#topbar .wechat .fa {
    font-size: 24px;
    position: relative;
    top: 3px;
}

#topbar .wechat .dropdown-menu {
    padding: 10px;
    margin: 0;
    width: 140px;
    height: 140px;
    background: url(/static/img/qrcode.gif) no-repeat #fff;
    background-size: cover;
}

#topbar .links li {
    display: inline-block;
    padding-left: 8px;
    font-size: 12px;
}

#topbar .dropdown-menu {
    min-width: 100px;
    top: 29px
}

#topbar .dropdown-menu li {
    display: block;
    padding: 3px 0px;
}

#topbar .dropdown a i {
    display: inline-block;
    -webkit-transition: .2s ease-in;
    -moz-transition: -webkit-transform .2s ease-in;
    -o-transition: -webkit-transform .2s ease-in;
    transition: .2s ease-in;
}

#topbar .dropdown:hover a i {
    -moz-transform: rotate(180deg);
    -moz-transform-origin: 50% 30%;
    -webkit-transform: rotate(180deg);
    -webkit-transform-origin: 50% 30%;
    -o-transform: rotate(180deg);
    -o-transform-origin: 50% 30%;
    transform: rotate(180deg);
    transform-origin: 50% 40%;
}

#header .action a {
    display: inline-block;
    width: 150px;
    margin-top: 6px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    background: #fd2b50;
}
#header .action a.add {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

#header .action a.manage {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#navbar {
    min-height: 50px;
}

.bg-primary {
    background: #fd2b50;
}


/* 布局 */

#main {
    height: auto;
}

#content {
    width: 840px;
}

#sidebar {
    width: 300px;
}


/* 自定义滚动条样式 */

::-webkit-scrollbar {
    background: #ffffff;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
}


/* 侧边工具条 */

#toolbar {
    position: fixed;
    width: 60px;
    top: 58%;
    left: 50%;
    margin-left: 600px;
    z-index: 2;
    background-color: transparent;
}

#toolbar>a {
    display: block;
    height: 48px;
    width: 48px;
    background: #fff;
    margin-top: 1px;
    line-height: 20px;
    text-align: center;
}

#toolbar>a span {
    display: none;
    color: #fff;
    padding: 4px;
    font-size: 14px;
}

#toolbar>a i {
    color: #999;
    padding-top: 15px;
    font-size: 20px;
}

#toolbar>a .qrcode {
    display: none;
    position: absolute;
    border: 2px solid #eee;
    left: -130px;
    top: 16px;
    width: 120px;
    height: 120px;
    background: #fff url(/static/img/wxapp.png) no-repeat center;
    background-size: cover;
}

#toolbar>a:hover .qrcode {
    display: block;
}

#toolbar>a:hover {
    background: #fd2b50;
}

#toolbar>a:hover i {
    color: #fff;
}


/* 页脚 */

#footer {
    padding: 30px 0px 30px;
    line-height: 32px;
}

#footer .nav a:first-child {
    padding-left: 0px;
}

#footer .nav a {
    padding: 0 8px;
    display: inline-block;
}

#footer .copyright a.beian {
    background: url(/static/img/icon/beian.png) 3px no-repeat;
}

#footer .copyright a.cim {
    display: inline-block;
    width: 40px;
    height: 17px;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    line-height: 17px;
    font-size: 12px;
    margin-top: 10px;
    margin-right: 5px;
    background: #ec4f4f;
}



/**
  头像
*/

.avatar-xs {
    width: 32px;
    height: 32px;
}

.avatar-sm {
    width: 48px;
    height: 48px;
}

.avatar-md {
    width: 64px;
    height: 64px;
}

.avatar-lg {
    width: 96px;
    height: 96px;
}

.avatar-xl {
    width: 128px;
    height: 128px;
}


/* 分页 */

.pagination li a {
    border-radius: 4px;
}

.pagination .form-goto .input-group { width: 100px; }


/* 表单 */

.form-horizontal .control-label {
    color: #999;
    padding-right: 0px;
    font-weight: normal;
}


/* 步骤 */

dl.steps {
    height: 36px;
    font-size: 16px;
    border-bottom: 1px solid #e5e5e5;
}

dl.steps dt,
dl.steps dd {
    display: inline-block;
    height: 35px;
    min-width: 120px;
    border-bottom: 2px solid #e5e5e5;
}

dl.steps dd.active {
    color: #ff6600;
    font-weight: 700;
    border-bottom: 2px solid #ff6600;
}



/* 侧边筛选 */

#sidebar .filters dt,
#sidebar .filters dd {
    display: inline-block;
    height: 36px;
    line-height: 36px;
}

#sidebar .filters dt {
    width: 100%;
    text-indent: 10px;
}

#sidebar .filters dd {
    float: left;
    width: 50%;
}

#sidebar .filters a {
    display: block;
    padding: 0 10px;
}

#sidebar .filters dd a:hover,
#sidebar .filters dd a.active {
    color: #ff6600;
    background-color: #f5f5f5;
}


/* 侧边导航  */

#sidebar h3 {
    padding: 12px 22px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

#sidebar .nav .badge {
    background: #ffc900;
    font-weight: normal;
}

#sidebar ul.nav li {
    height: 40px;
    line-height: 40px;
    border: 1px solid #f5f5f5;
    margin-top: -1px;
    overflow: hidden;
}

#sidebar ul.nav li.active,
#sidebar ul.nav li:hover {
    background-color: #f5f5f5;
}

#sidebar ul.nav li.active a,
#sidebar ul.nav li a:hover {
    color: #fd2b50;
}

#sidebar ul.nav li a {
    display: block;
    color: #222;
    padding: 0 20px;
}


/* 搜索 */

.search #sidebar dd p {
    display: inline-block;
    width: 200px;
}


/**
--- 附件 files -----------------------
*/

.upload_button {
    display: inline-block;
    height: 42px;
    line-height: 42px;
    width: 210px;
    text-align: center;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.upload_button input[rel=button] {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 6;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

[rel=cim_upload] .preview, [rel=preview] {
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    width: 542px;
}

[rel=cim_upload] .preview .item, [rel=preview] .item {
    height: 180px;
    width: 180px;
    float: left;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

[rel=cim_upload] .preview .item img, [rel=preview] .item img {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    /* IE 9 */
    -moz-transform: translate(-50%, -50%);
    /* Firefox */
    -webkit-transform: translate(-50%, -50%);
    /* Safari 和 Chrome */
    -o-transform: translate(-50%, -50%);
    /* Opera */
    transform: translate(-50%, -50%);
}

[rel=cim_upload] .preview .item img, [rel=preview] .item img {
    max-width: 100%;
    max-height: 100%;
    z-index: 5;
}

[rel=cim_upload] .preview .item em, [rel=preview] .item em {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, .4);
    font-size: 18px;
    width: 24px;
    height: 26px;
    text-align: center;
    color: #fff;
    cursor: pointer;
}


/**
* --- 评论 comment -----------------------
*
*/

#comment {
    margin-bottom: 50px !important;
}

#comment .comment_img {
    width: 60px;
    height: 60px;
    float: left;
    margin-bottom: 15px;
}

#comment .avatar-md {
    width: 50px;
    height: 50px;
}

#comment .comment_content {
    margin-left: 80px;
}

#comment .comment_title {
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

#comment .comment_title span {
    border-bottom: 2px solid #dd5050;
    display: inline-block;
    padding: 0px 0px 10px 0;
    font-size: 18px;
    margin-right: 10px;
}

#comment .comment_title em {
    color: #ccc;
}

#comment .comment_block {
    font-size: 12px;
    color: #b4b7c1;
    margin-bottom: 50px;
}

#comment .comment_name {
    font-size: 13px;
    font-family: "Microsoft Yahei", sans-reg;
}

#comment .comment_time {
    font-size: 11px;
    color: #b4b7c1;
}

#comment .comment_text {
    font-size: 13px;
    line-height: 18px;
    color: #7a8192;
    display: block;
    background: #f6f6f7;
    border: 1px solid #edeff2;
    padding: 15px 20px 20px 20px;
}

#comment .comment_content span {
    display: inline-block;
    margin-bottom: 15px;
}

#comment .comment_content a {
    color: #383b43;
}

#comment .comment_content a:hover {
    color: #0D58C8;
}

#comment .comment_time {
    text-align: right;
}

#comment .comment_info {
    margin-bottom: 15px;
}

#comment .comment_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

#comment .comment_empty {
    padding: 40px;
    font-size: 18px;
    text-align: center;
}

#comment .comment_login .media-body {
    padding: 40px;
    border: 1px solid #eee;
    background: #f0f0f0;
    text-align: center;
}

#comment .comment_form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    resize: none;
    border: 1px solid #eee;
}

#comment .comment_data {
    padding-top: 15px;
}

#comment .media {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

#comment .media .media-body,
#comment .media .media-heading {
    font-size: 14px;
}

#comment .media-body .panel {
    margin-top: 15px;
}

#comment .media-body .panel,
#comment .comment_post input {
    border: 1px solid #eee;
}

#comment .panel .panel-heading {
    border-bottom: 1px solid #eee;
}

#comment .panel .media {
    padding: 15px 10px 15px 10px;
    margin: 0;
}

#comment .comment_post input {
    height: 34px;
    width: 655px;
    float: left;
}

#comment .comment_post button {
    float: right;
}

#comment .comment_post {
    padding: 10px 12px;
    height: auto;
    overflow: auto;
}


/**
* --- 筛选 filter -----------------------
*
*/

.filter .search-filter .form-inline {
    display: inline-block;
}
.filter .search-filter .form-inline input {
    height: 28px;
    width: 80px;
}
.filter .search-filter button {
    height: 26px;
    background-color: #fd2b50;
    line-height: 1;
    border: none;
}
.filter .cim-checkbox {
    font-weight: normal;
    color: #222;
}

.filter dl {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.filter dl dt {
    padding: 5px 0px;
    width: 70px;
    font-weight: normal;
}

.filter dl dd {
    flex:1;
}

.filter dl dd a {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 4px 4px 0;
    border-radius: 4px;
}

.filter dl dd a:hover,
.filter dl dd a.active {
    background-color: #fd2b50;
    color: #fff;
}

.filter dl dd i {
    cursor: pointer;
    font-style: normal;
}