/* 用户反馈悬浮窗口样式 */
.feedback-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.feedback-trigger {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
}

.feedback-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.feedback-trigger i {
    font-size: 16px;
}

.feedback-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 500px;
    overflow: hidden;
}

.feedback-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.feedback-header {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    padding: 20px;
    border-bottom: 1px solid #e1e8f0;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-header h4 i {
    color: #ef4444;
    font-size: 14px;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.feedback-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.feedback-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.feedback-option {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.option-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.option-content {
    flex: 1;
}

.option-content h5 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.option-content p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.feedback-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.feedback-link:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.qr-code-container {
    text-align: center;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    margin-top: 8px;
}

.feedback-qr-code {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-hint {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.feedback-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.thank-you-text {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.thank-you-text i {
    color: #fbbf24;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .feedback-widget {
        bottom: 20px;
        right: 20px;
    }

    .feedback-trigger {
        padding: 10px 16px;
        font-size: 13px;
    }

    .feedback-panel {
        width: 320px;
        bottom: 60px;
    }

    .feedback-header {
        padding: 16px;
    }

    .feedback-content {
        padding: 16px;
    }

    .feedback-option {
        padding: 12px;
    }

    .feedback-qr-code {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .feedback-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

