/** common */
@font-face {
    font-family: 'HarmonyOS_Sans_SC_Medium';
    src: url("../font/HarmonyOS_Sans_SC_Medium.subset.woff2");
}

* {
    font-family: HarmonyOS_Sans_SC_Medium,'sans-serif';
}

:root{
    --box-shadow: 0.5rem 0.875rem 2.375rem rgb(39 44 49 / 6%), 0.0625rem 0.1875rem 0.5rem rgb(39 44 49 / 3%);
    --theme-color: rgb(29, 161, 242);
    --theme-choose-color: #1da1f21a;
    --text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.25);
    --theme-text-color: #4a4a4a;
    --background: #fff;
    --radius: 0.8rem;
    --ms-radius: 0.375rem;
    --text1: #18191c;
    --text2: #61666D;
    --text3: #dcdfe6;
    --text4: #e4e7ed;
    --routine: #606266;
    --border: #dee2e6;
    --color1:#ff4e6a;
    --color1-bg: rgba(255,78,106,0.15);
    --color2: #ffb900;
    --color2-bg: rgba(255,118,30,0.15);
    --color3-bg: #0083ee;
    --color4: #33d57a;;
    --color4-bg: rgba(51,213,122,0.15);
}
a, a:hover {
    text-decoration: none;
}
.container {
    max-width: 1200px;
}
@media (min-width: 992px) {
    .main {
        width: 75%;
    }
}
@media (max-width: 800px) {
    .main {
        width: 100%;
    }
}
.card {
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    border: none;
}

.icon {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
    overflow: hidden;
}

.dropdown-menu {
    box-shadow: var(--box-shadow);
    border: none;
    font-size: 1.25rem;
}

/** 头部 */
.container-fluid {
    position: relative;
    padding: 0 30rem;
}
.toolbar {
    display: flex;
    padding: 1rem;
    justify-content: space-between;
    background: var(--background);
    align-items: center;
    box-shadow: var(--box-shadow);
}
.mobile-left,.mobile-right {
    display: none;
}
.mobile-right img {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
}
.fixed-body {
    display: none;
    position: fixed;
    z-index: 995;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    transition: all 0.3s linear;
    background: rgba(100, 100, 100, 0.5);
}
@media (max-width: 800px){
    .toolbar-left .header {
        display: none;
    }
    .mobile-left, .mobile-right {
        display: block;
    }

}
.toolbar-left {
    font-weight: bold;
    font-size: 1.25rem;
}
.toolbar-right {
    display: flex;
}
.category {
    display: flex;
    background: var(--background);
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;
    border-top: 1px solid var(--border);
    box-shadow: var(--box-shadow);
}

.collapse-item {
    cursor: pointer;
    padding: 1rem 0;
    position: relative;
    font-weight: 700;
    font-size: 1.25rem;
}

.collapse-item.active {
    border-bottom: 5px solid var(--theme-color);
}

/*left*/
.site-info {
    padding: .6rem 1rem;
}
.site-avatar {
    position: relative;
    margin: 0 0 2.5rem;
    width: 12rem;
    height: 12rem;
}
.site-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    cursor: pointer;
}
.site-avatar .emoji {
    position: absolute;
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
    border-radius: 50%;
    bottom: 0;
    right: 0;
    text-align: center;
    font-size: 2rem;
    background-color: var(--background);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.04), 0 .2rem .6rem rgba(0, 0, 0, 0.04), 0 0 .1rem rgba(0, 0, 0, 0.04);
}
.site-name a {
    color: var(--text1);
    font-size: 2rem;
    margin: 0;
}
.site-description {
    color: var(--text2);
    font-weight: 400;
    margin: 1rem 0;
    font-size: 1.6rem;
}
@media (max-width: 800px){
    .row>* {
        padding: 0!important;
    }
    .left.mobile-nav {
        width: 20rem;
    }
    .mobile-nav{
        display: block!important;
        z-index: 997;
        position: fixed;
        top: 0;
        bottom: 0;
        background-color: var(--background);
    }
    .right.mobile-nav {
        width: 100%;
    }
    #mobile-tool {
        margin-right: 1rem;
    }
    .right {
        overflow-y: scroll;
    }
}
/** 导航 */
.nav-menu {
    border-radius: var(--radius);
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

.nav-link {
    color: var(--text1);
    padding: .6rem 1rem;
}
.nav-link.active {
    background-color: var(--theme-choose-color);
    color: var(--theme-color);
}
.nav-link.active {
    background-color: var(--theme-choose-color);
    color: var(--theme-color);
}
.nav-link:hover {
    background-color: var(--theme-choose-color);
    color: var(--theme-color);
}

.nav-link .icon {
    margin-left: .5rem;
    margin-right: 2rem;
}

.nav-item-text {
    vertical-align: middle;
    font-weight: 700;
    font-size: 1.25rem;
}

/* 幻灯片 */
.carousel-item {
    max-height: 25rem;
}
.carousel-caption {
    width: 100%;
    position: sticky;
    bottom: 0;
}
.carousel-caption h5::after {
    content: '';
    background-image: linear-gradient(to top, rgba(16,16,16,0.35) 25%, rgba(16,16,16,0) 100%);
    pointer-events: none;
    background-size: cover;
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: -1;
}

.carousel_link {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 25rem;
    overflow: hidden;
}

.carousel_link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-inner {
    box-shadow: var(--box-shadow);
}

.ol.carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}

ol.carousel-indicators li {
    width: 0.375rem;
    height: 0.375rem;
}

ol.carousel-indicators li.active {
    width: 0.5rem;
    height: 0.5rem;
}

.carousel-control-prev, .carousel-control-next {
    display: none;
}

/** 文章列表 */
.rainbow-loader {
    background: #000;
    background: radial-gradient(#222, #000);
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.rainbow-loader .loader-inner {
    bottom: 0;
    height: 60px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
}

.rainbow-loader .loader-line-wrap {
    animation: spin 2000ms cubic-bezier(.175, .885, .32, 1.275) infinite;
    box-sizing: border-box;
    height: 50px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    transform-origin: 50% 100%;
    width: 100px;
}

.rainbow-loader .loader-line {
    border: 4px solid transparent;
    border-radius: 100%;
    box-sizing: border-box;
    height: 100px;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
}

.rainbow-loader .loader-line-wrap:nth-child(1) {
    animation-delay: -50ms;
}

.rainbow-loader .loader-line-wrap:nth-child(2) {
    animation-delay: -100ms;
}

.rainbow-loader .loader-line-wrap:nth-child(3) {
    animation-delay: -150ms;
}

.rainbow-loader .loader-line-wrap:nth-child(4) {
    animation-delay: -200ms;
}

.rainbow-loader .loader-line-wrap:nth-child(5) {
    animation-delay: -250ms;
}

.rainbow-loader .loader-line-wrap:nth-child(1) .loader-line {
    border-color: hsl(0, 80%, 60%);
    height: 90px;
    width: 90px;
    top: 7px;
}

.rainbow-loader .loader-line-wrap:nth-child(2) .loader-line {
    border-color: hsl(60, 80%, 60%);
    height: 76px;
    width: 76px;
    top: 14px;
}

.rainbow-loader .loader-line-wrap:nth-child(3) .loader-line {
    border-color: hsl(120, 80%, 60%);
    height: 62px;
    width: 62px;
    top: 21px;
}

.rainbow-loader .loader-line-wrap:nth-child(4) .loader-line {
    border-color: hsl(180, 80%, 60%);
    height: 48px;
    width: 48px;
    top: 28px;
}

.rainbow-loader .loader-line-wrap:nth-child(5) .loader-line {
    border-color: hsl(240, 80%, 60%);
    height: 34px;
    width: 34px;
    top: 35px;
}

@keyframes spin {
    0%, 15% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.article-list {
    padding: 1rem;
    background: var(--background);
}

.article-list:first-child {
    /*取消上阴影*/
    box-shadow: 0.5rem 1.5rem 2.375rem rgb(39 44 49 / 6%), 0.0625rem 1.5rem 0.5rem rgb(39 44 49 / 3%);
    margin-bottom: 1rem;
    border-bottom-left-radius: .8rem;
    border-bottom-right-radius: .8rem;
}

.article-list:not(:first-child) {
    box-shadow: var(--box-shadow);
    margin: 1rem 0;
    border-radius: .8rem;
}

.article-list .content {
    padding: 1.5rem 1.5rem 1.5rem 8rem;
    position: relative;
}

.content .created {
    color: var(--text2);
    float: right;
    font-size: 1.2rem;
}

.categories-avatar {
    position: absolute;
    width: 4.8rem;
    height: 4.8rem;
    left: 1.5rem;
    top: 1.7rem;
}

.categories-avatar img {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: .8rem;
}
@media (max-width: 800px){
    .categories-avatar {
        left: 0rem!important;
    }
    .categories-avatar img {
        width: 3.8rem!important;
        height: 3.8rem!important;
    }
    .article-list .content {
        padding-left: 4rem!important;
    }
}

.article-name {
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

@media (max-width: 800px){
    .article-name a {
        font-size: 1.5rem!important;
    }
}

.article-name a {
    font-size: 2.5rem;
    color: var(--theme-text-color);
    font-weight: 600;
}

.describe {
    font-size: 1.5rem!important;
    margin-top: 1rem;
    color: var(--theme-text-color);
    line-height: 1.5;
    word-wrap: break-word;
    background: #f0f8ff;
    border-radius: 0.5rem;
    padding: 1rem;
}
.describe.gallery,.describe.pic,.describe.text {
    background: none;
    padding: 0;
}
.describe h1,.describe h2,.describe h3,.describe h4,.describe h5,.describe h6 {
    font-size: 1.5rem!important;
}
.describe img {
    width: 100%;
}
.describe .emoji {
    width: 4.8rem;
    height: 4.8rem;
}

.describe.gallery p {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: .2rem;
    border-right: 1.2rem;
    overflow: hidden;
}

.describe.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.5s;
}

.describe.gallery img:hover {
    transform: scale(1.1);
    box-shadow: var(--box-shadow);
}

.describe.text {
    border: .1rem solid var(--border);
    border-radius: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.describe.pic {
    display: flex;
    flex-direction: column;
}

.describe.pic img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: .4rem;
}

.index-comments {
    padding: 1.2rem;
}

.index-comments-list {
    display: flex;
    user-select: none;
    align-items: center;
    padding: .2rem 1.8rem .8rem;
}

.index-comments-list > img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin-right: .5rem;
    flex-shrink: 0;
}

.index-comments-list .author {
    font-size: 1.25rem;
    max-width: 25%;
    word-break: keep-all;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.index-comments-list .text:before {
    content: ':';
    margin-left: .2rem;
    margin-right: .5rem;
}

.index-comments-list .text {
    font-size: 1.25rem;
    color: var(--text2);
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.index-comments-list .created {
    margin-left: .5rem;
    color: var(--text3);
    font-size: 1.2rem;
    text-align: right;
}

.index-comments-list:not(:first-child) {
    border-top: 1px solid var(--border);
}

.related {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    margin-bottom: 1rem;
}
@media (max-width: 800px){
    .related {
        margin: 0!important;
    }
}
.related .more {
    float: right;
    background-color: #e8e8e8;
    border-color: transparent;
    color: rgba(0, 0, 0, 0.7);
    border-radius: .5rem;
    padding: .5rem 1rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    font-size: 1.35rem;
}

.related .extra {
    margin: 1rem 2px 2px;
    max-width: 20rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.related .extra > div {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text2);
}

.related .extra svg {
    margin-right: 0.6rem;
}

.related .like {
    cursor: pointer;
    display: inline-flex;
}

.related .extra .like svg:hover {
    transform: scale(1.2);
}

/** 侧边栏 */
.search-bar {
    margin-top: 1rem;
    margin-bottom: .5rem;
    position: relative;
}

@media screen and (max-width: 360px) {
    .nav-search-btn {
        right: 0 !important;
    }
}

.nav-search-input {
    font-size: 1.2rem;
    padding: 0 1rem;
    width: 100%;
    border: .1rem solid #e3e5e7;
    height: 3.5rem;
    background-color: var(--background);
    opacity: .9;
    transition: background-color .3s;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
}

.nav-search-input:hover {
    background: #f1f2f3;
}

.nav-search-input:focus, .nav-search-btn:focus {
    outline: none;
}

.nav-search-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-1.25rem);
    right: 1rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    color: var(--text1);
    line-height: 2rem;
    cursor: pointer;
    transition: background-color .3s;
    background: transparent;
}

.nav-search-btn:hover {
    background: #f1f2f3;
}

.footer-item {
    color: #8590a6;
}

.user-container {
    margin-bottom: 1rem;
}

.couple {
    text-align: center;
}

.couple .pic {
    border-radius: 50%;
    width: 5rem;
    background: #fff;
    padding: 0.125rem;
}

.couple-love {
    width: 2.1875rem;
    margin: 1.25rem 0;
    animation: heartbeat 1.33s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1)
    }
    50% {
        transform: scale(.8)
    }
    to {
        transform: scale(1)
    }
}

.user-container p {
    color: var(--theme-color);
    font-weight: 700;
    text-align: center;
    z-index: 1;
}

.card-icon {
    justify-content: center;
    width: 100%;
    display: flex;
    background: #ececec1f;
    height: 3.75rem;
    align-items: center;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.card-icon a {
    margin: 0.3125rem;
    color: inherit;
}

.time-text {
    text-align: center;
    color: #b5b5b5;
    font-size: 1.25rem;
    margin: .2rem 0;
}

#our-company {
    text-align: center;
    margin: 1rem auto;
    color: #7d7474;
    background: aliceblue;
    width: 100%;
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    user-select: none;
}

#our-company span {
    margin: 0 .25rem;
    vertical-align: middle;
}

#our-company svg.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.card-header {
    border-bottom: none;
}

.sidebar-box {
    font-size: 1.25rem;
    border: 0.1rem solid #e9ecef;
    padding: 1rem 0;
    background-color: #fff;
    min-height: 10rem;
    color: var(--theme-text-color);
    word-break: break-all;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.sidebar-box h6 {
    font-size: 1.5rem;
}

.card-text {
    margin-bottom: -.5rem;
    font-size: 1.25rem;
}

.sidebar-rand-item {
    height: 7rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.sidebar-rand-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    background-position-x: center;
    background-position-y: center;
    background-size: cover;
}

.sidebar-rand-content {
    z-index: 1;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.sidebar-rand-footer {
    font-size: 1.2rem;
    color: white;
}

.sidebar-rand-body a {
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    word-break: break-word;
}

.sidebar-rand-body a {
    color: white;
}

.sidebar-reply-img {
    width: 2.5rem;
}

.sidebar-reply-content {
    color: var(--theme-text-color);
}

.count {
    padding: 0.9375rem 0;
    display: flex;
    align-items: center;
    border-bottom: 0.0625rem solid var(--text3);
    user-select: none;
}

.count .item {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--routine);
    font-size: 1.2rem;
}

.count .item:not(:last-of-type) {
    border-right: 0.0625rem solid var(--text3);
}

.count .num {
    max-width: 4.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--theme-text-color);
    margin-bottom: 0.1875rem;
    text-shadow: var(--text-shadow);
}

footer.container.footer {
    font-size: 1.45rem;
}

/* 返回顶部 */
@media (max-width: 1000px) {
    .tools {
        right: 0!important;
    }
}

.tools {
    position: fixed;
    right: 12rem;
    bottom: 2rem;
    cursor: pointer;
    z-index: 999;
}

.tools div {
    border-radius: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
    width: 5rem;
    background: var(--background);
    line-height: 2rem;
    box-shadow: 0.5rem 1.875rem 2.375rem rgb(39 44 49 / 6%), 0.0625rem 0.1875rem 0.5rem rgb(39 44 49 / 3%);
}
.tools svg.icon {
    display: block;
    margin: 0 auto;
}
/*移动端可能不兼容*/
.chose-mode-moon {
    display: none;
}


/* fix*/
.is-fixed {
    position: fixed;
    top: 3.75rem;
}

@media (max-width: 480px) {
    .is-fixed {
        position: unset;
        text-align: center;
    }
}

/** 404 */
.error-page {
    height: 60rem;
    background-color: var(--background);
}

.error-page .icon.test {
    width: 100%;
    height: 100%;
}

/** 分页 */
.page-pagination {
    text-align: center;
    padding: 0.9375rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.page-pagination a {
    position: relative;
    display: inline-block;
    width: 8rem;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2.5rem;
    border-radius: 6.25rem;
    transition: 0.3s ease-in-out;
    color: #f1f4f8;
    background-color: var(--theme-color);
    overflow: hidden;
}

.page-pagination {
    position: relative;
}

.page-pagination::after {
    content: '';
    display: inline-block;
    background-image: url(../img/ico-xiaoji.png);
    width: 1.3rem;
    height: 1.3rem;
    position: absolute;
    top: 0.3rem;
}

/** 滚动条 */
/* 滚动槽 */
::-webkit-scrollbar {
    width: 0.375rem;
    height: 0.375rem;
}

::-webkit-scrollbar-track {
    border-radius: 0.1875rem;
    background: rgba(0, 0, 0, 0.06);
    -webkit-box-shadow: inset 0 0 0.3125rem rgba(0, 0, 0, 0.08);
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius: 0.1875rem;
    background: linear-gradient(to right, #0acffe 0%, #495aff 100%);
    -webkit-box-shadow: inset 0 0 0.625rem rgba(0, 0, 0, 0.2);
}
/**Dark**/
html.theme-dark, .theme-dark img {
    filter: invert(1) hue-rotate(180deg);
}
/*负负得正*/
.theme-dark i,
.theme-dark li.comment-by-author > .comment-author span:after,
.theme-dark .article-title a,
.theme-dark .post-info .created,
.theme-dark .post-info .display,
.theme-dark .post-info .extra,
.theme-dark .emoji,
.theme-dark pre,
.theme-dark .license .icon
{
    filter: invert(1) hue-rotate(180deg);
}
.theme-dark .emoji {
    background-color:  rgba(0,0,0,0.6);
}
.theme-dark .sidebar-rand-content a,
.theme-dark .sidebar-rand-footer{
    color: var(--theme-text-color)!important;
}