/* 现代化反馈系统样式 */



/* 反馈模态框 */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-overlay.active .feedback-modal {
    transform: translateY(0) scale(1);
}

/* 模态框头部 */
.feedback-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
}

.feedback-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.feedback-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.feedback-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 模态框内容 */
.feedback-content {
    padding: 32px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

/* 表单样式 */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* 字符计数 */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.char-counter.warning {
    color: #f56565;
}

/* 验证码相关样式 */
.verification-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.verification-input {
    flex: 1;
    min-width: 0;
}

.verification-btn {
    min-width: 120px;
    white-space: nowrap;
    font-size: 14px;
    padding: 12px 16px;
}

.btn-outline {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-outline:disabled {
    background: #f7fafc;
    border-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

.btn-outline:disabled:hover {
    background: #f7fafc;
    color: #a0aec0;
}

/* 验证码提示 */
.verification-hint {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f0f8ff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    font-size: 13px;
}

.verification-hint small {
    display: block;
    line-height: 1.4;
}

/* 错误提示 */
.error-message {
    color: #f56565;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

/* 按钮样式 */
.feedback-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 32px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 加载状态 */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 成功/错误提示 */
.feedback-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.feedback-toast.show {
    transform: translateX(0);
}

.feedback-toast.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.feedback-toast.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {

    
    .feedback-modal {
        width: 95%;
        margin: 20px;
    }
    
    .feedback-header,
    .feedback-content,
    .feedback-actions {
        padding: 20px;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .feedback-toast {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-modal {
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
