/** 定义盒模型，以便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{height: 40px; display: flex; display: -webkit-flex; position: fixed; top: 0px; right: 0px; z-index: 99999; background-color: #1b1b27; align-items: center; width: 100%;}
.nav .nav-bar{display: flex; display: -webkit-flex; justify-content: space-between; align-items: center; width: 100%;}
.nav .nav-bar .nav-goback{padding: 0px 20px; cursor: pointer;}
.nav .nav-bar .nav-goback img{transform: rotate(180deg); height: 15px;}
.nav .nav-bar .nav-title{font-size: 18px; flex-grow: 1; text-align: center;}
.nav .nav-bar .nav-menu{min-width: 40px; cursor: pointer;}

footer {
    padding: 40px;
}

.main {
    padding-top: 40px;
}

.divider{
    height: 20px;
}

/** 常用样式 **/

.modal{
    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;
}

.modal .modal-backdrop{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
}

.modal .modal-content{
    position: relative;
    z-index: 9999;
}

.modal .modal-content .modal-title{
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #339bb9;
    margin: 0 0 20px 0;
}

.modal .modal-content .modal-body{
    padding: 0 20px;
}

.modal .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:25px;
    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: #7c7c81; 
    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;
    /*text-shadow: 0 0 2px #000;*/
}

input[type=checkbox] + label a{
    color: #f2f2f2;
    text-shadow: 0 0 2px #ccc;
}

input[type=checkbox] + label:before { 
    content: " ";
    position: relative;
    top: 5px;
    left: 0;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    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);
}

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);
}

.btn.sm{
    height: 30px;
}

.btn:hover{
    background: #339bb9;
    color: #f2f2f2;
}

.btn.white{
    background: #f2f2f2;
    border: 1px solid #eee;
    color: #999;
}

.btn.white:hover{
    background: #fefefe;
    color: #ccc;
}

.btn.success{
    background:#09bb07;
}

.btn.success:hover{
    background: #129611;
}

.btn.disabled, .btn:disabled{
    border-color: #6c757d;
    background: #6c757d;
}

.btn.success:hover{
    background: #ccc;
}

.btn.warning{
    background:#ff7700;
    border: none;
}

.btn.warning:hover{
    background: #ff7700;
}

.btn.info{
    background:#339bb9;
    border: 1px solid #269abc;
}

.btn.info:hover{
    background: #269abc;
}

.btn.danger{
    background:#c9302c;
    border: 1px solid #ac2925;
}

.btn.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;
}

.menu {
    background: rgba(40, 122, 215, 0.3);
    border-radius: 5px;
    margin-bottom: 15px;
}

.menu .item{
    margin: 0 10px;
    display: flex;
    align-items: center;
}
.menu .item .item-icon{
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.menu .item .item-content{
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #339bb9;
    padding: 10px 0;
}

.menu .item:first-child .item-content{
    border-top: none;
}

.menu .item .item-content>div:first-child{
    padding-left: 0px;
}

.menu .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;
}
