/* 点赞按钮容器样式 */
.like-dislike-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 15px 0;
}

/* 点赞和点踩按钮基础样式 */
.like-btn,
.dislike-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 按钮悬停效果 */
.like-btn:hover,
.dislike-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 按钮点击效果 */
.like-btn:active,
.dislike-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 点赞按钮激活状态 */
.like-btn.active {
    color: #2196F3;
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

/* 点踩按钮激活状态 */
.dislike-btn.active {
    color: #F44336;
    border-color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

/* 按钮内容样式 */
.btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 图标样式 */
.btn-content i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* 点赞按钮悬停时图标动画 */
.like-btn:hover .btn-content i {
    transform: scale(1.2);
}

/* 点踩按钮悬停时图标动画 */
.dislike-btn:hover .btn-content i {
    transform: scale(1.2);
}

/* 计数器样式 */
.count {
    min-width: 24px;
    text-align: center;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 加载动画样式 */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 0.15em;
    opacity: 0.7;
}

/* 禁用状态样式 */
.like-btn:disabled,
.dislike-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 点赞/点踩数变化时的动画 */
@keyframes countChange {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.count.changing {
    animation: countChange 0.3s ease;
}

/* 暗色主题适配 */
[data-bs-theme="dark"] .like-btn,
[data-bs-theme="dark"] .dislike-btn {
    background: #2b2b2b;
    border-color: #404040;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .like-btn.active {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

[data-bs-theme="dark"] .dislike-btn.active {
    background: rgba(244, 67, 54, 0.2);
    border-color: #F44336;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .like-btn,
    .dislike-btn {
        padding: 6px 12px;
    }

    .btn-content {
        font-size: 0.9rem;
    }

    .btn-content i {
        font-size: 1rem;
    }

    .count {
        min-width: 20px;
    }
} 