/* 鼠标悬停动效 */
.avatar-img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    border-radius: 12px;
}

.avatar-img:hover {
    /*transform: scale(1.1);*/
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 弹窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: zoom 0.5s ease;
    border-radius: 10px;
}

@keyframes zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.5s ease;
}

.close:hover {
    color: #bbb;
}

/* 平滑的标签切换动画 */
.nav-tabs > li > a {
    transition: all 0.3s ease;
}

.tab-content {
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.tab-pane {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tab-pane.fade {
    opacity: 0;
}

/* 侧边栏面板动画 */
.panel {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 文章列表动画 */
.article-list {
    transition: all 0.3s ease;
    max-height: 1000px; /* 初始最大高度 */
    overflow: hidden;
}

.article-list:not(.collapsing) {
    transition: max-height 0.3s ease;
}

/* 标签云动画 */
#tagcloud {
    transition: all 0.3s ease;
    max-height: 1000px;
    overflow: hidden;
}

/* 通用动画过渡 */
.hover-shadow {
    transition: all 0.3s ease;
}

/* 滚动条动画 */
.panel-body {
    transition: all 0.3s ease;
}
