/* ------------------------ 微课做题页 ------------------------ */
/* 不显示右侧悬浮标广告 */
#rfbanner {display: none !important;}

/* ======= 滚动条样式优化：仅支持 webkit ======= */
#play-main .sider::-webkit-scrollbar,
#play-main .content::-webkit-scrollbar,
.answer-modal-body::-webkit-scrollbar { width: 7px; background-color: #fff; }
#play-main .sider::-webkit-scrollbar-thumb,
#play-main .content::-webkit-scrollbar-thumb,
.answer-modal-body::-webkit-scrollbar-thumb { background-color: #dadae4; border-radius: 6px; }


/* 分割线 */
.play-divider { display: table; margin: 32px 0 16px; font-size: 16px; font-weight: 500; white-space: nowrap; color: rgba(0, 0, 0, .85); }
.play-divider::before, .play-divider::after { content: ""; position: relative; display: table-cell; top: 50%; border-top: 1px solid #ddd;
    -webkit-transform: translateY(50%);
        -ms-transform: translateY(50%);
            transform: translateY(50%);
}
.play-divider::before { width: 5%; }
.play-divider::after { width: 95%; }
.play-divider-text { display: inline-block; padding: 0 12px; }


/* 按钮 */
.play-btn { display: inline-block; height: 32px; padding: 0 15px; font-size: 14px; line-height: 30px; color: #515a6e; border: 1px solid #dcdee2; border-radius: 4px; background-color: #fff; cursor: pointer; -webkit-transition: all .24s; transition: all .24s; }
.play-btn:hover { color: #31285d; border-color: #31285d; }

.play-btn:disabled:hover { color: #515a6e; border-color: #dcdee2; }
.play-btn:disabled .i-icon-loading { position: relative; top: -2px; margin-right: 8px; font-size: 14px; }


/* ======= Main ======= */
#play-main { height: calc(100vh - 48px - 55px); background-color: #fff; }


/* sider */
#play-main .sider { overflow-x: hidden; box-sizing: content-box; width: 0; height: 100%; background-color: #fff; -webkit-transition: width .28s ease-in-out; transition: width .28s ease-in-out; }
#play-main.opensider .sider { width: 340px; border-right: 1px solid #e8e8e8; }
#play-main .sider-inner { width: 340px;}

/* content */
#play-main .content { height: 100%; overflow-x: hidden; }


/* ======= 做题区 ======= */
.play-area { box-sizing: content-box; max-width: 960px; margin: 0 auto; padding: 48px 36px; }

.play-area-card { background-color: #fff; box-shadow: 0 1px 3px 1px #d9dfe9; }
.play-area-card .play-progress { position: relative; background-color: #b5d1fa; text-align: center; line-height: 45px; border-radius: 4px 4px 0 0; }
.play-area-card .play-progress-list { display: inline-block; padding: 0 100px; vertical-align: bottom; }
.play-area-card .play-progress-list > li { width: 45px; height: 45px; margin-right: 10px; font-size: 24px; color: #fff; cursor: pointer; }
.play-area-card .play-progress-list > li.active { background-color: #f9fafd; color: #675f8f; }
.play-area-card .play-progress-list > li.locked { opacity: .8; cursor: not-allowed; }
.play-area-card .play-progress-list > li > .icon { vertical-align: baseline; }
.play-area-card .play-progress-nums { position: absolute; top: 0; right: 0; padding: 0 25px; font-size: 20px; color: #31285d; }
.play-area-card .play-progress-nums > span.separator { margin: 0 2px; }

.play-area-btns { margin-top: 28px; }
.play-area-btns .play-btn { width: 150px; height: 45px; border: none; border-color: #b5d1fa; border-radius: 4px; background-color: #b5d1fa; color: #31285d; font-size: 16px; line-height: 45px; cursor: pointer; }
.play-area-btns .play-btn:hover { opacity: 0.9; }
@media (max-width: 1024px) { .play-area-btns { display: none; } }


.btn-answer{
	display: inline-block;
    width: 150px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #b5d1fa;
    color: #31285d;
    border-radius: 4px;
    font-size: 16px;
}


/* 视频微课曝光 APP */
.play-addon { margin-bottom: 16px; color: #31285d; font-size: 14px; text-align: right; }
.play-addon .i-icon { margin-right: 6px; color: #b5d1fa; font-size: 18px; }
.play-addon .mobile { position: relative; display: inline-block; }
.play-addon .mobile-word { padding: 6px 0; cursor: pointer; }
.play-addon .mobile-qrcode { position: absolute; top: -34px; left: -92px; z-index: 1;
    transition: all 0.36s ease;
    -webkit-transform-origin: center right;
            transform-origin: center right;
    -webkit-transform: scale(0);
            transform: scale(0);
}
.play-addon .mobile-qrcode.show {
    -webkit-transform: scale(1);
            transform: scale(1);
}


/* ======= 编程题 ======= */
.answer-solve-program .program-btns { margin-top: 12px; }
.answer-solve-program .program-btns .play-btn { margin-right: 12px; }
.answer-solve-program .program-result-main { white-space: pre-wrap; }

.copytip-success { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.4); border-radius: 4px; font-size: 16px; z-index: 9999; opacity: 0; }
.copytip-success .copytip-wrap { display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center; padding: 15px 15px 15px 30px; color: #f5f5f5; }
.copytip-success .copytip-wrap i { font-size: 18px; padding-right: 10px;}

/* ======= 提示框 ======= */
.play-tip-box { display: none; font-size: 14px; margin: 0; }
.play-tip-mask, .play-tip-wrap { position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
.play-tip-mask { z-index: 998; background-color: rgba(0, 0, 0, .45); }
.play-tip-wrap { z-index: 999; text-align: center; }
.play-tip-wrap::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }

.play-tip { position: relative; display: inline-block; width: 375px; text-align: left; vertical-align: middle; }
.play-tip-addon { position: absolute; top: 0; left: 50%; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 3px 3px 1px #d9dfe9;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}
.play-tip-addon .i-icon { font-size: 64px; color: #fff; vertical-align: text-top; }

.play-tip-micard { display: none; width: 92%; margin: 0 auto; padding: 60px 0 28px; border-radius: 8px 8px 0 0; background-color: #358aff; }
.play-tip-micard .give-item { display: inline-block; line-height: 32px; }
.play-tip-micard .give-item + .give-item { margin-left: 12px; }
.play-tip-micard .give-item .play-icon { display: inline-block; width: 32px; height: 32px; margin-right: 4px; vertical-align: top; }
.play-tip-micard .give-item .play-icon-exp { background: url("//7nsts.w3cschool.cn/images/w3c/exp-ico.png") no-repeat; }
.play-tip-micard .give-item .play-icon-credit { background: url("//7nsts.w3cschool.cn/images/w3c/credit-ico.png") no-repeat; }

.play-tip-main { overflow: hidden; padding-top: 32px; border-radius: 16px; background-color: #fff; }
.play-tip-main-header { padding: 12px 18px; font-size: 16px; font-weight: 600; }
.play-tip-main-body { overflow-y: auto; max-height: 400px; padding: 18px; }

.play-tip-main-footer { padding: 12px 18px; }
.play-tip-btn { display: inline-block; padding: 0 24px; border-radius: 16px; font-size: 14px; line-height: 32px; cursor: pointer; transition: background-color .24s; }
.play-tip-btn + .play-tip-btn { margin-left: 64px; }
.play-tip-btn-cancel,
.play-tip-btn-review { background-color: #dbeaff; color: #666; }
.play-tip-btn-cancel:hover,
.play-tip-btn-review:hover { background-color: #ccdffa; }
.play-tip-btn-error { background-color: #ff4d4f; color: #fff; }
.play-tip-btn-error:hover { background-color: #ff7875; }
.play-tip-btn-correct,
.play-tip-btn-nextplayer { background-color: #00da7c; color: #fff; }
.play-tip-btn-correct:hover,
.play-tip-btn-nextplayer:hover { background-color: #01e682; }
.play-tip-btn-next { background-color: #1890ff; color: #fff; }
.play-tip-btn-next:hover { background-color: #40a9ff; }
.play-tip-btn-copy { background-color: #1890ff; color: #fff; }
.play-tip-btn-copy:hover { background-color: #40a9ff; }

@media (max-width: 375px) { .play-tip { max-width: calc(100vw - 16px); } }

/* 显示小卡片 */
.play-tip-box.micard .play-tip-micard { display: block; }
.play-tip-box.micard .play-tip-main { padding-top: 0; }

/* 正确提示 */
#play-tip-right .play-tip-addon { background-color: #00da7c; cursor: pointer; }

/* 错误提示 */
#play-tip-error .play-tip-addon { background-color: #ff4d4f; cursor: pointer; }

/* 参考答案 */
#play-tip-refer .play-tip-addon { background-color: #1890ff; }
#play-tip-refer .play-tip-addon::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }
#play-tip-refer .play-tip-addon span { display: inline-block; width: 42px; color: #fff; font-size: 16px; vertical-align: middle; }

/* 编程题的参考答案 */
#play-program-refer .play-tip-addon { background-color: #1890ff; }
#play-program-refer .play-tip-addon::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }
#play-program-refer .play-tip-addon span { display: inline-block; width: 42px; color: #fff; font-size: 16px; vertical-align: middle; }


/* ======= 覆盖 project.css 的样式 ======= */
.content-intro h1 { font-size: 48px; }
.content-intro h2 { font-size: 32px; }
.content-intro h3 { font-size: 24px; }
.content-intro h4 { font-size: 18px; }
.content-intro h5 { font-size: 14px; }
.content-intro h6 { font-size: 12px; }


/* ======= response ======= */
@media (max-width: 1024px) {
    #play-footer, .play-addon { display: none; }

    #play-main .sider { position: fixed; top: 48px; left: 0; z-index: 99; height: calc(100vh - 48px - 55px); }
    #play-main.opensider .sider { width: 100vw; border-right: none; }
    #play-main .sider-inner { width: 100vw; }

    #play-main .play-area { padding: 0; }
    #play-main .play-area-card { box-shadow: none; }
}


/* ======= animation ======= */
@keyframes zoomIn {
    0% {
        opacity: 0.3;
        -webkit-transform: scale3d(0.3, 0.3, 0.3);
                transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}
.zoomIn {
    -webkit-animation-name: zoomIn;
       -moz-animation-name: zoomIn;
            animation-name: zoomIn;
    -webkit-animation-duration: 0.24s;
       -moz-animation-duration: 0.24s;
            animation-duration: 0.24s;
    -webkit-animation-fill-mode: both;
       -moz-animation-fill-mode: both;
            animation-fill-mode: both;
}