/* 小宠物跟随鼠标 */
#pet {
    position: fixed;
    left: 100px;
    top: 100px;
    width: 50px;
    height: 50px;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.12s ease-out;
}

/* 宠物本体：一只简洁可爱的小白狗 */
.pet-body {
    position: relative;
    width: 50px;
    height: 50px;
}

.pet-body .head {
    position: absolute;
    width: 34px;
    height: 30px;
    left: 8px;
    top: 6px;
    background: #ffffff;
    border: 2px solid #5a6a7a;
    border-radius: 50%;
}

.pet-body .ear {
    position: absolute;
    width: 10px;
    height: 14px;
    top: 4px;
    background: #5a6a7a;
    border-radius: 40% 40% 50% 50%;
}

.pet-body .ear.left { left: 2px; }
.pet-body .ear.right { right: 2px; }

.pet-body .eye {
    position: absolute;
    width: 7px;
    height: 7px;
    top: 14px;
    background: #2f3a44;
    border-radius: 50%;
}

.pet-body .eye.left { left: 14px; }
.pet-body .eye.right { right: 14px; }

.pet-body .nose {
    position: absolute;
    width: 8px;
    height: 6px;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    background: #2f3a44;
    border-radius: 50%;
}

.pet-body .tail {
    position: absolute;
    width: 14px;
    height: 14px;
    right: -6px;
    top: 18px;
    border: 3px solid #5a6a7a;
    border-bottom: none;
    border-left: none;
    border-radius: 0 20px 0 0;
    transform: rotate(45deg);
    transform-origin: left bottom;
    animation: tailWag 0.4s ease-in-out infinite alternate;
}

@keyframes tailWag {
    0% { transform: rotate(30deg); }
    100% { transform: rotate(60deg); }
}

/* 文章正文区域保持高可读性 */
#main,
.postBody,
.forFlow,
.post {
    background: rgba(255, 255, 255, 0.93) !important;
    border-radius: 8px;
}

#sideBar,
#header,
#navigator,
.comment_form {
    background: rgba(255, 255, 255, 0.88) !important;
    border-radius: 8px;
}


body {
    background-color: #f4f5f7;
    /* 网格 */
    background-image:
        linear-gradient(#dddddd 1px, transparent 1px),
        linear-gradient(90deg, #dddddd 1px, transparent 1px);
    background-size: 20px 20px;
}
/*深色模式网格*/
:root[data-theme="dark"] body {
    background-color: #191919;
    background-image:
        linear-gradient(#333333 1px, transparent 1px),
        linear-gradient(90deg, #333333 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 隐藏原生园龄粉丝模块 */
#profile_block,
#profile {
    display: none !important;
}
.sidebarTitle,
.widgettitle {
    display: none !important;
}

/* ========== 主页容器，取消负margin，恢复顶部安全间距 ========== */
#main {
    margin-top: 0 !important;
    padding-top: 16px !important; /* 导航栏下方留白，可修改：12/16/20px */
}
.mainContent {
    margin-top: 0 !important;
    padding-top:0 !important;
}
.forFlow {
    margin-top:0 !important;
    padding-top:0 !important;
}




div#top_nav.navbar.forpc.navbar-custom {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
#top_nav_main {
    flex-wrap: wrap !important;
    min-width: 0 !important;
}



#blogTitle h1 a {
    font-size: 32px !important;
    font-weight: 700 !important;
}


#home{
    margin-top: 20px !important;
}

