/* 非标定制页面样式 */

.main-container {
    max-width: 1500px;
    width: 1500px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f8f9fa;
}

.custom-order-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    padding: 35px;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.custom-order-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(21, 117, 64, 0.08), transparent 70%);
    border-top-right-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.page-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 35px;
    position: relative;
    padding-left: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 32px;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 6px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 生产流程样式 */
.production-process {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(to right, #f9fff9, #f5f9ff);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.production-process::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(21, 117, 64, 0.1), transparent 70%);
    z-index: 0;
}

.process-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.process-title i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 24px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 100px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0f8f3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    border: 2px solid #ddf4e4;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-step:hover .step-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.step-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon i {
    color: white;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid white;
    z-index: 2;
}

.step-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
    text-align: center;
}

.process-arrow {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 5px;
    display: flex;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .process-step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 15px;
        align-items: center;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .step-icon i {
        font-size: 28px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
        align-self: center;
    }
}

.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fcfcfc;
    border-radius: 8px;
    border-left: 3px solid #ddf4e4;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.form-section:hover {
    border-left-color: var(--primary-color);
    background-color: #fafffe;
}

.section-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.form-row {
    display: flex;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    margin-right: 25px;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-right: 0;
}

.form-label {
    display: block;
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.required {
    color: #f56c6c;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #fff;
    color: #333;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 117, 64, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.form-text i {
    color: #909399;
    margin-right: 5px;
}

.invalid-feedback {
    font-size: 13px;
    color: #dc3545;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.invalid-feedback i {
    margin-right: 5px;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #cce5d5;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: #f9fefc;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #eef9f4;
    transform: translateY(-2px);
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 64px;
    color: #7bc19e;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.upload-area:hover .upload-icon {
    color: var(--primary-color);
    transform: scale(1.05);
}

.upload-text {
    font-size: 18px;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.upload-hint i {
    color: #909399;
    margin-right: 5px;
}

/* 预览区域样式 */
.preview-area {
    display: flex;
    flex-wrap: wrap;
    margin-top: 25px;
    gap: 20px;
}

.preview-item {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .file-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 10px;
}

.file-icon i {
    font-size: 50px;
    color: #555;
    margin-bottom: 8px;
}

.file-name {
    font-size: 12px;
    padding: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.delete-btn:hover {
    background-color: rgba(255, 0, 0, 0.15);
    transform: scale(1.1);
}

.delete-btn i {
    font-size: 16px;
    color: #ff4d4f;
}

/* 提交按钮 */
.form-actions {
    text-align: center;
    margin-top: 50px;
    position: relative;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.submit-btn {
    background: linear-gradient(135deg, #1a8d50, #0d5e30);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 200px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(21, 117, 64, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn i {
    margin-right: 10px;
    font-size: 20px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0d5e30, #1a8d50);
    box-shadow: 0 6px 20px rgba(21, 117, 64, 0.35);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(21, 117, 64, 0.3);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
    cursor: not-allowed;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-group {
        flex: 100%;
        margin-right: 0;
    }
    
    .main-container {
        padding: 20px;
    }
    
    .custom-order-container {
        padding: 25px 20px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}