/* 勋章系统样式 */
.b2-user-medals-box {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.b2-user-medals-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
}

.b2-user-medals-title .b2font {
    color: #f9b928;
    margin-right: 5px;
    font-size: 18px;
}

.b2-user-medals-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.b2-user-medal-item {
    width: 50px;
    height: 50px;
    margin: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.b2-user-medal-item:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.b2-user-medal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.medal-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 5px;
    min-width: 120px;
    text-align: center;
}

.medal-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}

/* 文章作者勋章样式 */
.b2-post-author-medals {
    display: flex;
    margin-top: 5px;
}

.b2-post-author-medal {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.b2-post-author-medal:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.b2-post-author-medal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .b2-user-medal-item {
        width: 40px;
        height: 40px;
    }
    
    .b2-post-author-medal {
        width: 20px;
        height: 20px;
    }
} 