:root,
[data-theme="dark"] {
    --hl-site-nav-height: 55px;
    --hl-site-nav-content-gap: 25px;
    --hl-site-nav-background: #161c22;
    --hl-site-nav-hover: #2a333d;
    --hl-site-nav-active: #313b46;
    --hl-site-nav-text: #f3f6f9;
    --hl-site-nav-muted-text: #b8c3cc;
    --hl-site-nav-accent: #ff7958;
    --hl-site-nav-border: #34404b;
    --hl-page-background: #161c22;
    --hl-page-text: #f0f4f8;
    --hl-page-muted-text: #bdc7d0;
    --hl-surface-background: #202830;
    --hl-surface-border: #3b4752;
}

[data-theme="light"] {
    --hl-site-nav-background: #ffffff;
    --hl-site-nav-hover: #fff1eb;
    --hl-site-nav-active: #ffe3d6;
    --hl-site-nav-text: #20252b;
    --hl-site-nav-muted-text: #5a6470;
    --hl-site-nav-accent: #d4380d;
    --hl-site-nav-border: #d7dce1;
    --hl-page-background: #f6f8fa;
    --hl-page-text: #20252b;
    --hl-page-muted-text: #59636d;
    --hl-surface-background: #ffffff;
    --hl-surface-border: #dfe4e8;
}

.hl-site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    min-height: var(--hl-site-nav-height);
    border: 0;
    border-bottom: 1px solid var(--hl-site-nav-border);
    background: var(--hl-site-nav-background);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    color: var(--hl-site-nav-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.hl-site-nav *,
.hl-site-nav *::before,
.hl-site-nav *::after {
    box-sizing: border-box;
}

.hl-site-nav button,
.hl-site-nav a {
    font: inherit;
    letter-spacing: 0;
}

.hl-site-nav__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(100% - 40px);
    height: var(--hl-site-nav-height);
    margin: 0 auto;
}

.hl-site-nav__brand {
    position: relative;
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 16px;
    overflow: hidden;
}

.hl-site-nav__brand img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.hl-site-nav__collapse {
    display: flex !important;
    flex: 1 1 auto;
    align-items: stretch;
    align-self: stretch;
    min-width: 0;
    height: auto !important;
    padding: 0;
    overflow: visible !important;
    border: 0;
    box-shadow: none;
}

.hl-site-nav__primary,
.hl-site-nav__account,
.hl-site-nav .dropdown-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hl-site-nav__primary {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
}

.hl-site-nav__primary > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.hl-site-nav__link {
    position: relative;
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hl-site-nav-text);
    font-size: 14px;
    font-weight: 620;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.hl-site-nav__link:hover,
.hl-site-nav__link:focus,
.hl-site-nav__primary > .open > .hl-site-nav__link {
    background: var(--hl-site-nav-hover);
    color: var(--hl-site-nav-text);
    text-decoration: none;
}

.hl-site-nav__primary > .active > .hl-site-nav__link {
    background: var(--hl-site-nav-active);
    color: var(--hl-site-nav-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hl-site-nav__primary > .active > .hl-site-nav__link::after {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--hl-site-nav-accent);
    content: "";
    transform: translateX(-50%);
}

.hl-site-nav__chevron {
    width: 12px;
    height: 12px;
    margin-left: 6px;
    transition: transform 160ms ease;
}

.hl-site-nav__primary > .open .hl-site-nav__chevron,
.hl-site-nav__account > .open .hl-site-nav__chevron {
    transform: rotate(180deg);
}

.hl-site-nav .dropdown-menu {
    top: calc(100% - 5px);
    min-width: 152px;
    padding: 6px;
    border: 1px solid #e0e3e7;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 42, 0.16);
}

.hl-site-nav .dropdown-menu > li > a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: #3f4954;
    font-size: 13px;
    font-weight: 580;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.hl-site-nav .dropdown-menu > li > a:hover,
.hl-site-nav .dropdown-menu > li > a:focus,
.hl-site-nav .dropdown-menu > .active > a,
.hl-site-nav .dropdown-menu > .active > a:hover,
.hl-site-nav .dropdown-menu > .active > a:focus {
    background: #fff2ed;
    color: #d83a16;
}

.hl-site-nav .dropdown-menu > .divider {
    height: 1px;
    margin: 5px 6px;
    background: #eceef0;
}

.hl-site-nav__account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 18px;
}

.hl-site-nav__account > li {
    position: relative;
}

.hl-site-nav__notification-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--hl-site-nav-text);
    font-size: 18px;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease;
}

.hl-site-nav__notification-link:hover,
.hl-site-nav__notification-link:focus {
    background: var(--hl-site-nav-hover);
    color: var(--hl-site-nav-text);
    text-decoration: none;
}

.hl-site-nav__notification-badge {
    position: absolute;
    top: 2px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--hl-site-nav-background);
    border-radius: 10px;
    background: #f5222d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
}

.hl-site-nav__register-link,
.hl-site-nav__login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--hl-site-nav-text);
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
}

/* ---------- 主题 / 语言切换 ---------- */
.hl-site-nav__util-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hl-site-nav-text);
    font-size: 18px;
    line-height: 40px;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.hl-site-nav__util-btn:hover,
.hl-site-nav__util-btn:focus {
    background: var(--hl-site-nav-hover);
    color: var(--hl-site-nav-text);
    outline: none;
}

.hl-site-nav__chat-link.is-unread .glyphicon-comment {
    color: #ad2102;
    text-shadow: 0 0 6px rgba(173, 33, 2, .45);
    animation: hl-chat-comment-unread 1.45s ease-in-out infinite;
    transform-origin: center;
}

@keyframes hl-chat-comment-unread {
    0%, 100% {
        opacity: 1;
        color: #ad2102;
        transform: translateY(0) scale(1);
        text-shadow: 0 0 4px rgba(173, 33, 2, .35);
    }
    35% {
        opacity: .72;
        color: #fa541c;
        transform: translateY(-4px) scale(1.1);
        text-shadow: 0 0 9px rgba(173, 33, 2, .62);
    }
    55% {
        opacity: 1;
        color: #ad2102;
        transform: translateY(1px) scale(1.02);
        text-shadow: 0 0 6px rgba(173, 33, 2, .48);
    }
}

/* 日间模式导航边框微调 */
[data-theme="light"] .hl-site-nav {
    border-bottom-color: #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .hl-site-nav__profile {
    border-color: #d9d9d9;
    background: #f0f0f0;
    color: #333;
}

[data-theme="light"] .hl-site-nav__register-link:hover,
[data-theme="light"] .hl-site-nav__login-link:hover {
    color: #333;
}

/* 全站主题基础颜色 */
html,
body {
    background-color: var(--hl-page-background);
    color: var(--hl-page-text);
    transition: background-color 160ms ease, color 160ms ease;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .help-block,
[data-theme="dark"] small {
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .panel,
[data-theme="dark"] .well,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .table,
[data-theme="dark"] .form-control,
[data-theme="dark"] .input-group-addon {
    border-color: var(--hl-surface-border);
    background-color: var(--hl-surface-background);
    color: var(--hl-page-text);
}

[data-theme="dark"] .panel-heading,
[data-theme="dark"] .panel-footer,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
[data-theme="dark"] .table > thead > tr > th,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    border-color: var(--hl-surface-border);
    background-color: #28323b;
    color: var(--hl-page-text);
}

[data-theme="dark"] .table > tbody > tr > td,
[data-theme="dark"] .table > tbody > tr > th,
[data-theme="dark"] .table > tfoot > tr > td,
[data-theme="dark"] .table > tfoot > tr > th {
    border-color: var(--hl-surface-border);
}

[data-theme="dark"] .form-control::placeholder {
    color: #9ca9b5;
    opacity: 1;
}

[data-theme="dark"] .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

[data-theme="dark"] .hl-site-nav .dropdown-menu {
    border-color: var(--hl-surface-border);
    background: #202830;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .hl-site-nav .dropdown-menu > li > a {
    color: var(--hl-page-text);
}

[data-theme="dark"] .hl-site-nav .dropdown-menu > li > a:hover,
[data-theme="dark"] .hl-site-nav .dropdown-menu > li > a:focus,
[data-theme="dark"] .hl-site-nav .dropdown-menu > .active > a,
[data-theme="dark"] .hl-site-nav .dropdown-menu > .active > a:hover,
[data-theme="dark"] .hl-site-nav .dropdown-menu > .active > a:focus {
    background: #34302f;
    color: #ff9a7a;
}

[data-theme="dark"] .hl-site-nav .dropdown-menu > .divider {
    background: var(--hl-surface-border);
}

[data-theme="dark"] .hl-site-nav__uid {
    color: var(--hl-page-muted-text);
}

[data-theme="dark"] .nav-tabs {
    border-bottom-color: var(--hl-surface-border);
}

[data-theme="dark"] .nav-tabs > li > a,
[data-theme="dark"] .pagination > li > a,
[data-theme="dark"] .pagination > li > span {
    border-color: var(--hl-surface-border);
    background: var(--hl-surface-background);
    color: var(--hl-page-text);
}

[data-theme="dark"] .nav-tabs > li.active > a,
[data-theme="dark"] .nav-tabs > li.active > a:hover,
[data-theme="dark"] .nav-tabs > li.active > a:focus {
    background-color: #1e1e2e !important;
    color: #ffffff !important;
    border-color: #3d3d5c !important;
    border-bottom-color: #1e1e2e !important;
}

[data-theme="dark"] .pagination > .active > a,
[data-theme="dark"] .pagination > .active > span {
    border-color: var(--hl-site-nav-accent);
    background: var(--hl-site-nav-accent);
    color: #fff;
}

[data-theme="dark"] pre,
[data-theme="dark"] code {
    border-color: #44515d;
    background: #11171c;
    color: #e7edf2;
}

[data-theme="dark"] body.about-page,
[data-theme="dark"] body.blog-page {
    background-color: var(--hl-page-background) !important;
    background-image: none !important;
    color: var(--hl-page-text);
}

[data-theme="dark"] body.about-page .panel,
[data-theme="dark"] body.about-page .panel-body,
[data-theme="dark"] body.about-page .table,
[data-theme="dark"] body.about-page .table-responsive,
[data-theme="dark"] body.about-page .form-control,
[data-theme="dark"] body.about-page .input-group-addon,
[data-theme="dark"] body.blog-page .panel,
[data-theme="dark"] body.blog-page .panel-body,
[data-theme="dark"] body.blog-page .well,
[data-theme="dark"] body.blog-page .table,
[data-theme="dark"] body.blog-page .table-responsive,
[data-theme="dark"] body.blog-page .form-control,
[data-theme="dark"] body.blog-page .input-group-addon,
[data-theme="dark"] body.blog-page .tab-content {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.about-page .table > thead > tr > th,
[data-theme="dark"] body.about-page .table-striped > tbody > tr:nth-of-type(odd),
[data-theme="dark"] body.blog-page .panel-heading,
[data-theme="dark"] body.blog-page .panel-footer,
[data-theme="dark"] body.blog-page .table > thead > tr > th,
[data-theme="dark"] body.blog-page .table-striped > tbody > tr:nth-of-type(odd) {
    border-color: var(--hl-surface-border) !important;
    background-color: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.about-page .table > tbody > tr > td,
[data-theme="dark"] body.about-page .table > tbody > tr > th,
[data-theme="dark"] body.blog-page .table > tbody > tr > td,
[data-theme="dark"] body.blog-page .table > tbody > tr > th,
[data-theme="dark"] body.blog-page hr {
    border-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] body.about-page h1,
[data-theme="dark"] body.about-page h2,
[data-theme="dark"] body.about-page h3,
[data-theme="dark"] body.about-page h4,
[data-theme="dark"] body.about-page h5,
[data-theme="dark"] body.about-page h6,
[data-theme="dark"] body.about-page p,
[data-theme="dark"] body.about-page li,
[data-theme="dark"] body.about-page label:not(.label),
[data-theme="dark"] body.blog-page h1,
[data-theme="dark"] body.blog-page h2,
[data-theme="dark"] body.blog-page h3,
[data-theme="dark"] body.blog-page h4,
[data-theme="dark"] body.blog-page h5,
[data-theme="dark"] body.blog-page h6,
[data-theme="dark"] body.blog-page p,
[data-theme="dark"] body.blog-page li,
[data-theme="dark"] body.blog-page label:not(.label) {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.about-page td[style*="color: grey"],
[data-theme="dark"] body.about-page span[style*="color: grey"],
[data-theme="dark"] body.blog-page td[style*="color: grey"],
[data-theme="dark"] body.blog-page span[style*="color: grey"],
[data-theme="dark"] body.blog-page div[style*="color: grey"] {
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] body.about-page #search-suggestions,
[data-theme="dark"] body.blog-page #search-suggestions {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body.about-page #search-suggestions [style],
[data-theme="dark"] body.blog-page #search-suggestions [style] {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.about-page #search-suggestions [style]:hover,
[data-theme="dark"] body.blog-page #search-suggestions [style]:hover {
    background: #303b45 !important;
}

[data-theme="dark"] body.about-page .nav-tabs,
[data-theme="dark"] body.blog-page .nav-tabs {
    border-bottom-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] body.about-page .nav-tabs > li > a,
[data-theme="dark"] body.blog-page .nav-tabs > li > a {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.about-page .nav-tabs > li.active > a,
[data-theme="dark"] body.about-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] body.about-page .nav-tabs > li.active > a:focus,
[data-theme="dark"] body.blog-page .nav-tabs > li.active > a,
[data-theme="dark"] body.blog-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] body.blog-page .nav-tabs > li.active > a:focus {
    background-color: #1e1e2e !important;
    color: #ffffff !important;
    border-color: #3d3d5c !important;
    border-bottom-color: #1e1e2e !important;
}

[data-theme="dark"] body.about-page .nav-tabs > li.active > a *,
[data-theme="dark"] body.blog-page .nav-tabs > li.active > a * {
    color: #fff !important;
}

[data-theme="dark"] body.blog-page .editormd,
[data-theme="dark"] body.blog-page .editormd-toolbar,
[data-theme="dark"] body.blog-page .CodeMirror,
[data-theme="dark"] body.blog-page .CodeMirror-gutters,
[data-theme="dark"] body.blog-page .editormd-preview,
[data-theme="dark"] body.blog-page .editormd-preview-container,
[data-theme="dark"] body.blog-page .markdown-body,
[data-theme="dark"] body.blog-page .file-content-field {
    border-color: var(--hl-surface-border) !important;
    background-color: #161c22 !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.blog-page .CodeMirror-activeline-background {
    background: #1a2740 !important;
}
[data-theme="dark"] body.blog-page .CodeMirror-cursor {
    border-left-color: #e6edf3 !important;
}
[data-theme="dark"] body.blog-page .CodeMirror-selected {
    background: #264f78 !important;
}
[data-theme="dark"] body.blog-page .CodeMirror-linenumber {
    color: #6e7681 !important;
}

[data-theme="dark"] body.blog-page #uploadDropZone,
[data-theme="dark"] body.blog-page input[readonly] {
    border-color: var(--hl-surface-border) !important;
    background: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.blog-page .teacher-code-copy-btn {
    border-color: #9a5a35 !important;
    background: #3b2a22 !important;
    color: #ffb58f !important;
}

[data-theme="dark"] body.blog-page .ui.segment,
[data-theme="dark"] body.blog-page .ui.form,
[data-theme="dark"] body.blog-page .ui.form .field > label,
[data-theme="dark"] body.blog-page .ui.menu,
[data-theme="dark"] body.blog-page .ui.tabular.menu .item {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] body.blog-page .ui.input > input,
[data-theme="dark"] body.blog-page .ui.form input,
[data-theme="dark"] body.blog-page .ui.form textarea,
[data-theme="dark"] body.blog-page .ui.form select {
    border-color: var(--hl-surface-border) !important;
    background: #161c22 !important;
    color: var(--hl-page-text) !important;
}

.hl-site-nav__member-link--premium {
    color: #fadb14;
}

.hl-site-nav__member-link--ai {
    color: #b37feb;
}

.hl-site-nav__member-link--svip {
    color: #ffd666;
    font-weight: 700;
}

.hl-site-nav__register-link:hover,
.hl-site-nav__register-link:focus,
.hl-site-nav__login-link:hover,
.hl-site-nav__login-link:focus {
    background: var(--hl-site-nav-hover);
    color: #fff;
    text-decoration: none;
}

.hl-site-nav__profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #3b444d;
    border-radius: 50%;
    background: #232b33;
    color: #fff;
    cursor: pointer;
}

.hl-site-nav__profile.hl-site-nav__profile--premium {
    border: 3px solid #fadb14 !important;
    background: #fadb14;
    box-shadow: 0 0 0 2px rgba(250, 219, 20, 0.45), 0 0 8px rgba(250, 219, 20, 0.45);
}

.hl-site-nav__profile.hl-site-nav__profile--ai {
    border: 3px solid #9254de !important;
    background: #9254de;
    box-shadow: 0 0 0 2px rgba(179, 127, 235, 0.5), 0 0 8px rgba(146, 84, 222, 0.5);
}

.hl-site-nav__profile.hl-site-nav__profile--svip {
    border: 3px solid #ffc53d !important;
    background: linear-gradient(135deg, #fff1b8, #faad14);
    box-shadow: 0 0 0 2px #ffd666, 0 0 12px rgba(250, 173, 20, 0.8);
}

.hl-site-nav__profile.hl-site-nav__profile--premium:hover,
.hl-site-nav__profile.hl-site-nav__profile--premium:focus,
.hl-site-nav__account > .open > .hl-site-nav__profile--premium {
    border-color: #fadb14 !important;
}

.hl-site-nav__profile.hl-site-nav__profile--ai:hover,
.hl-site-nav__profile.hl-site-nav__profile--ai:focus,
.hl-site-nav__account > .open > .hl-site-nav__profile--ai {
    border-color: #9254de !important;
}

.hl-site-nav__profile.hl-site-nav__profile--svip:hover,
.hl-site-nav__profile.hl-site-nav__profile--svip:focus,
.hl-site-nav__account > .open > .hl-site-nav__profile--svip {
    border-color: #ffc53d !important;
}

.hl-site-nav__profile:hover,
.hl-site-nav__profile:focus,
.hl-site-nav__account > .open > .hl-site-nav__profile {
    border-color: #59636d;
    background: #2a333c;
}

.hl-site-nav__profile-avatar {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.hl-site-nav__account .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 188px;
    max-height: calc(100vh - var(--hl-site-nav-height) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hl-site-nav__uid {
    padding: 6px 12px 7px;
    color: #7b858f;
    font-size: 12px;
    line-height: 1.4;
}

.hl-site-nav__toggle {
    position: relative;
    display: none;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 10px;
    padding: 0;
    border: 1px solid #3b444d;
    border-radius: 6px;
    background: #232b33;
    color: #fff;
    cursor: pointer;
}

.hl-site-nav__toggle:hover,
.hl-site-nav__toggle:focus,
.hl-site-nav__toggle[aria-expanded="true"] {
    border-color: #59636d;
    background: #2a333c;
}

.hl-site-nav__menu-icon,
.hl-site-nav__menu-icon::before,
.hl-site-nav__menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

/* ===== 暗黑模式：Markdown / 内容区域覆盖 ===== */
[data-theme="dark"] .markdown-body,
[data-theme="dark"] .file-content-field,
[data-theme="dark"] .content-display,
[data-theme="dark"] .editormd-preview-container,
[data-theme="dark"] .editormd-html-preview {
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
    border-color: var(--hl-surface-border);
}

[data-theme="dark"] .markdown-body h1,
[data-theme="dark"] .markdown-body h2,
[data-theme="dark"] .markdown-body h3,
[data-theme="dark"] .markdown-body h4,
[data-theme="dark"] .markdown-body h5,
[data-theme="dark"] .markdown-body h6 {
    color: var(--hl-page-text);
    border-bottom-color: var(--hl-surface-border);
}

[data-theme="dark"] .markdown-body blockquote {
    color: var(--hl-page-muted-text);
    border-left-color: var(--hl-site-nav-accent);
}

[data-theme="dark"] .markdown-body code {
    background-color: #11171c;
    color: #e7edf2;
    border-color: #44515d;
}

[data-theme="dark"] .markdown-body pre {
    background-color: #11171c;
    border-color: #44515d;
}

[data-theme="dark"] .markdown-body pre.prettyprint {
    background: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
[data-theme="dark"] .markdown-body pre.prettyprint code {
    background: transparent !important;
    color: inherit !important;
}
[data-theme="dark"] .markdown-body pre.prettyprint ol.linenums,
[data-theme="dark"] .markdown-body pre.prettyprint ol.linenums > li {
    background: transparent !important;
    color: #6e7681 !important;
}
[data-theme="dark"] .markdown-body pre.prettyprint .pln { color: #e6edf3 !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .kwd { color: #ff7b72 !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .typ { color: #d2a8ff !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .str { color: #a5d6ff !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .com { color: #8b949e !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .lit { color: #79c0ff !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .pun,
[data-theme="dark"] .markdown-body pre.prettyprint .opn,
[data-theme="dark"] .markdown-body pre.prettyprint .clo { color: #e6edf3 !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .fun { color: #d2a8ff !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .tag { color: #7ee787 !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .atn { color: #d2a8ff !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .atv { color: #a5d6ff !important; }
[data-theme="dark"] .markdown-body pre.prettyprint .dec,
[data-theme="dark"] .markdown-body pre.prettyprint .var { color: #ffa657 !important; }

[data-theme="dark"] .prettyprint.linenums,
[data-theme="dark"] .prettyprinted {
    background: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
[data-theme="dark"] ol.linenums > li {
    color: #6e7681 !important;
}

/* ===== 暗黑模式：分页容器 & 每页条数选择 ===== */
[data-theme="dark"] .container-wrapper,
[data-theme="dark"] .pagination-wrapper {
    background: transparent;
}
[data-theme="dark"] .container-wrapper select,
[data-theme="dark"] .pagination-wrapper select,
[data-theme="dark"] select[name="page_size"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #d0d0d0 !important;
}
[data-theme="dark"] .container-wrapper option,
[data-theme="dark"] .pagination-wrapper option,
[data-theme="dark"] select[name="page_size"] option {
    background-color: #ffffff !important;
    color: #000000 !important;
}
[data-theme="dark"] .container-wrapper .pagination > li > a,
[data-theme="dark"] .container-wrapper .pagination > li > span,
[data-theme="dark"] .pagination-wrapper .pagination > li > a,
[data-theme="dark"] .pagination-wrapper .pagination > li > span {
    background: #2d2d3f !important;
    border-color: #3d3d5c !important;
    color: #c0c0d0 !important;
}
[data-theme="dark"] .container-wrapper .pagination > .active > a,
[data-theme="dark"] .container-wrapper .pagination > .active > span,
[data-theme="dark"] .pagination-wrapper .pagination > .active > a,
[data-theme="dark"] .pagination-wrapper .pagination > .active > span {
    background: #fa514c !important;
    border-color: #fa514c !important;
    color: #fff !important;
}
[data-theme="dark"] .container-wrapper label,
[data-theme="dark"] .pagination-wrapper label {
    color: #8888a0;
}

[data-theme="dark"] .markdown-body table th,
[data-theme="dark"] .markdown-body table td {
    border-color: var(--hl-surface-border);
}

[data-theme="dark"] .markdown-body table tr {
    background-color: var(--hl-surface-background);
    border-top-color: var(--hl-surface-border);
}

[data-theme="dark"] .markdown-body table tr:nth-child(2n) {
    background-color: #28323b;
}

[data-theme="dark"] .markdown-body hr {
    background-color: var(--hl-surface-border);
}

.hl-site-nav__menu-icon {
    position: relative;
}

.hl-site-nav__menu-icon::before {
    position: absolute;
    top: -6px;
}

.hl-site-nav__menu-icon::after {
    position: absolute;
    top: 6px;
}

.hl-site-nav__toggle .notification-number {
    position: absolute;
    top: -4px;
    right: -4px;
}

.hl-site-nav a:focus-visible,
.hl-site-nav button:focus-visible {
    outline: 3px solid rgba(255, 104, 69, 0.34);
    outline-offset: 2px;
}

.base_body {
    padding-top: calc(var(--hl-site-nav-height) + var(--hl-site-nav-content-gap));
}

/* ===== mind 模块主题覆盖 ===== */
.mind-page {
    --mind-bg: #ffffff;
    --mind-surface: #ffffff;
    --mind-surface-muted: #f6f8fa;
    --mind-text: #24292f;
    --mind-muted: #57606a;
    --mind-border: #d0d7de;
    --mind-link: #0969da;
    --mind-accent: #fa541c;
    color: var(--mind-text);
}

.mind-page .panel,
.mind-page .panel-body,
.mind-page .modal-content,
.mind-page .tab-content,
.mind-page .table-container,
.mind-page .markdown-body,
.mind-page .editormd-preview-container,
.mind-page .editormd-html-preview {
    border-color: var(--mind-border);
    background-color: var(--mind-surface);
    color: var(--mind-text);
}

.mind-page a {
    color: var(--mind-link);
}

.mind-page .text-muted,
.mind-page .blog-meta,
.mind-page small {
    color: var(--mind-muted) !important;
}

.mind-page .table,
.mind-page .table > thead > tr > th,
.mind-page .table > tbody > tr > td,
.mind-page .table > tbody > tr > th {
    border-color: var(--mind-border);
    color: var(--mind-text);
}

.mind-page .table-striped > tbody > tr:nth-of-type(odd),
.mind-page .markdown-body table tr:nth-child(even) {
    background-color: var(--mind-surface-muted);
}

.mind-page .table > thead > tr > th,
.mind-page .markdown-body table th {
    background-color: var(--mind-surface-muted);
}

.mind-page .form-control,
.mind-page select,
.mind-page textarea {
    border-color: var(--mind-border);
    background-color: var(--mind-surface);
    color: var(--mind-text);
}

.mind-page .btn {
    border-radius: 6px;
    font-weight: 600;
}

.mind-page .btn-default,
.mind-page .btn-secondary {
    border-color: var(--mind-border);
    background-color: var(--mind-surface);
    color: var(--mind-text);
}

.mind-page .btn-default:hover,
.mind-page .btn-secondary:hover,
.mind-page .btn-default:focus,
.mind-page .btn-secondary:focus {
    border-color: var(--mind-link);
    background-color: var(--mind-surface-muted);
    color: var(--mind-text);
}

.mind-page .nav-tabs,
.mind-page .nav-tabs > li > a {
    border-color: var(--mind-border);
}

.mind-page .nav-tabs > li > a {
    color: var(--mind-muted);
}

.mind-page .nav-tabs > li.active > a,
.mind-page .nav-tabs > li.active > a:hover,
.mind-page .nav-tabs > li.active > a:focus,
.mind-page .tab-pane.active {
    border-color: var(--mind-border);
    background-color: var(--mind-surface);
    color: var(--mind-text);
}

[data-theme="dark"] .mind-page {
    --mind-bg: #0d1117;
    --mind-surface: #161b22;
    --mind-surface-muted: #21262d;
    --mind-text: #f0f6fc;
    --mind-muted: #b1bac4;
    --mind-border: #30363d;
    --mind-link: #58a6ff;
    --mind-accent: #ff7b72;
}

[data-theme="dark"] .mind-page,
[data-theme="dark"] .mind-page .panel,
[data-theme="dark"] .mind-page .panel-body,
[data-theme="dark"] .mind-page .modal-content,
[data-theme="dark"] .mind-page .tab-content,
[data-theme="dark"] .mind-page .table,
[data-theme="dark"] .mind-page .markdown-body,
[data-theme="dark"] .mind-page .editormd-preview-container,
[data-theme="dark"] .mind-page .editormd-html-preview {
    background-color: var(--mind-surface) !important;
    color: var(--mind-text) !important;
}

[data-theme="dark"] .mind-page h1,
[data-theme="dark"] .mind-page h2,
[data-theme="dark"] .mind-page h3,
[data-theme="dark"] .mind-page h4,
[data-theme="dark"] .mind-page h5,
[data-theme="dark"] .mind-page h6,
[data-theme="dark"] .mind-page p,
[data-theme="dark"] .mind-page li,
[data-theme="dark"] .mind-page td,
[data-theme="dark"] .mind-page th,
[data-theme="dark"] .mind-page label,
[data-theme="dark"] .mind-page strong,
[data-theme="dark"] .mind-page span {
    color: var(--mind-text);
}

[data-theme="dark"] .mind-page .text-muted,
[data-theme="dark"] .mind-page .blog-meta,
[data-theme="dark"] .mind-page small {
    color: var(--mind-muted) !important;
}

[data-theme="dark"] .mind-page .table > thead > tr > th,
[data-theme="dark"] .mind-page .markdown-body table th,
[data-theme="dark"] .mind-page .table-striped > tbody > tr:nth-of-type(odd),
[data-theme="dark"] .mind-page .markdown-body table tr:nth-child(even) {
    background-color: var(--mind-surface-muted) !important;
}

[data-theme="dark"] .mind-page .form-control,
[data-theme="dark"] .mind-page select,
[data-theme="dark"] .mind-page textarea {
    border-color: var(--mind-border) !important;
    background-color: #0d1117 !important;
    color: var(--mind-text) !important;
}

[data-theme="dark"] .mind-page .nav-tabs > li > a {
    border-color: var(--mind-border);
    background-color: var(--mind-surface);
    color: var(--mind-muted);
}

[data-theme="dark"] .mind-page .nav-tabs > li.active > a,
[data-theme="dark"] .mind-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] .mind-page .nav-tabs > li.active > a:focus {
    border-color: var(--mind-link) !important;
    background-color: #1f3b57 !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .mind-page .tab-pane.active {
    border-color: var(--mind-border);
    background-color: var(--mind-surface) !important;
    color: var(--mind-text) !important;
}

[data-theme="dark"] .mind-page .nav-tabs > li.active > a *,
[data-theme="dark"] .mind-page .nav-tabs > li.active > a:hover *,
[data-theme="dark"] .mind-page .nav-tabs > li.active > a:focus * {
    color: #f0f6fc !important;
}

[data-theme="dark"] .mind-page .btn-default,
[data-theme="dark"] .mind-page .btn-secondary {
    border-color: var(--mind-border) !important;
    background-color: var(--mind-surface-muted) !important;
    color: var(--mind-text) !important;
}

[data-theme="dark"] .mind-page .btn-primary,
[data-theme="dark"] .mind-page .btn-info,
[data-theme="dark"] .mind-page .btn-success,
[data-theme="dark"] .mind-page .btn-warning,
[data-theme="dark"] .mind-page .btn-danger {
    border-color: transparent;
    color: #ffffff !important;
}

[data-theme="light"] .mind-page .nav-tabs > li.active > a,
[data-theme="light"] .mind-page .nav-tabs > li.active > a:hover,
[data-theme="light"] .mind-page .nav-tabs > li.active > a:focus {
    background-color: #ffffff !important;
    color: #24292f !important;
}

/* ===== 经典题库 / 题目详情主题覆盖（不包含新版 workbench） ===== */
.solution-page {
    --solution-accent: #fa541c;
    --solution-accent-hover: #d4380d;
}

[data-theme="light"] .solution-page a:not(.btn):not(.label) {
    color: var(--solution-accent);
}

[data-theme="light"] .solution-page a:not(.btn):not(.label):hover,
[data-theme="light"] .solution-page a:not(.btn):not(.label):focus {
    color: var(--solution-accent-hover);
}

[data-theme="light"] .solution-page .nav-tabs > li.active > a,
[data-theme="light"] .solution-page .nav-tabs > li.active > a:hover,
[data-theme="light"] .solution-page .nav-tabs > li.active > a:focus,
[data-theme="light"] .solution-page .btn-primary,
[data-theme="light"] .solution-page .btn-info,
[data-theme="light"] .solution-page .btn-success,
[data-theme="light"] .solution-page .btn-warning,
[data-theme="light"] .solution-page .pagination > .active > a,
[data-theme="light"] .solution-page .pagination > .active > span {
    border-color: var(--solution-accent) !important;
    background-color: var(--solution-accent) !important;
    color: #ffffff !important;
}

[data-theme="light"] .solution-page .btn-primary:hover,
[data-theme="light"] .solution-page .btn-primary:focus,
[data-theme="light"] .solution-page .btn-info:hover,
[data-theme="light"] .solution-page .btn-info:focus,
[data-theme="light"] .solution-page .btn-success:hover,
[data-theme="light"] .solution-page .btn-success:focus,
[data-theme="light"] .solution-page .btn-warning:hover,
[data-theme="light"] .solution-page .btn-warning:focus {
    border-color: var(--solution-accent-hover) !important;
    background-color: var(--solution-accent-hover) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .solution-page {
    color: var(--hl-page-text);
}

[data-theme="dark"] .solution-page a:not(.btn):not(.label) {
    color: #ff9c7a;
}

[data-theme="dark"] .solution-page .panel,
[data-theme="dark"] .solution-page .panel-body,
[data-theme="dark"] .solution-page .well,
[data-theme="dark"] .solution-page .modal-content,
[data-theme="dark"] .solution-page .modal-body,
[data-theme="dark"] .solution-page .list-group-item,
[data-theme="dark"] .solution-page .content_box_w,
[data-theme="dark"] .solution-page .content,
[data-theme="dark"] .solution-page .table,
[data-theme="dark"] .solution-page .table-responsive,
[data-theme="dark"] .solution-page .form-control,
[data-theme="dark"] .solution-page select,
[data-theme="dark"] .solution-page textarea,
[data-theme="dark"] .solution-page .input-group-addon,
[data-theme="dark"] .solution-page #search-suggestions,
[data-theme="dark"] .solution-page #brush-status-body {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .solution-page .panel-heading,
[data-theme="dark"] .solution-page .panel-footer,
[data-theme="dark"] .solution-page .modal-header,
[data-theme="dark"] .solution-page .modal-footer,
[data-theme="dark"] .solution-page .head_box_w,
[data-theme="dark"] .solution-page .table > thead > tr > th,
[data-theme="dark"] .solution-page .table-striped > tbody > tr:nth-of-type(odd),
[data-theme="dark"] .solution-page .progress {
    border-color: var(--hl-surface-border) !important;
    background-color: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .solution-page .table > tbody > tr > td,
[data-theme="dark"] .solution-page .table > tbody > tr > th,
[data-theme="dark"] .solution-page .table > tfoot > tr > td,
[data-theme="dark"] .solution-page .table > tfoot > tr > th,
[data-theme="dark"] .solution-page .table > thead > tr > th,
[data-theme="dark"] .solution-page hr {
    border-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] .solution-page h1,
[data-theme="dark"] .solution-page h2,
[data-theme="dark"] .solution-page h3,
[data-theme="dark"] .solution-page h4,
[data-theme="dark"] .solution-page h5,
[data-theme="dark"] .solution-page h6,
[data-theme="dark"] .solution-page p,
[data-theme="dark"] .solution-page li,
[data-theme="dark"] .solution-page label:not(.label),
[data-theme="dark"] .solution-page strong,
[data-theme="dark"] .solution-page .problem-content-title,
[data-theme="dark"] .solution-page .problem-attr,
[data-theme="dark"] .solution-page .head_box_text_w {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .solution-page #search-suggestions .search-item {
    border-color: var(--hl-surface-border) !important;
    background: #202830 !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .solution-page #search-suggestions .search-item:hover,
[data-theme="dark"] .solution-page #search-suggestions .search-item:focus {
    background: #303b45 !important;
}

[data-theme="dark"] .solution-page .nav-tabs {
    border-bottom-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] .solution-page .nav-tabs > li > a {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    background-image: none !important;
    color: var(--hl-page-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .solution-page .nav-tabs > li.active > a,
[data-theme="dark"] .solution-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] .solution-page .nav-tabs > li.active > a:focus {
    border: 1px solid #ffffff !important;
    border-bottom-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .solution-page .nav-tabs > li.active > a *,
[data-theme="dark"] .solution-page .nav-tabs > li.active > a:hover *,
[data-theme="dark"] .solution-page .nav-tabs > li.active > a:focus * {
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .solution-page .main-martor,
[data-theme="dark"] .solution-page .main-martor-content,
[data-theme="dark"] .solution-page .section-martor,
[data-theme="dark"] .solution-page .martor-preview,
[data-theme="dark"] .solution-page .ui.bottom.attached.tab.active.martor-preview,
[data-theme="dark"] .solution-page .markdown-body,
[data-theme="dark"] .solution-page .editormd-preview-container,
[data-theme="dark"] .solution-page .editormd-html-preview {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* 暗黑模式：solution-page 编辑器（editormd + CodeMirror） */
[data-theme="dark"] .solution-page .editormd,
[data-theme="dark"] .solution-page #tijie-editor {
    border-color: var(--hl-surface-border) !important;
    background: #161c22 !important;
    color: var(--hl-page-text) !important;
}
[data-theme="dark"] .solution-page .editormd-toolbar {
    border-color: var(--hl-surface-border) !important;
    background: #1c2530 !important;
}
[data-theme="dark"] .solution-page .editormd-toolbar > li > a {
    color: #8b949e !important;
}
[data-theme="dark"] .solution-page .editormd-toolbar > li.divider {
    border-right-color: #30363d !important;
}
[data-theme="dark"] .solution-page .CodeMirror {
    border-color: var(--hl-surface-border) !important;
    background: #0d1117 !important;
    color: var(--hl-page-text) !important;
}
[data-theme="dark"] .solution-page .CodeMirror-gutters {
    border-right-color: var(--hl-surface-border) !important;
    background: #161c22 !important;
    color: #6e7681 !important;
}
[data-theme="dark"] .solution-page .CodeMirror-cursor {
    border-left-color: #e6edf3 !important;
}
[data-theme="dark"] .solution-page .CodeMirror-selected {
    background: #264f78 !important;
}
[data-theme="dark"] .solution-page .CodeMirror-linenumber {
    color: #6e7681 !important;
}
[data-theme="dark"] .solution-page .editormd-preview {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
}

[data-theme="dark"] .solution-page .martor-preview h1,
[data-theme="dark"] .solution-page .martor-preview h2,
[data-theme="dark"] .solution-page .martor-preview h3,
[data-theme="dark"] .solution-page .martor-preview h4,
[data-theme="dark"] .solution-page .martor-preview h5,
[data-theme="dark"] .solution-page .martor-preview h6,
[data-theme="dark"] .solution-page .martor-preview p,
[data-theme="dark"] .solution-page .martor-preview li,
[data-theme="dark"] .solution-page .martor-preview strong,
[data-theme="dark"] .solution-page .markdown-body h1,
[data-theme="dark"] .solution-page .markdown-body h2,
[data-theme="dark"] .solution-page .markdown-body h3,
[data-theme="dark"] .solution-page .markdown-body h4,
[data-theme="dark"] .solution-page .markdown-body h5,
[data-theme="dark"] .solution-page .markdown-body h6,
[data-theme="dark"] .solution-page .markdown-body p,
[data-theme="dark"] .solution-page .markdown-body li,
[data-theme="dark"] .solution-page .markdown-body strong {
    border-color: var(--hl-surface-border) !important;
    background: transparent !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .solution-page .martor-preview table,
[data-theme="dark"] .solution-page .martor-preview thead,
[data-theme="dark"] .solution-page .martor-preview tbody,
[data-theme="dark"] .solution-page .martor-preview tr,
[data-theme="dark"] .solution-page .martor-preview th,
[data-theme="dark"] .solution-page .martor-preview td,
[data-theme="dark"] .solution-page .markdown-body table,
[data-theme="dark"] .solution-page .markdown-body thead,
[data-theme="dark"] .solution-page .markdown-body tbody,
[data-theme="dark"] .solution-page .markdown-body tr,
[data-theme="dark"] .solution-page .markdown-body th,
[data-theme="dark"] .solution-page .markdown-body td {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .solution-page .martor-preview th,
[data-theme="dark"] .solution-page .martor-preview tr:nth-child(2n),
[data-theme="dark"] .solution-page .markdown-body th,
[data-theme="dark"] .solution-page .markdown-body tr:nth-child(2n) {
    background: #28323b !important;
}

[data-theme="dark"] .solution-page .martor-preview blockquote,
[data-theme="dark"] .solution-page .markdown-body blockquote {
    border-color: #ff9c7a !important;
    background: #28323b !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .solution-page .martor-preview hr,
[data-theme="dark"] .solution-page .markdown-body hr {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-border) !important;
}

[data-theme="dark"] .solution-page pre,
[data-theme="dark"] .solution-page pre code,
[data-theme="dark"] .solution-page pre.prettyprint,
[data-theme="dark"] .solution-page pre.prettyprint code,
[data-theme="dark"] .solution-page pre.prettyprint ol.linenums,
[data-theme="dark"] .solution-page pre.prettyprint ol.linenums > li,
[data-theme="dark"] .solution-page .martor-preview pre,
[data-theme="dark"] .solution-page .martor-preview code,
[data-theme="dark"] .solution-page .markdown-body pre,
[data-theme="dark"] .solution-page .markdown-body code,
[data-theme="dark"] .solution-page #run-code-stdin,
[data-theme="dark"] .solution-page #run-code-stdout,
[data-theme="dark"] .solution-page #run-code-expected-stdout,
[data-theme="dark"] .solution-page #submit-code-status-compilation-log-id {
    border-color: #44515d !important;
    background-color: #11171c !important;
    background-image: none !important;
    color: #e7edf2 !important;
    text-shadow: none !important;
}

[data-theme="dark"] .solution-page pre code {
    background-color: transparent !important;
}

[data-theme="dark"] .solution-page pre.prettyprint ol.linenums > li {
    color: #9ca9b5 !important;
}

[data-theme="dark"] .solution-page pre.prettyprint .pln { color: #e6edf3 !important; }
[data-theme="dark"] .solution-page pre.prettyprint .kwd { color: #ff7b72 !important; }
[data-theme="dark"] .solution-page pre.prettyprint .typ { color: #d2a8ff !important; }
[data-theme="dark"] .solution-page pre.prettyprint .str { color: #a5d6ff !important; }
[data-theme="dark"] .solution-page pre.prettyprint .com { color: #8b949e !important; }
[data-theme="dark"] .solution-page pre.prettyprint .lit { color: #79c0ff !important; }
[data-theme="dark"] .solution-page pre.prettyprint .pun,
[data-theme="dark"] .solution-page pre.prettyprint .opn,
[data-theme="dark"] .solution-page pre.prettyprint .clo { color: #e6edf3 !important; }
[data-theme="dark"] .solution-page pre.prettyprint .fun { color: #d2a8ff !important; }
[data-theme="dark"] .solution-page pre.prettyprint .tag { color: #7ee787 !important; }
[data-theme="dark"] .solution-page pre.prettyprint .atn { color: #d2a8ff !important; }
[data-theme="dark"] .solution-page pre.prettyprint .atv { color: #a5d6ff !important; }
[data-theme="dark"] .solution-page pre.prettyprint .dec,
[data-theme="dark"] .solution-page pre.prettyprint .var { color: #ffa657 !important; }

[data-theme="dark"] .solution-page .copy-code-btn,
[data-theme="dark"] .solution-page .btn-copy {
    border-color: #566572 !important;
    background: #303b45 !important;
    color: #f0f4f8 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .solution-page #code_tool_bar {
    border-color: var(--hl-surface-border) !important;
    background: #202830 !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .solution-page #code_tool_bar .btn-link,
[data-theme="dark"] .solution-page #code_tool_bar .glyphicon,
[data-theme="dark"] .solution-page #code_tool_bar .editor_tool_btn,
[data-theme="dark"] .solution-page #code_tool_bar .editor_tool_refresh_btn {
    color: #e7edf2 !important;
}

/* ===== 训练模块主题覆盖 ===== */
.train-page {
    --train-accent: #fa541c;
    --train-accent-hover: #d4380d;
}

[data-theme="light"] .train-page a:not(.btn):not(.label) {
    color: var(--train-accent);
}

[data-theme="light"] .train-page a:not(.btn):not(.label):hover,
[data-theme="light"] .train-page a:not(.btn):not(.label):focus {
    color: var(--train-accent-hover);
}

[data-theme="light"] .train-page .nav-tabs > li.active > a,
[data-theme="light"] .train-page .nav-tabs > li.active > a:hover,
[data-theme="light"] .train-page .nav-tabs > li.active > a:focus,
[data-theme="light"] .train-page .btn-primary,
[data-theme="light"] .train-page .btn-info,
[data-theme="light"] .train-page .btn-success,
[data-theme="light"] .train-page .btn-warning {
    border-color: var(--train-accent) !important;
    background-color: var(--train-accent) !important;
    color: #ffffff !important;
}

[data-theme="light"] .train-page .btn-primary:hover,
[data-theme="light"] .train-page .btn-primary:focus,
[data-theme="light"] .train-page .btn-info:hover,
[data-theme="light"] .train-page .btn-info:focus,
[data-theme="light"] .train-page .btn-success:hover,
[data-theme="light"] .train-page .btn-success:focus,
[data-theme="light"] .train-page .btn-warning:hover,
[data-theme="light"] .train-page .btn-warning:focus {
    border-color: var(--train-accent-hover) !important;
    background-color: var(--train-accent-hover) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .train-page {
    color: var(--hl-page-text);
}

[data-theme="dark"] .train-page a:not(.btn):not(.label) {
    color: #ff9c7a !important;
}

[data-theme="dark"] .train-page a:not(.btn):not(.label):hover,
[data-theme="dark"] .train-page a:not(.btn):not(.label):focus {
    color: #ffbb9f !important;
}

[data-theme="dark"] .train-page .thumbnail h5,
[data-theme="dark"] .train-page .thumbnail p,
[data-theme="dark"] .train-page .thumbnail span:not(.label):not(.glyphicon) {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page .nav-tabs > li > a {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page .nav-tabs > li:not(.active) > a:hover,
[data-theme="dark"] .train-page .nav-tabs > li:not(.active) > a:focus {
    border-color: #566572 !important;
    background-color: #2a343d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .train-page .nav-tabs > li.active > a,
[data-theme="dark"] .train-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] .train-page .nav-tabs > li.active > a:focus {
    border: 1px solid #ffffff !important;
    border-bottom-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .train-page .nav-tabs > li.active > a *,
[data-theme="dark"] .train-page .nav-tabs > li.active > a:hover *,
[data-theme="dark"] .train-page .nav-tabs > li.active > a:focus * {
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .train-page .panel,
[data-theme="dark"] .train-page .panel-body,
[data-theme="dark"] .train-page .thumbnail,
[data-theme="dark"] .train-page .content_box_w,
[data-theme="dark"] .train-page .div_tabwbox,
[data-theme="dark"] .train-page .list-group-item {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page .panel-heading,
[data-theme="dark"] .train-page .head_box_w {
    border-color: var(--hl-surface-border) !important;
    background-color: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page #train-content-field,
[data-theme="dark"] .train-page #train-content-field p,
[data-theme="dark"] .train-page #train-content-field li,
[data-theme="dark"] .train-page #train-content-field h1,
[data-theme="dark"] .train-page #train-content-field h2,
[data-theme="dark"] .train-page #train-content-field h3,
[data-theme="dark"] .train-page #train-content-field h4,
[data-theme="dark"] .train-page #train-content-field h5,
[data-theme="dark"] .train-page #train-content-field h6 {
    border-color: var(--hl-surface-border) !important;
    background-color: transparent !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page #train-content-field blockquote {
    border-color: #ff9c7a !important;
    background-color: #28323b !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .train-page #train-content-field table,
[data-theme="dark"] .train-page table.resource,
[data-theme="dark"] .train-page #train-content-field tbody,
[data-theme="dark"] .train-page table.resource tbody,
[data-theme="dark"] .train-page #train-content-field tr,
[data-theme="dark"] .train-page table.resource tr,
[data-theme="dark"] .train-page #train-content-field td,
[data-theme="dark"] .train-page table.resource td {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page #train-content-field th,
[data-theme="dark"] .train-page table.resource th,
[data-theme="dark"] .train-page #train-content-field tr:nth-child(2n),
[data-theme="dark"] .train-page table.resource tr:nth-child(2n),
[data-theme="dark"] .train-page .table-topic-row > td {
    border-color: var(--hl-surface-border) !important;
    background-color: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page #train-content-field pre,
[data-theme="dark"] .train-page #train-content-field code {
    border-color: #44515d !important;
    background-color: #11171c !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .train-page #train-content-field pre code {
    background-color: transparent !important;
}

[data-theme="dark"] .train-page .problem-algorithm-tag-field-item {
    border-color: #4a5864 !important;
    background-color: #303b45 !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page .main-martor,
[data-theme="dark"] .train-page .main-martor-content,
[data-theme="dark"] .train-page .section-martor,
[data-theme="dark"] .train-page .martor-preview,
[data-theme="dark"] .train-page .ui.bottom.attached.tab.active.martor-preview {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .train-page .martor-preview h1,
[data-theme="dark"] .train-page .martor-preview h2,
[data-theme="dark"] .train-page .martor-preview h3,
[data-theme="dark"] .train-page .martor-preview h4,
[data-theme="dark"] .train-page .martor-preview h5,
[data-theme="dark"] .train-page .martor-preview h6,
[data-theme="dark"] .train-page .martor-preview p,
[data-theme="dark"] .train-page .martor-preview li,
[data-theme="dark"] .train-page .martor-preview strong {
    border-color: var(--hl-surface-border) !important;
    background-color: transparent !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page .martor-preview blockquote {
    border-color: #ff9c7a !important;
    background-color: #28323b !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .train-page .martor-preview table,
[data-theme="dark"] .train-page .martor-preview thead,
[data-theme="dark"] .train-page .martor-preview tbody,
[data-theme="dark"] .train-page .martor-preview tr,
[data-theme="dark"] .train-page .martor-preview th,
[data-theme="dark"] .train-page .martor-preview td {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page .martor-preview th,
[data-theme="dark"] .train-page .martor-preview tr:nth-child(2n) {
    background-color: #28323b !important;
}

[data-theme="dark"] .train-page .martor-preview pre,
[data-theme="dark"] .train-page .martor-preview code {
    border-color: #44515d !important;
    background-color: #11171c !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .train-page #code_tool_bar {
    border-color: var(--hl-surface-border) !important;
    background: #202830 !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .train-page #code_tool_bar .btn-link,
[data-theme="dark"] .train-page #code_tool_bar .glyphicon,
[data-theme="dark"] .train-page #code_tool_bar .editor_tool_btn,
[data-theme="dark"] .train-page #code_tool_bar .editor_tool_refresh_btn {
    color: #e7edf2 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-toolbar,
[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror,
[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror-scroll,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-html-preview {
    border-color: var(--hl-surface-border) !important;
    background: #161c22 !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-toolbar {
    background: #28323b !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-menu > li > a,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-toolbar-icons,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-toolbar-icons > li,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-toolbar-icons > li > a {
    border-color: transparent !important;
    background-color: transparent !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-menu > li > a:hover,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-toolbar-icons > li > a:hover {
    border-color: #566572 !important;
    background-color: #36424d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror-gutters,
[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror-gutter {
    border-color: var(--hl-surface-border) !important;
    background: #11171c !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror-linenumber {
    color: #9ca9b5 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror-cursor {
    border-left-color: #ffffff !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror-selected,
[data-theme="dark"] .train-page .editormd.editormd-vertical .CodeMirror-focused .CodeMirror-selected {
    background: #3f5366 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-divider,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-close-btn {
    border-color: var(--hl-surface-border) !important;
    background: #303b45 !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container h1,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container h2,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container h3,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container h4,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container h5,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container h6 {
    border-color: var(--hl-surface-border) !important;
    color: #f0f4f8 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container blockquote {
    border-color: #ff9c7a !important;
    background: #28323b !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container table,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container th,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container td {
    border-color: var(--hl-surface-border) !important;
    background: #202830 !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container pre,
[data-theme="dark"] .train-page .editormd.editormd-vertical .editormd-preview-container code {
    border-color: #44515d !important;
    background: #11171c !important;
    color: #e7edf2 !important;
}

/* ===== 比赛模块主题覆盖 ===== */
.competition-page {
    --competition-accent: #fa541c;
    --competition-accent-hover: #d4380d;
}

[data-theme="light"] .competition-page a:not(.btn):not(.label),
[data-theme="light"] .competition-page .btn-link,
[data-theme="light"] .competition-page .team-pin-btn:hover,
[data-theme="light"] .competition-page .team-pin-btn.pinned {
    color: var(--competition-accent) !important;
}

[data-theme="light"] .competition-page .nav-tabs > li.active > a,
[data-theme="light"] .competition-page .nav-tabs > li.active > a:hover,
[data-theme="light"] .competition-page .nav-tabs > li.active > a:focus,
[data-theme="light"] .competition-page .btn-primary,
[data-theme="light"] .competition-page .btn-info,
[data-theme="light"] .competition-page .btn-warning,
[data-theme="light"] .competition-page .pagination > .active > a,
[data-theme="light"] .competition-page .pagination > .active > span {
    border-color: var(--competition-accent) !important;
    background-color: var(--competition-accent) !important;
    color: #ffffff !important;
}

[data-theme="light"] .competition-page .btn-primary:hover,
[data-theme="light"] .competition-page .btn-primary:focus,
[data-theme="light"] .competition-page .btn-info:hover,
[data-theme="light"] .competition-page .btn-info:focus,
[data-theme="light"] .competition-page .btn-warning:hover,
[data-theme="light"] .competition-page .btn-warning:focus {
    border-color: var(--competition-accent-hover) !important;
    background-color: var(--competition-accent-hover) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .competition-page {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-page a:not(.btn):not(.label) {
    color: #ff9c7a !important;
}

[data-theme="dark"] .competition-page .panel,
[data-theme="dark"] .competition-page .panel-body,
[data-theme="dark"] .competition-page .well,
[data-theme="dark"] .competition-page .thumbnail,
[data-theme="dark"] .competition-page .modal-content,
[data-theme="dark"] .competition-page .modal-body,
[data-theme="dark"] .competition-page .list-group-item,
[data-theme="dark"] .competition-page .content_box_w,
[data-theme="dark"] .competition-page .content_box,
[data-theme="dark"] .competition-page .div_tabwbox,
[data-theme="dark"] .competition-page .activity-index-block,
[data-theme="dark"] .competition-page .table,
[data-theme="dark"] .competition-page .table-responsive,
[data-theme="dark"] .competition-page .form-control,
[data-theme="dark"] .competition-page select,
[data-theme="dark"] .competition-page textarea,
[data-theme="dark"] .competition-page .input-group-addon {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-page .panel-heading,
[data-theme="dark"] .competition-page .panel-footer,
[data-theme="dark"] .competition-page .modal-header,
[data-theme="dark"] .competition-page .modal-footer,
[data-theme="dark"] .competition-page .team-header:not(.calendar-day),
[data-theme="dark"] .competition-page .table > thead > tr > th,
[data-theme="dark"] .competition-page .table-striped > tbody > tr:nth-of-type(odd) {
    border-color: var(--hl-surface-border) !important;
    background-color: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-page .table > tbody > tr > td,
[data-theme="dark"] .competition-page .table > tbody > tr > th,
[data-theme="dark"] .competition-page .table > tfoot > tr > td,
[data-theme="dark"] .competition-page .table > tfoot > tr > th,
[data-theme="dark"] .competition-page .table > thead > tr > th {
    border-color: var(--hl-surface-border) !important;
    color: var(--hl-page-text);
}

[data-theme="dark"] .competition-page .activity_title,
[data-theme="dark"] .competition-page .activity_desc,
[data-theme="dark"] .competition-page .activity_abstract,
[data-theme="dark"] .competition-page .activity_th,
[data-theme="dark"] .competition-page .activity_td,
[data-theme="dark"] .competition-page h1,
[data-theme="dark"] .competition-page h2,
[data-theme="dark"] .competition-page h3,
[data-theme="dark"] .competition-page h4,
[data-theme="dark"] .competition-page h5,
[data-theme="dark"] .competition-page h6,
[data-theme="dark"] .competition-page label:not(.label) {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-page .wbox_tab:not(.contest_status):not([class*="contest_state_"]) {
    border-color: var(--hl-surface-border) !important;
    background: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-page .nav-tabs {
    border-bottom-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] .competition-page .nav-tabs > li > a {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    background-image: none !important;
    color: var(--hl-page-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .competition-page .nav-tabs > li.active > a,
[data-theme="dark"] .competition-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] .competition-page .nav-tabs > li.active > a:focus {
    border: 1px solid #ffffff !important;
    border-bottom-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .competition-page .nav-tabs > li.active > a *,
[data-theme="dark"] .competition-page .nav-tabs > li.active > a:hover *,
[data-theme="dark"] .competition-page .nav-tabs > li.active > a:focus * {
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .competition-page .main-martor,
[data-theme="dark"] .competition-page .main-martor-content,
[data-theme="dark"] .competition-page .section-martor,
[data-theme="dark"] .competition-page .martor-preview,
[data-theme="dark"] .competition-page .ui.bottom.attached.tab.active.martor-preview,
[data-theme="dark"] .competition-page .markdown-body,
[data-theme="dark"] .competition-page .editormd-preview-container,
[data-theme="dark"] .competition-page .editormd-html-preview {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .competition-page .martor-preview h1,
[data-theme="dark"] .competition-page .martor-preview h2,
[data-theme="dark"] .competition-page .martor-preview h3,
[data-theme="dark"] .competition-page .martor-preview h4,
[data-theme="dark"] .competition-page .martor-preview h5,
[data-theme="dark"] .competition-page .martor-preview h6,
[data-theme="dark"] .competition-page .martor-preview p,
[data-theme="dark"] .competition-page .martor-preview li,
[data-theme="dark"] .competition-page .markdown-body h1,
[data-theme="dark"] .competition-page .markdown-body h2,
[data-theme="dark"] .competition-page .markdown-body h3,
[data-theme="dark"] .competition-page .markdown-body h4,
[data-theme="dark"] .competition-page .markdown-body h5,
[data-theme="dark"] .competition-page .markdown-body h6 {
    border-color: var(--hl-surface-border) !important;
    background: transparent !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-page .martor-preview table,
[data-theme="dark"] .competition-page .martor-preview tr,
[data-theme="dark"] .competition-page .martor-preview th,
[data-theme="dark"] .competition-page .martor-preview td,
[data-theme="dark"] .competition-page .markdown-body table,
[data-theme="dark"] .competition-page .markdown-body tr,
[data-theme="dark"] .competition-page .markdown-body th,
[data-theme="dark"] .competition-page .markdown-body td {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-page .martor-preview blockquote,
[data-theme="dark"] .competition-page .markdown-body blockquote {
    border-color: #ff9c7a !important;
    background: #28323b !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .competition-page .martor-preview pre,
[data-theme="dark"] .competition-page .martor-preview code,
[data-theme="dark"] .competition-page .markdown-body pre,
[data-theme="dark"] .competition-page .markdown-body code {
    border-color: #44515d !important;
    background: #11171c !important;
    color: #e7edf2 !important;
}

/* 比赛工作台仅由 workbench_kind=competition 添加此作用域。 */
[data-theme="dark"] .workbench-page.competition-workbench-page,
[data-theme="dark"] .competition-workbench-page .workbench-shell,
[data-theme="dark"] .competition-workbench-page .workbench-left-frame,
[data-theme="dark"] .competition-workbench-page .workbench-right-pane,
[data-theme="dark"] .competition-workbench-page .workbench-right-editor,
[data-theme="dark"] .competition-workbench-page .workbench-right-bottom,
[data-theme="dark"] .competition-workbench-page .workbench-status-panel,
[data-theme="dark"] .competition-workbench-page #code_tool_bar {
    border-color: var(--hl-surface-border) !important;
    background: #161c22 !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-workbench-page .workbench-right-editor,
[data-theme="dark"] .competition-workbench-page .workbench-right-bottom,
[data-theme="dark"] .competition-workbench-page .workbench-status-panel,
[data-theme="dark"] .competition-workbench-page #code_tool_bar {
    background: #202830 !important;
}

[data-theme="dark"] .competition-workbench-page .workbench-divider {
    background: #303b45 !important;
}

[data-theme="dark"] .competition-workbench-page .workbench-divider:hover,
[data-theme="dark"] .competition-workbench-page .workbench-divider.is-dragging {
    background: #566572 !important;
}

[data-theme="dark"] .competition-workbench-page .workbench-divider::after {
    background: #9ca9b5 !important;
}

[data-theme="dark"] .competition-workbench-page .workbench-right-bottom .panel,
[data-theme="dark"] .competition-workbench-page .workbench-right-bottom .panel-heading,
[data-theme="dark"] .competition-workbench-page .workbench-right-bottom .panel-body,
[data-theme="dark"] .competition-workbench-page #submit-code-status-block,
[data-theme="dark"] .competition-workbench-page #run-code-status-block,
[data-theme="dark"] .competition-workbench-page #run-code-stdout,
[data-theme="dark"] .competition-workbench-page #run-code-expected-stdout {
    border-color: var(--hl-surface-border) !important;
    background: #202830 !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-workbench-page input,
[data-theme="dark"] .competition-workbench-page textarea,
[data-theme="dark"] .competition-workbench-page select,
[data-theme="dark"] .competition-workbench-page pre,
[data-theme="dark"] .competition-workbench-page code {
    border-color: #44515d !important;
    background-color: #11171c !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__dialog,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__progress,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__metric,
[data-theme="dark"] .competition-workbench-page ~ .workbench-challenge-modal .workbench-challenge-modal__dialog,
[data-theme="dark"] .competition-workbench-page ~ .workbench-challenge-modal .workbench-challenge-modal__header,
[data-theme="dark"] .competition-workbench-page ~ .workbench-challenge-modal .workbench-challenge-modal__body {
    border-color: var(--hl-surface-border) !important;
    background: #202830 !important;
    background-image: none !important;
    color: var(--hl-page-text) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__title,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__headline,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__progress-label,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__metric-value {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__subtitle,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__detail,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__progress-value,
[data-theme="dark"] .competition-workbench-page ~ .workbench-submit-modal .workbench-submit-modal__metric-label {
    color: var(--hl-page-muted-text) !important;
}

/* ===== 考试/试卷内容页暗色主题 ===== */
[data-theme="dark"] .exam-content-page .panel,
[data-theme="dark"] .exam-content-page .panel-body,
[data-theme="dark"] .exam-content-page .well,
[data-theme="dark"] .exam-content-page .modal-content,
[data-theme="dark"] .exam-content-page .modal-body,
[data-theme="dark"] .exam-content-page .table,
[data-theme="dark"] .exam-content-page .table-responsive,
[data-theme="dark"] .exam-content-page .form-control,
[data-theme="dark"] .exam-content-page select,
[data-theme="dark"] .exam-content-page textarea,
[data-theme="dark"] .exam-content-page .input-group-addon {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-content-page .panel-heading,
[data-theme="dark"] .exam-content-page .panel-footer,
[data-theme="dark"] .exam-content-page .modal-header,
[data-theme="dark"] .exam-content-page .modal-footer,
[data-theme="dark"] .exam-content-page .table > thead > tr > th,
[data-theme="dark"] .exam-content-page .table-striped > tbody > tr:nth-of-type(odd) {
    border-color: var(--hl-surface-border) !important;
    background-color: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-content-page .table > tbody > tr > td,
[data-theme="dark"] .exam-content-page .table > tbody > tr > th,
[data-theme="dark"] .exam-content-page .table > tfoot > tr > td,
[data-theme="dark"] .exam-content-page .table > tfoot > tr > th,
[data-theme="dark"] .exam-content-page .table > thead > tr > th {
    border-color: var(--hl-surface-border) !important;
    color: var(--hl-page-text);
}

[data-theme="dark"] .exam-content-page h1,
[data-theme="dark"] .exam-content-page h2,
[data-theme="dark"] .exam-content-page h3,
[data-theme="dark"] .exam-content-page h4,
[data-theme="dark"] .exam-content-page h5,
[data-theme="dark"] .exam-content-page h6,
[data-theme="dark"] .exam-content-page .exam-page-title,
[data-theme="dark"] .exam-content-page .exerise_title,
[data-theme="dark"] .exam-content-page label:not(.label) {
    color: var(--hl-page-text) !important;
}

/* 答题卡面板 */
[data-theme="dark"] .exam-content-page .panel_answer_body_css {
    background: #202830 !important;
    border-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] .exam-content-page .panel_answer_body .list-item {
    background: #2c3640 !important;
    color: #bbb !important;
    border-color: #44515d !important;
}

[data-theme="dark"] .exam-content-page .panel_answer_body .list-item.active {
    background: #337ab7 !important;
    color: #fff !important;
    border-color: #286090 !important;
}

[data-theme="dark"] .exam-content-page .panel_answer_body .list-item.sq-current-card {
    background: #286090 !important;
    color: #fff !important;
    border-color: #1d4f7a !important;
}

/* 答题卡侧栏标题 */
[data-theme="dark"] .exam-content-page .side-main h5,
[data-theme="dark"] .exam-content-page .chart-hd h4,
[data-theme="dark"] .exam-content-page .chart-hd h5,
[data-theme="dark"] .exam-content-page .chart-hd span {
    color: var(--hl-page-text) !important;
}

/* alert-info 选项区 */
[data-theme="dark"] .exam-content-page .alert-info {
    background-color: #1e2d3d !important;
    border-color: #2c4560 !important;
    color: #bcd5f0 !important;
}

/* exam-countdown 倒计时 */
[data-theme="dark"] .exam-content-page .exam-countdown {
    background: #2c1810 !important;
    border-color: #5c3a2e !important;
    color: #f09070 !important;
}

/* 画笔工具条 */
[data-theme="dark"] .exam-content-page #exam-drawing-tools,
[data-theme="dark"] .exam-content-page #gesp-drawing-tools {
    background: rgba(22, 28, 34, 0.96) !important;
    border-color: #44515d !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.4) !important;
}

[data-theme="dark"] .exam-content-page #exam-drawing-tools .btn:not(.is-active),
[data-theme="dark"] .exam-content-page #gesp-drawing-tools .btn:not(.is-active) {
    background: #28323b !important;
    color: #ccc !important;
    border-color: #44515d !important;
}

/* 答题卡打开按钮 */
[data-theme="dark"] .exam-content-page #answer-card-open-btn {
    background: #1d4f7a !important;
}

[data-theme="dark"] .exam-content-page #togglePanelBtn {
    color: #aaa !important;
}

/* copy-code-btn */
[data-theme="dark"] .exam-content-page .copy-code-btn {
    background: #2c3640 !important;
    border-color: #44515d !important;
    color: #ccc !important;
}

/* markdown / code / pre */
[data-theme="dark"] .exam-content-page pre,
[data-theme="dark"] .exam-content-page code {
    border-color: #44515d !important;
    background-color: #11171c !important;
    color: #e7edf2 !important;
}

[data-theme="dark"] .exam-content-page .markdown-body {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-content-page .markdown-body h1,
[data-theme="dark"] .exam-content-page .markdown-body h2,
[data-theme="dark"] .exam-content-page .markdown-body h3,
[data-theme="dark"] .exam-content-page .markdown-body h4,
[data-theme="dark"] .exam-content-page .markdown-body h5,
[data-theme="dark"] .exam-content-page .markdown-body h6 {
    border-color: var(--hl-surface-border) !important;
    background: transparent !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-content-page .markdown-body table,
[data-theme="dark"] .exam-content-page .markdown-body tr,
[data-theme="dark"] .exam-content-page .markdown-body th,
[data-theme="dark"] .exam-content-page .markdown-body td {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-content-page .markdown-body blockquote {
    border-color: #ff9c7a !important;
    background: #28323b !important;
    color: var(--hl-page-muted-text) !important;
}

/* 导航tabs */
[data-theme="dark"] .exam-content-page .nav-tabs {
    border-bottom-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] .exam-content-page .nav-tabs > li > a {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .exam-content-page .nav-tabs > li.active > a,
[data-theme="dark"] .exam-content-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] .exam-content-page .nav-tabs > li.active > a:focus {
    background: #202830 !important;
    color: var(--hl-page-text) !important;
    border-color: var(--hl-surface-border) !important;
    border-bottom-color: transparent !important;
}

/* ===== GESP 特有暗色主题 ===== */

/* 悬浮答题卡 */
[data-theme="dark"] .exam-content-page .floating-exam-card {
    background: #202830 !important;
    border-color: var(--hl-surface-border) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .exam-content-page .exam-card-drag-handle {
    background: linear-gradient(135deg, #23527c 0%, #1a3a54 100%) !important;
}

/* GESP list-item */
[data-theme="dark"] .exam-content-page .list-item {
    color: #aaa !important;
    background: #2c3640 !important;
    border-color: #44515d !important;
}

[data-theme="dark"] .exam-content-page .list-item:hover {
    color: #fff !important;
    background: #337ab7 !important;
}

[data-theme="dark"] .exam-content-page .list-item.active {
    color: #fff !important;
    background: #f0ad4e !important;
    border-color: #eea236 !important;
}

/* GESP 固定倒计时 */
[data-theme="dark"] .exam-content-page #fixedCountdown {
    background: #28323b !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .exam-content-page #fixedCountdown h4 {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-content-page #digitalTimer {
    color: #f09070 !important;
}

/* hr分割线 */
[data-theme="dark"] .exam-content-page hr {
    border-top-color: var(--hl-surface-border) !important;
}

/* 报名购买modal */
[data-theme="dark"] .exam-content-page #activity_register_introduction_pay_modal .modal-content {
    background-color: #2c2820 !important;
}

/* ===== 考试合集详情页暗色主题 ===== */
[data-theme="dark"] .exam-collection-page .panel,
[data-theme="dark"] .exam-collection-page .panel-body,
[data-theme="dark"] .exam-collection-page .well,
[data-theme="dark"] .exam-collection-page .modal-content,
[data-theme="dark"] .exam-collection-page .modal-body,
[data-theme="dark"] .exam-collection-page .table,
[data-theme="dark"] .exam-collection-page .table-responsive,
[data-theme="dark"] .exam-collection-page .form-control,
[data-theme="dark"] .exam-collection-page select,
[data-theme="dark"] .exam-collection-page textarea,
[data-theme="dark"] .exam-collection-page .input-group-addon {
    border-color: var(--hl-surface-border) !important;
    background-color: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-collection-page .panel-heading,
[data-theme="dark"] .exam-collection-page .panel-footer,
[data-theme="dark"] .exam-collection-page .modal-header,
[data-theme="dark"] .exam-collection-page .modal-footer,
[data-theme="dark"] .exam-collection-page .table > thead > tr > th,
[data-theme="dark"] .exam-collection-page .table-striped > tbody > tr:nth-of-type(odd) {
    border-color: var(--hl-surface-border) !important;
    background-color: #28323b !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-collection-page .table > tbody > tr > td,
[data-theme="dark"] .exam-collection-page .table > tbody > tr > th,
[data-theme="dark"] .exam-collection-page .table > tfoot > tr > td,
[data-theme="dark"] .exam-collection-page .table > tfoot > tr > th,
[data-theme="dark"] .exam-collection-page .table > thead > tr > th {
    border-color: var(--hl-surface-border) !important;
    color: var(--hl-page-text);
}

[data-theme="dark"] .exam-collection-page h1,
[data-theme="dark"] .exam-collection-page h2,
[data-theme="dark"] .exam-collection-page h3,
[data-theme="dark"] .exam-collection-page h4,
[data-theme="dark"] .exam-collection-page h5,
[data-theme="dark"] .exam-collection-page h6,
[data-theme="dark"] .exam-collection-page .exam-page-title,
[data-theme="dark"] .exam-collection-page .exerise_title,
[data-theme="dark"] .exam-collection-page label:not(.label) {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-collection-page .text-info {
    color: #5bc0de !important;
}

/* 导航tabs - active白底黑字 */
[data-theme="dark"] .exam-collection-page .nav-tabs {
    border-bottom-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] .exam-collection-page .nav-tabs > li > a {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .exam-collection-page .nav-tabs > li.active > a,
[data-theme="dark"] .exam-collection-page .nav-tabs > li.active > a:hover,
[data-theme="dark"] .exam-collection-page .nav-tabs > li.active > a:focus {
    color: #222 !important;
    background: #fff !important;
    border-color: var(--hl-surface-border) !important;
    border-bottom-color: transparent !important;
}

/* 合集信息行 */
[data-theme="dark"] .exam-collection-page .member-name--,
[data-theme="dark"] .exam-collection-page .member-name--vip,
[data-theme="dark"] .exam-collection-page .member-name--svip {
    color: var(--hl-page-text) !important;
}

/* 购买modal */
[data-theme="dark"] .exam-collection-page #exam-purchase-modal .modal-content {
    background-color: #2c2820 !important;
}

[data-theme="dark"] .exam-collection-page #exam-purchase-modal .notice {
    color: #f0a0a0 !important;
}

/* markdown-body */
[data-theme="dark"] .exam-collection-page .markdown-body {
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-collection-page .markdown-body h1,
[data-theme="dark"] .exam-collection-page .markdown-body h2,
[data-theme="dark"] .exam-collection-page .markdown-body h3,
[data-theme="dark"] .exam-collection-page .markdown-body h4,
[data-theme="dark"] .exam-collection-page .markdown-body h5,
[data-theme="dark"] .exam-collection-page .markdown-body h6 {
    border-color: var(--hl-surface-border) !important;
    background: transparent !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-collection-page .markdown-body blockquote {
    border-color: #ff9c7a !important;
    background: #28323b !important;
    color: var(--hl-page-muted-text) !important;
}

[data-theme="dark"] .exam-collection-page .markdown-body table,
[data-theme="dark"] .exam-collection-page .markdown-body tr,
[data-theme="dark"] .exam-collection-page .markdown-body th,
[data-theme="dark"] .exam-collection-page .markdown-body td {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

/* code / pre */
[data-theme="dark"] .exam-collection-page pre,
[data-theme="dark"] .exam-collection-page code {
    border-color: #44515d !important;
    background-color: #11171c !important;
    color: #e7edf2 !important;
}

/* hr分割线 */
[data-theme="dark"] .exam-collection-page hr {
    border-top-color: var(--hl-surface-border) !important;
}

/* Markdown编辑区 */
[data-theme="dark"] .exam-collection-page #markdown-edit-textarea {
    background: #11171c !important;
    color: #e7edf2 !important;
    border-color: #44515d !important;
}

/* video-card */
[data-theme="dark"] .exam-collection-page .video-card {
    background: var(--hl-surface-background) !important;
    border-color: var(--hl-surface-border) !important;
}

[data-theme="dark"] .exam-collection-page .video-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .exam-collection-page .video-card .video-title a {
    color: #ccc !important;
}

[data-theme="dark"] .exam-collection-page .video-card .video-title a:hover {
    color: #5bc0de !important;
}

[data-theme="dark"] .exam-collection-page .video-card .video-meta {
    color: #888 !important;
}

/* table-bordered */
[data-theme="dark"] .exam-collection-page .table-bordered,
[data-theme="dark"] .exam-collection-page .table-bordered > thead > tr > th,
[data-theme="dark"] .exam-collection-page .table-bordered > tbody > tr > td {
    border-color: var(--hl-surface-border) !important;
}

/* 提交页特有：analysis-table / grid-table */
[data-theme="dark"] .exam-collection-page .analysis-table th,
[data-theme="dark"] .exam-collection-page .analysis-table td {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-collection-page .grid-table th,
[data-theme="dark"] .exam-collection-page .grid-table td {
    border-color: var(--hl-surface-border) !important;
    background: var(--hl-surface-background) !important;
    color: var(--hl-page-text) !important;
}

[data-theme="dark"] .exam-collection-page .grid-table th.qnum {
    color: #888 !important;
}

[data-theme="dark"] .exam-collection-page .grid-table td.sticky,
[data-theme="dark"] .exam-collection-page .grid-table th.sticky {
    background: #202830 !important;
}

[data-theme="dark"] .exam-collection-page .grid-legend {
    color: #aaa !important;
}

/* 试卷页：search-row / topic-row */
[data-theme="dark"] .exam-collection-page .table-topic-row {
    background-color: #28323b !important;
}

/* 空状态提示 */
[data-theme="dark"] .exam-collection-page .text-muted {
    color: #888 !important;
}

/* ===== 全站会员头像标识 ===== */
.member-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.member-avatar__img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

/* 大会员 - 金色环 */
.member-avatar--premium .member-avatar__img {
    border: 2px solid #fadb14;
    box-shadow: 0 0 0 1px rgba(250, 219, 20, 0.45), 0 0 4px rgba(250, 219, 20, 0.35);
}

/* AI 会员 - 紫色环 */
.member-avatar--ai .member-avatar__img {
    border: 2px solid #b37feb;
    box-shadow: 0 0 0 1px rgba(179, 127, 235, 0.45), 0 0 4px rgba(179, 127, 235, 0.35);
}

/* SVIP - 金色渐变环 */
.member-avatar--svip .member-avatar__img {
    border: 2px solid #ffd666;
    box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.5), 0 0 6px rgba(255, 214, 102, 0.45);
}

/* 大会员名字颜色 */
.member-name--premium {
    color: #fadb14;
    font-weight: 620;
}

.member-name--ai {
    color: #b37feb;
    font-weight: 620;
}

.member-name--svip {
    color: #ffd666;
    font-weight: 700;
}

@media (max-width: 1180px) {
    :root {
        --hl-site-nav-height: 60px;
    }

    .hl-site-nav__inner {
        width: calc(100% - 28px);
    }

    .hl-site-nav__brand {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }

    .hl-site-nav__brand img {
        width: 36px;
        height: 36px;
    }

    .hl-site-nav__toggle {
        display: inline-flex;
    }

    .hl-site-nav__collapse.collapse {
        position: absolute;
        top: var(--hl-site-nav-height);
        right: -14px;
        left: -14px;
        display: none !important;
        max-height: calc(100vh - var(--hl-site-nav-height));
        padding: 10px 16px 16px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border-top: 1px solid #343c44;
        background: var(--hl-site-nav-background);
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
    }

    .hl-site-nav__collapse.collapse.in {
        display: block !important;
    }

    .hl-site-nav__primary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        width: 100%;
    }

    .hl-site-nav__primary > li {
        display: block;
        min-width: 0;
    }

    .hl-site-nav__link {
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 12px;
    }

    .hl-site-nav__primary > .active > .hl-site-nav__link::after {
        top: 50%;
        bottom: auto;
        left: 4px;
        width: 2px;
        height: 18px;
        transform: translateY(-50%);
    }

    .hl-site-nav__primary .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 2px 0 6px;
        box-shadow: none;
    }

    .hl-site-nav__account {
        gap: 8px;
        padding-left: 8px;
    }

    .hl-site-nav__register-item {
        display: none;
    }

    .hl-site-nav__login-link {
        min-height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .hl-site-nav__login-link {
        max-width: 70px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hl-site-nav *,
    .hl-site-nav *::before,
    .hl-site-nav *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hl-site-nav__chat-link.is-unread .glyphicon-comment {
        animation: none;
    }
}

@media print {
    .hl-site-nav {
        display: none !important;
    }

    .base_body {
        padding-top: 0 !important;
    }
}
