/* 速马赫发货详情单 - 手机端样式 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px;
}

.container {
    max-width: 100%;
    padding: 0 15px;
}

/* 头部样式 */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #fff;
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.user-info {
    text-align: center;
}

.user-info .badge {
    font-size: 0.8rem;
    padding: 5px 15px;
    border-radius: 20px;
}

/* 进度指示器 */
.progress-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.progress {
    height: 8px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(to right, var(--secondary-color), var(--success-color));
    border-radius: 4px;
    transition: var(--transition);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    border: 3px solid #e9ecef;
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.step.active .step-label {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 主内容区域 */
.main-content {
    margin-bottom: 30px;
}

.module {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.module.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

.module-header h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* 表单样式 */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.form-label.required::after {
    content: " *";
    color: var(--danger-color);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

/* 上传区域样式 */
.upload-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.upload-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
}

.upload-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.upload-section-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-group {
    margin-bottom: 25px;
}

.upload-group h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.upload-group h5 {
    font-size: 1rem;
    color: #495057;
    margin-top: 15px;
    margin-bottom: 10px;
}

.upload-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.upload-area {
    position: relative;
    border: 2px dashed #ced4da;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background-color: #f8f9ff;
}

.upload-placeholder {
    color: #6c757d;
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.upload-placeholder p {
    margin-bottom: 5px;
    font-weight: 500;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
}

.upload-guidance {
    margin-top: 15px;
}

.guidance-content {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #dee2e6;
}

.guidance-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.guidance-example {
    text-align: center;
    margin-top: 15px;
}

.guidance-example img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.example-caption {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 信息汇总卡片 */
.summary-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--success-color);
}

.summary-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px dashed #dee2e6;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #495057;
}

.summary-value {
    color: var(--primary-color);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* 收货方须知 */
.notice-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e3f2fd;
}

.notice-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notice-text h5 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.notice-text p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* 生成区域 */
.generate-section {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    border: 2px dashed #dee2e6;
}

.btn-generate {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
}

.generate-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-prev, .btn-next {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 底部样式 */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
}

.footer-info p {
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 模态框样式 */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .module {
        padding: 20px 15px;
    }
    
    .app-header h1 {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-prev, .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    .generate-options {
        flex-direction: column;
        align-items: center;
    }
    
    .generate-options .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* 验证样式 */
.is-invalid {
    border-color: var(--danger-color) !important;
}

.is-valid {
    border-color: var(--success-color) !important;
}

.invalid-feedback {
    display: none;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* 工具提示 */
.tooltip-inner {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
}
