/* 反馈按钮样式 */
.feedback-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}
.like-button, .dislike-button {
    background: transparent;
    border: none;
    color: #feb565;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 按钮悬停效果 */
.like-button:hover, .dislike-button:hover {
    background-color: rgba(254, 181, 101, 0.1);
    transform: translateY(-1px);
}

/* 按钮点击效果 */
.like-button:active, .dislike-button:active {
    transform: translateY(1px);
}

.like-button.active, .dislike-button.active {
    color: #ff6b6b;
    background: #fff3e0;
    animation: pulse-feedback 0.4s ease;
}

/* 点击后的脉冲动画 */
@keyframes pulse-feedback {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.like-button:disabled, .dislike-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 波纹效果 */
.like-button::after, .dislike-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(254, 181, 101, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.like-button:focus::after, .dislike-button:focus::after,
.like-button.active::after, .dislike-button.active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(15, 15) translate(-50%, -50%);
        opacity: 0;
    }
}

/* 弹窗样式 */
.feedback-modal {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.2s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feedback-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px 16px 20px;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    animation: slide-up 0.3s ease;
}

@keyframes slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.feedback-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.feedback-modal-close:hover {
    color: #777;
}

.feedback-modal h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
    text-align: left;
}

.feedback-modal-text {
    min-height: 60px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

.feedback-modal-text:focus {
    outline: none;
    border-color: #feb565;
    box-shadow: 0 0 0 2px rgba(254, 181, 101, 0.2);
}

.feedback-modal-submit {
    background: #feb565;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.feedback-modal-submit:hover {
    background: #ff9b4c;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} 

.feedback-modal-submit:active {
    background: #ff6b6b;
    transform: translateY(1px);
    box-shadow: none;
}

/* 移动端样式优化 */
@media screen and (max-width: 576px) {
    .feedback-buttons {
        gap: 6px;
        margin-left: 6px;
    }
    
    .like-button, .dislike-button {
        font-size: 14px;
        padding: 4px;
        /* 增大触摸区域，提高移动端易用性 */
        min-width: 32px;
        min-height: 32px;
    }
    
    /* 确保按钮在移动端易点击 */
    .like-button i, .dislike-button i {
        font-size: 14px;
    }
    
    /* 增强移动端触摸反馈 */
    .like-button.active, .dislike-button.active {
        animation: pulse-feedback-mobile 0.5s ease;
    }
    
    @keyframes pulse-feedback-mobile {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }
    
    .feedback-modal-content {
        width: 85%;
        max-width: 320px;
        padding: 20px 16px 14px 16px;
    }
    
    .feedback-modal h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .feedback-modal-text {
        min-height: 80px; /* 移动设备上增加文本区域高度，更容易输入 */
        font-size: 14px;
    }
    
    .feedback-modal-submit {
        padding: 10px 0; /* 增加按钮高度，更容易点击 */
        font-size: 15px;
    }
} 

.feedback-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.feedback-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 15px;
}

.feedback-option:hover {
    background-color: #f5f5f5;
}

.feedback-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #feb565;
}

.feedback-option span {
    font-size: 15px;
    color: #333;
} 