body {
    width: 100%;
    position: relative;
    top: 0;
}

.container {
    padding: 0;
}

a,
a:hover,
a:focus {
    display: block;
    text-decoration: none;
    cursor: pointer;

}

input,
button,
a,
a:hover,
a:focus {
    outline: 0;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
}

input::-webkit-input-placeholder,
input:-moz-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder {
    color: #a6a6a6;
}

button,
button:focus {
    outline: 0;
}

.gray:hover,
.red:hover,
.gray:focus,
.red:focus {
    color: #fff;
}

.gray {
    background: rgba(89, 89, 89, .59);
    color: #fff;
}

.red {
    background: #e60013 !important;
    color: #fff !important;
}

input[type="text"],
input[type="password"] {
    border: 1px solid #333;
    border-radius: 2px;
}

.clear {
    clear: both;
}

.beyond-ellipsis {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*header*/
header,
header .nav {
    height: 64px;
    line-height: 64px;
    width: 100%;
}

header .nav a {
    height: 64px;
    line-height: 64px;
}

header .nav,
header .logo,
header .nav li {
    float: left;
}

header .nav ul {
    float: right;
}

header .nav ul img {
    width: 30px;
    height: 30px;
    border-radius: 50px;
    margin: 0 5px;
    background: #fff;
}

header .nav ul a {
    font-size: 15px;
    margin-left: 80px;
    color: #f4fafd;
}

header .nav ul li:first-child a {
    margin-left: 0;
}

.logout {
    padding-left: 25px;
    background: url("/statics/home/img/exit.png") no-repeat left;
}

/*nav*/
.main-menu,
.main-menu li {
    float: left;
}

.main-menu {
    border-bottom: 1px solid #ccc;
    width: 100%;
    height: 40px;
    margin: 30px 0;
    line-height: 40px;
    padding-bottom: 2px;
}

.main-menu li a {
    font-size: 15px;
    color: #333;
    padding: 0 5px;
    margin-right: 80px;
    border-bottom: 2px solid rgba(0, 0, 0, 0);
}

.main-menu li a.current {
    color: #f00;
    height: 40px;
    border-color: #f00;
}

/*footer*/
footer {
    background: rgba(0, 0, 0, 1);
    color: #fff;
    height: 50px;
    line-height: 50px;
}

footer a,
footer a:hover,
footer a:focus {
    display: inline-block;
    color: #fff;
    margin-left: 20px;
}

/*login、register、guide*/
.nav-left {
    float: left;
}

.nav-right {
    float: right;
}

.nav-right .btn {
    background: none;
    border: 1px solid #fff;
    border-radius: 0;
    padding: 0 15px;
    height: 38px;
    font-size: 15px;
    color: #e6e6e6;
}

.nav-right .btn:hover,
.nav-right .btn:focus {
    border-color: #fff;
}

.nav-right .dropdown-menu {
    border-radius: 0;
    min-width: 0;
    padding: 0;
    top: 80px;
}

.nav-right a.lang {
    line-height: 30px;
}

/*login、register*/
.main-header {
    height: 80px;
    line-height: 80px;
}

.main-center {
    background: url("/statics/home/img/bg.png") no-repeat center/cover fixed;
    width: 100%;
    height: calc(100% - 80px);
    position: relative;
}

.main-center form {
    float: right;
    width: 345px;
    height: 410px;
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 30px;
    margin-top: 60px;
    box-shadow: 0 0 3px 0 #aaa;
    position: relative;
    border-radius: 8px;
}

.main-center input[type="text"].username {
    border-left: 2px solid #e60012;
}

.main-center input[type="text"],
.main-center input[type="password"] {
    width: 284px;
    margin-bottom: 20px;
    height: 40px;
    padding-left: 15px;
    font-size: 15px;
    border: none;
    background: none;
    border-left: 2px solid #fff;
    color: #a6a6a6;
}

.main-center input[type="text"]:focus,
.main-center input[type="password"]:focus {
    border-left: 2px solid #e60012;
}

.main-center form span {
    width: 100%;
    display: inline-block;
    margin-top: 40px;
    color: #afafaf;
}

.main-center form a {
    display: inline-block;
}

.main-center form .validate {
    height: 40px;
    margin-bottom: 40px;
    position: relative;
}

.code-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 38px;
    cursor: pointer;
    background: none;
}

.l-btn {
    width: 284px;
    margin-bottom: 20px;
    display: block;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
}

.l-btn:hover,
.l-btn:focus {
    color: #fff;
}

.red-font,
.red-font:hover,
.red-font:focus {
    color: #e60013;
    text-decoration: underline;
}

.main-footer {
    margin-bottom: 0;
    height: 60px;
    line-height: 60px;
    position: absolute;
    bottom: 0;
    color: #cdd1dd;
    width: 100%;
}

.main-footer a,
.main-footer a:hover,
.main-footer a:focus {
    display: inline-block;
    color: #cdd1dd;
    margin-left: 20px;
}

/*plugin*/
.plugin-block {
    width: 800px;
    height: 190px;
    margin: 0 auto;
    position: relative;
    top: 100px;
}

.plugin {
    background: rgba(0, 0, 0, .58);
}

.plugin .row {
    height: 190px;
    margin: 0 20px;
    padding: 30px 0;
}

.plugin div a {
    display: block;
    margin: 0 auto;
    width: 108px;
    height: 130px;
}

.bar-code {
    position: absolute;
    top: -120px;
    left: 75px;
    /*left: 45px;*/
    display: none;
}

/*单页面*/
.single-page-title {
    font-size: 20px;
    color: #595959;
    margin: 60px 0 30px 0;
}

.set-title {
    width: 100%;
    border-bottom: 1px solid #d3d3d3;
    height: 66px;
    line-height: 66px;
    padding: 0 15px;
    position: relative;
}

.set-title b {
    display: inline-block;
    margin-right: 30px;
    white-space: nowrap;
}

.set-title label {
    font-weight: normal;
}

.set-title i {
    font-style: normal;
    float: right;
    padding-right: 20px;
    background: url("/statics/home/img/double_down.png") no-repeat right;
}

.set-title i.double-up {
    background: url("/statics/home/img/double_up.png") no-repeat right;
}

.set-title .rightLabel {
    position: absolute;
    right: 15px;
}

.set-content {
    opacity: 0;
}

.set-content.show {
    opacity: 1;
    margin-top: 30px;
    border-bottom: 1px solid #d3d3d3;
}

.set-content ul {
    margin: 30px 0 30px 100px;
}

.set-content ul li {
    margin-bottom: 15px;
}

.set-content ul li,
.set-content ul li input,
.set-content ul li select,
.save-btn {
    height: 30px;
    line-height: 30px;
}

.set-content ul li input,
.set-content ul li select {
    border: 1px solid #d3d3d3;
    padding-left: 15px;
    border-radius: 5px;
}

.set-content ul li input {
    width: 200px;
}

.save-btn {
    padding: 0 15px;
    display: inline-block;
    border-radius: 3px;
    cursor: pointer;
}

/*遮罩层*/
.all,
#all {
    left: 0;
    right: 0;
    position: absolute;
    background: #333;
    z-index: 1006;
}

.panel-group {
    margin-bottom: 0
}

#wait {
    position: absolute;
    z-index: 99;
}

#wait-img {
    display: block;
    width: 70px;
    height: 70px;
    background: url("/statics/home/img/loading.gif");
}

/*提示框*/
.alert-block {
    display: none;
    margin-top: 0;
    position: absolute;
    z-index: 1120;
    background-color: #fff;
    /*border: 1px solid #AAAAAA;*/
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    overflow: hidden;
}

.alert-footer {
    background: #fff;
    float: right;
    width: 100%;
}

.alert-div {
    padding: 35px 40px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ccc;
    margin: 5px;
}

.alert-close {
    display: block;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 5px;
    top: 5px;
    background: url("/statics/home/img/bounced-error.png") no-repeat;
}

.bth-confirm,
.bth-confirm:hover {
    height: 29px;
    line-height: 29px;
    padding: 0 30px;
    border-radius: 4px;
    margin-top: 30px;
    color: #fff;
    display: inline-block;
    background: #fff;
}

.confirm-cancel,
.confirm-cancel:hover {
    background: #787878;
}

.confirm-sure,
.confirm-sure:hover {
    background: #e60012;
    margin-right: 20px;
}

.del-cancel,
.del-cancel:hover {
    background: #e60012;
}

.del-sure,
.del-sure:hover {
    background: #787878;
}

input[type="text"].group-name,
.device-input li input[type="text"],
.device-input li input[type="password"] {
    display: block;
    border: 1px solid #bfbfbf;
    height: 30px;
    line-height: 30px;
    margin: 20px auto 0 auto;
    padding-left: 5px;
}

.device-input li input[type="text"],
.device-input li input[type="password"] {
    margin: 0 auto 10px auto;
}

.device-input li label {
    font-weight: normal;
    height: 15px;
    line-height: 15px;
    margin: 0 auto 10px auto;
}

/*插件检测*/
.notice-title {
    position: sticky;
    top: 0;
    width: 100%;
    height: 28px;
    line-height: 28px;
    background-color: #FFFF8B;
    border-bottom: #f00 solid 1px;
}

.notice-content a,
.notice-content span {
    display: inline-block;
}

.notice-close {
    position: absolute;
    right: 15px;
    top: 0;
}

.notice-close a,
.notice-close a:hover,
.notice-close a:focus {
    color: #000;
}

/*密码强度*/
.pw-strength {
    width: 180px;
    margin-bottom: 5px;
}

.pw-bar {
    background: url("/statics/home/img/pwd-1.png") no-repeat;
    position: relative;
    top: 1px;
    height: 14px;
    overflow: hidden;
}

.pw-bar-on {
    background: url("/statics/home/img/pwd-2.png") no-repeat;
    width: 0;
    height: 14px;
    position: absolute;
    top: 1px;
    left: 2px;
    transition: width .5s ease-in;
    -moz-transition: width .5s ease-in;
    -webkit-transition: width .5s ease-in;
    -o-transition: width .5s ease-in;
}

.pw-weak .pw-defule {
    width: 0;
}

.pw-weak .pw-bar-on {
    width: 60px;
}

.pw-medium .pw-bar-on {
    width: 120px;
}

.pw-strong .pw-bar-on {
    width: 180px;
}

.pw-txt {
    padding-top: 2px;
    width: 180px;
    overflow: hidden;
}

.folder {
    height: 100%;
}

.set-housekeeper,
.set-crusie,
.set-alarm {
    padding-top: 13px;
    padding-left: 15px;
    border-bottom: 1px solid #d3d3d3;
    padding-bottom: 13px;
}

.set-alarm b {
    display: inline-block;
    margin-right: 30px;
    white-space: nowrap;
    width: 96px;
}

.J-set-select {
    display: flex;
}

.nvr-link {
    color: #000;
}

.device-input li input[type="text"].warning-box,
.device-input li input[type="password"].warning-box {
    border-color: #e60012;
}

@media(min-width:1200px) {
    body {
        min-width: 1300px;
        min-height: 900px;
    }

    .container {
        width: 1200px;
    }
}

@media(max-width:1119px) {
    .container {
        width: calc(100vw - 100px);
    }
}