/** 定义盒模型，以便padding不会影响宽度计算 **/
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body{
    background-color: #101018;
    color: #fff;
    font-size: 16px;
}

a {
    color: #f2f2f2;
}

#navbar {
    position: fixed;
    bottom: 0px;
    width: 100%;
    z-index: 1;
    height: 60px;
}

header {
    background-color: #030915;
}

.navs{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    line-height: 20px;
    padding-bottom: 10px;
    background: #1b1b27;
    z-index: 99999;
}

.navs .nav-bar{
    display: flex;
    align-items: flex-end;
    height: 30px;
    width: 100%;
    justify-content: space-between;
}

.navs .nav-bar .nav-goback{
    padding: 0 10px;
    cursor: pointer;
}

.navs .nav-bar .nav-title{
    flex-grow: 1;
    overflow: hidden;
    text-align: center;
}

.navs .nav-bar .nav-menu{
    padding: 0 10px;
    min-width: 40px;
    cursor: pointer;
}

/*nav*/
.nav{display: flex; display: -webkit-flex; position: fixed; top: 0px; right: 0px; z-index: 99; align-items: center; width: 100%; background-color: #101018;}
.nav.nav-bg{ background: -webkit-linear-gradient(left, #2b97ed , #195abc); /* Safari 5.1 - 6.0 */background: -o-linear-gradient(right, #2b97ed, #195abc); /* Opera 11.1 - 12.0 */
        background: -moz-linear-gradient(right, #2b97ed, #195abc); /* Firefox 3.6 - 15 */ background: linear-gradient(to right, #2b97ed , #195abc); /* 标准的语法（必须放在最后） */}
.nav .nav-bar{display: flex; display: -webkit-flex; justify-content: space-between; align-items: center; width: 100%; height: 40px;}
.nav .nav-bar .nav-goback{padding: 0px 20px; cursor: pointer;}
.nav .nav-bar .nav-goback img{height: 15px;}
.nav .nav-bar .nav-title{font-size: 18px; flex-grow: 1; text-align: center; overflow: hidden; height: 40px; line-height: 40px; width: 100px;}
.nav .nav-bar .nav-menu{min-width: 40px; cursor: pointer; padding: 0px 10px;}
.nav .nav-bar .nav-menu > i{font-size: 1.5em; padding-right: 10px;}
.nav .nav-bar .nav-menu img{height: 15px;}

footer {
    padding: 40px;
}

.main {
    padding-top: 40px;
}

.divider{
    height: 20px;
}

/** 常用样式 **/

.modals{
    display: none;
    border: 1px solid #339bb9;
    border-radius: 5px;
    margin: 10px;
    padding: 10px;
    background: rgba(40, 122, 215, 0.9);
    position: fixed;
    top: 30%;
    left: 50%;
    margin-left: -150px;
    width: 300px;
    z-index: 99;
}

.modals .modal-backdrop{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
}

.modals .modal-content{
    position: relative;
    z-index: 9999;
}

.modals .modal-content .modal-title{
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #339bb9;
    margin: 0 0 20px 0;
}

.modals .modal-content .modal-body{
    padding: 0 20px;
}

.modals .modal-content .modal-btn{
    border-top: 1px solid #339bb9;
    margin-top: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.shadow{
    box-shadow: 2px 2px 2px 2px #ccc;
}

.nowrap{
    white-space:nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
}


.border-t, .border-b{
    position:relative;
}

.border-t:before,
.border-b:after{
    content: '';
    position: absolute;
    left: 0;
    top:0;
    background: #ddd;
    right:0;
    height: 1px;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}
.border-b:after{
    top:auto;
    bottom:0;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type='number']{
    -moz-appearance: textfield;
}

input[type='text'],
input[type='number'],
input[type='password'],
select,
textarea,
input[type='text']:focus,
input[type='number']:focus,
input[type='password']:focus,
select:focus,
textarea:focus {
    border:1px solid #339bb9;
    border-radius: 0;
    color: #f2f2f2;
    background-color:rgba(0, 0, 0, 0);
    outline:none;
    -webkit-appearance: none;
}

select{
    -webkit-appearance: listbox;
}

input[type='text']:focus,
input[type='number']:focus,
input[type='password']:focus,
textarea:focus,
select:focus {
    /*background-color: rgba(3, 9, 22, 0.5);*/
}

input[type='text'],
input[type='number'],
input[type='password'],
select {
    width:100%;
    height:30px;
    padding: 2px;
}

input[type='text'].error,
input[type='number'].error,
input[type='password'].error,
input[type='radio'].error,
input[type='checkbox'].error,
select.error{
    border: 1px solid #f34239;
}

::-webkit-input-placeholder,
::-moz-placeholder{ /* WebKit browsers */
    color: #cacaca;
    padding: 2px;
}

/**
自定义 checkbox

<div>
    <input type="checkbox" id="checkbox1" />
    <label for="checkbox1">
        我已阅读并接受
        <a href="javascript: void(0);">注册协议和隐私条款</a>
    </label>
</div>

**/
input[type=checkbox] {
    display: none;
}
input[type=checkbox] + label{
    height: 25px;
    line-height: 20px;
    position: relative;
    color: #a8a8ab;
    font-size: 0.75em;
    /*text-shadow: 0 0 2px #000;*/
}

input[type=checkbox] + label a{
    color: #00a0e9;
    /*text-shadow: 0 0 2px #ccc;*/
}

input[type=checkbox] + label:before {
    content: " ";
    position: relative;
    top: 0px;
    left: 0;
    margin-right: 5px;
    width: 15px;
    height: 15px;
    background: url('../icon/reg_uncheck.png') no-repeat center;
    background-size: 100% 100%;
    /*background-color: rgba(3, 9, 22, 0.5);
    border: 1px solid #269abc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05); */
    border-radius: 2px;
    display: inline-block;
    text-shadow: none;
}
input[type=checkbox].error + label:before{
    border: 1px solid #F55;
    box-shadow: 0 1px 2px rgba(255, 85, 85, 0.5), inset 0px -15px 10px -12px rgba(240, 58, 49, 0.5);
}
input[type=checkbox] + label:before:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}

input[type=checkbox]:checked + label:before{
    /*border: 1px solid #339bb9;
    background-color: rgba(40, 122, 215, 0.5);*/
    background: url('../icon/reg_check.png') no-repeat center;
    background-size: 100% 100%;
}

/*input[type=checkbox] + label:after {
    display: none;
    content: " ";
    position: absolute;
    top: 3px;
    left: 3px;
    text-shadow: none;
    border-bottom: 1px solid #339bb9;
    border-left: 1px solid #339bb9;
    transform: translate(0px, 5px) rotate(-46deg);
    width: 16px;
    height: 8px;
} */

input[type=checkbox]:checked + label:after {
    display: block;
}

/** 表单控件组 **/
.form-groups{
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-groups .form-label{
    min-width: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-groups .form-control{
    height: 30px;
    flex-grow: 1;
    width: 100px;
    margin-left: 10px;
}

.form-groups .form-control-static{
    height: 30px;
    flex-grow: 1;
    width: 100px;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.form-groups .form-addon{
    display:block;
    height:30px;
    position:absolute;
    top: 0px;
    padding: 5px 10px;
    line-height: 25px;
    border-top-left-radius:5px;
    border-bottom-left-radius:5px;
}

.form-groups .form-addon.fa-icon{
    color: #E5AA65;
    font-size: 20px;
}

.form-groups .error_text{
    position: absolute;
    top: 29px;
    color: #f00;
    width: 100%;
    text-align: right;
    font-size: 14px;
}

.btns {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    color: #f2f2f2;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid #269abc;
    background: rgba(40, 122, 215, 0.5);
}

.btns.sm{
    height: 30px;
}

.btns:hover{
    background: #339bb9;
    color: #f2f2f2;
}

.btns.white{
    background: #f2f2f2;
    border: 1px solid #eee;
    color: #999;
}

.btns.white:hover{
    background: #fefefe;
    color: #ccc;
}

.btns.success{
    background:#09bb07;
}

.btns.success:hover{
    background: #129611;
}

.btn.disabled, .btn:disabled{
    border-color: #6c757d;
    background: #6c757d;
}

.btns.success:hover{
    background: #ccc;
}

.btn.warning{
    background:#ff7700;
    border: none;
}

.btns.warning:hover{
    background: #ff7700;
}

.btns.info{
    background:#339bb9;
    border: 1px solid #269abc;
}

.btns.info:hover{
    background: #269abc;
}

.btns.danger{
    background:#c9302c;
    border: 1px solid #ac2925;
}

.btns.danger:hover{
    background: #ac2925;
}


.text-green{
    color: #28a745;
}

.text-blue{
    color: #007bff;
}

.text-lightblue{
    color: #17a2b8;
}

.text-gray{
    color: #6c757d;
}

.text-red{
    color: #dc3545;
}

.text-yellow{
    color: #ffc107;
}

.text-bg-green{
    color: #fff;
    background: #28a745;
}

.text-bg-blue{
    color: #fff;
    background: #007bff;
}

.underline{
    text-decoration: underline;
}

.menux {
    background: rgba(40, 122, 215, 0.3);
    border-radius: 5px;
    margin-bottom: 15px;
}

.menux .item{
    margin: 0 10px;
    display: flex;
    align-items: center;
}
.menux .item .item-icon{
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.menux .item .item-content{
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #339bb9;
    padding: 10px 0;
}

.menux .item:first-child .item-content{
    border-top: none;
}

.menux .item .item-content>div:first-child{
    padding-left: 0px;
}

.menux .item .item-content>div:last-child{
    padding-right: 5px;
    font-size: 1.2em;
}



.goTop{
    position: fixed;
    z-index: 500;
    right: 20px;
    bottom: 100px;
    width: 30px;
    height: 30px;
    color: #269abc;
    border: 1px solid #269abc;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 20px;
    padding-top: 6px;
    display: none;
}

.goTop div:first-child{
    line-height: 0.2em;
    font-size: 0.6em;
}

.logs{
    padding: 10px;
}

.logs .item{
    background-color: rgba(40, 122, 215, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin: 5px 0 10px 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.logs .item .time{
    display: flex;
    font-size: 12px;
}
.logs .item .time .key{
    background: #ff7700;
    color: #f2f2f2;
    padding: 1px 5px;
    border-radius: 3px;
    text-align: center;
}

.logs .item .time .value{
    flex-grow: 1;
    padding: 1px 5px;
    margin-left: 5px;
}

.logs .item .shu{
    display: flex;
    justify-content: space-around;
    padding: 10px;
    align-items: center;
}

.logs .item .shu .liang{
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

}

.logs .item .shu .liang .key{
    font-size: 0.6em;
    color: #ccc;
}

.logs .item .shu .liang .value{
    color: #ff7700;
    font-size: 1.2em;
}

.logs .item .shu .shufengge{
    width: 1px;
    background: #339bb9;
    height: 30px;
}

.logs .item .remark{
    display: flex;
    font-size: 12px;
    justify-content: space-between;
}

.logs .item .remark .key{
    background: #ff7700;
    color: #f2f2f2;
    padding: 1px 2px;
    border-radius: 3px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    font-size: 0.8em;
}

.logs .item .remark .value{
    flex-grow: 1;
    padding: 1px 5px;
    min-width: 200px;
    word-wrap: break-word;
}

.logs .item .remark .status{
    background: #ff7700;
    color: #f2f2f2;
    padding: 1px 2px;
    border-radius: 3px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    font-size: 0.8em;
}


.logs .item .jindu{
    background: #000;
    height: 5px;
    border-radius: 3px;
    border-left: 1px solid #111;
    border-top: 1px solid #111;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    margin: 10px 0;
    position: relative;
}

.logs .item .jindu .progress{
    height:1px;
    margin:1px 0;
    background:#339bb9;
    position:absolute;
    box-shadow:0px 0px 10px 1px rgba(0,198,255,0.4);
    -webkit-animation: css3 2s ease-out;
}

.logs .item .jindu .remark{
    white-space: nowrap;
    margin-top: 5px;
    font-size: 12px;
    text-align: right;
    position: absolute;
    justify-content: flex-end;
    min-width: 70px;
}
