/* 未读消息计数样式 */
.unread-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
    box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4);
    z-index: 2;
    border: 2px solid white;
}

.unread-count.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: badge-pulse 2s infinite;
}

/* 确保action-btn有相对定位以便正确放置徽章 */
.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 徽章动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.unread-count.visible:hover {
    transform: scale(1.1);
} 