:root {
    --base: #ffffff;
    --bg: #f5f7f9;
    --main: #169fe6;
    --main-rgb: 22,159,230;
    --hover: #45bcf9;
    --hover--rgba: 69, 188, 249;
    --bg--blue: #e8f5ff;
    --bg--blue--rgba: 232, 245, 255;
    --border: #dedede;
    /* --main: #ff0000;
    --hover: #fb5050; */
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main);
  border-radius: 2em;
}
::-webkit-scrollbar-corner {
  background-color: transparent;
}
body {
    min-height: 100%;
    background: var(--bg);
}
a:hover {
    text-decoration: none;
}
a:-webkit-any-link {
    color: inherit;
}
#header {
    position: sticky;
    top: 0;
    z-index: 111;
    box-shadow: 0 1px 5px 1px var(--border);
}
/*最大宽修改*/
#navList {
    width: calc(54vw + 320px);
}
#main {
    max-width: inherit;
    justify-content: center;
    align-items: flex-start;
}
#mainContent {
    flex: 0 1 54vw;
    max-width: 54vw;
}
#sideBar {
    margin: 0 0 0 20px;
}
/*首页修改*/
#navigator {
    background-color: var(--main);
    border: none;
}
#navList a:hover {
    background: linear-gradient(to bottom, var(--base), var(--bg));
    color: var(--main);
    height: 40px;
    line-height: 40px;
    margin-top: 10px;
    border-radius: 5px;
}
#profile_block a {
    color: var(--main);
}
#profile_block a:hover {
    color: var(--hover);
    border-bottom: none;
}
#blogTitle {
    display: none;
}
#navList a:link {
    text-shadow: 3px 3px 3px var(--hover);
}
.day {
    border-radius: 10px;
    margin-bottom: 20px;
}
.day:hover {
    border-color: var(--hover);
}
.day:hover .postSeparator {
    border-color: var(--hover);
}
#profile_block {
    border-radius: 0 0 10px 10px;
}
#sideBarMain > div,
#blog-sidecolumn > div > div {
    background: var(--bg);
}
/* 分页 */
#nav_next_page a {
    background-color: var(--hover);
}
.pager {
    color: var(--main);
}
.topicListFooter .pager a, .topicListFooter .pager span {
    color: var(--main);
}
.topicListFooter .pager a:hover, .topicListFooter .pager span {
    background-color: var(--hover);
}
/* 封面图片 */
.c_b_p_desc {
    overflow: inherit;
}
.desc_img {
    width: 124px;
    height: 70px;
    margin: 5px;
    cursor: pointer;
    border-radius: 8px;
}
.desc_img:hover {
    transform: scale(1.1); 
    transition: filter 375ms ease-in 0.2s, transform 0.5s;
    object-fit: cover;
}
/*右侧日历*/
#sideBarMain > div#blog-calendar {
    padding: 10px;
    background: var(--base);
    border-radius: 10px;
    border: 1px solid var(--border);
}
#blogCalendar a:link,
.postCon a:link,
a.c_b_p_desc_readmore {
    color: var(--main);
}
#blogCalendar a:hover,
a.c_b_p_desc_readmore {
    color: var(--hover);
}
/*无日历时去间距*/
#blog-news {
    margin-bottom: 0;
}
/*右侧卡片*/
.sidebar-block {
    background: none;
}
.sidebar-block h3 {
    background-color: var(--main);
    border-color: var(--main);
}
.catListView {
    background: none;
    border-radius: 10px;
    overflow: hidden;
}
#blog-news,
#sidebar_search_box,
.sidebar-block > div > ul,
.sidebar-block > ul,
.catListView > div,
.RecentCommentBlock > ul {
    background: var(--base);
    border-radius: 0 0 10px 10px;
}
.sidebar-block ul li {
    padding: 10px 20px;
    line-height: 1.4;
}
.sidebar-block ul li:last-child {
    border-bottom: none;
}
.sidebar-block ul li a:hover {
    color: var(--hover);
    border-bottom: none;
}
/*最近文章/积分排名/阅读排行/推荐排行*/
.sidebar_recentposts ul li,
.sidebar_scorerank ul li,
.sidebar_topviewedposts ul li,
.sidebar_topdiggedposts ul li {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/*标签*/
#blog-sidecolumn > div#sidebar_toptags > div > ul {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 20px;
    justify-content: space-between;
}
#sidebar_toptags ul li {
    display: flex !important;
    line-height: 1;
    margin-right: 3px;
    margin-bottom: 5px;
    border: none;
    background: none;
    padding: 0;
}
#sidebar_toptags ul li:hover {
    border: none;
    background: none;
}
#sidebar_toptags ul li a {
    line-height: 1.2;
    padding: 3px 5px;
    border-radius: 5px;
    background: white;
    transition: all .25s;
}
#sidebar_toptags ul li a > span {
    display: none;
}
#sidebar_toptags ul li a:hover,
#sidebar_toptags ul li:hover a{
    color: white;
    background: var(--main);
    border-color: var(--main);
    box-shadow: 0 8px 12px -3px var(--main);
}
/*分类*/
#sidebar_postcategory > ul {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 20px;
}
#sidebar_postcategory ul li {
    margin-right: 10px;
    padding: 0;
    border-bottom: none;
}
#sidebar_postcategory ul li:last-child {
    margin-bottom: 0;
}
#sidebar_postcategory ul li a {
    display: flex;
    padding: 5px 10px;
    border: solid 1px var(--border);
    border-radius: 5px;
}
#sidebar_postcategory ul li:hover a {
    color: var(--base) !important;
    border-color: var(--main);
    background: var(--main);
    box-shadow: 0 8px 12px -3px var(--main);
    padding: 5px 15px;
    transition: .3s;
}
#widget_my_google,
.sidebar-block ul {
    border-radius: 0 0 10px 10px;
}
.catListTitle {
    background-color: var(--main);
    border-color: var(--main);
    border-radius: 10px 10px 0 0;
}
/*随笔档案*/
#sidebar_postarchive ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 20px;
}
#sidebar_postarchive ul li {
    border-bottom: none;
    width: calc(50% - 10px);
    margin-bottom: 10px;
    box-sizing: border-box;
    padding: 0;
}
#sidebar_postarchive ul li:last-child {
    margin-bottom: 0;
}
#sidebar_postarchive ul li a {
    display: flex;
    padding: 10px;
    border: solid 1px var(--border);
    border-radius: 8px;
}
#sidebar_postarchive ul li:hover a {
    color: var(--base);
    border-color: var(--main);
    background: var(--main);
    box-shadow: 0 8px 12px -3px var(--main);
}
/*正文*/
.dayTitle {
    background-color: var(--main);
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 5px;
}
.dayTitle:hover {
    background-color: var(--hover);
}
.day .postTitle {
    line-height: 1.3em;
}
.postTitle a:hover {
    color: var(--hover);
    text-decoration: none;
}
#topics,
#comment_form_container,
.under-post-card {
    border-radius: 10px;
}
#cnblogs_post_body a,
#cnblogs_post_body a:link {
    text-decoration: none;
    color: var(--main);
}
#cnblogs_post_body a:hover {
    color: var(--hover);
}
#cnblogs_post_body p a:hover,
#cnblogs_post_body ol li a:hover,
#cnblogs_post_body ul li a:hover {
    border-bottom: none;
}
#cnblogs_post_body img, .blogpost-body img:not([src\=https\:\/\/shields\.io/\*]) {
    margin-top: 10px;
    border-radius: 8px;
    max-height: 420px;
}
/* 隐藏推荐 */
#under_post_card1,
#under_post_card2 {
    display: none;
}
/*markdown*/
.hljs {
    background: #f6f8fa;
}
#topics .postTitle {
    font-weight: bold;
    border-bottom: 1px double rgba(0,0,0,.1);
    padding-bottom: 10px;
}
#cnblogs_post_body h2 {
    color: var(--main);
    padding-bottom: 0.5rem;
    border-bottom: 1px double rgba(0,0,0,.1);
}
.cnblogs-markdown :not(pre,div,td)>code,
.blogpost-body :not(pre,div,td)>code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
    margin: 0;
}
.cnblogs-markdown h1>code, .cnblogs-markdown h2>code,
.blogpost-body h1>code, .blogpost-body h2>code {
    font-size: inherit;
}
#topics .postBody blockquote {
    border-left-width: 3px;
    color: #555;
}
#topics .postBody blockquote p {
    color: #555;
}
#topics .postBody blockquote {
    margin: 0 0 20px;
    padding: 8px 10px 8px 14px;
    border-radius: 8px 4px 4px 8px;
    border-left: solid 4px var(--hover);
    background-color: var(--bg--blue);
    position: relative;
}
table.hljs-ln {
    max-width: 100%;
}
table.hljs-ln td {
    word-break: keep-all;
}
/*评论*/
.comment_textarea {
    max-width: inherit;
}
#sidebar_recentcomments .recent_comment_body {
    line-height: 1;
    font-size: 13px;
}
/*标签页*/
#myposts .PostList,
.entrylistItem {
    border-radius: 10px;
    margin-top: 20px !important;
}
#myposts {
    margin-left: 0;
}
#taglist table {
    width: 100%;
}
#taglist table a {
    display: inline-block;
    background: var(--base);
    padding: 3px 10px;
    border: solid 1px var(--border);
    border-radius: 8px;
}
#taglist table a:hover {
    color: var(--base) !important;
    cursor: pointer;
    padding: 3px 20px;
    background: var(--main);
    border-color: var(--main);
    box-shadow: 0 8px 12px -3px var(--main);
    transition: .3s;

}
#taglist td {
    font-weight: bold;
    width: 25%;
}
/* 标签文章页 */
#myposts .PostList a:hover {
    color: var(--hover);
}
/*分类页*/
.entrylistPosttitle a:hover {
    color: var(--hover);
}
/*版权页*/
.language-copyright {
    display: none !important;
}
#copyrightWeizwz {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    position: relative;
    margin: 30px 0 10px !important;
    padding: 10px 16px !important;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #4c4948;
}
#copyrightWeizwz:hover {
    box-shadow: 0 0 8px 0 rgba(var(--bg--blue--rgba), .6), 0 2px 4px 0 rgba(var(--bg--blue--rgba), .6)
}
#copyrightWeizwz::before {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--hover);
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
#copyrightWeizwz::after {
    position: absolute;
    top: 7px;
    right: 17px;
    color: var(--base);
    content: 'C';
    font-size: 13px;
    font-weight: bold;
}
#copyrightWeizwz .post-copyright-meta {
    color: var(--hover);
    font-weight: bold;
}
#copyrightWeizwz .post-copyright-info {
    padding-left: 6px;
}
#copyrightWeizwz .post-copyright-info > a {
    color: #99a9bf;
}
#copyrightWeizwz .post-copyright-info > a:hover {
    color: var(--hover);
}

/* 文章导航目录 */
#uprightsideBar {
    width: 15vw;
    margin-right: 20px;
    position: sticky;
    top: 80px;
    left: calc(50vw - 34.5vw - 180px);
    z-index: 10;
}
#sideBarContents {
    overflow: auto;
    overflow-x: hidden !important;
    min-height: 108px;
    max-height: calc(100vh - 150px);
    border: 1px solid #e5e5e5;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    padding: 10px 20px 20px;
}
#sideBarContents dl {
    margin: 0;
    padding: 0;
}
#sideBarContents dt {
    margin-top: 5px;
    margin-left: 5px;
}
#sideBarContents dd,
#sideBarContents dt {
    cursor: pointer;
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 10px 0;
    line-height: 20px;
    font-size: 14px;
    font-weight: bold;
}
#sideBarContents dd:hover,
#sideBarContents dt:hover { 
    color: var(--hover);
}
#sideBarContents dd.indent3 {
    margin-left: 20px;
    font-size: 14px;
    font-weight: normal;
}
#sideBarContents dd.indent4 {
    margin-left: 40px;
    font-size: 12px;
    font-weight: normal;
}
#sideBarContents dd.indent5 {
    margin-left: 60px;
    font-size: 12px;
    font-weight: normal;
}
#sideBarContents dd.indent6 {
    margin-left: 80px;
    font-size: 12px;
    font-weight: normal;
}

/* 页脚 */
#footer {
    background: none;
    display: flex;
    justify-content: center;
    color: #333;
    flex-wrap: wrap;
}
#poweredby {
    width: 100%;
    margin-top: .5rem;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
#poweredby > a {
    margin-right: .5rem;
}

/* 移动端 */
@media screen and (orientation:portrait) {
    #uprightsideBar {
        display: none;
    }
}