/* 意见建议页面样式 */

/* Hero Section */
.feedback-hero {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.feedback-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content */
.feedback-main {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 300px);
}

.feedback-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feedback-header {
    padding: 40px;
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: white;
    text-align: center;
}

.feedback-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    color: white;
}

.feedback-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Wrapper */
.feedback-form-wrapper {
    padding: 40px;
}

.feedback-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #ff4d4f;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-select {
    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;
    appearance: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-submit,
.btn-reset {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-submit {
    background: #007AFF;
    color: white;
}

.btn-submit:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-reset:hover {
    background: #e9e9e9;
    color: #333;
}

/* Error States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Success Message */
.success-message {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    display: none;
}

/* Loading State */
.btn-submit.loading {
    background: #ccc;
    cursor: not-allowed;
    position: relative;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feedback-main {
        padding: 20px 0;
    }
    
    .feedback-header {
        padding: 30px 20px;
    }
    
    .feedback-title {
        font-size: 24px;
    }
    
    .feedback-desc {
        font-size: 14px;
    }
    
    .feedback-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 24px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .feedback-hero {
        height: 200px;
    }
    
    .feedback-header {
        padding: 20px 15px;
    }
    
    .feedback-title {
        font-size: 20px;
    }
    
    .feedback-form-wrapper {
        padding: 20px 15px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
    }
}