:root {
    --primary: #e67474;
    --primary-light: rgba(230, 116, 116, 0.12);
    --secondary: #6fa3ef;
    --secondary-light: rgba(111, 163, 239, 0.12);
    --text: #3c4858;
    --text-light: #7a8999;
    --bg: #f7f8fa;
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-bg-solid: #ffffff;
    --shadow: 0 3px 12px rgba(7, 17, 27, 0.06);
    --shadow-hover: 0 6px 20px rgba(7, 17, 27, 0.12);
    --radius: 12px;
    --ease: cubic-bezier(0.07, 0.53, 0.65, 0.95);
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --font-code: Consolas, "Fira Code", "Source Code Pro", Monaco, monospace;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-blur: blur(8px);
}

#sideBar,
#green_channel,
#post_next_prev,
#cb_post_title_url,
#cnblogs_c1,
#cnblogs_c2,
#ad_t2,
#kb_block,
#under_post_news,
#header,
#BlogPostCategory,
#comment_nav,
#author_profile_follow,
.feedback_area_title,
.dayTitle {
    display: none;
}

body {
    background-image: none;
    background-color: var(--bg);
    font-family: var(--font-body) !important;
    line-height: 1.85;
    color: var(--text);
}

*, :after, :before {
    box-sizing: border-box;
}

a {
    transition: color 0.25s ease-in-out;
}

::selection {
    background-color: var(--primary);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    min-height: 28px;
    background-color: #c8cdd3;
    background-clip: padding-box;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8b0b8;
}

::-webkit-scrollbar-track-piece {
    background-color: transparent;
}

#home > #main {
    width: auto;
    max-width: min(1200px, calc(100vw - 480px));
    margin: 0 auto;
    background-color: transparent;
}

@media screen and (max-width: 1000px) {
    #home > #main {
        width: 100%;
        max-width: none;
    }
}

#mainContent {
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
    opacity: 0;
    transition: 0.5s var(--ease);
    margin-top: 40px;
}

#myheader {
    background-color: var(--card-bg-solid) !important;
    margin-top: 70px;
    position: relative;
    width: 100%;
    height: 100px;
}

#home {
    margin-top: 220px;
}

.forFlow img {
    margin-top: 0;
}

#cnblogs_post_body img {
    max-width: 90% !important;
    border-radius: 6px;
}

#cnblogs_post_body {
    font-size: 16px;
    color: var(--text);
}

#cnblogs_post_body h2 {
    font-weight: 600;
    font-size: 1.35em;
    margin: 28px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    line-height: 1.5;
}

#cnblogs_post_body h3 {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    margin: 20px 0 10px;
    padding-left: 12px;
    border-left: 3px solid var(--secondary);
}

.postDesc {
    border-bottom: none;
}

#myProgressBar {
    width: 15%;
    height: 2px;
    background-color: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    background: var(--primary);
    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
}

#nprogress .peg {
    display: block;
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px var(--primary), 0 0 5px var(--primary);
    opacity: 1;
    transform: rotate(3deg) translate(0, -4px);
}

#nprogress .spinner {
    display: block;
    position: fixed;
    z-index: 1031;
    top: 15px;
    right: 15px;
}

#nprogress .spinner-icon {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: solid 2px transparent;
    border-top-color: var(--primary);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
    overflow: hidden;
    position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
    position: absolute;
}

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

#mynavbar {
    width: 100%;
    height: 380px;
    position: fixed;
    display: block;
    top: 0;
    z-index: 100;
    background-image: url(https://pyrotech-1302879341.cos.accelerate.myqcloud.com/Yajk8riQ5IfIiOfr89QwjHU4.jpeg) !important;
    background-size: cover;
    background-position: center;
    transition: 0.35s var(--ease);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
    position: relative;
    width: 65pc;
    height: 70px;
    margin: 0 auto;
}

#mynavbar_menu {
    display: inline-block;
    position: relative;
    float: right;
    text-align: right;
    line-height: 180px;
}

#mynavbar_menu a {
    padding: 0 15px;
    font-size: 14px;
    outline: 0;
    color: #313131;
    text-decoration: none;
    transition: color 0.25s ease-in-out;
}

#mynavbar_menu a:hover {
    color: var(--primary) !important;
}

#mypost_title {
    position: relative;
    top: 105pt;
    margin: 0 auto;
    padding: 30px 25px 20px;
    max-width: 700px;
    color: white;
    transition: 0.5s var(--ease);
    opacity: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

#mypost_title_h {
    font-weight: 500;
    font-size: 21px;
}

#mypost_title_e {
    margin: 0;
    padding: 5px 0 15px;
}

#mypost_title_e a {
    border: 1px solid var(--secondary);
    border-radius: 20px;
    background: var(--secondary);
    color: #fff;
    display: inline-block;
    margin: 4px 8px 0 0;
    padding: 2px 16px;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 13px;
    outline: 0;
    text-decoration: none;
    transition: 0.3s var(--ease);
}

#mypost_title_e a:before {
    content: "";
}

#mypost_title_e a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--text);
    transform: translateY(-2px);
}

#right_meun {
    position: fixed;
    top: 400px;
    right: 20px;
    z-index: 50;
    width: 200px;
    display: block !important;
    text-align: left;
    font-size: 12px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 16px 12px 16px 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-height: calc(100vh - 460px);
    overflow-y: auto;
}

#right_meun li {
    list-style: none !important;
    margin: 4px 0;
}

#right_meun a {
    display: inline-block;
    margin-left: 5px;
    word-break: break-word;
    text-decoration: none;
    color: var(--text-light);
    outline: 0;
    transition: all 0.2s ease;
}

#right_meun a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

#right_meun > li::before {
    position: relative;
    top: 0;
    left: -4px;
    display: inline-block;
    width: 6px;
    height: 6px;
    content: '';
    border-radius: 50%;
    background-color: var(--primary);
    transition: transform 0.2s ease;
}

#right_meun > li:hover::before {
    transform: scale(1.4);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.toc-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.toc-toggle {
    cursor: pointer;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    color: var(--text-light);
    font-size: 16px;
    user-select: none;
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

#right_meun.collapsed > li,
#right_meun.collapsed .toc-top,
#right_meun.auto-collapsed > li,
#right_meun.auto-collapsed .toc-top {
    display: none;
}

#right_meun.collapsed,
#right_meun.auto-collapsed {
    width: auto;
    min-width: 80px;
}

.toc-top {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.toc-top a {
    color: var(--primary) !important;
    font-weight: 500;
}

#right_meun a.active {
    color: var(--primary) !important;
    font-weight: 600;
}

#post-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 3pc;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    margin: 0;
    padding: 0;
    transition: 0.4s var(--ease);
}

#post-bottom-bar a {
    text-decoration: none !important;
}

.post-bottom-bar .bottom-bar-inner {
    margin: 0 auto;
    padding: 0 10px;
    max-width: 900px;
}

.bottom-bar-items {
    margin: 0 0 0 10px;
    color: var(--text);
    font-size: 14px !important;
    line-height: 3pc;
}

.bottom-bar-items.social-share {
    float: left;
}

.bottom-bar-items.right {
    float: right;
}

.post-bottom-bar {
    margin: 0 0 0 10px;
    color: var(--text);
    font-size: 14px;
    line-height: 3pc;
}

.post-bottom-bar .social-share .bottom-bar-item {
    padding: 4px;
}

.post-bottom-bar .bottom-bar-item.bottom-bar-facebook a {
    background-color: var(--secondary);
    color: #fff;
}

.post-bottom-bar .social-share .bottom-bar-item a {
    padding: 2px 12px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.post-bottom-bar .bottom-bar-item a {
    margin: 0;
    padding: 9pt;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 14px;
    line-height: 3pc;
    cursor: pointer;
    transition: color 0.25s ease;
}

.post-bottom-bar .bottom-bar-item.bottom-bar-twitter a {
    background-color: var(--primary);
    color: #fff;
}

.post-bottom-bar .bottom-bar-item.bottom-bar-qrcode a {
    background-color: #6c7a89;
    color: #fff;
}

.bottom-bar-item a:hover {
    color: var(--primary);
}

.post-bottom-bar .social-share .bottom-bar-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.cnblogs-markdown pre {
    position: relative;
    border-radius: 8px;
    margin: 16px 0;
    background: #f6f8fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
}


.cnblogs-markdown .hljs {
    font-size: 13px !important;
    font-family: var(--font-code);
    line-height: 1.6 !important;
    padding: 14px 16px !important;
    border-radius: 8px;
    background: transparent !important;
}

.cnblogs-markdown .hljs::before,
.cnblogs-markdown .syntaxhighlighter::before {
    display: none !important;
}

.cnblogs-markdown code {
    background: #f0f2f5 !important;
    border: 0 !important;
    color: #476582 !important;
    font-size: 0.88em !important;
    font-family: var(--font-code);
    padding: 2px 6px !important;
    border-radius: 4px;
    tab-size: 4;
}

.cnblogs-markdown pre code {
    background: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
    padding: 0 !important;
    border-radius: 0;
}

.cnblogs-markdown .syntaxhighlighter table td.code {
    width: 95% !important;
}

.cnblogs-markdown .syntaxhighlighter code {
    font-family: var(--font-code) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: inherit !important;
}

.cnblogs-markdown .syntaxhighlighter code:before {
    letter-spacing: -0.5em;
}

.cnblogs-markdown em {
    font-style: italic;
}

.postBody blockquote,
.postCon blockquote {
    background-image: none;
    border-left: 4px solid var(--primary);
    background-color: var(--primary-light);
    width: 100%;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    color: var(--text);
}

blockquote {
    border: 0;
}

blockquote p {
    margin: 6px 0;
}

.day {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    margin-top: 28px;
    padding: 8px;
    transition: all 0.35s var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.day:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.post {
    background: var(--card-bg-solid);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feedbackItem {
    background-color: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.feedbackItem:hover {
    box-shadow: var(--shadow-hover);
}

.comment_textarea {
    padding: 15px;
    border-radius: var(--radius);
    outline: 0;
    resize: none;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.25s ease;
    font-family: var(--font-body);
}

.comment_textarea:focus {
    border-color: var(--primary);
}

.comment_btn {
    border: 1px solid transparent;
    border-radius: 20px;
    background-color: var(--primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    height: 34px;
    padding: 0 22px;
    position: absolute;
    right: 6%;
    bottom: 38px;
    width: auto;
    transition: all 0.3s var(--ease);
}

.comment_btn:hover {
    background-color: #d35e5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 116, 116, 0.3);
}

#comment_form {
    margin-top: 28px;
    padding: 24px;
    background: var(--card-bg-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.commentbox_main {
    margin-top: 20px;
}

.MathJax {
    font-size: 1.3em;
}

#cnblogs_post_body table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

#cnblogs_post_body table th {
    background-color: var(--primary-light);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
}

#cnblogs_post_body table td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#cnblogs_post_body table tr:hover td {
    background-color: rgba(0, 0, 0, 0.015);
}

#cnblogs_post_body a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

#cnblogs_post_body a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

#cnblogs_post_body ul,
#cnblogs_post_body ol {
    padding-left: 1.5em;
}

#cnblogs_post_body li {
    margin: 4px 0;
}
