/* ==============================================
   博客园定制样式 · 最终优化整合版
   效果：卡片居中 + 文本缩进 + 字体统一 + 无广告 + 阅读全文美化
   ============================================== */

/* —————————————— 1. 基础布局重置 —————————————— */
/* 隐藏右侧边栏 */
#sideBar { display: none; }

/* 主体内容宽度、居中、背景 */
#main {
    width: 75% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    background-color: #fff !important;
}

/* 内容区域样式 */
#mainContent {
    width: 100% !important;
    opacity: 1 !important;
    transition: 0.5s !important;
    margin-top: 20px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* 移动端自适应 */
@media screen and (max-width: 1000px) {
    #main { width: 95% !important; }
}

/* 全局字体、行高、颜色 */
body {
    background: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

/* —————————————— 2. 屏蔽广告/冗余模块 —————————————— */
#header,
#green_channel,
#post_next_prev,
#cb_post_title_url,
#cnblogs_c1,
#cnblogs_c2,
#ad_t2,
#kb_block,
#under_post_news,
#BlogPostCategory,
#comment_nav,
#author_profile_follow,
#footer,
#footer_ad,
.footer_ad {
    display: none !important;
}

/* 文章描述底部无边框 */
.postDesc {
    border-bottom: none !important;
}

/* —————————————— 3. 文章正文基础样式 —————————————— */
#cnblogs_post_body {
    font-size: 16px !important;
    max-width: 100% !important;
}

/* 正文图片自适应 */
#cnblogs_post_body img,
.forFlow img {
    max-width: 100% !important;
    margin-top: 0 !important;
}

/* —————————————— 4. 顶部加载进度条 —————————————— */
#myProgressBar {
    width: 15%;
    height: 2px;
    background: #eb5055;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

#nprogress { pointer-events: none; }
#nprogress .bar {
    background: #eb5055;
    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}
#nprogress .peg {
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px #eb5055,0 0 5px #eb5055;
    transform: rotate(3deg) translate(0,-4px);
}
#nprogress .spinner {
    position: fixed;
    z-index: 1031;
    top: 15px;
    right: 15px;
}
#nprogress .spinner-icon {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #eb5055;
    border-left-color: #eb5055;
    border-radius: 50%;
    animation: nprogress-spinner 400ms linear infinite;
}
@keyframes nprogress-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* —————————————— 5. 顶部导航栏 —————————————— */
#mynavbar {
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    z-index: 100;
    background: #fff;
    transition: 0.5s;
    box-shadow: 0 1px 5px rgba(0,0,0,.1);
}
#mynavbar_menu {
    float: right;
    line-height: 68px;
}
#mynavbar_menu a {
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
#mynavbar_menu a:hover {
    color: #eb5055 !important;
}

/* —————————————— 6. 顶部毛玻璃头图 —————————————— */
#myheader {
    margin-top: 70px;
    width: 100%;
    height: 300px;
    position: relative;
    background: #2175bc !important;
}
#myheader_bg {
    width: 100%;
    height: 300px;
    background-position: center;
    background-size: cover;
    filter: blur(3px);
    position: absolute;
}
#myheader_cover {
    position: relative;
    margin-top: 70px;
    width: 100%;
    height: 300px;
    background: rgba(0,0,0,.5);
    box-shadow: 0 1px 5px rgba(0,0,0,.3);
}
#mypost_title {
    position: relative;
    top: 105pt;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 25px 20px;
    color: #fff;
    opacity: 1;
}
#mypost_title_e {
    padding: 5px 0 15px;
}
#mypost_title_e a {
    border: 1px solid #6fa3ef;
    border-radius: 15px;
    background: #6fa3ef;
    color: #fff;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
#mypost_title_e a:before {
    content: "# ";
}
#mypost_title_e a:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* —————————————— 7. 右侧文章目录 —————————————— */
#right_meun {
    position: fixed;
    top: 100px;
    left: 74%;
    display: none;
    border-left: 1px solid #ddd;
    font-size: 12px;
}
#right_meun li {
    list-style: none !important;
}
#right_meun a {
    color: #333;
    text-decoration: none;
}
#right_meun a:hover {
    color: #eb5055;
}
#right_meun > li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #eb5055;
    margin-right: 4px;
}

/* —————————————— 8. 底部工具栏 —————————————— */
#post-bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 48px;
    background: #fff;
    border-top: 1px solid #eee;
    transition: 0.5s;
}
.bottom-bar-inner {
    max-width: 900px;
    margin: 0 auto;
}
.bottom-bar-items {
    line-height: 48px;
    font-size: 14px;
}
.bottom-bar-item a {
    padding: 0 10px;
    color: #333;
    text-decoration: none;
}
.bottom-bar-item a:hover {
    color: #eb5055;
}

/* —————————————— 9. Markdown & 代码块美化 —————————————— */
.cnblogs-markdown .hljs {
    font-size: 16px !important;
    line-height: 2 !important;
    padding: 15px !important;
}
.cnblogs-markdown code {
    background: #eef0f4 !important;
    color: #493b5c !important;
    font-size: 16px !important;
}
.cnblogs-markdown h2,
#cnblogs_post_body h2 {
    font-weight: 500;
    margin: 20px 0;
}
.cnblogs-markdown h2::before {
    content: "#";
    color: #eb5055;
    margin-right: 8px;
}
.cnblogs-markdown h3 {
    font-weight: bold;
    margin: 10px 0;
}
.cnblogs-markdown h3::before {
    content: "##";
    color: #2175bc;
    margin-right: 5px;
}
.postBody blockquote {
    background: #eef0f4;
    border-left: 5px solid #dddfE4;
    padding: 6px 0 6px 25px;
    width: 100%;
}

/* —————————————— 10. 滚动条 & 文本选中样式 —————————————— */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: #c2c2c2;
}

/* —————————————— 11. 首页文章卡片 —————————————— */
.day {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    margin: 25px 0 !important;
    padding: 32px 35px !important;
    transition: 0.3s;
    background: #fff !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.day:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}
.dayTitle { display: none !important; }

/* 文章标题 */
.postTitle a {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #222 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
}
.postTitle a:hover {
    color: #0066cc !important;
}

/* 标题左侧装饰竖线 */
.postTitle::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 22px;
    background: #0066cc;
    margin-right: 12px;
    vertical-align: middle;
}

/* 文章摘要 */
.c_b_p_desc {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.7 !important;
    margin: 16px 0 20px !important;
}
.c_b_p_desc a {
    color: #0066cc !important;
    text-decoration: none !important;
}
.c_b_p_desc a:hover {
    text-decoration: underline !important;
}

/* 发布时间、阅读量 */
.postDesc {
    font-size: 13px !important;
    color: #999 !important;
    text-align: right !important;
}

/* —————————————— 12. 评论区美化 —————————————— */
.feedbackItem {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}
.comment_textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    outline: none;
}
.comment_btn {
    border: 1px solid #f7f7f7;
    border-radius: 30px;
    background: #f7f7f7;
    padding: 0 20px;
    height: 32px;
    cursor: pointer;
}
.comment_btn:hover {
    border-color: #eb5055;
    background: #fff;
    color: #eb5055;
}

/* —————————————— 13. 导航栏Logo —————————————— */
#mynavbar img {
    width: 150px !important;
    height: 50px !important;
    margin-top: 15px !important;
    margin-left: 20px !important;
    object-fit: contain !important;
}

/* —————————————— 14. Slogan 艺术字定位与样式 —————————————— */
#mypost_title_e {
    position: absolute !important;
    top: -50px !important;
    left: -300px !important;
    z-index: 10 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 隐藏旧标签样式 */
#mypost_title_e a,
#mypost_title_e a:before {
    display: none !important;
}

/* Slogan 基础文字样式 */
.slogan-text {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Slogan 花体艺术字 */
#mypost_title_e .slogan-text {
    font-family: cursive, "Segoe Script", "Brush Script MT", Georgia, sans-serif !important;
    color: #a8182a !important;
    font-size: 32px !important;
    font-weight: normal !important;
    letter-spacing: 2px !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/* —————————————— 15. 阅读全文按钮美化 —————————————— */
.c_b_p_desc_readmore {
    display: block;
    background: none;
    border: 0;
    border-bottom: 2px solid #666;
    font-size: 16px;
    font-weight: 600;
    width: 85px;
    text-align: center;
    color: #555 !important;
    margin-top: 20px;
    padding: 0;
    transition: border 0.3s;
}

/* —————————————— 16. 全局文本选中颜色 —————————————— */
::-moz-selection { color: #FFF; background: #807dd4; }
::selection { background: #807dd4; color: #FFF; }
::-webkit-selection { background: #807dd4; color: #FFF; }

/* —————————————— 17. 文本溢出省略号 —————————————— */
#mainContent, #sideBar, #topics {
    text-overflow: ellipsis;
    overflow: hidden;
}

/* —————————————— 18. 底部翻页区域右对齐 —————————————— */
.topicListFooter {
    text-align: right;
    margin-right: 10px;
    margin-top: 10px;
}