/* 全局样式 */

body, html {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #222;
    font-family: '微软雅黑';
}

a {
    color: #222;
}

iframe, svg, header, main, section, article, aside, figure, figcaption, img {
    display: block;
    border: none;
}

i, em {
    font-style: normal;
}

a {
    text-decoration: none;
}

dl, dt, dd, ul, li, figure, figcaption {
    list-style: none;
    margin: 0;
    padding: 0;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

select::-ms-expand {
    display: none;
}

button, textarea, input {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    display: block;
    resize: none;
    outline: none;
    overflow: auto;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.clear::after {
    content: '';
    display: block;
    clear: both;
}

.stock-up {
    color: #f7533f !important;
}

.stock-down {
    color: #008100 !important;
}

/* 背景遮罩 */

.mask {
    background: rgba(0, 0, 0, .8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mask.change-head {
    color: #fff;
    line-height: 2;
    flex-direction: column;
}

/* 弹窗 */

.fixed-box {
    background: #fff;
    width: 340px;
    z-index: 10001;
}

.fixed-box-title {
    background: #c21f1b;
    color: #fff;
    height: 30px;
    line-height: 30px;
    position: relative;
    padding: 0 0 0 5px;
    font-size: 14px;
}

.fixed-box-title i.close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 5px;
    right: 5px;
    overflow: hidden;
    text-indent: -999px;
    cursor: pointer;
}

.fixed-box-title i.close::after, .fixed-box-title i.close::before {
    content: '';
    width: 20px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(45deg);
    margin: -1px 0 0;
}

.fixed-box-title i.close::before {
    height: 20px;
    width: 2px;
    left: 50%;
    margin: 0 0 0 -1px;
    top: 0;
}

.fixed-box-content {
    padding: 20px;
}

.fixed-alert {
    height: 30px;
    line-height: 30px;
    position: relative;
    padding: 0 0 0 20px;
    background: #c21f1b;
    color: #fff;
}

.fixed-alert i.close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 5px;
    right: 5px;
    overflow: hidden;
    text-indent: -999px;
    cursor: pointer;
}

.fixed-alert i.close::after, .fixed-alert i.close::before {
    content: '';
    width: 20px;
    height: 2px;
    background: #ddd;
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(45deg);
    margin: -1px 0 0;
}

.fixed-alert i.close::before {
    height: 20px;
    width: 2px;
    left: 50%;
    margin: 0 0 0 -1px;
    top: 0;
}

.fixed-alert-content {
    background-color: #fff;
    text-align: center;
    padding: 0 0 20px;
}

.fixed-alert-content p {
    font-size: 16px;
    margin: 0 0 0;
    padding: 20px 20px 0;
}

.fixed-alert-content span {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    margin: 20px 0 0;
    display: inline-block;
}

.fixed-alert-content span:hover {
    color: #c21f1b;
    text-decoration: underline;
}

.fixed-alert-content input {
    border: 1px solid #ddd;
    line-height: 40px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
}

.fixed-alert-content input.forget-pic-code, .fixed-alert-content input.forget-phone-code {
    width: 60%;
    float: left;
}

.fixed-alert-content i.forget-code-btn {
    float: left;
    width: 40%;
    text-align: center;
    font-size: 14px;
    line-height: 42px;
    background-color: #c21f1b;
    color: #fff;
    cursor: pointer;
}

.fixed-alert-content button {
    width: 100px;
    height: 40px;
    background-color: #c21f1b;
    margin: 20px auto 0;
    color: #fff;
}

.fixed-alert-content img {
    border: 1px solid #ddd;
    border-left: none;
}

/* 弹窗登录 */

.fixed-login-box .banner img {
    width: 100%;
}

.fixed-login-box .content {
    padding: 20px;
}

.fixed-title {
    border-bottom: 1px solid #ddd;
}

.fixed-title span {
    line-height: 1;
    height: 35px;
    display: block;
    float: left;
    position: relative;
    margin: 0 18px 0 0;
    color: #999;
    cursor: pointer;
}

.fixed-title span.active {
    color: #333;
}

.fixed-title span.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    bottom: -1px;
    left: 0;
    background: #c21f1b;
}

.fixed-login-box .fixed-content label {
    display: block;
    width: 100%;
    margin: 10px 0 0;
    position: relative;
}

.fixed-login-box .fixed-content label input {
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
}

.fixed-login-box .fixed-content .imgCode input {
    width: 152px;
    float: left;
}

.fixed-login-box .fixed-content .imgCode span {
    line-height: 40px;
    float: right;
    margin: 0 0 0 10px;
    font-size: 12px;
    color: #c21f1b;
}

.fixed-login-box .fixed-content .imgCode span:hover {
    text-decoration: underline;
    cursor: pointer;
}

.fixed-login-box .fixed-content img {
    border: 1px solid #ddd;
    height: 38px;
    float: left;
    margin: 0 0 0 10px;
    width: 90px;
}

.fixed-login-box .fixed-content .forget:hover {
    color: #c21f1b;
    text-decoration: underline;
}

.fixed-login-box .fixed-content .forget, .fixed-login-box .fixed-content .get-code {
    position: absolute;
    font-size: 12px;
    line-height: 24px;
    background: #f0f0f0;
    width: 84px;
    text-align: center;
    color: #999;
    top: 8px;
    right: 8px;
    border-radius: 12px;
    cursor: pointer;
}

.fixed-login-box .fixed-content .fixed-auto-login {
    font-size: 12px;
    margin: 10px 0 0;
    line-height: 1;
    cursor: pointer;
}

.fixed-login-box .fixed-content .fixed-auto-login::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 1px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    float: left;
    margin: 0 5px 0 0;
}

.fixed-login-box .fixed-content .fixed-auto-login input {
    display: none;
}

.fixed-quick-login-submit {
    height: 55px;
    line-height: 55px;
    width: 100%;
    text-align: center;
    background: #c21f1b;
    color: #fff;
    border-radius: 55px;
    margin: 20px 0 0;
    font-size: 16px;
}

.fixed-login-box .fixed-content p.tips {
    margin: 20px 0 0;
    font-size: 12px;
    color: #999;
}

.fixed-login-box .fixed-content p.tips a {
    color: #c21f1b;
}

.fixed-login-box .fixed-content p.tips a:hover {
    text-decoration: underline;
}

.fixed-login-other {
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #666;
    line-height: 2;
    display: none;
}

.fixed-login-other span {
    float: left;
}

.fixed-login-other i {
    width: 28px;
    height: 28px;
    display: block;
    float: left;
    text-indent: -9999px;
    overflow: hidden;
    margin: 0 0 0 12px;
    cursor: pointer;
}

.fixed-login-other .wx {
    background: url(../images/icons.png) no-repeat -41px -392px;
}

.fixed-login-other .qq {
    background: url(../images/icons.png) no-repeat -41px -364px;
}

/* 

.fixed-setting-change {
    width: 700px;
    height: 700px;
}


 */

.fixed-setting-password div.clear {
    line-height: 34px;
    margin: 0 0 20px;
}

.fixed-setting-password label {
    float: left;
    width: 80px;
    padding: 0 20px 0 0;
    line-height: 32px;
    text-align: right;
    box-sizing: border-box;
    font-size: 14px;
}

.fixed-setting-password input {
    float: left;
    border: 1px solid #ddd;
    width: 220px;
    box-sizing: border-box;
    padding: 0 0 0 10px;
}

.fixed-setting-password button {
    border: 1px solid #c21f1b;
    width: 100px;
    text-align: center;
    height: 32px;
    margin: 0 auto;
    cursor: pointer;
}

.at-mask select {
    height: 30px;
    width: 210px;
    padding: 0 0 0 10px;
    border: 1px solid #ddd;
    color: #0861cc;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: none;
    float: left;
}

.at-mask .at-select {
    position: relative;
}

.at-mask .at-select::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 4px;
    right: 103px;
    top: 50%;
    margin: -2px 0 0;
    background: url(../images/select.png) no-repeat;
}

.at-mask .at-select button {
    float: left;
    height: 30px;
    width: 80px;
    text-align: center;
    background: #c21f1b;
    color: #fff;
    margin: 0 0 0 10px;
    cursor: pointer;
}

.at-select-result {
    margin: 0 0 10px;
}

.at-select-result::before {
    content: '已选择(点击名字取消选择)：';
    display: block;
    font-size: 14px;
    line-height: 23px;
}

.at-select-result span {
    display: inline-block;
    border: 1px solid #ddd;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 5px;
    margin: 10px 10px 0 0;
    box-sizing: border-box;
    cursor: pointer;
}

/* 滚动 */

.scroll-wrap {
    position: relative;
}

.scroll-content {
    /* padding-right: 5px; */
    transition: all 0.15s linear;
}

.scroll-content.unscroll {
    padding-right: 0;
}

.scroll-bar {
    position: absolute;
    height: 100%;
    width: 4px;
    right: 0;
    top: 0;
    background: #f9f9f9;
    z-index: 1;
}

.scroll-bar span {
    display: block;
    width: 100%;
    border-radius: 100px;
    background: #ccc;
    position: absolute;
    top: 0;
    left: 0;
    transition: top 0.05s linear;
    cursor: pointer;
}

.scroll-bar span:hover {
    background: #ddd;
}

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.unselectable .scroll-bar span {
    transition: top 0s linear;
}

/* 日历 */

.calendar-wrap {
    position: absolute;
    background: #fff;
    z-index: 9999;
    width: 210px;
    right: -1px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: auto;
    color: #000;
    padding: 5px;
    display: none;
}

.calendar-wrap .calendar-title {
    text-align: center;
}

.calendar-wrap .calendar-title .prevMonth {
    float: left;
    width: 30px;
    cursor: pointer;
}

.calendar-wrap .calendar-title .nextMonth {
    float: right;
    width: 30px;
    cursor: pointer;
}

.calendar-wrap .calendar-week span, .calendar-wrap .calendar-day span {
    width: 30px;
    line-height: 30px;
    display: block;
    float: left;
    text-align: center;
}

.calendar-wrap .calendar-day span:hover {
    background: #eee;
    cursor: pointer;
}

.calendar-wrap .calendar-day span.un-this-month {
    color: #999;
}

.calendar-wrap .calendar-day span.today {
    background: #fdf59a;
}

.calendar-wrap .calendar-day span.active {
    background: #0861cc;
    color: #fff;
}

.calendar-wrap .calendar-day span.un-click {
    color: #cecece !important;
    cursor: auto;
}

.calendar-wrap .calendar-day span.un-click:hover {
    background: none;
}

/* 日历 简易 */

.calendar {
    float: left;
    width: 130px;
    height: 30px;
    border-radius: 3px;
    border: 1px solid #ddd;
    line-height: 28px;
    box-sizing: border-box;
    font-size: 12px;
    cursor: pointer;
    padding: 0 0 0 32px;
    color: #444;
    background: url(../images/icons.png) no-repeat -34px -275px;
    margin: -5px 0 0;
    position: relative;
}

.calendar:hover div {
    height: auto;
    box-shadow: 0 2px 8px 1px rgba(0, 0, 0, .1);
}

.calendar div {
    position: absolute;
    width: 130px;
    background: #fff;
    z-index: 1;
    left: -1px;
    top: 29px;
    overflow: hidden;
    transition: all .1s;
    height: 0;
}

.calendar div i, .calendar div span {
    display: block;
    padding: 0 0 0 32px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-top: none;
}

.calendar div i {
    background: #f6f6f6;
    cursor: auto;
}

.calendar div b {
    display: block;
    height: 29px;
    overflow: hidden;
    font-weight: normal;
}

.calendar div b:hover {
    height: auto;
}

.calendar div b:hover i {
    background: #0861cc22
}

.calendar div span:hover {
    background: #0861cc11;
}

/* 侧边导航栏 */

.fixed-bar {
    position: fixed;
    background: #fff;
    border: 1px solid #c21f1b;
    border-radius: 3px;
    width: 100px;
    box-sizing: border-box;
    left: 0;
    top: 101px;
    z-index: 0;
    text-align: center;
    font-size: 14px;
    overflow: hidden;
    /* transition: height 0.5s; */
}

.fixed-bar a {
    padding: 18px 0;
    display: block;
    float: left;
    width: 100%;
}

.fixed-bar a img {
    display: block;
    margin: 0 auto 10px;
}

.fixed-bar div.QRCode {
    background: #fee1e1;
    float: left;
    width: 100%;
    padding: 0 0 10px;
}

.fixed-bar div.QRCode img {
    display: block;
    margin: 10px;
    width: 79px;
}

.fixed-bar div.QRCode span {
    color: #c21f1b;
}

.fixed-bar div.close {
    position: absolute;
    height: 26px;
    line-height: 26px;
    padding: 0 8px;
    box-sizing: border-box;
    right: 0;
    width: 28px;
    border-radius: 0 0 0 3px;
    cursor: pointer;
}

.fixed-bar div.close::before, .fixed-bar div.close::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #c21f1b;
    top: 50%;
    margin: -1px 0 0;
    right: 9px;
    transition: all 0.5s;
    transform: rotate(45deg);
}

.fixed-bar div.close::before {
    transform: rotate(-45deg);
}

.fixed-bar div.show::before {
    transform: rotate(0);
}

.fixed-bar div.show::after {
    transform: rotate(90deg);
}

.fixed-bar div.show::before, .fixed-bar div.show::after {
    background: #fff;
}

.fixed-bar div.close span {
    float: left;
    display: none;
}

.fixed-bar div.close i {
    float: right;
    font-size: 16px;
    line-height: 26px;
}

.fixed-bar div.close.show {
    width: 100%;
    color: #fff;
    background: #c21f1b;
    border-radius: 0;
}

.fixed-bar div.close.show span {
    display: block;
    font-size: 12px;
}

/* 留言表单 */

/* .comment-form {
    position: relative;
    margin: 20px 0 0;

}

.comment-form .user-avatar {
    position: absolute;
    border-radius: 100%;
    width: 40px;
    height: 40px;
}

.comment-form form {
    margin: 0 80px 0 60px;
    position: relative;
}

.comment-form form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    color: #555;
    height: 65px;
    box-sizing: border-box;
    font-size: 12px;
}

.comment-form form textarea:focus {
    border: 1px solid #c21f1b;
}

.comment-form form button {
    background: #c21f1b;
    height: 65px;
    width: 70px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    padding: 4px 15px;
    box-sizing: border-box;
    font-size: 14px;
    position: absolute;
    right: -80px;
    top: 0;
} */

/* 私信 */

.fixed-message {
    width: 500px;
}

.fixed-message .comment-form {
    margin: 0;
}

/* 表情 */

.expression-block {
    float: left;
}

.expression-click {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    float: left;
}

.expression-click img {
    width: 100%;
}

.expression-click div {
    position: absolute;
    background-color: #fff;
    bottom: 100%;
    left: 0;
    width: 240px;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 0 0 5px;
    display: none;
}

.expression-click div span {
    width: 20px;
    height: 20px;
    float: left;
    cursor: pointer;
    margin: 5px;
}

img.chat-face {
    display: inline-block;
    vertical-align: -6px;
}

/* 老师头像icon */

.author-cover {
    position: relative;
}

.author-cover::after {
    content: '';
    background: url(../images/teacher-icon.png);
    width: 14px;
    height: 14px;
    right: 0;
    bottom: 0;
    position: absolute;
    background-size: contain;
}

.author-cover img {
    border-radius: 100%;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.fixed-ask {
    width: 775px;
    position: relative;
    padding: 30px;
    box-sizing: border-box;
}

.fixed-ask .fixed-title {
    border-bottom: none;
    position: relative;
}

.fixed-ask i.close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 5px;
    right: 5px;
    overflow: hidden;
    text-indent: -999px;
    cursor: pointer;
}

.fixed-ask i.close::after, .fixed-ask i.close::before {
    content: '';
    width: 20px;
    height: 2px;
    background: #ccc;
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(45deg);
    margin: -1px 0 0;
}

.fixed-ask i.close::before {
    height: 20px;
    width: 2px;
    left: 50%;
    margin: 0 0 0 -1px;
    top: 0;
}

.fixed-ask img {
    width: 40px;
    height: 40px;
    float: left;
    margin: 0 15px 0 0;
    border-radius: 100%;
}

.fixed-ask .fixed-ask-form {
    float: left;
    width: 660px;
    box-sizing: border-box;
    border: 1px solid #c21f1b;
}

.fixed-ask .fixed-ask-form textarea {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    padding: 10px;
    font-size: 14px;
}

.fixed-ask .fixed-ask-form .fixed-ask-ope {
    height: 30px;
    line-height: 30px;
}

.fixed-ask .fixed-ask-form .fixed-ask-ope>div {
    float: left;
    width: 586px;
    text-align: right;
    background: #f7f7f7;
    font-size: 12px;
    color: #999;
    box-sizing: border-box;
    padding: 0 15px 0 5px;
}

.fixed-ask .fixed-ask-form .fixed-ask-ope button {
    float: right;
    height: 30px;
    width: 72px;
    background: #c21f1b;
    color: #fff;
}

.fixed-ask .fixed-ask-form .fixed-ask-ope .expression-block .expression-click img {
    height: 20px;
    margin: 5px 0 0;
    width: 20px;
}

.date-select-wrap {
    position: relative;
}

.date-list {
    display: none;
    position: absolute;
    background-color: #fff;
    height: auto;
    border: 1px solid #E5E5E5;
    width: 131px;
    right: 0;
    text-align: center;
    color: #999;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0px 2px 16px 0px rgba(34, 34, 34, 0.12);
}

.date-select-wrap.active .date-list {
    display: block;
}

.date-list>div {
    overflow: auto;
    height: 100%;
    width: 113%;
}

.date-list span {
    display: block;
    border-bottom: 1px solid #e5e5e5;
    line-height: 36px;
    font-size: 14px;
    cursor: pointer;
}

.date-list span:last-of-type {
    border: none;
}

.date-list span.active, .date-list span:hover {
    background-color: #FFFCB7;
}