* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
        body { background: #f5f5f5; }
        .page-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #fff; border-bottom: 1px solid #eee; }
        .page-header h1 { font-size: 18px; color: #333; }
        .header-actions { display: flex; gap: 15px; align-items: center; }
        .back-link { color: #1890ff; text-decoration: none; font-size: 14px; }
        .lang-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 48px;
            padding: 6px 12px;
            border: 1px solid #1890ff;
            border-radius: 20px;
            background: #fff;
            color: #1890ff;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 1px 3px rgba(24, 144, 255, 0.15);
        }
        .lang-btn:hover {
            background: #1890ff;
            color: #fff;
            box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
        }
        .lang-btn.active {
            background: #1890ff;
            color: #fff;
        }
        .lang-btn .lang-text {
            letter-spacing: 0.5px;
        }
        .scan-section { padding: 15px; background: #fff; margin-bottom: 10px; }
        .scan-row { display: flex; gap: 10px; align-items: center; }
        .scan-box { display: flex; gap: 10px; margin-bottom: 0; flex: 1; }
        .express-input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
        .scan-btn { padding: 12px 20px; background: #1890ff; color: #fff; border: none; border-radius: 6px; font-size: 14px; }
        .query-btn { width: 100%; padding: 14px; background: #52c41a; color: #fff; border: none; border-radius: 6px; font-size: 16px; }
        .query-btn:disabled { background: #d9d9d9; color: #999; }
        .status-select { width: 100px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff; margin-bottom: 0; }
        .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
        .modal-content { background: #fff; border-radius: 12px; width: 90%; max-width: 400px; overflow: hidden; }
        .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 500; }
        .close-btn { font-size: 24px; color: #999; cursor: pointer; }
        .scan-result-input { width: calc(100% - 30px); margin: 10px 15px; padding: 12px; font-size: 16px; border: 1px solid #ddd; border-radius: 8px; background: #f5f5f5; }
        #reader { width: calc(100% - 30px); height: 300px; margin: 0 15px; background: #000; border-radius: 12px; overflow: hidden; }
        #reader video { width: 100%; height: 100%; object-fit: cover; }
        .scan-status { text-align: center; padding: 12px; color: #8e8e93; font-size: 14px; }
        .loading { display: flex; flex-direction: column; align-items: center; padding: 50px; }
        .spinner { width: 40px; height: 40px; border: 3px solid #f5f5f5; border-top-color: #1890ff; border-radius: 50%; animation: spin 1s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading p { margin-top: 15px; color: #999; }
        .order-info { background: #fff; margin: 10px; border-radius: 8px; overflow: hidden; }
        .order-header { padding: 15px; }
        .order-row { display: flex; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
        .order-row .label { width: 80px; color: #666; flex-shrink: 0; }
        .order-row .value { flex: 1; word-break: break-all; }
        .status-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
        .status-unsigned { background: #fff7e6; color: #fa8c16; }
        .status-signed { background: #f6ffed; color: #52c41a; }
        .service-tag { display: inline-block; padding: 2px 6px; background: #e6f7ff; color: #1890ff; border-radius: 4px; font-size: 12px; margin-right: 5px; }
        .service-list { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
        .service-item { display: flex; align-items: flex-start; gap: 8px; }
        .service-imgs { display: flex; flex-wrap: wrap; gap: 5px; }
        .service-img { width: 40px; height: 40px; max-width: 180px; max-height: 200px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
        .service-info { display: flex; align-items: center; gap: 5px; }
        .service-name { font-size: 13px; color: #333; }
        .service-num { font-size: 12px; color: #999; }
        .goods-section { padding: 15px; border-top: 8px solid #f5f5f5; }
        .goods-title { font-weight: 500; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; font-size: 14px; }
        .goods-list { width: 100%; }
        .goods-item { display: flex; padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
        .goods-item:last-child { border-bottom: none; }
        .goods-img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; margin-right: 12px; flex-shrink: 0; background: #f5f5f5; }
        .goods-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
        .goods-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .goods-sku { font-size: 12px; color: #999; margin-bottom: 4px; line-height: 1.4; }
        .goods-num { font-size: 13px; color: #666; font-weight: 500; margin-top: auto; }
        .sign-section { padding: 15px; border-top: 8px solid #f5f5f5; }
        .sign-btn { width: 100%; padding: 14px; background: #1890ff; color: #fff; border: none; border-radius: 6px; font-size: 16px; }
        .photo-preview { margin-bottom: 15px; }
        .preview-title { font-size: 14px; color: #666; margin-bottom: 10px; }
        .preview-list { display: flex; flex-wrap: wrap; gap: 10px; }
        .preview-item { position: relative; width: 80px; height: 80px; cursor: pointer; }
        .preview-item > div { width: 100%; height: 100%; cursor: pointer; }
        .preview-item img { width: 100%; height: 100%; max-width: 180px; max-height: 200px; object-fit: cover; border-radius: 4px; }
        .preview-item .remove-btn { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; background: #ff4d4f; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; z-index: 10; }
        .add-more { width: 80px; height: 80px; border: 2px dashed #ddd; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; cursor: pointer; }
        .add-more span:first-child { font-size: 24px; }
        .confirm-sign-btn { width: 100%; padding: 14px; background: #52c41a; color: #fff; border: none; border-radius: 6px; font-size: 16px; }
        .no-order { text-align: center; padding: 50px; color: #999; }
        .form-modal { padding-bottom: 15px; }
        .form-group { padding: 10px 15px; }
        .form-group label { display: block; margin-bottom: 5px; font-size: 14px; color: #666; }
        .form-group .required { color: #ff4d4f; }
        .form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
        .submit-btn { width: calc(100% - 30px); margin: 10px 15px 0; padding: 12px; background: #52c41a; color: #fff; border: none; border-radius: 6px; font-size: 16px; }
        .submit-btn:disabled { background: #d9d9d9; }
        .sign-only-btn { background: #1890ff; margin-top: 5px; }
        .toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 15px 30px; background: rgba(0,0,0,0.75); color: #fff; border-radius: 6px; font-size: 14px; z-index: 2000; }
        .toast.error { background: rgba(255,77,79,0.9); }
        .toast.success { background: rgba(82,196,26,0.9); }
        .order-total { padding: 10px 15px; color: #666; font-size: 14px; background: #fff; border-bottom: 1px solid #eee; }
        .loading-more { display: flex; flex-direction: column; align-items: center; padding: 20px; }
        .loading-more .spinner { width: 24px; height: 24px; border: 3px solid #f5f5f5; border-top-color: #1890ff; border-radius: 50%; animation: spin 1s linear infinite; }
        .loading-more p { margin-top: 8px; color: #999; font-size: 12px; }
        .no-more { text-align: center; padding: 15px; color: #999; font-size: 12px; }
        .order-serial { justify-content: center; padding: 8px 0; border-bottom: 2px solid #1890ff; margin-bottom: 5px; }
        .serial-num { font-size: 24px; font-weight: bold; color: #1890ff; }
        .serial-text { font-size: 14px; color: #999; }
        body { padding-bottom: 70px; }

/* 订单卡片 */
.order-card {
    background: #fff;
    border-radius: 8px;
    border: 2px solid blue;
    margin-bottom: 15px;
    /* overflow: hidden; */
}

/* 同步订单按钮 */
.tongbu-btn {
    flex: 1;
    padding: 14px;
    background: #fa8c16;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}
.tongbu-btn-done {
    background: #1890ff;
}
.tongbu-btn-all {
    background: #52c41a;
}

/* 未查询到订单按钮 */
.not-found-btn {
    width: 100%;
    padding: 14px;
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    /* margin-bottom: 10px; */
}

/* 同步订单提示 */
.tongbu-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    z-index: 2000;
}
.tongbu-toast.error {
    background: rgba(255,77,79,0.9);
}
.fixed-bottom-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}
.fixed-bottom-btn .submit-btn {
    width: 100%;
    margin: 0;
}

/* 验货信息输入区域 */
.yanhuo-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}
.yanhuo-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.yanhuo-row label {
    width: 70px !important;
    font-size: 14px !important;
    color: #666 !important;
    flex-shrink: 0 !important;
}
.yanhuo-info input {
    flex: 1 !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}