
/* reset */
.van-image { vertical-align: middle; }


/* 富文本 */
.rich-format { font-size: 14px; font-family: "Chinese Quote", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji"; line-height: 1.74; letter-spacing: 0.05em; color: #262626; }

.rich-format h1, .rich-format h2, .rich-format h3, .rich-format h4, .rich-format h5, .rich-format h6 { margin-top: 0; margin-bottom: 0; padding: 0; font-weight: bold; word-spacing: 1px; white-space: normal; }

.rich-format h1 { padding: 7px 0; font-size: 28px; line-height: 36px; }
.rich-format h2 { padding: 7px 0; font-size: 24px; line-height: 32px; }
.rich-format h3 { padding: 7px 0; font-size: 20px; line-height: 28px; }
.rich-format h4 { padding: 7px 0; font-size: 16px; line-height: 24px; }
.rich-format h5 { padding: 7px 0; font-size: 14px; line-height: 24px; }
.rich-format h6 { padding: 7px 0; font-size: 14px; line-height: 24px; font-weight: normal; }

.rich-format ol, .rich-format ul { margin: 0 0 0 3px; padding: 0; }
.rich-format ol, .rich-format ol[data-indent="3"], .rich-format ol[data-indent="6"] { list-style-type: decimal; }
.rich-format ol[data-indent="1"], .rich-format ol[data-indent="4"], .rich-format ol[data-indent="7"] { list-style-type: lower-alpha; }
.rich-format ol[data-indent="2"], .rich-format ol[data-indent="5"], .rich-format ol[data-indent="8"] { list-style-type: lower-roman; }
.rich-format ol[data-indent="1"] { padding-left: 2em; }
.rich-format ol[data-indent="2"] { padding-left: 4em; }
.rich-format ol[data-indent="3"] { padding-left: 6em; }
.rich-format ol[data-indent="4"] { padding-left: 8em; }
.rich-format ol[data-indent="5"] { padding-left: 10em; }
.rich-format ol[data-indent="6"] { padding-left: 12em; }
.rich-format ol[data-indent="7"] { padding-left: 14em; }
.rich-format ol[data-indent="8"] { padding-left: 16em; }
.rich-format ul, .rich-format ul[data-indent="3"], .rich-format ul[data-indent="6"] { list-style-type: disc; }
.rich-format ul[data-indent="1"], .rich-format ul[data-indent="4"], .rich-format ul[data-indent="7"] { list-style-type: circle; }
.rich-format ul[data-indent="2"], .rich-format ul[data-indent="5"], .rich-format ul[data-indent="8"] { list-style-type: square; }
.rich-format ul[data-indent="1"] { padding-left: 2em; }
.rich-format ul[data-indent="2"] { padding-left: 4em; }
.rich-format ul[data-indent="3"] { padding-left: 6em; }
.rich-format ul[data-indent="4"] { padding-left: 8em; }
.rich-format ul[data-indent="5"] { padding-left: 10em; }
.rich-format ul[data-indent="6"] { padding-left: 12em; }
.rich-format ul[data-indent="7"] { padding-left: 14em; }
.rich-format ul[data-indent="8"] { padding-left: 16em; }
.rich-format li { margin-left: 23px; white-space: normal; }

.rich-format a { color: #096dd9; text-decoration: none; word-wrap: break-word; }
.rich-format b, .rich-format strong { font-weight: bolder; }
.rich-format p { margin: 0; white-space: normal; }
.rich-format blockquote { margin: 5px 0 5px 1em; padding-left: 1em; color: #8c8c8c; border-left: 3px solid #eee; }
.rich-format sub, .rich-format sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
.rich-format sub { bottom: -0.25em; }
.rich-format sup { top: -0.5em; }
.rich-format hr { height: 2px; margin: 16px 0; background-color: #e8e8e8; border: none; }
.rich-format img { max-width: 100%; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.rich-format pre { overflow: auto; font-family: "monospace"; }
.rich-format code { margin: 0 2px; padding: 0 2px; font-family: "monospace"; font-size: inherit; line-height: inherit; word-wrap: break-word; color: #c7254e; text-indent: 0; background-color: #f9f2f4; border: 1px solid #efdce1; border-radius: 2px; }
.rich-format table { table-layout: fixed; border-collapse: collapse; border-spacing: 0; width: 100%; margin: 0; font-weight: 400; word-break: normal; word-wrap: break-word; border: 1px solid #d9d9d9; }
.rich-format table tbody, .rich-format table tr, .rich-format table th, .rich-format table td { margin: 0; font-weight: 400; }
.rich-format table tr { height: 33px; }
.rich-format table tr th, .rich-format table tr td { min-width: 90px; padding: 4px 8px; word-wrap: break-word; white-space: normal; vertical-align: top; border: 1px solid #d9d9d9; }


/* 编程实战做题页 */
body { background-color: #fff; }
html, body, .play { height: 100%; }

.safe-header .van-nav-bar__text,
.safe-header .van-nav-bar__title { color: #323233; }
.safe-header .van-nav-bar .i-icon,
.safe-header .van-nav-bar .van-icon { font-size: 20px; color: #323233; }
.safe-footer { position: relative; }

.popup { width: 300px; }
.popup-title { margin: 0 54px; padding: 15px 0; font-size: 18px; color: #323233; line-height: 1.5; text-align: center; }
.popup-title .i-icon,
.popup-title .van-icon { margin-right: 4px; color: #597ef7; vertical-align: -0.125em; }
.popup-tip { margin-bottom: 8px; font-size: 12px; color: #9ca2aa; text-align: center; }
.popup-content { margin: 16px 24px; color: #646566; }
.popup-footer { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; padding: 12px 24px; }
.popup-footer-center { -webkit-justify-content: center; justify-content: center; }
.popup-footer-cancel,
.popup-footer-confirm { min-width: 100px; padding: 8px 16px; font-size: 14px; text-align: center; border-radius: 100px; }
.popup-footer-cancel { color: #797979; background-color: #f5f5f5; }
.popup-footer-confirm { color: #fff; background-color: #597ef7; }

/* 校验规则 */
.play-validate-item { display: -webkit-box; display: -ms-flexbox; display: flex; margin-top: 12px; }
.play-validate-item:first-child { margin-top: 0; }
.play-validate-item.sort-list-move { -webkit-transition: all 0.48s; transition: all 0.48s; }
.play-validate-item .validate-icon .i-icon { font-size: 24px; vertical-align: top; }
.play-validate-item .validate-icon .i-icon.i-icon-checked { color: #4caf50; }
.play-validate-item .validate-icon .i-icon.i-icon-clear { color: #ff4d4f; }
.play-validate-item .validate-message { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; margin-left: 12px; }

.play { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.play-main { overflow: hidden; -webkit-flex: 1; flex: 1; height: 0; }

.play-tabs-nav { position: relative; display: -webkit-flex; display: flex; }
.play-tabs-tab { flex: 1; font-size: 14px; color: #828282; text-align: center; line-height: 44px; border-bottom: 2px solid transparent; }
.play-tabs-tab.active { color: #597ef7; border-bottom-color: #597ef7; background-color: #f0f5ff; }
.play-tabs-tab:active { background-color: #f2f3f5; }

.play-tabs-track { display: -webkit-flex; display: flex; height: 100%; }
.play-tabs-track .play-tabs-tabpanel { overflow-y: auto; height: 100%; -webkit-overflow-scrolling: touch; }
.play-tabs-track .play-tabs-tabpanel::-webkit-scrollbar { display: none; }

.play-tabpane-rules { padding: 0 16px 16px; }
.play-tabpane-rules.rich-format hr { height: 1px; background: transparent linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0)); }
.play-tabpane-rules .rules-title { position: relative; padding: 20px 0 0; }
.play-tabpane-rules .rules-cell-title { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-weight: normal; }
.play-tabpane-rules .rules-cell-title .i-icon { margin-right: 4px; padding: 6px; font-size: 16px; color: #597ef7; background-color: #f0f5ff; border-radius: 50%; }
.play-tabpane-rules .rules-cell-content { margin-top: 8px; }

.play-tabpane-editor .quick-extra-btn { color: #597ef7; background-color: transparent; border: 1px solid #597ef7; }
.play-tabpane-editor .quick-extra-btn:active { background-color: #f2f3f5; }
.play-tabpane-editor .quick-extra-btn .i-icon { margin-right: 4px; }

.play-tabpane-result { padding: 0 16px; }
.play-tabpane-result .result-tip { margin-top: 8px; }

.play-bar { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; height: 50px; }
.play-bar-action { display: -webkit-flex; display: flex; }
.play-bar-action .action { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; min-width: 48px; padding: 0 8px; font-size: 12px; color: #acacac; line-height: 1; }
.play-bar-action .action:active { background-color: #f2f3f5; }
.play-bar-action .action .i-icon,
.play-bar-action .action .van-icon { margin-bottom: 4px; font-size: 18px; }
.play-bar-button { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; min-width: 140px; margin: 4px 16px; padding: 0 8px; font-size: 16px; color: #fff; background-color: #52c41a; border-radius: 100px; }
.play-bar-button .i-icon,
.play-bar-button .van-icon { margin-right: 4px; }
.play-bar-button-start { width: 100%; background-color: #597ef7; }

.answer-popup .popup-footer { display: -webkit-flex; display: flex; -webkit-justify-content: space-around; justify-content: space-around; }
.answer-popup .popup-footer .answer-button { padding: 12px 16px; font-size: 14px; color: #597ef7; background-color: #f0f5ff; border-radius: 100px; }
.answer-popup .popup-footer .answer-button .i-icon { margin-right: 4px; }

.validate-popup .play-validate { margin: 0 16px; }

.tip-popup,
.help-popup,
.reset-popup,
.complete-popup { width: 300px; }
.complete-popup .popup-footer,
.validate-popup .popup-footer { -webkit-justify-content: center; justify-content: center; }

.reset-popup .popup-content { margin-top: 16px; margin-bottom: 16px; }
.reset-popup .popup-content .warn { display: -webkit-flex; display: flex; }
.reset-popup .popup-content .warn + .warn { margin-top: 8px; }
.reset-popup .popup-content .warn-icon { margin-right: 4px; color: #597ef7; font-size: 18px; }

.complete-popup .van-progress { overflow: hidden; border-radius: 100px; }
.complete-popup .van-progress__portion { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.complete-progress { margin: 16px 32px; }
.complete-progress-tip { font-size: 12px; color: #8a8a8a; margin-top: 4px; }
