.trace-order-page {
    background-color: #f5f5f5;
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

.trace-order-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.form-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1890ff;
}

.item-group {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.item-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-number {
    font-size: 16px;
    font-weight: 600;
    color: #1890ff;
}

.remove-item-btn {
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.remove-item-btn:hover {
    background: #ff7875;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.add-item-btn {
    width: 100%;
    height: 50px;
    border: 2px dashed #d9d9d9;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.add-item-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.add-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.generate-btn {
    width: 100%;
    height: 45px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.generate-btn:hover {
    background: #40a9ff;
}

.generate-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

.result-section {
    width: 400px;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.result-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.result-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.qrcode-result {
    display: none;
}

.qrcode-result.show {
    display: block;
}

.qrcode-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* SKU选择框特殊样式 */
.sku-select-wrapper {
    position: relative;
}

.sku-select-wrapper select.loading::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #1890ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* 必填标记 */
.required-mark {
    color: #ff4d4f;
    margin-left: 2px;
}

/* 增加左侧标签宽度，防止换行 */
.layui-form-label {
    width: 120px !important;
    white-space: nowrap;
}

.layui-input-block {
    margin-left: 140px !important;
}
