/* 需求提交页样式 - 与AI图片处理页面保持一致 */

/* 颜色变量 */
:root {
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --error-color: #DC3545;
    --warning-color: #FFC107;
    --background-color: #F8F9FA;
    --card-background: #FFFFFF;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --border-color: #E9ECEF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* 页面布局 */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: #3B5CF0;
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.page-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    color: white;
}

/* 表单容器 */
.form-wrapper {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.required {
    color: var(--error-color);
    margin-right: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* 文本区域样式 */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* 上传区域样式 */
.upload-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--background-color);
}

.upload-container:hover,
.upload-container.highlight {
    border-color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.hidden {
    display: none;
}

/* 预览区域样式 */
.preview-container {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--background-color);
    margin-top: 16px;
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    max-height: 200px;
    object-fit: contain;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.remove-image-btn:hover {
    background-color: var(--error-color);
    transform: scale(1.1);
}

/* 按钮样式 */
.primary-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.primary-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.primary-btn:hover:not(.disabled)::before {
    left: 100%;
}

.primary-btn:active:not(.disabled) {
    transform: translateY(0);
}

.primary-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.submit-btn {
    margin-top: 20px;
}

/* 通知样式 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition);
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.info {
    background-color: var(--primary-color);
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .page-header {
        padding: 1.5rem 1rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .upload-container {
        padding: 1.5rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .primary-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}
