/* 用户参与度工具栏样式 */
.engagement-bar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    animation: engSlideIn 0.3s ease-out;
}

@keyframes engSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.eng-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #DAA520;
    background: linear-gradient(135deg, #fff, #FAF3E0);
    color: #8B4513;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.15);
    position: relative;
    padding: 0;
}

.eng-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
    border-color: #8B4513;
}

.eng-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.eng-btn.active {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #fff;
    border-color: #8B4513;
}

.eng-btn.active .eng-count {
    color: #fff;
}

.eng-count {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #8B4513;
    color: #FFD700;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.eng-btn.active .eng-count {
    background: #fff;
    color: #8B4513;
}

/* 点赞动画 */
.eng-like.active svg {
    animation: engHeartPop 0.4s ease-out;
}

@keyframes engHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 收藏动画 */
.eng-favorite.active svg {
    animation: engStarBounce 0.4s ease-out;
}

@keyframes engStarBounce {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Toast 提示 */
.engagement-toast {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: #FFD700;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Microsoft YaHei', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
}

.engagement-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .engagement-bar {
        right: 12px;
        bottom: 90px;
    }

    .eng-btn {
        width: 42px;
        height: 42px;
    }

    .eng-btn svg {
        width: 18px;
        height: 18px;
    }

    .eng-count {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
    }

    .engagement-toast {
        bottom: 160px;
        font-size: 13px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .engagement-bar {
        right: 8px;
        bottom: 80px;
    }

    .eng-btn {
        width: 38px;
        height: 38px;
    }
}

/* 2026-08 UI去重防遮挡（置于文件末尾确保优先级）：与 global-enhance 统一浮动
   按钮组共存时，收藏/分享按钮与其重复故隐藏，仅保留点赞并上移至浮动按钮组上方 */
.engagement-bar--compact {
    bottom: 310px;
}

.engagement-bar--compact .eng-favorite,
.engagement-bar--compact .eng-share {
    display: none;
}

@media (max-width: 768px) {
    .engagement-bar--compact {
        bottom: 290px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .engagement-bar--compact {
        bottom: 280px;
        right: 8px;
    }
}
