/* 用户反馈组件样式 */
.feedback-widget {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 反馈按钮 */
.feedback-button {
    padding: 12px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    width: 100%;
}

.feedback-widget:hover .feedback-button {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.feedback-button:active {
    transform: scale(0.95);
}

.feedback-button .icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.feedback-button .button-text {
    font-size: 15px;
    font-weight: 600;
}

.feedback-button:hover .icon {
    transform: scale(1.1);
}

/* 反馈表单容器 */
.feedback-form-container {
    padding: 30px;
}

/* 反馈表单 */
.feedback-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.feedback-form-group label .required {
    color: #EF4444;
    margin-left: 2px;
}

.feedback-form-group input,
.feedback-form-group select,
.feedback-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.feedback-form-group input:focus,
.feedback-form-group select:focus,
.feedback-form-group textarea:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.feedback-form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.feedback-form-group select {
    cursor: pointer;
}

/* 提交按钮 */
.feedback-submit {
    background: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.feedback-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.feedback-submit:active:not(:disabled) {
    transform: translateY(0);
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 成功提示 */
.feedback-success {
    padding: 20px;
    text-align: center;
    display: none;
}

.feedback-success.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feedback-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feedback-success h4 {
    margin: 0 0 8px;
    color: #1F2937;
    font-size: 18px;
}

.feedback-success p {
    margin: 0;
    color: #6B7280;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feedback-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .feedback-button .button-text {
        display: none;
    }
    
    .feedback-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
    }
    
    .feedback-widget {
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .feedback-button:hover {
        transform: translateY(-5px);
    }
    
    .feedback-button:active {
        transform: scale(0.95);
    }
}

/* 加载状态 */
.feedback-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

