@charset "UTF-8";

/*白天*/
[data-bs-theme=light] {
    --bs-body-bg1: #f0f2f5;
    --bs-thread-border-color: #e9ecef;
    --bs-thread-post-bg: #bec2cd;
    --dark: #343a40;
    --no-data: #dcdcdc;
    --blockquote: #e9ecef;
    --blockquote-bg: #fafafa;
    --pre-bg: #e9ecef;
    --bs-link-color: #343a40;
}

/*暗黑模式*/
[data-bs-theme=dark] {
    --bs-body-bg1: #18171d;
    --bs-thread-border-color: #28262d;
    --bs-thread-post-bg: #333;
    --no-data: #434a51;
    --blockquote: #3b434b;
    --blockquote-bg: #5f5f5f;
    --pre-bg: #3b3b3b;

    a {
        color: #e0e0e0
    }

    .text-black-50 {
        color: rgba(134, 142, 150, 0.8) !important
    }

    .navbar,
    .forum_list,
    #footer {
        background: #212529 !important;
    }

    .EasyMDEContainer .editor-toolbar button.active,
    .EasyMDEContainer .editor-toolbar button:hover {
        color: #000;
    }

    .EasyMDEContainer .editor-toolbar.fullscreen {
        background-color: #212529 !important;
    }

    .EasyMDEContainer .CodeMirror-scroll {
        color: #fff;
        background-color: #212529 !important;
    }

    .EasyMDEContainer .CodeMirror-gutters {
        background-color: #212529 !important;
    }

    .layui-layer-dialog .layui-layer-content {
        color: #595959;
    }

    .layui-layer-btn .layui-layer-btn1 {
        color: #595959;
    }
}

html,
table {
    font-size: 14px
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, "Microsoft Yahei", "Hiragino Sans GB", "WenQuanYi Micro Hei", "微软雅黑", "华文细黑", STHeiti, sans-serif;
}

body {
    background-color: var(--bs-body-bg1);
}

a {
    color: var(--dark);
    text-decoration: none;
}
.line-height-1 {
    line-height: 1 !important;
}

.line-height-2 {
    line-height: 1.6 !important;
}

.line-height-3 {
    line-height: 2 !important;
}

.line-height-4 {
    line-height: 2.5 !important;
}

.line-height-5 {
    line-height: 3 !important;
}

.line-height-6 {
    line-height: 4 !important;
}

.avatar-1 {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 1.3rem;
}

.avatar-2 {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 1.8rem;
}

.avatar-3 {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 2.4rem;
}

.avatar-4 {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 4.5rem;
}

.avatar-5 {
    width: 6rem;
    height: 6rem;
    border-radius: 6rem;
}

/*card*/
.card {
    margin-bottom: 1rem;
}

.card .card-footer,
.card .card-header {
    background-image: none;
    background-color: transparent;
}

.card .card-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(178, 186, 194, .25);
}

.card .card-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(178, 186, 194, .25);
}

/* 页脚固定在底部 */
#header,
#body,
#footer {
    width: 100%;
}

#header {
    flex: 0 0 auto;
}

#body {
    flex: 1 0 auto;
}

#footer {
    flex: 0 0 auto;
}


/*板块栏*/
.forum_list {
    background: white;
    padding: 10px 0px;
}

.forum_list a.nav-link {
    color: #8590a6;
    margin-right: 5px;
    border-radius: 3px;
    padding: 0.375rem 10px;
}

.forum_list a.nav-link:hover {
    color: #0084ff;
    font-weight: 600;
    background: rgba(0, 102, 255, 0.18);
}

.forum_list .active a {
    color: #0084ff;
    font-weight: 600;
    background: rgba(158, 196, 255, 0.3);
}

/*主题*/
.card {
    border-radius: 5px;
    border: none;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, .08) !important;
}

.thread,
.post {
    border-bottom: 1px solid var(--bs-thread-border-color);
    padding: 0.7rem 0px;
}

.card-header-tabs>.nav-item>.nav-link.active::after {
    content: "";
    display: block;
    margin: 6px auto -10px;
    height: 4px;
    line-height: 14px;
    background-color: #409EFF;
}

.nav-tabs .nav-link.active {
    font-weight: 700;
    background: none;
}

.nav-tabs .nav-link {
    border: none;
}

.threadlist>.thread:last-child {
    border-bottom: 0;
}

.thread_pl {
    background: var(--bs-thread-post-bg);
    color: #fff;
    padding: 2px 10px 2px 10px;
    border-radius: 12px;
}

/*详情*/
.card.card-thread blockquote,
.card.card-postlist blockquote:not(.blockquote),
.mce-content-body blockquote:not(.blockquote) {
    padding: 8px 12px;
    line-height: 1.5;
    border-left: 3px solid #16b777;
    border-radius: 0 2px 2px 0;
    background-color: var(--blockquote-bg);
}

/*其他*/
.post-nodata,
.thread-nodata {
    color: var(--no-data);
}

#reply_content {
    overflow: hidden;
    overflow-wrap: break-word;
    resize: none;
    height: auto;
    min-height: 40px;
    transition: height 0.2s;
}

.breadcrumb {
    padding: 0.75rem 1rem;
    background-color: var(--bs-body-bg);
    border-radius: .25rem;
}

.card-header-dropdown .dropdown-menu {
    min-width: 8rem;
    padding: 0.25rem 0;
}

.card-header-dropdown .dropdown-menu .dropdown-item {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

.card-header-dropdown .dropdown-menu .dropdown-item i {
    display: inline-block;
    font-size: 12px;
    width: 12px;
}

.icon-top-1 {
    background-color: green;
}

.icon-top-2 {
    background-color: orange;
}

.icon-top-3 {
    background-color: red;

}

.icon-top-1,
.icon-top-2,
.icon-top-3 {
    font-size: 12px;
    color: #fff;
    padding: .125rem .25rem;
    border-radius: 3px
}

.EasyMDEContainer .CodeMirror {
    padding: 0 !important;
}

.postlist li.quote {
    background-color: var(--blockquote);
    animation: quote_animation 1s;
    -moz-animation: quote_animation 1s;
    -webkit-animation: quote_animation 1s;
    -o-animation: quote_animation 1s;
    background-image: url(../images/quote.png);
    background-repeat: no-repeat;
    background-position: top right;
}

@keyframes quote_animation {
    from {
        background-color: #177f2e;
    }

    to {
        background-color: #f8f9fa;
    }
}

/*markdown详情*/
.markdown-body code {
    background: rgba(90, 87, 87, 0);
    background-color: #f9fafa;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    margin: 5px;
    overflow-x: auto;
    padding: 2px 3px;
}

.markdown-body pre code {
    background: transparent;
    word-wrap: normal;
    border: 0;
    line-height: 24px;
    margin: 0;
    overflow: initial;
    padding: 0;
}

.markdown-body pre {
    padding: 1rem;
    max-height: 35rem;
    line-height: 1.5;
    background-color: var(--pre-bg);
    overflow: auto;
}

.markdown-body img {
    max-width: 100%;
    height: auto !important;
    margin: 5px 0;
}

.markdown-body .blockquote {
    font-size: .8rem;
    background-color: var(--blockquote);
    background-image: url(../images/quote.png);
    background-repeat: no-repeat;
    background-position: top right;
    padding: .5rem 1rem !important;
}
.markdown-body a:not(.user){
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: underline;
}
/*右侧工具*/
#rightside {
    position: fixed;
    right: 48px;
    bottom: 100px;
    z-index: 100;
}

#rightside button {
    font-size: 15px;
    border: none;
    display: block;
    margin-bottom: 5px;
    width: 35px;
    height: 35px;
}

/*个人主页*/
.user-background {
    width: 100%;
    padding-top: 20%;
    background: linear-gradient(45deg, #cee2fb, #88b8fd, #cee2fb);
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
}

/* 渐变动画 */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.user-panel {
    margin-top: -73px;
    padding: 0 20px 20px 20px;
}

.user-panel .avatar img {
    border: 4px solid #fff;
    background: #ccc;
    width: 152px;
    height: 152px;
}

.user-panel-info p {
    color: #797C80;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    word-break: break-all;
}

/*消息*/
.noticelist .notice {
    padding: 0.7rem 0;
}

.noticelist .notice:not(:last-child) {
    border-bottom: 1px solid var(--bs-thread-border-color);
}

.noticelist .notice .single-comment {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.noticelist .notice .single-comment a {
    color: #797C80;
}

.noticelist .notice .quote-comment {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #797C80;
}

.noticelist .notice .message .reply-comment {
    position: relative;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    background-color: var(--blockquote);
}

.noticelist .notice .message .reply-comment:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    left: 50px;
    border-width: 6px;
    border-style: solid;
    color: var(--blockquote);
    -webkit-transform-origin: 0 0;
    -webkit-transform: rotate(135deg);
    transform-origin: 0 0;
    transform: rotate(135deg);
}
.nav-item.usernotice.current > .nav-link > .unread {
    display: inline-block !important;
}