:root {
    /* 品牌色 */
    --color-primary: #5470C6;
    --color-primary-light: #6780CC;
    --color-primary-lighter: #8DA0D9;
    --color-primary-extra-light: #B4C0E6;
    --color-primary-extra-lighter: #F5F6FC;

    /* 成功色 */
    --color-success: #91CC75;
    --color-success-light: #A0D388;
    --color-success-lighter: #BFE1AD;
    --color-success-extra-light: #BEE1AD;
    --color-success-extra-lighter: #EAF5E5;

    /* 警告色 */
    --color-warning: #FAAD14;
    --color-warning-light: #FBC531;
    --color-warning-lighter: #FCD77E;
    --color-warning-extra-light: #FDE8C4;
    --color-warning-extra-lighter: #FFF8EC;

    /* 错误色 */
    --color-error: #F56C6C;
    --color-error-light: #F77A7A;
    --color-error-lighter: #F99A9A;
    --color-error-extra-light: #FBC1C1;
    --color-error-extra-lighter: #FFF5F5;
    --color-error-dark: #C45656;

    /* 信息色 */
    --color-info: #999999;
    --color-info-light: #9DA0A5;
    --color-info-lighter: #ABADB1;
    --color-info-extra-light: #D2D4D6;
    --color-info-extra-lighter: #F5F5F6;

    /* 文字颜色 */
    --text-color-primary: #303133;
    --text-color-regular: #606266;
    --text-color-secondary: #909399;
    --text-color-placeholder: #A8ABB2;
    --text-color-disabled: #C0C4CC;

    /* 背景颜色 */
    --bg-color: #F0F2F5;
    --bg-color-light: #F5F7FA;
    --bg-color-lighter: #FAFAFA;
    --bg-color-dark: #EBEDF0;
    --bg-color-darker: #E6E8EB;

    /* 边框颜色 */
    --border-color: #DCDFE6;
    --border-color-light: #E4E7ED;
    --border-color-lighter: #EBEEF5;
    --border-color-dark: #D4D7DE;
    --border-color-darker: #CDD0D6;

    /* 圆角 */
    --border-radius: 4px;
    --border-radius-small: 2px;
    --border-radius-large: 8px;
    --border-radius-larger: 12px;

    /* 阴影 */
    --box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);
    --box-shadow-light: 0px 0px 6px rgba(0, 0, 0, .08);
    --box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);
    --box-shadow-primary: 0 0 12px var(--color-primary);

    /* 宽度 */
    --page-contnet-width: 1320px;
}

* {
    box-sizing: border-box;
    flex-shrink: 0;
    outline: none;
}

html {
    height: 100%;
}

body {
    color: var(--text-color-primary);
    height: 100%;
    font-family: pingfang SC, 微软雅黑, helvetica neue, arial,
    hiragino sans gb, microsoft yahei ui, microsoft yahei, simsun, serif !important;
    margin: 0;
    overflow: auto;
    font-size: 14px;
    min-width: var(--page-contnet-width);
}

a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

[data-hide] {
    display: none !important;
}


/* 开始 ======================================= 颜色 */

.color-primary-g {
    color: var(--color-primary);
}

.color-success-g {
    color: var(--color-success);
}

.color-warning-g {
    color: var(--color-warning);
}

.color-error-g {
    color: var(--color-error);
}

.color-info-g {
    color: var(--color-info);
}

/* 结束 ======================================= 颜色 */


/* 开始 ======================================= 加载 */

@keyframes loading-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.icon-loading {
    animation: loading-animation 2s linear infinite;
}

/* 结束 ======================================= 加载 */


/* 开始 ======================================= 富文本编辑器 */

.vditor-wrapper {
    position: relative;
    height: 400px;
    border-color: var(--border-color);
    border-width: 1px;
    border-style: solid;
    border-radius: var(--border-radius);
    transition: .3s;
    overflow: hidden;
}

.vditor-wrapper:hover {
    border-color: var(--color-primary);
}

.vditor-wrapper .loading {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    color: var(--text-color-placeholder);
    flex-direction: column;
}

.vditor-wrapper .loading.visible {
    display: flex;
}

.vditor-wrapper .loading .icon-loading {
    margin-bottom: 12px;
    font-size: 24px;
}

.vditor-wrapper .upload {
    display: none;
}

.vditor {
    border: none !important;
}

.vditor .vditor-toolbar {
    padding: 0 12px !important;
}

.vditor .vditor-reset {
    padding: 12px !important;
    font-size: 14px !important;
}

/* 结束 ======================================= 富文本编辑器 */


/* 开始 ======================================= 外间距 */

.mt-24-g {
    margin-top: 24px;
}

/* 结束 ======================================= 外间距 */


/* 开始 ======================================= 文章列表 */

.topic-list-g {
    margin-top: 24px;
}

.topic-g {
    position: relative;
    display: block;
}

.topic-g + .topic-g {
    margin-top: 12px;
}

.topic-g__status {
    margin-bottom: 12px;
}

.topic-g__header {
    display: flex;
    align-items: center;
}

.topic-g__header img {
    display: block;
    width: 48px;
    height: 48px;
}

.topic-g__header-right {
    margin-left: 12px;
    width: 0;
    flex-grow: 1;
}

.topic-g__title {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.topic-g__info {
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.topic-g__info-item {
    color: var(--text-color-secondary);
    position: relative;
}

.topic-g__info-item + .topic-g__info-item {
    margin-left: 24px;
}

.topic-g__info-item + .topic-g__info-item:before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-color-secondary);
}

.topic-g__content {
    margin-top: 12px;
    font-size: 14px;
    line-height: 24px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: var(--text-color-regular);
    min-height: 40px;
}

.topic-g__footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topic-g__comment {
    color: var(--text-color-placeholder);
}

.topic-g__tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--border-radius);
    background: var(--bg-color-lighter);
    color: var(--text-color-secondary);
    font-size: 14px;
    margin-right: 4px;
}

/* 结束 ======================================= 文章列表 */


/* 开始 ======================================= 布局 */

.the-layout-g {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.the-main-g {
    height: 0;
    flex-grow: 1;
    overflow: auto;
}

.the-page-g {
    padding: 24px 0 40px 0;
    min-height: calc(100% - 260px);
}

.the-width-g {
    width: var(--page-contnet-width);
    margin: 0 auto;
}

.the-footer-g {

}

/* 结束 ======================================= 布局 */


/* 开始 ======================================= 头部 */

.the-header-g {
    --header-between-width: 268px;
    height: 80px;
    border-color: transparent;
    border-style: solid;
    border-width: 0 0 1px 0;
    z-index: 1000;
    transition: .3s;
}

body[data-scroll]:not([data-scroll="0"]) .the-header-g {
    border-color: var(--border-color);
}

.the-header-g .the-width-g {
    height: 100%;
    display: flex;
    align-items: center;
}

.the-header-g .left {
    width: var(--header-between-width);
}

.the-header-g .logo {
    display: flex;
    align-items: center;
}

.the-header-g .menu {
    width: 0;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.the-header-g .menu-item {
    font-weight: 600;
}

.the-header-g .menu-item + .menu-item {
    margin-left: 24px;
}

.the-header-g .right {
    width: var(--header-between-width);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.the-header-g .right .item + .item {
    margin-left: 24px;
}

.the-header-g .right .iconfont {
    font-size: 22px;
    cursor: pointer;
}

.the-header-g .right .button-g {
    height: 40px;
    width: 80px;
}

/* 结束 ======================================= 头部 */


/* 开始 ======================================= 尾部 */

.the-footer-g {
    background: var(--bg-color-lighter);
    padding: 40px 0;
}

.the-footer-g .main {
    display: flex;
    align-items: flex-start;
}

.the-footer-g .menus {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    width: 0;
    flex-grow: 1;
}

.the-footer-g .menu + .menu {
    margin-left: 8%;
}

.the-footer-g .menu-item {
    display: block;
}

.the-footer-g .menu .title {
    font-weight: 600;
    font-size: 16px;
}

.the-footer-g .menu-item {
    font-size: 14px;
    margin-top: 12px;
}

.the-footer-g .menu-item:hover {
    color: var(--color-primary);
}

.the-footer-g .copyright {
    margin-top: 40px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.the-footer-g .copyright a {
    line-height: 22px;
}

.the-footer-g .copyright a + a {
    margin-left: 12px;
}

.the-footer-g .copyright .iconfont {
    color: var(--text-color-regular);
    font-size: 24px;
}

/* 结束 ======================================= 尾部 */