.m-t-5 {
    margin-top: 5px;
}

.m-l-5 {
    margin-left: 5px;
}

.m-l-10 {
    margin-left: 10px !important;
}

.fill-option {
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
}

.short-option {
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
}

html,
body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", "Noto Sans CJK SC", "Noto Sans CJK", "Source Han Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.content_box_w {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 16px;
}

.head_box_w {
    border-bottom: 1px solid #ddd;
    padding: 14px 20px 10px;
}

.head_box_text_w h1,
.head_box_text_w h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.div_padding_sm {
    padding: 12px 20px 20px;
}

.position_nav {
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    background: #fff;
}

#body {
    width: 1266px;
    margin-top: 14px;
}

.exam-shell {
    background: #f1f3f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.exam-shell > .container#body {
    flex: 1 0 auto;
}

.exam-shell > .footer-v2-container {
    margin-top: auto;
}

#profile_parent .nav2-auth-fallback {
    display: flex;
    align-items: center;
    gap: 22px;
}

#profile_parent .nav2-auth-fallback-link {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

#profile_parent .nav2-auth-fallback-link:hover {
    color: #fff;
    text-decoration: none;
}

.exam-shell section.wrap {
    width: 100%;
    min-width: 0 !important;
    margin: 0 0 16px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
}

.exam-shell section.wrap .section-title {
    margin: 0;
    padding: 12px 18px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.exam-shell section.wrap .section-title h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #34495e;
    font-weight: 400;
}

.exam-shell section.wrap .section-title h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #34495e;
    font-weight: 400;
}

.exam-shell section.wrap .panel {
    border: 1px solid #ddd;
    background: #fff;
    margin: 14px 16px;
    box-shadow: none;
}

.exam-shell section.wrap .list {
    display: grid;
    gap: 12px;
    padding: 14px 16px 18px;
}

.exam-shell section.wrap .list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #eceff4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.exam-shell section.wrap .meta,
.exam-shell section.wrap .muted {
    color: #6b7280;
}

.exam-shell section.wrap .pagination {
    padding: 0 16px 18px;
    text-align: center;
}

.exam-shell section.wrap .btn,
.exam-shell section.wrap .primary {
    background: #2b6fdc;
    color: #fff;
    border: 1px solid #2b6fdc;
    border-radius: 6px;
    padding: 8px 14px;
    text-decoration: none;
    display: inline-block;
}

.exam-shell section.wrap .btn.secondary,
.exam-shell section.wrap .ghost,
.exam-shell section.wrap .secondary {
    background: #fff;
    color: #2b6fdc;
    border: 1px solid #2b6fdc;
}

.exam-shell section.wrap .card {
    border: 1px solid #eceff4;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.exam-shell section.wrap .card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 400;
    color: #34495e;
}

.exam-shell section.wrap .card p {
    margin: 0;
    color: #6b7280;
}

body[data-page="train-page"] #trainQuestions .list-item {
    display: block !important;
}

body[data-page="train-page"] #trainQuestions .list-item > div {
    width: 100% !important;
}

body[data-page="train-page"] #trainQuestions .question-title-line {
    display: block !important;
}

body[data-page="train-page"] #trainQuestions .question-title-no,
body[data-page="train-page"] #trainQuestions .question-title-no strong {
    display: block !important;
    margin: 0 !important;
    white-space: normal !important;
}

body[data-page="train-page"] #trainQuestions .question-title-content {
    display: block !important;
    min-width: 0;
}

body[data-page="train-page"] #trainQuestions .question-title-content pre,
body[data-page="train-page"] #trainQuestions .paper-option-item pre {
    max-width: 100% !important;
    overflow-x: auto !important;
    margin: 8px 0;
}

body[data-page="train-page"] #trainQuestions .paper-option-list {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    width: auto !important;
    margin-top: 10px !important;
}

body[data-page="train-page"] #trainQuestions label.paper-option-item {
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

body[data-page="train-page"] #trainQuestions .train-feedback {
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px dashed #ddd !important;
}

body[data-page="train-page"] #trainQuestions .train-feedback .meta {
    display: block !important;
    margin-top: 6px !important;
    white-space: normal !important;
}

body[data-page="grade"] #gradeDetail .list-item,
body[data-page="my-grade"] #gradeDetail .list-item {
    display: block !important;
    overflow: hidden;
}

body[data-page="grade"] #gradeDetail .list-item > div,
body[data-page="my-grade"] #gradeDetail .list-item > div {
    max-width: 100%;
}

body[data-page="grade"] #gradeDetail .list-item img,
body[data-page="my-grade"] #gradeDetail .list-item img {
    max-width: 100% !important;
    height: auto !important;
}

body[data-page="grade"] #gradeDetail .list-item table,
body[data-page="my-grade"] #gradeDetail .list-item table {
    max-width: 100% !important;
    width: 100% !important;
    display: block;
    overflow-x: auto;
}

body[data-page="grade"] #gradeDetail .list-item pre,
body[data-page="my-grade"] #gradeDetail .list-item pre {
    white-space: pre-wrap !important;
    word-break: break-word;
}

body[data-page="grade"] #gradeDetail .list-item [style*="width"],
body[data-page="my-grade"] #gradeDetail .list-item [style*="width"] {
    max-width: 100% !important;
}

body[data-page="wrong"] #wrongList .list-item {
    display: block !important;
    overflow: hidden;
}

body[data-page="wrong"] #wrongList .list-item > div {
    max-width: 100%;
}

body[data-page="wrong"] #wrongList .list-item img {
    max-width: 100% !important;
    height: auto !important;
}

body[data-page="wrong"] #wrongList .list-item table {
    max-width: 100% !important;
    width: 100% !important;
    display: block;
    overflow-x: auto;
}

body[data-page="wrong"] #wrongList .list-item pre {
    white-space: pre-wrap !important;
    word-break: break-word;
}

body[data-page="wrong"] #wrongList .list-item [style*="width"] {
    max-width: 100% !important;
}

.exam-nav-logo-heading {
    font-size: 1rem;
    margin: 0;
}

.exam-footer-logo-highlight {
    color: #007bff;
}

.exam-filter-panel {
    margin-bottom: 18px;
}

.exam-panel-title-reset {
    margin: 0;
}

.exam-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.exam-action-row-no-top {
    margin-top: 0;
}

.exam-detail-actions {
    margin-top: 20px;
}

.train-question-answer-wrap {
    width: 100%;
}

.paper-mock-toolbar-spaced {
    margin-top: 16px;
}

.paper-recent-empty {
    display: none;
    margin-top: 6px;
}

.paper-kind-summary-box {
    background: #f3f3f3;
    border: 1px solid #e1e1e1;
    padding: 10px 12px;
}

.paper-detail-back-link {
    margin-top: 12px;
}

.paper-question-title-block {
    margin-top: 8px;
}

.paper-question-body {
    width: 100%;
}

.paper-grade-link {
    display: block;
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #3061fd;
}

.paper-grade-link.active {
    border-color: #3061fd;
    background: #eef3ff;
}

.paper-recent-empty.is-visible {
    display: block;
}

.exam-icon-sprite {
    position: absolute;
    left: -9999px;
    overflow: hidden;
}

.exam-text-center {
    text-align: center;
}

.exam-section-spaced {
    margin-top: 20px;
}

@media (max-width: 1300px) {
    #body {
        width: auto;
    }
}
