/* 全局基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", PingFangSC, sans-serif;
    /* 纯CSS无限流动渐变背景 */
    background: linear-gradient(-45deg, #08061a, #1b1642, #232049, #0a0724);
    background-size: 400% 400%;
    animation: bgFlow 18s ease-in-out infinite;
    color: #e8edf8;
    line-height: 1.9;
    overflow-x: hidden;
}

/* 背景流动动画 */
@keyframes bgFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 全局毛玻璃容器 */
#blogTitle, #mainContent, #sideBar, #footer {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    margin: 16px auto;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}

/* 容器悬浮上浮光影效果 */
#mainContent:hover, #sideBar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 45px rgba(80, 140, 255, 0.18);
}

/* 博客标题样式 */
#blogTitle h1 a {
    font-size: 2.4rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(90, 180, 255, 0.6);
    transition: all 0.3s ease;
}
#blogTitle h1 a:hover {
    color: #84b8ff;
    text-shadow: 0 0 20px rgba(90, 180, 255, 0.9);
}

/* 文章卡片样式 */
.post {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 26px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.35s ease;
}
.post:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.015);
}

/* 文章标题 */
.postTitle a {
    font-size: 1.4rem;
    color: #c6e0ff;
    text-decoration: none;
    transition: color 0.3s;
}
.postTitle a:hover {
    color: #73b4ff;
}

/* 链接通用样式 */
a {
    color: #7cb8ff;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #b3d6ff;
    text-shadow: 0 0 6px rgba(100, 190, 255, 0.5);
}

/* 代码块美化 */
pre {
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 10px;
    padding: 18px;
    margin: 15px 0;
    border: 1px solid rgba(80, 160, 255, 0.2);
    color: #a8d8ff;
    overflow-x: auto;
}
code {
    font-family: Consolas, monospace;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #60a8ff, #7b77ee);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4894ee, #6a66dd);
}

/* 侧边栏条目 */
#sideBar .newsItem {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.3s;
}
#sideBar .newsItem:hover {
    background: rgba(255, 255, 255, 0.09);
}

/* 分页按钮 */
.pager {
    text-align: center;
    margin: 30px 0;
}
.pager a {
    display: inline-block;
    padding: 9px 18px;
    margin: 0 5px;
    background: rgba(90, 170, 255, 0.15);
    border-radius: 9px;
    border: 1px solid rgba(90, 170, 255, 0.25);
    transition: all 0.3s ease;
}
.pager a:hover {
    background: rgba(90, 170, 255, 0.3);
    transform: translateY(-2px);
}

/* 隐藏广告 */
#ad_under_post_holder, #cnblogs_ad, .ad {
    display: none !important;
}

/* 底部页脚 */
#footer {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3c2;
}

/* 响应式手机适配 */
@media screen and (max-width:768px) {
    #blogTitle, #mainContent, #sideBar {
        margin: 10px;
        padding: 16px;
    }
    .post {
        padding: 18px;
    }
    #blogTitle h1 a {
        font-size: 1.8rem;
    }
}