/* 反馈页面专用样式 */

/* 反馈页面头部 */
.feedback-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.feedback-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.feedback-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 反馈表单区域 */
.feedback-form-section {
    padding: 80px 0;
    background: white;
}

.feedback-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 反馈信息区域 */
.feedback-info h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #007AFF;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
}

.info-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.info-text p {
    color: #64748b;
    line-height: 1.5;
}

/* 表单容器 */
.feedback-form-container {
    position: relative;
}

.feedback-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.required {
    color: #ef4444;
}

.optional {
    color: #64748b;
    font-weight: 400;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: #94a3b8;
}

.char-count {
    text-align: right;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #64748b;
}

.form-note {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #64748b;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #007AFF;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功和错误消息 */
.success-message,
.error-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.success-message {
    border-color: #10b981;
}

.error-message {
    border-color: #ef4444;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-message h3,
.error-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-message h3 {
    color: #10b981;
}

.error-message h3 {
    color: #ef4444;
}

.success-message p,
.error-message p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.reset-btn,
.retry-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background: #10b981;
    color: white;
}

.reset-btn:hover {
    background: #059669;
}

.retry-btn {
    background: #ef4444;
    color: white;
}

.retry-btn:hover {
    background: #dc2626;
}

/* 其他联系方式 */
.contact-alternatives {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-alternatives h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-item p {
    color: #64748b;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feedback-hero {
        padding: 100px 0 40px;
    }
    
    .feedback-header h1 {
        font-size: 2.5rem;
    }
    
    .feedback-header p {
        font-size: 1.1rem;
    }
    
    .feedback-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feedback-form {
        padding: 30px 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-alternatives h2 {
        font-size: 2rem;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .feedback-hero {
        padding: 90px 0 30px;
    }
    
    .feedback-header h1 {
        font-size: 2rem;
    }
    
    .feedback-header p {
        font-size: 1rem;
    }
    
    .feedback-form-section {
        padding: 60px 0;
    }
    
    .contact-alternatives {
        padding: 60px 0;
    }
    
    .feedback-form {
        padding: 25px 15px;
    }
    
    .form-group textarea,
    .form-group input {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .success-message,
    .error-message {
        padding: 30px 20px;
    }
    
    .success-icon,
    .error-icon {
        font-size: 3rem;
    }
}

/* 动画效果 */
.feedback-form,
.info-item,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* 表单验证样式 */
.form-group.error textarea,
.form-group.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-text {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* 字符计数颜色变化 */
.char-count.warning {
    color: #f59e0b;
}

.char-count.error {
    color: #ef4444;
} 