body {
    background: #f7f8fa;
}

.stat-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 22px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    margin-top: 6px;
    color: #6c757d;
}

.markdown-body {
    background: #fff;
    border: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    margin-top: 1.4em;
    margin-bottom: .6em;
}

.markdown-body h1:first-child,
.markdown-body h2:first-child {
    margin-top: 0;
}

.markdown-body pre {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.markdown-body code {
    background: #eef1f4;
    padding: 2px 5px;
    border-radius: 4px;
    color: #b42318;
}

.markdown-body pre code {
    display: block;
    background: transparent;
    padding: 0;
    color: #c9d1d9;
}

.markdown-body blockquote {
    margin: 1rem 0;
    border-left: 4px solid #2f9e44;
    padding: 10px 16px;
    color: #1f6f3d;
    background: #edf7f2;
    border-radius: 0 8px 8px 0;
}

.markdown-body blockquote p:last-child {
    margin-bottom: 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid #dee2e6;
    padding: 8px 10px;
}

.timeline {
    position: relative;
    padding-left: 22px;
    border-left: 2px solid #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
}

.timeline-date {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.timeline-content {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 14px 16px;
}
.top-navbar .navbar-brand,
.top-navbar .nav-link {
    padding-top: 4px;
    padding-bottom: 4px;
}

.top-navbar .btn,
.top-navbar .form-control {
    padding-top: 3px;
    padding-bottom: 3px;
}

.top-search {
    flex: 0 1 520px;
    min-width: 360px;
}

.top-search .form-control {
    min-width: 0;
}

.top-search-button {
    min-width: 56px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .top-search {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 8px;
    }
}
.note-title-input {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 18px;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.note-editor-layout .EasyMDEContainer .CodeMirror {
    height: calc(100vh - 230px);
    min-height: 520px;
}

.note-settings-card {
    border-radius: 8px;
}

.note-preview-panel {
    position: sticky;
    top: 52px;
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
}

.note-preview-title {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-bottom: 1px solid #e8eaed;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.note-live-preview {
    flex: 1 1 auto;
    padding: 18px;
    overflow: auto;
}

@media (max-width: 1199.98px) {
    .note-preview-panel {
        position: static;
        height: 620px;
    }
}
.app-main {
    max-width: 1920px;
    padding-left: 20px;
    padding-right: 20px;
}

.toast-bubble-stack {
    position: fixed;
    top: 24vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    pointer-events: none;
}

.toast-bubble {
    min-width: 120px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(33, 37, 41, .92);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
    font-size: 14px;
    text-align: center;
    animation: toastBubbleFade 1s ease forwards;
}

@keyframes toastBubbleFade {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    12%, 78% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}
.note-editor-column {
    position: relative;
}

.note-editor-layout .EasyMDEContainer .editor-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 4px;
    white-space: nowrap;
}

.note-editor-layout .EasyMDEContainer .editor-toolbar button,
.note-editor-layout .EasyMDEContainer .editor-toolbar a {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    line-height: 28px;
    padding: 0;
}

.note-editor-layout .EasyMDEContainer .editor-toolbar i.separator {
    flex: 0 0 auto;
    margin: 0 2px;
}
.note-list-main {
    color: #c9d1d9;
}

.note-list-main:hover {
    background: #f8f9fa;
}

.note-list-actions {
    background: #fff;
}
.top-note-filter .form-select {
    width: 112px;
}

.top-filter-button {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .top-note-filter {
        margin-bottom: 8px;
    }

    .top-note-filter .form-select {
        width: auto;
        min-width: 112px;
    }
}
.note-preview-panel .note-preview-title {
    display: none;
}

.note-live-preview {
    padding-top: 6px;
}

.note-live-preview h1,
.note-live-preview h2,
.note-live-preview h3 {
    text-align: center;
}

.note-live-preview h1:first-child,
.note-live-preview h2:first-child,
.note-live-preview h3:first-child {
    margin-top: 0;
}
.home-tag-section {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 12px 14px;
}

.home-tag-heading {
    margin-bottom: 10px;
    color: #212529;
    font-size: 15px;
    font-weight: 700;
}
.home-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-tag-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    color: #2f5d50;
    background: #edf7f2;
    border: 1px solid #d5eadf;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.home-tag-link:hover {
    color: #1f463b;
    background: #e0f1e8;
}

.home-tag-link span {
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
}

.markdown-body pre code.hljs {
    color: #c9d1d9;
    background: transparent;
}

.note-editor-layout .EasyMDEContainer .CodeMirror,
.note-editor-layout .EasyMDEContainer .CodeMirror pre,
.note-editor-layout .EasyMDEContainer .CodeMirror-code {
    color: #212529;
}

.note-editor-layout .EasyMDEContainer .cm-formatting-code,
.note-editor-layout .EasyMDEContainer .cm-comment,
.note-editor-layout .EasyMDEContainer .cm-string,
.note-editor-layout .EasyMDEContainer .cm-quote {
    color: #495057;
    background: transparent;
}

.note-editor-layout .EasyMDEContainer .cm-comment {
    font-style: normal;
}

.note-editor-layout .EasyMDEContainer .cm-formatting {
    color: #6c757d;
}

.note-editor-layout .EasyMDEContainer .cm-formatting-code,
.note-editor-layout .EasyMDEContainer .cm-formatting-code-block,
.note-editor-layout .EasyMDEContainer .cm-comment {
    color: #d63384;
    background: #fff0f6;
}

.note-editor-layout .EasyMDEContainer .cm-quote,
.note-editor-layout .EasyMDEContainer .cm-formatting-quote {
    color: #2f9e44;
    background: #edf7f2;
}

.note-editor-layout .EasyMDEContainer .cm-variable-2,
.note-editor-layout .EasyMDEContainer .cm-formatting-list,
.note-editor-layout .EasyMDEContainer .cm-formatting-list-ul,
.note-editor-layout .EasyMDEContainer .cm-formatting-list-ol {
    color: #000;
}

.note-editor-layout .EasyMDEContainer .cm-header,
.note-editor-layout .EasyMDEContainer .cm-formatting-header {
    color: #7b2cbf;
    font-weight: 700;
}

.note-editor-layout .EasyMDEContainer .cm-strong,
.note-editor-layout .EasyMDEContainer .cm-formatting-strong {
    color: #c92a2a;
    font-weight: 700;
}

.note-editor-layout .EasyMDEContainer .cm-em,
.note-editor-layout .EasyMDEContainer .cm-formatting-em {
    color: #e67700;
    font-style: italic;
}

.note-editor-layout .EasyMDEContainer .cm-link,
.note-editor-layout .EasyMDEContainer .cm-url,
.note-editor-layout .EasyMDEContainer .cm-formatting-link,
.note-editor-layout .EasyMDEContainer .cm-formatting-link-string {
    color: #0b7285;
}
/* 所有标题黑色 */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.card-title,
.navbar-brand,
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6,
.note-live-preview h1,
.note-live-preview h2,
.note-live-preview h3,
.note-live-preview h4,
.note-live-preview h5,
.note-live-preview h6,
.note-list-main .fw-semibold,
.home-tag-heading {
    color: #000 !important;
}

.note-editor-layout .EasyMDEContainer .cm-header,
.note-editor-layout .EasyMDEContainer .cm-formatting-header {
    color: #000 !important;
}

.editor-context-menu {
    position: fixed;
    z-index: 2000;
    min-width: 132px;
    padding: 6px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}

.editor-context-menu button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    color: #212529;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
}

.editor-context-menu button:hover {
    background: #f1f3f5;
}

.site-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.site-brand-title {
    color: #000;
    font-size: 17px;
    font-weight: 700;
}

.site-brand-solgan {
    margin-top: 2px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.stat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.stat-card-link:hover {
    color: inherit;
    border-color: #ced4da;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

